AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi
aws.securityhub.getStandardsControlAssociations
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/v7/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(region: Optional[str] = None,
security_control_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStandardsControlAssociationsResult
def get_standards_control_associations_output(region: Optional[pulumi.Input[str]] = None,
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 dictionary
The following arguments are supported:
- Security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Control StringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security_
control_ strid - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Control StringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getStandardsControlAssociations Result
The following output properties are available:
- Id string
- Region string
- Security
Control stringId - ID of the security control.
- Standards
Control 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_associations
below.
- Id string
- Region string
- Security
Control stringId - ID of the security control.
- Standards
Control []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_associations
below.
- id String
- region String
- security
Control StringId - ID of the security control.
- standards
Control 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_associations
below.
- id string
- region string
- security
Control stringId - ID of the security control.
- standards
Control 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_associations
below.
- id str
- region 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_associations
below.
- id String
- region String
- security
Control StringId - ID of the security control.
- standards
Control 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_associations
below.
Supporting Types
GetStandardsControlAssociationsStandardsControlAssociation
- Association
Status string - Enablement status of a control in a specific standard.
- List<string>
- List of underlying requirements in the compliance framework related to the standard.
- Security
Control stringArn - ARN of the security control.
- Security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Standards
Arn string - ARN of the standard.
- Standards
Control stringDescription - Description of the standard.
- Standards
Control stringTitle - Title of the standard.
- Updated
At string - Last time that a control's enablement status in a specified standard was updated.
- Updated
Reason string - Reason for updating a control's enablement status in a specified standard.
- Association
Status string - Enablement status of a control in a specific standard.
- []string
- List of underlying requirements in the compliance framework related to the standard.
- Security
Control stringArn - ARN of the security control.
- Security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Standards
Arn string - ARN of the standard.
- Standards
Control stringDescription - Description of the standard.
- Standards
Control stringTitle - Title of the standard.
- Updated
At string - Last time that a control's enablement status in a specified standard was updated.
- Updated
Reason string - Reason for updating a control's enablement status in a specified standard.
- association
Status String - Enablement status of a control in a specific standard.
- List<String>
- List of underlying requirements in the compliance framework related to the standard.
- security
Control StringArn - ARN of the security control.
- security
Control StringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn String - ARN of the standard.
- standards
Control StringDescription - Description of the standard.
- standards
Control StringTitle - Title of the standard.
- updated
At String - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason String - Reason for updating a control's enablement status in a specified standard.
- association
Status string - Enablement status of a control in a specific standard.
- string[]
- List of underlying requirements in the compliance framework related to the standard.
- security
Control stringArn - ARN of the security control.
- security
Control stringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn string - ARN of the standard.
- standards
Control stringDescription - Description of the standard.
- standards
Control stringTitle - Title of the standard.
- updated
At string - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason 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.
- association
Status String - Enablement status of a control in a specific standard.
- List<String>
- List of underlying requirements in the compliance framework related to the standard.
- security
Control StringArn - ARN of the security control.
- security
Control StringId - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn String - ARN of the standard.
- standards
Control StringDescription - Description of the standard.
- standards
Control StringTitle - Title of the standard.
- updated
At String - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason 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.