@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.698Z") @Stability(value=Stable) public interface ExecuteCommandConfiguration extends software.amazon.jsii.JsiiSerializable
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.
|
@Stability(value=Stable) @Nullable default IKey getKmsKey()
Default: - none
@Stability(value=Stable) @Nullable default ExecuteCommandLogConfiguration getLogConfiguration()
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
Default: - none
@Stability(value=Stable) @Nullable default ExecuteCommandLogging getLogging()
Default: - none
@Stability(value=Stable) static ExecuteCommandConfiguration.Builder builder()
Copyright © 2022. All rights reserved.