AWS v6.73.0 published on Wednesday, Mar 19, 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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
resources:
  testAccount:
    type: aws:securityhub:Account
    name: test
variables:
  test:
    fn::invoke:
      function: aws:securityhub:getStandardsControlAssociations
      arguments:
        securityControlId: IAM.1
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>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]func GetStandardsControlAssociations(ctx *Context, args *GetStandardsControlAssociationsArgs, opts ...InvokeOption) (*GetStandardsControlAssociationsResult, error)
func GetStandardsControlAssociationsOutput(ctx *Context, args *GetStandardsControlAssociationsOutputArgs, opts ...InvokeOption) GetStandardsControlAssociationsResultOutput> 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)
}public static CompletableFuture<GetStandardsControlAssociationsResult> getStandardsControlAssociations(GetStandardsControlAssociationsArgs args, InvokeOptions options)
public static Output<GetStandardsControlAssociationsResult> getStandardsControlAssociations(GetStandardsControlAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SecurityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- SecurityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- securityControl StringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- securityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- security_control_ strid 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- securityControl StringId 
- 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
- SecurityControl stringId 
- ID of the security control.
- StandardsControl List<GetAssociations Standards Control Associations Standards Control Association> 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
- Id string
- SecurityControl stringId 
- ID of the security control.
- StandardsControl []GetAssociations Standards Control Associations Standards Control Association 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
- id String
- securityControl StringId 
- ID of the security control.
- standardsControl List<GetAssociations Standards Control Associations Standards Control Association> 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
- id string
- securityControl stringId 
- ID of the security control.
- standardsControl GetAssociations Standards Control Associations Standards Control Association[] 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
- id str
- security_control_ strid 
- ID of the security control.
- standards_control_ Sequence[Getassociations Standards Control Associations Standards Control Association] 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
- id String
- securityControl StringId 
- ID of the security control.
- standardsControl List<Property Map>Associations 
- A list that provides the status and other details for each security control that applies to each enabled standard.
See standards_control_associationsbelow.
Supporting Types
GetStandardsControlAssociationsStandardsControlAssociation      
- AssociationStatus string
- Enablement status of a control in a specific standard.
- List<string>
- List of underlying requirements in the compliance framework related to the standard.
- SecurityControl stringArn 
- ARN of the security control.
- SecurityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- StandardsArn string
- ARN of the standard.
- StandardsControl stringDescription 
- Description of the standard.
- StandardsControl stringTitle 
- Title of the standard.
- UpdatedAt string
- Last time that a control's enablement status in a specified standard was updated.
- UpdatedReason string
- Reason for updating a control's enablement status in a specified standard.
- AssociationStatus string
- Enablement status of a control in a specific standard.
- []string
- List of underlying requirements in the compliance framework related to the standard.
- SecurityControl stringArn 
- ARN of the security control.
- SecurityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- StandardsArn string
- ARN of the standard.
- StandardsControl stringDescription 
- Description of the standard.
- StandardsControl stringTitle 
- Title of the standard.
- UpdatedAt string
- Last time that a control's enablement status in a specified standard was updated.
- UpdatedReason string
- Reason for updating a control's enablement status in a specified standard.
- associationStatus String
- Enablement status of a control in a specific standard.
- List<String>
- List of underlying requirements in the compliance framework related to the standard.
- securityControl StringArn 
- ARN of the security control.
- securityControl StringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- standardsArn String
- ARN of the standard.
- standardsControl StringDescription 
- Description of the standard.
- standardsControl StringTitle 
- Title of the standard.
- updatedAt String
- Last time that a control's enablement status in a specified standard was updated.
- updatedReason String
- Reason for updating a control's enablement status in a specified standard.
- associationStatus string
- Enablement status of a control in a specific standard.
- string[]
- List of underlying requirements in the compliance framework related to the standard.
- securityControl stringArn 
- ARN of the security control.
- securityControl stringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- standardsArn string
- ARN of the standard.
- standardsControl stringDescription 
- Description of the standard.
- standardsControl stringTitle 
- Title of the standard.
- updatedAt string
- Last time that a control's enablement status in a specified standard was updated.
- updatedReason string
- Reason for updating a control's enablement status in a specified standard.
- association_status str
- Enablement status of a control in a specific standard.
- Sequence[str]
- List of underlying requirements in the compliance framework related to the standard.
- security_control_ strarn 
- ARN of the security control.
- security_control_ strid 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- standards_arn str
- ARN of the standard.
- standards_control_ strdescription 
- Description of the standard.
- standards_control_ strtitle 
- Title of the standard.
- updated_at str
- Last time that a control's enablement status in a specified standard was updated.
- updated_reason str
- Reason for updating a control's enablement status in a specified standard.
- associationStatus String
- Enablement status of a control in a specific standard.
- List<String>
- List of underlying requirements in the compliance framework related to the standard.
- securityControl StringArn 
- ARN of the security control.
- securityControl StringId 
- The identifier of the control (identified with SecurityControlId,SecurityControlArn, or a mix of both parameters).
- standardsArn String
- ARN of the standard.
- standardsControl StringDescription 
- Description of the standard.
- standardsControl StringTitle 
- Title of the standard.
- updatedAt String
- Last time that a control's enablement status in a specified standard was updated.
- updatedReason 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 awsTerraform Provider.