@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-02-09T02:14:38.458Z")
public interface ExecuteCommandConfiguration
For more information, see [ExecuteCommandConfiguration] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-executecommandconfiguration.html
Example:
Vpc vpc; Key kmsKey = new Key(this, "KmsKey"); // Pass the KMS key in the `encryptionKey` field to associate the key to the log group LogGroup logGroup = LogGroup.Builder.create(this, "LogGroup") .encryptionKey(kmsKey) .build(); // Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket Bucket execBucket = Bucket.Builder.create(this, "EcsExecBucket") .encryptionKey(kmsKey) .build(); Cluster cluster = Cluster.Builder.create(this, "Cluster") .vpc(vpc) .executeCommandConfiguration(ExecuteCommandConfiguration.builder() .kmsKey(kmsKey) .logConfiguration(ExecuteCommandLogConfiguration.builder() .cloudWatchLogGroup(logGroup) .cloudWatchEncryptionEnabled(true) .s3Bucket(execBucket) .s3EncryptionEnabled(true) .s3KeyPrefix("exec-command-output") .build()) .logging(ExecuteCommandLogging.OVERRIDE) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
ExecuteCommandConfiguration.Builder
A builder for
ExecuteCommandConfiguration |
static class |
ExecuteCommandConfiguration.Jsii$Proxy
An implementation for
ExecuteCommandConfiguration |
Modifier and Type | Method and Description |
---|---|
static ExecuteCommandConfiguration.Builder |
builder() |
default IKey |
getKmsKey()
The AWS Key Management Service key ID to encrypt the data between the local client and the container.
|
default ExecuteCommandLogConfiguration |
getLogConfiguration()
The log configuration for the results of the execute command actions.
|
default ExecuteCommandLogging |
getLogging()
The log settings to use for logging the execute command session.
|
default IKey getKmsKey()
Default: - none
default ExecuteCommandLogConfiguration getLogConfiguration()
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
Default: - none
default ExecuteCommandLogging getLogging()
Default: - none
static ExecuteCommandConfiguration.Builder builder()