Class CfnCluster.ExecuteCommandConfigurationProperty
The details of the execute command configuration.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster.ExecuteCommandConfigurationProperty : CfnCluster.IExecuteCommandConfigurationProperty
Syntax (vb)
Public Class CfnCluster.ExecuteCommandConfigurationProperty Implements CfnCluster.IExecuteCommandConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 executeCommandConfigurationProperty = new ExecuteCommandConfigurationProperty {
KmsKeyId = "kmsKeyId",
LogConfiguration = new ExecuteCommandLogConfigurationProperty {
CloudWatchEncryptionEnabled = false,
CloudWatchLogGroupName = "cloudWatchLogGroupName",
S3BucketName = "s3BucketName",
S3EncryptionEnabled = false,
S3KeyPrefix = "s3KeyPrefix"
},
Logging = "logging"
};
Synopsis
Constructors
| ExecuteCommandConfigurationProperty() | The details of the execute command configuration. |
Properties
| KmsKeyId | Specify an 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 setting to use for redirecting logs for your execute command results. The following log settings are available. |
Constructors
ExecuteCommandConfigurationProperty()
The details of the execute command configuration.
public ExecuteCommandConfigurationProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 executeCommandConfigurationProperty = new ExecuteCommandConfigurationProperty {
KmsKeyId = "kmsKeyId",
LogConfiguration = new ExecuteCommandLogConfigurationProperty {
CloudWatchEncryptionEnabled = false,
CloudWatchLogGroupName = "cloudWatchLogGroupName",
S3BucketName = "s3BucketName",
S3EncryptionEnabled = false,
S3KeyPrefix = "s3KeyPrefix"
},
Logging = "logging"
};
Properties
KmsKeyId
Specify an AWS Key Management Service key ID to encrypt the data between the local client and the container.
public string? KmsKeyId { get; set; }
Property Value
Remarks
LogConfiguration
The log configuration for the results of the execute command actions.
public object? LogConfiguration { get; set; }
Property Value
Remarks
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is specified, a logConfiguration must be provided.
Type union: either IResolvable or CfnCluster.IExecuteCommandLogConfigurationProperty
Logging
The log setting to use for redirecting logs for your execute command results. The following log settings are available.
public string? Logging { get; set; }