class ClusterSettings (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.Mixins.ClusterSettings |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs/mixins#ClusterSettings |
Java | software.amazon.awscdk.services.ecs.mixins.ClusterSettings |
Python | aws_cdk.aws_ecs.mixins.ClusterSettings |
TypeScript (source) | aws-cdk-lib » aws_ecs » mixins » ClusterSettings |
Implements
IMixin
Extends
Mixin
Applies one or more cluster settings to an ECS cluster.
If a setting with the same name already exists, its value is replaced.
Example
new ecs.CfnCluster(this, 'Cluster')
.with(new ecs.mixins.ClusterSettings([{ name: 'containerInsights', value: 'enhanced' }]));
Initializer
new ClusterSettings(settings: ClusterSettingsProperty[])
Parameters
- settings
ClusterSettings Property []
Methods
| Name | Description |
|---|---|
| apply | Applies the mixin functionality to the target construct. |
| supports(construct) | Determines whether this mixin can be applied to the given construct. |
applyTo(cluster)
public applyTo(cluster: IConstruct): void
Parameters
- cluster
IConstruct
Applies the mixin functionality to the target construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Determines whether this mixin can be applied to the given construct.

.NET
Go
Java
Python
TypeScript (