Interface CfnCluster.ExecuteCommandLogConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCluster.ExecuteCommandLogConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnCluster
@Stability(Stable)
public static interface CfnCluster.ExecuteCommandLogConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ecs.*;
ExecuteCommandLogConfigurationProperty executeCommandLogConfigurationProperty = ExecuteCommandLogConfigurationProperty.builder()
.cloudWatchEncryptionEnabled(false)
.cloudWatchLogGroupName("cloudWatchLogGroupName")
.s3BucketName("s3BucketName")
.s3EncryptionEnabled(false)
.s3KeyPrefix("s3KeyPrefix")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCluster.ExecuteCommandLogConfigurationPropertystatic final classAn implementation forCfnCluster.ExecuteCommandLogConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDetermines whether to use encryption on the CloudWatch logs.default StringThe name of the CloudWatch log group to send logs to.default StringThe name of the S3 bucket to send logs to.default ObjectDetermines whether to use encryption on the S3 logs.default StringAn optional folder in the S3 bucket to place logs in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCloudWatchEncryptionEnabled
Determines whether to use encryption on the CloudWatch logs.If not specified, encryption will be off.
Returns union: either
BooleanorIResolvable- See Also:
-
getCloudWatchLogGroupName
The name of the CloudWatch log group to send logs to.The CloudWatch log group must already be created.
- See Also:
-
getS3BucketName
The name of the S3 bucket to send logs to.The S3 bucket must already be created.
- See Also:
-
getS3EncryptionEnabled
Determines whether to use encryption on the S3 logs.If not specified, encryption is not used.
Returns union: either
BooleanorIResolvable- See Also:
-
getS3KeyPrefix
An optional folder in the S3 bucket to place logs in.- See Also:
-
builder
-