ExecuteCommandConfigurationProperty Struct
The details of the execute command configuration.
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 executeCommandConfigurationProperty: ecs.CfnCluster.ExecuteCommandConfigurationProperty = {
kmsKeyId: 'kmsKeyId',
logConfiguration: {
cloudWatchEncryptionEnabled: false,
cloudWatchLogGroupName: 'cloudWatchLogGroupName',
s3BucketName: 's3BucketName',
s3EncryptionEnabled: false,
s3KeyPrefix: 's3KeyPrefix',
},
logging: 'logging',
};
Properties
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string#Specify an AWS Key Management Service key ID to encrypt the data between the local client and the container.
logConfigurationoptionalIResolvable | CfnCluster.ExecuteCommandLogConfigurationPropertylog_configurationoptionaltyping.Union[IResolvable, ExecuteCommandLogConfigurationProperty]logConfigurationoptionalIResolvableLogConfigurationoptionalIResolvableLogConfigurationoptionalinterface{}#The log configuration for the results of the execute command actions.
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is specified, a logConfiguration must be provided.
loggingoptionalstringloggingoptionalstrloggingoptionalStringLoggingoptionalstringLoggingoptional*string#The log setting to use for redirecting logs for your execute command results. The following log settings are available.
notes
NONE: The execute command session is not logged.DEFAULT: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged.OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis required.