Skip to content
v2.277.0

CfnStandardProps Struct ​

Properties for defining a CfnStandard.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const cfnStandardProps: securityhub.CfnStandardProps = {
  standardsArn: 'standardsArn',

  // the properties below are optional
  disabledStandardsControls: [{
    standardsControlArn: 'standardsControlArn',

    // the properties below are optional
    reason: 'reason',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityhub as securityhub

cfn_standard_props = securityhub.CfnStandardProps(
    standards_arn="standardsArn",

    # the properties below are optional
    disabled_standards_controls=[securityhub.CfnStandard.StandardsControlProperty(
        standards_control_arn="standardsControlArn",

        # the properties below are optional
        reason="reason"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityhub.*;

CfnStandardProps cfnStandardProps = CfnStandardProps.builder()
        .standardsArn("standardsArn")

        // the properties below are optional
        .disabledStandardsControls(List.of(StandardsControlProperty.builder()
                .standardsControlArn("standardsControlArn")

                // the properties below are optional
                .reason("reason")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityHub;

var cfnStandardProps = new CfnStandardProps {
    StandardsArn = "standardsArn",

    // the properties below are optional
    DisabledStandardsControls = new [] { new StandardsControlProperty {
        StandardsControlArn = "standardsControlArn",

        // the properties below are optional
        Reason = "reason"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStandardProps := &CfnStandardProps{
	StandardsArn: jsii.String("standardsArn"),

	// the properties below are optional
	DisabledStandardsControls: []interface{}{
		&StandardsControlProperty{
			StandardsControlArn: jsii.String("standardsControlArn"),

			// the properties below are optional
			Reason: jsii.String("reason"),
		},
	},
}

Properties ​

disabledStandardsControlsoptionalIResolvable | IResolvable | CfnStandard.StandardsControlProperty[]disabled_standards_controlsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, StandardsControlProperty]]]disabledStandardsControlsoptionalIResolvableDisabledStandardsControlsoptionalIResolvableDisabledStandardsControlsoptionalinterface{} #
Specifies which controls are to be disabled in a standard.

Maximum : 100

standardsArnstringstandards_arnstrstandardsArnStringStandardsArnstringStandardsArn*string required #
The ARN of the standard that you want to enable.

To view a list of available Security Hub CSPM standards and their ARNs, use the DescribeStandards API operation.