class ClusterSettings
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.ClusterSettings |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#ClusterSettings |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.ClusterSettings |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.ClusterSettings |
TypeScript (source) | @aws-cdk/mixins-preview ยป 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
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { ClusterSettings } from '@aws-cdk/mixins-preview/aws-ecs/mixins';
const cluster = new ecs.CfnCluster(scope, "Cluster");
Mixins.of(cluster).apply(new 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 (