ClusterSettings

class aws_cdk.aws_ecs.mixins.ClusterSettings(settings)

Bases: Mixin

Applies one or more cluster settings to an ECS cluster.

If a setting with the same name already exists, its value is replaced.

ExampleMetadata:

infused

Example:

ecs.CfnCluster(self, "Cluster").with(ecs.mixins.ClusterSettings([name="containerInsights", value="enhanced"]))
Parameters:

settings (Sequence[Union[ClusterSettingsProperty, Dict[str, Any]]])

Methods

apply_to(cluster)

Applies the mixin functionality to the target construct.

Parameters:

cluster (IConstruct)

Return type:

None

supports(construct)

Determines whether this mixin can be applied to the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.