# CfnEnabledControlProps

Properties for defining a `CfnEnabledControl`.

Used as props by: [CfnEnabledControl](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_controltower.CfnEnabledControl.html)

- Source: Generated at build time
- Type last changed: v2.129.0 · 21 Feb 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `controlIdentifier`: string (required) — The ARN of the control.

  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](https://docs.aws.amazon.com//controltower/latest/APIReference/Welcome.html) .

- `parameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEnabledControl.EnabledControlParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_controltower.CfnEnabledControl.EnabledControlParameterProperty.html)[] — Array of `EnabledControlParameter` objects.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A set of tags to assign to the enabled control.

- `targetIdentifier`: string (required) — The ARN of the organizational unit.

  For information on how to find the `targetIdentifier` , see [the overview page](https://docs.aws.amazon.com//controltower/latest/APIReference/Welcome.html) .
