ContainerInsights Enum
The CloudWatch Container Insights setting.
| Source | aws-ecs/lib/cluster.ts |
|---|---|
| Type last changed |
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
| Member | Description |
|---|---|
ENABLED | Enable CloudWatch Container Insights for the cluster. |
DISABLED | Disable CloudWatch Container Insights for the cluster. |
ENHANCED | Enable CloudWatch Container Insights with enhanced observability for the cluster. |
Referenced by
ClusterProps.containerInsightsV2container_insights_v2containerInsightsV2ContainerInsightsV2ContainerInsightsV2