aws-cdk-lib.aws_ecs.CfnCluster.ExecuteCommandLogConfigurationProperty

interface ExecuteCommandLogConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnCluster.ExecuteCommandLogConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnCluster_ExecuteCommandLogConfigurationProperty
Javasoftware.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandLogConfigurationProperty
Pythonaws_cdk.aws_ecs.CfnCluster.ExecuteCommandLogConfigurationProperty
TypeScript aws-cdk-lib » aws_ecs » CfnCluster » ExecuteCommandLogConfigurationProperty

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

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

Example

// 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 executeCommandLogConfigurationProperty: ecs.CfnCluster.ExecuteCommandLogConfigurationProperty = {
  cloudWatchEncryptionEnabled: false,
  cloudWatchLogGroupName: 'cloudWatchLogGroupName',
  s3BucketName: 's3BucketName',
  s3EncryptionEnabled: false,
  s3KeyPrefix: 's3KeyPrefix',
};

Properties

NameTypeDescription
cloudWatchEncryptionEnabled?boolean | IResolvableDetermines whether to use encryption on the CloudWatch logs.
cloudWatchLogGroupName?stringThe name of the CloudWatch log group to send logs to.
s3BucketName?stringThe name of the S3 bucket to send logs to.
s3EncryptionEnabled?boolean | IResolvableDetermines whether to use encryption on the S3 logs.
s3KeyPrefix?stringAn optional folder in the S3 bucket to place logs in.

cloudWatchEncryptionEnabled?

Type: boolean | IResolvable (optional)

Determines whether to use encryption on the CloudWatch logs.

If not specified, encryption will be off.


cloudWatchLogGroupName?

Type: string (optional)

The name of the CloudWatch log group to send logs to.

The CloudWatch log group must already be created.


s3BucketName?

Type: string (optional)

The name of the S3 bucket to send logs to.

The S3 bucket must already be created.


s3EncryptionEnabled?

Type: boolean | IResolvable (optional)

Determines whether to use encryption on the S3 logs.

If not specified, encryption is not used.


s3KeyPrefix?

Type: string (optional)

An optional folder in the S3 bucket to place logs in.