Skip to content
v2.278.0

ClusterConfigurationProperty Struct ​

The execute command and managed storage configuration for the cluster.

Example ​

ts
// 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 clusterConfigurationProperty: ecs.CfnCluster.ClusterConfigurationProperty = {
  executeCommandConfiguration: {
    kmsKeyId: 'kmsKeyId',
    logConfiguration: {
      cloudWatchEncryptionEnabled: false,
      cloudWatchLogGroupName: 'cloudWatchLogGroupName',
      s3BucketName: 's3BucketName',
      s3EncryptionEnabled: false,
      s3KeyPrefix: 's3KeyPrefix',
    },
    logging: 'logging',
  },
  managedStorageConfiguration: {
    fargateEphemeralStorageKmsKeyId: 'fargateEphemeralStorageKmsKeyId',
    kmsKeyId: 'kmsKeyId',
  },
};
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_ecs as ecs

cluster_configuration_property = ecs.CfnCluster.ClusterConfigurationProperty(
    execute_command_configuration=ecs.CfnCluster.ExecuteCommandConfigurationProperty(
        kms_key_id="kmsKeyId",
        log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(
            cloud_watch_encryption_enabled=False,
            cloud_watch_log_group_name="cloudWatchLogGroupName",
            s3_bucket_name="s3BucketName",
            s3_encryption_enabled=False,
            s3_key_prefix="s3KeyPrefix"
        ),
        logging="logging"
    ),
    managed_storage_configuration=ecs.CfnCluster.ManagedStorageConfigurationProperty(
        fargate_ephemeral_storage_kms_key_id="fargateEphemeralStorageKmsKeyId",
        kms_key_id="kmsKeyId"
    )
)
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.ecs.*;

ClusterConfigurationProperty clusterConfigurationProperty = ClusterConfigurationProperty.builder()
        .executeCommandConfiguration(ExecuteCommandConfigurationProperty.builder()
                .kmsKeyId("kmsKeyId")
                .logConfiguration(ExecuteCommandLogConfigurationProperty.builder()
                        .cloudWatchEncryptionEnabled(false)
                        .cloudWatchLogGroupName("cloudWatchLogGroupName")
                        .s3BucketName("s3BucketName")
                        .s3EncryptionEnabled(false)
                        .s3KeyPrefix("s3KeyPrefix")
                        .build())
                .logging("logging")
                .build())
        .managedStorageConfiguration(ManagedStorageConfigurationProperty.builder()
                .fargateEphemeralStorageKmsKeyId("fargateEphemeralStorageKmsKeyId")
                .kmsKeyId("kmsKeyId")
                .build())
        .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.ECS;

var clusterConfigurationProperty = new ClusterConfigurationProperty {
    ExecuteCommandConfiguration = new ExecuteCommandConfigurationProperty {
        KmsKeyId = "kmsKeyId",
        LogConfiguration = new ExecuteCommandLogConfigurationProperty {
            CloudWatchEncryptionEnabled = false,
            CloudWatchLogGroupName = "cloudWatchLogGroupName",
            S3BucketName = "s3BucketName",
            S3EncryptionEnabled = false,
            S3KeyPrefix = "s3KeyPrefix"
        },
        Logging = "logging"
    },
    ManagedStorageConfiguration = new ManagedStorageConfigurationProperty {
        FargateEphemeralStorageKmsKeyId = "fargateEphemeralStorageKmsKeyId",
        KmsKeyId = "kmsKeyId"
    }
};
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"

clusterConfigurationProperty := &ClusterConfigurationProperty{
	ExecuteCommandConfiguration: &ExecuteCommandConfigurationProperty{
		KmsKeyId: jsii.String("kmsKeyId"),
		LogConfiguration: &ExecuteCommandLogConfigurationProperty{
			CloudWatchEncryptionEnabled: jsii.Boolean(false),
			CloudWatchLogGroupName: jsii.String("cloudWatchLogGroupName"),
			S3BucketName: jsii.String("s3BucketName"),
			S3EncryptionEnabled: jsii.Boolean(false),
			S3KeyPrefix: jsii.String("s3KeyPrefix"),
		},
		Logging: jsii.String("logging"),
	},
	ManagedStorageConfiguration: &ManagedStorageConfigurationProperty{
		FargateEphemeralStorageKmsKeyId: jsii.String("fargateEphemeralStorageKmsKeyId"),
		KmsKeyId: jsii.String("kmsKeyId"),
	},
}

Properties ​

executeCommandConfigurationoptionalIResolvable | CfnCluster.ExecuteCommandConfigurationPropertyexecute_command_configurationoptionaltyping.Union[IResolvable, ExecuteCommandConfigurationProperty]executeCommandConfigurationoptionalIResolvableExecuteCommandConfigurationoptionalIResolvableExecuteCommandConfigurationoptionalinterface{} #
The details of the execute command configuration.
managedStorageConfigurationoptionalIResolvable | CfnCluster.ManagedStorageConfigurationPropertymanaged_storage_configurationoptionaltyping.Union[IResolvable, ManagedStorageConfigurationProperty]managedStorageConfigurationoptionalIResolvableManagedStorageConfigurationoptionalIResolvableManagedStorageConfigurationoptionalinterface{} #
The details of the managed storage configuration.