1. Packages
  2. AWS
  3. API Docs
  4. securityhub
  5. getStandardsControlAssociations
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.securityhub.getStandardsControlAssociations

Explore with Pulumi AI

Data source for managing an AWS Security Hub Standards Control Associations.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const testAccount = new aws.securityhub.Account("test", {});
const test = aws.securityhub.getStandardsControlAssociations({
    securityControlId: "IAM.1",
});
Copy
import pulumi
import pulumi_aws as aws

test_account = aws.securityhub.Account("test")
test = aws.securityhub.get_standards_control_associations(security_control_id="IAM.1")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/securityhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securityhub.NewAccount(ctx, "test", nil)
		if err != nil {
			return err
		}
		_, err = securityhub.GetStandardsControlAssociations(ctx, &securityhub.GetStandardsControlAssociationsArgs{
			SecurityControlId: "IAM.1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var testAccount = new Aws.SecurityHub.Account("test");

    var test = Aws.SecurityHub.GetStandardsControlAssociations.Invoke(new()
    {
        SecurityControlId = "IAM.1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.securityhub.Account;
import com.pulumi.aws.securityhub.SecurityhubFunctions;
import com.pulumi.aws.securityhub.inputs.GetStandardsControlAssociationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testAccount = new Account("testAccount");

        final var test = SecurityhubFunctions.getStandardsControlAssociations(GetStandardsControlAssociationsArgs.builder()
            .securityControlId("IAM.1")
            .build());

    }
}
Copy
resources:
  testAccount:
    type: aws:securityhub:Account
    name: test
variables:
  test:
    fn::invoke:
      function: aws:securityhub:getStandardsControlAssociations
      arguments:
        securityControlId: IAM.1
Copy

Using getStandardsControlAssociations

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getStandardsControlAssociations(args: GetStandardsControlAssociationsArgs, opts?: InvokeOptions): Promise<GetStandardsControlAssociationsResult>
function getStandardsControlAssociationsOutput(args: GetStandardsControlAssociationsOutputArgs, opts?: InvokeOptions): Output<GetStandardsControlAssociationsResult>
Copy
def get_standards_control_associations(security_control_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetStandardsControlAssociationsResult
def get_standards_control_associations_output(security_control_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetStandardsControlAssociationsResult]
Copy
func GetStandardsControlAssociations(ctx *Context, args *GetStandardsControlAssociationsArgs, opts ...InvokeOption) (*GetStandardsControlAssociationsResult, error)
func GetStandardsControlAssociationsOutput(ctx *Context, args *GetStandardsControlAssociationsOutputArgs, opts ...InvokeOption) GetStandardsControlAssociationsResultOutput
Copy

> Note: This function is named GetStandardsControlAssociations in the Go SDK.

public static class GetStandardsControlAssociations 
{
    public static Task<GetStandardsControlAssociationsResult> InvokeAsync(GetStandardsControlAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetStandardsControlAssociationsResult> Invoke(GetStandardsControlAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStandardsControlAssociationsResult> getStandardsControlAssociations(GetStandardsControlAssociationsArgs args, InvokeOptions options)
public static Output<GetStandardsControlAssociationsResult> getStandardsControlAssociations(GetStandardsControlAssociationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SecurityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
SecurityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
securityControlId This property is required. String
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
securityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
security_control_id This property is required. str
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
securityControlId This property is required. String
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).

getStandardsControlAssociations Result

The following output properties are available:

Id string
SecurityControlId string
ID of the security control.
StandardsControlAssociations List<GetStandardsControlAssociationsStandardsControlAssociation>
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.
Id string
SecurityControlId string
ID of the security control.
StandardsControlAssociations []GetStandardsControlAssociationsStandardsControlAssociation
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.
id String
securityControlId String
ID of the security control.
standardsControlAssociations List<GetStandardsControlAssociationsStandardsControlAssociation>
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.
id string
securityControlId string
ID of the security control.
standardsControlAssociations GetStandardsControlAssociationsStandardsControlAssociation[]
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.
id str
security_control_id str
ID of the security control.
standards_control_associations Sequence[GetStandardsControlAssociationsStandardsControlAssociation]
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.
id String
securityControlId String
ID of the security control.
standardsControlAssociations List<Property Map>
A list that provides the status and other details for each security control that applies to each enabled standard. See standards_control_associations below.

Supporting Types

GetStandardsControlAssociationsStandardsControlAssociation

AssociationStatus This property is required. string
Enablement status of a control in a specific standard.
RelatedRequirements This property is required. List<string>
List of underlying requirements in the compliance framework related to the standard.
SecurityControlArn This property is required. string
ARN of the security control.
SecurityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
StandardsArn This property is required. string
ARN of the standard.
StandardsControlDescription This property is required. string
Description of the standard.
StandardsControlTitle This property is required. string
Title of the standard.
UpdatedAt This property is required. string
Last time that a control's enablement status in a specified standard was updated.
UpdatedReason This property is required. string
Reason for updating a control's enablement status in a specified standard.
AssociationStatus This property is required. string
Enablement status of a control in a specific standard.
RelatedRequirements This property is required. []string
List of underlying requirements in the compliance framework related to the standard.
SecurityControlArn This property is required. string
ARN of the security control.
SecurityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
StandardsArn This property is required. string
ARN of the standard.
StandardsControlDescription This property is required. string
Description of the standard.
StandardsControlTitle This property is required. string
Title of the standard.
UpdatedAt This property is required. string
Last time that a control's enablement status in a specified standard was updated.
UpdatedReason This property is required. string
Reason for updating a control's enablement status in a specified standard.
associationStatus This property is required. String
Enablement status of a control in a specific standard.
relatedRequirements This property is required. List<String>
List of underlying requirements in the compliance framework related to the standard.
securityControlArn This property is required. String
ARN of the security control.
securityControlId This property is required. String
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
standardsArn This property is required. String
ARN of the standard.
standardsControlDescription This property is required. String
Description of the standard.
standardsControlTitle This property is required. String
Title of the standard.
updatedAt This property is required. String
Last time that a control's enablement status in a specified standard was updated.
updatedReason This property is required. String
Reason for updating a control's enablement status in a specified standard.
associationStatus This property is required. string
Enablement status of a control in a specific standard.
relatedRequirements This property is required. string[]
List of underlying requirements in the compliance framework related to the standard.
securityControlArn This property is required. string
ARN of the security control.
securityControlId This property is required. string
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
standardsArn This property is required. string
ARN of the standard.
standardsControlDescription This property is required. string
Description of the standard.
standardsControlTitle This property is required. string
Title of the standard.
updatedAt This property is required. string
Last time that a control's enablement status in a specified standard was updated.
updatedReason This property is required. string
Reason for updating a control's enablement status in a specified standard.
association_status This property is required. str
Enablement status of a control in a specific standard.
related_requirements This property is required. Sequence[str]
List of underlying requirements in the compliance framework related to the standard.
security_control_arn This property is required. str
ARN of the security control.
security_control_id This property is required. str
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
standards_arn This property is required. str
ARN of the standard.
standards_control_description This property is required. str
Description of the standard.
standards_control_title This property is required. str
Title of the standard.
updated_at This property is required. str
Last time that a control's enablement status in a specified standard was updated.
updated_reason This property is required. str
Reason for updating a control's enablement status in a specified standard.
associationStatus This property is required. String
Enablement status of a control in a specific standard.
relatedRequirements This property is required. List<String>
List of underlying requirements in the compliance framework related to the standard.
securityControlArn This property is required. String
ARN of the security control.
securityControlId This property is required. String
The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
standardsArn This property is required. String
ARN of the standard.
standardsControlDescription This property is required. String
Description of the standard.
standardsControlTitle This property is required. String
Title of the standard.
updatedAt This property is required. String
Last time that a control's enablement status in a specified standard was updated.
updatedReason This property is required. String
Reason for updating a control's enablement status in a specified standard.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.