Class CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty>
- Enclosing interface:
CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled) cloudWatchEncryptionEnabled(IResolvable cloudWatchEncryptionEnabled) cloudWatchLogGroupName(String cloudWatchLogGroupName) s3BucketName(String s3BucketName) s3EncryptionEnabled(Boolean s3EncryptionEnabled) s3EncryptionEnabled(IResolvable s3EncryptionEnabled) s3KeyPrefix(String s3KeyPrefix)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchEncryptionEnabled
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder cloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled) Sets the value ofCfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.getCloudWatchEncryptionEnabled()- Parameters:
cloudWatchEncryptionEnabled- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.- Returns:
this
-
cloudWatchEncryptionEnabled
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder cloudWatchEncryptionEnabled(IResolvable cloudWatchEncryptionEnabled) Sets the value ofCfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.getCloudWatchEncryptionEnabled()- Parameters:
cloudWatchEncryptionEnabled- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.- Returns:
this
-
cloudWatchLogGroupName
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder cloudWatchLogGroupName(String cloudWatchLogGroupName) Sets the value ofCfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.getCloudWatchLogGroupName()- Parameters:
cloudWatchLogGroupName- The name of the CloudWatch log group to send logs to.The CloudWatch log group must already be created.
- Returns:
this
-
s3BucketName
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder s3BucketName(String s3BucketName) - Parameters:
s3BucketName- The name of the S3 bucket to send logs to.The S3 bucket must already be created.
- Returns:
this
-
s3EncryptionEnabled
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder s3EncryptionEnabled(Boolean s3EncryptionEnabled) Sets the value ofCfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.getS3EncryptionEnabled()- Parameters:
s3EncryptionEnabled- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.- Returns:
this
-
s3EncryptionEnabled
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder s3EncryptionEnabled(IResolvable s3EncryptionEnabled) Sets the value ofCfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.getS3EncryptionEnabled()- Parameters:
s3EncryptionEnabled- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.- Returns:
this
-
s3KeyPrefix
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty.Builder s3KeyPrefix(String s3KeyPrefix) - Parameters:
s3KeyPrefix- An optional folder in the S3 bucket to place logs in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-