Show / Hide Table of Contents

Interface IExecuteCommandConfiguration

The details of the execute command configuration.

Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IExecuteCommandConfiguration
Syntax (vb)
Public Interface IExecuteCommandConfiguration
Remarks

For more information, see [ExecuteCommandConfiguration] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-executecommandconfiguration.html

ExampleMetadata: infused

Examples
Vpc vpc;

             var kmsKey = new Key(this, "KmsKey");

             // Pass the KMS key in the `encryptionKey` field to associate the key to the log group
             var logGroup = new LogGroup(this, "LogGroup", new LogGroupProps {
                 EncryptionKey = kmsKey
             });

             // Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket
             var execBucket = new Bucket(this, "EcsExecBucket", new BucketProps {
                 EncryptionKey = kmsKey
             });

             var cluster = new Cluster(this, "Cluster", new ClusterProps {
                 Vpc = vpc,
                 ExecuteCommandConfiguration = new ExecuteCommandConfiguration {
                     KmsKey = kmsKey,
                     LogConfiguration = new ExecuteCommandLogConfiguration {
                         CloudWatchLogGroup = logGroup,
                         CloudWatchEncryptionEnabled = true,
                         S3Bucket = execBucket,
                         S3EncryptionEnabled = true,
                         S3KeyPrefix = "exec-command-output"
                     },
                     Logging = ExecuteCommandLogging.OVERRIDE
                 }
             });

Synopsis

Properties

KmsKey

The AWS Key Management Service key ID to encrypt the data between the local client and the container.

LogConfiguration

The log configuration for the results of the execute command actions.

Logging

The log settings to use for logging the execute command session.

Properties

KmsKey

The AWS Key Management Service key ID to encrypt the data between the local client and the container.

IKey? KmsKey { get; }
Property Value

IKey

Remarks

Default: - none

LogConfiguration

The log configuration for the results of the execute command actions.

IExecuteCommandLogConfiguration? LogConfiguration { get; }
Property Value

IExecuteCommandLogConfiguration

Remarks

The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.

Default: - none

Logging

The log settings to use for logging the execute command session.

ExecuteCommandLogging? Logging { get; }
Property Value

ExecuteCommandLogging?

Remarks

Default: - none

Back to top Generated by DocFX