Skip to content
v2.278.0

ContainerInsights Enum ​

The CloudWatch Container Insights setting.

Example ​

ts
const cluster = new ecs.Cluster(this, 'Cluster', {
  containerInsightsV2: ecs.ContainerInsights.ENHANCED
});
python
cluster = ecs.Cluster(self, "Cluster",
    container_insights_v2=ecs.ContainerInsights.ENHANCED
)
java
Cluster cluster = Cluster.Builder.create(this, "Cluster")
        .containerInsightsV2(ContainerInsights.ENHANCED)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var cluster = new Cluster(this, "Cluster", new ClusterProps {
    ContainerInsightsV2 = ContainerInsights.ENHANCED
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
cluster := ecs.NewCluster(this, jsii.String("Cluster"), &ClusterProps{
	ContainerInsightsV2: ecs.ContainerInsights_ENHANCED,
})

Members ​

MemberDescription
ENABLEDEnable CloudWatch Container Insights for the cluster.
DISABLEDDisable CloudWatch Container Insights for the cluster.
ENHANCEDEnable CloudWatch Container Insights with enhanced observability for the cluster.

Referenced by ​

  • ClusterProps.containerInsightsV2container_insights_v2containerInsightsV2ContainerInsightsV2ContainerInsightsV2