interface ExecuteCommandLogConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.CfnCluster.ExecuteCommandLogConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandLogConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnCluster.ExecuteCommandLogConfigurationProperty |
TypeScript | @aws-cdk/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 * as ecs from '@aws-cdk/aws-ecs';
const executeCommandLogConfigurationProperty: ecs.CfnCluster.ExecuteCommandLogConfigurationProperty = {
cloudWatchEncryptionEnabled: false,
cloudWatchLogGroupName: 'cloudWatchLogGroupName',
s3BucketName: 's3BucketName',
s3EncryptionEnabled: false,
s3KeyPrefix: 's3KeyPrefix',
};
Properties
Name | Type | Description |
---|---|---|
cloud | boolean | IResolvable | Determines whether to use encryption on the CloudWatch logs. |
cloud | string | The name of the CloudWatch log group to send logs to. |
s3 | string | The name of the S3 bucket to send logs to. |
s3 | boolean | IResolvable | Determines whether to use encryption on the S3 logs. |
s3 | string | An 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.