aws-cdk-lib.aws_ecs.CfnCluster.ClusterSettingsProperty

interface ClusterSettingsProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnCluster.ClusterSettingsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnCluster_ClusterSettingsProperty
Javasoftware.amazon.awscdk.services.ecs.CfnCluster.ClusterSettingsProperty
Pythonaws_cdk.aws_ecs.CfnCluster.ClusterSettingsProperty
TypeScript aws-cdk-lib » aws_ecs » CfnCluster » ClusterSettingsProperty

The settings to use when creating a cluster.

This parameter is used to turn on CloudWatch Container Insights for a cluster.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const clusterSettingsProperty: ecs.CfnCluster.ClusterSettingsProperty = {
  name: 'name',
  value: 'value',
};

Properties

NameTypeDescription
name?stringThe name of the cluster setting.
value?stringThe value to set for the cluster setting. The supported values are enabled and disabled .

name?

Type: string (optional)

The name of the cluster setting.

The value is containerInsights .


value?

Type: string (optional)

The value to set for the cluster setting. The supported values are enabled and disabled .

If you set name to containerInsights and value to enabled , CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the containerInsights account setting is turned on. If a cluster value is specified, it will override the containerInsights value set with PutAccountSetting or PutAccountSettingDefault .