Skip to content
v2.278.0

CfnEnabledControlProps Struct ​

Properties for defining a CfnEnabledControl.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_controltower as controltower } from 'aws-cdk-lib';

declare const value: any;
const cfnEnabledControlProps: controltower.CfnEnabledControlProps = {
  controlIdentifier: 'controlIdentifier',
  targetIdentifier: 'targetIdentifier',

  // the properties below are optional
  parameters: [{
    key: 'key',
    value: value,
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_controltower as controltower

# value: Any

cfn_enabled_control_props = controltower.CfnEnabledControlProps(
    control_identifier="controlIdentifier",
    target_identifier="targetIdentifier",

    # the properties below are optional
    parameters=[controltower.CfnEnabledControl.EnabledControlParameterProperty(
        key="key",
        value=value
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.controltower.*;

Object value;

CfnEnabledControlProps cfnEnabledControlProps = CfnEnabledControlProps.builder()
        .controlIdentifier("controlIdentifier")
        .targetIdentifier("targetIdentifier")

        // the properties below are optional
        .parameters(List.of(EnabledControlParameterProperty.builder()
                .key("key")
                .value(value)
                .build()))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.ControlTower;

var value;

var cfnEnabledControlProps = new CfnEnabledControlProps {
    ControlIdentifier = "controlIdentifier",
    TargetIdentifier = "targetIdentifier",

    // the properties below are optional
    Parameters = new [] { new EnabledControlParameterProperty {
        Key = "key",
        Value = value
    } },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

var value interface{}

cfnEnabledControlProps := &CfnEnabledControlProps{
	ControlIdentifier: jsii.String("controlIdentifier"),
	TargetIdentifier: jsii.String("targetIdentifier"),

	// the properties below are optional
	Parameters: []interface{}{
		&EnabledControlParameterProperty{
			Key: jsii.String("key"),
			Value: value,
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

controlIdentifierstringcontrol_identifierstrcontrolIdentifierStringControlIdentifierstringControlIdentifier*string required #
The ARN of the control.
notes

Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the controlIdentifier , see the overview page .

parametersoptionalIResolvable | IResolvable | CfnEnabledControl.EnabledControlParameterProperty[]parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EnabledControlParameterProperty]]]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{} #
Array of `EnabledControlParameter` objects.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A set of tags to assign to the enabled control.
targetIdentifierstringtarget_identifierstrtargetIdentifierStringTargetIdentifierstringTargetIdentifier*string required #
The ARN of the organizational unit.

For information on how to find the targetIdentifier , see the overview page .