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",
});
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 dictionary
The following arguments are supported:
- Security
Control Id 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. string - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters).
- security
Control Id 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. 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).
- security
Control Id 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
- 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
- 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
- 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
- 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
- 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
- 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 This property is required. string - Enablement status of a control in a specific standard.
This property is required. List<string>- List of underlying requirements in the compliance framework related to the standard.
- Security
Control Arn This property is required. string - ARN of the security control.
- Security
Control Id This property is required. string - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Standards
Arn This property is required. string - ARN of the standard.
- Standards
Control Description This property is required. string - Description of the standard.
- Standards
Control Title This property is required. string - Title of the standard.
- Updated
At This property is required. string - Last time that a control's enablement status in a specified standard was updated.
- Updated
Reason This property is required. string - Reason for updating a control's enablement status in a specified standard.
- Association
Status This property is required. string - Enablement status of a control in a specific standard.
This property is required. []string- List of underlying requirements in the compliance framework related to the standard.
- Security
Control Arn This property is required. string - ARN of the security control.
- Security
Control Id This property is required. string - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - Standards
Arn This property is required. string - ARN of the standard.
- Standards
Control Description This property is required. string - Description of the standard.
- Standards
Control Title This property is required. string - Title of the standard.
- Updated
At This property is required. string - Last time that a control's enablement status in a specified standard was updated.
- Updated
Reason This property is required. string - Reason for updating a control's enablement status in a specified standard.
- association
Status This property is required. String - Enablement status of a control in a specific standard.
This property is required. List<String>- List of underlying requirements in the compliance framework related to the standard.
- security
Control Arn This property is required. String - ARN of the security control.
- security
Control Id This property is required. String - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn This property is required. String - ARN of the standard.
- standards
Control Description This property is required. String - Description of the standard.
- standards
Control Title This property is required. String - Title of the standard.
- updated
At This property is required. String - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason This property is required. String - Reason for updating a control's enablement status in a specified standard.
- association
Status This property is required. string - Enablement status of a control in a specific standard.
This property is required. string[]- List of underlying requirements in the compliance framework related to the standard.
- security
Control Arn This property is required. string - ARN of the security control.
- security
Control Id This property is required. string - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn This property is required. string - ARN of the standard.
- standards
Control Description This property is required. string - Description of the standard.
- standards
Control Title This property is required. string - Title of the standard.
- updated
At This property is required. string - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason 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.
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.
- association
Status This property is required. String - Enablement status of a control in a specific standard.
This property is required. List<String>- List of underlying requirements in the compliance framework related to the standard.
- security
Control Arn This property is required. String - ARN of the security control.
- security
Control Id This property is required. String - The identifier of the control (identified with
SecurityControlId
,SecurityControlArn
, or a mix of both parameters). - standards
Arn This property is required. String - ARN of the standard.
- standards
Control Description This property is required. String - Description of the standard.
- standards
Control Title This property is required. String - Title of the standard.
- updated
At This property is required. String - Last time that a control's enablement status in a specified standard was updated.
- updated
Reason 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.