1. Packages
  2. AWS
  3. API Docs
  4. securityhub
  5. getStandardsControlAssociations
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.securityhub.getStandardsControlAssociations

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    SecurityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    securityControlId String
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    securityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    security_control_id str
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    securityControlId 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 string
    Enablement status of a control in a specific standard.
    RelatedRequirements List<string>
    List of underlying requirements in the compliance framework related to the standard.
    SecurityControlArn string
    ARN of the security control.
    SecurityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    StandardsArn string
    ARN of the standard.
    StandardsControlDescription string
    Description of the standard.
    StandardsControlTitle string
    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.
    RelatedRequirements []string
    List of underlying requirements in the compliance framework related to the standard.
    SecurityControlArn string
    ARN of the security control.
    SecurityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    StandardsArn string
    ARN of the standard.
    StandardsControlDescription string
    Description of the standard.
    StandardsControlTitle string
    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.
    relatedRequirements List<String>
    List of underlying requirements in the compliance framework related to the standard.
    securityControlArn String
    ARN of the security control.
    securityControlId String
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    standardsArn String
    ARN of the standard.
    standardsControlDescription String
    Description of the standard.
    standardsControlTitle String
    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.
    relatedRequirements string[]
    List of underlying requirements in the compliance framework related to the standard.
    securityControlArn string
    ARN of the security control.
    securityControlId string
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    standardsArn string
    ARN of the standard.
    standardsControlDescription string
    Description of the standard.
    standardsControlTitle string
    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.
    related_requirements Sequence[str]
    List of underlying requirements in the compliance framework related to the standard.
    security_control_arn str
    ARN of the security control.
    security_control_id str
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    standards_arn str
    ARN of the standard.
    standards_control_description str
    Description of the standard.
    standards_control_title str
    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.
    relatedRequirements List<String>
    List of underlying requirements in the compliance framework related to the standard.
    securityControlArn String
    ARN of the security control.
    securityControlId String
    The identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters).
    standardsArn String
    ARN of the standard.
    standardsControlDescription String
    Description of the standard.
    standardsControlTitle String
    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 aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi