Skip to content
v2.277.0

EcsSettingsProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const ecsSettingsProperty: batch.CfnComputeEnvironment.EcsSettingsProperty = {
  containerInsights: 'containerInsights',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

ecs_settings_property = batch.CfnComputeEnvironment.EcsSettingsProperty(
    container_insights="containerInsights"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

EcsSettingsProperty ecsSettingsProperty = EcsSettingsProperty.builder()
        .containerInsights("containerInsights")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var ecsSettingsProperty = new EcsSettingsProperty {
    ContainerInsights = "containerInsights"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ecsSettingsProperty := &EcsSettingsProperty{
	ContainerInsights: jsii.String("containerInsights"),
}

Properties ​

containerInsightsoptionalstringcontainer_insightsoptionalstrcontainerInsightsoptionalStringContainerInsightsoptionalstringContainerInsightsoptional*string#
The CloudWatch Container Insights setting applied to the Amazon ECS cluster that backs this compute environment.
notes

After you set this property, you can't revert it to the default (unset) state in which the setting is managed outside of AWS Batch. If you remove this property after previously setting it, AWS Batch treats the omission as DISABLED, because the underlying API has no way to unset the value. Because of this, if a stack rollback would return this property to its previous unset state, AWS Batch sets it to DISABLED instead.