Class CfnCluster.ExecuteCommandLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandLogConfigurationProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnCluster.ExecuteCommandLogConfigurationProperty>
- Enclosing interface:
- CfnCluster.ExecuteCommandLogConfigurationProperty
@Stability(Stable)
public static final class CfnCluster.ExecuteCommandLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ExecuteCommandLogConfigurationProperty>
A builder for 
CfnCluster.ExecuteCommandLogConfigurationProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled) cloudWatchEncryptionEnabled(IResolvable cloudWatchEncryptionEnabled) cloudWatchLogGroupName(String cloudWatchLogGroupName) s3BucketName(String s3BucketName) Sets the value ofCfnCluster.ExecuteCommandLogConfigurationProperty.getS3BucketName()s3EncryptionEnabled(Boolean s3EncryptionEnabled) s3EncryptionEnabled(IResolvable s3EncryptionEnabled) s3KeyPrefix(String s3KeyPrefix) Sets the value ofCfnCluster.ExecuteCommandLogConfigurationProperty.getS3KeyPrefix()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
cloudWatchEncryptionEnabled@Stability(Stable) public CfnCluster.ExecuteCommandLogConfigurationProperty.Builder cloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled) Sets the value ofCfnCluster.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 CfnCluster.ExecuteCommandLogConfigurationProperty.Builder cloudWatchEncryptionEnabled(IResolvable cloudWatchEncryptionEnabled) Sets the value ofCfnCluster.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 CfnCluster.ExecuteCommandLogConfigurationProperty.Builder cloudWatchLogGroupName(String cloudWatchLogGroupName) - 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 CfnCluster.ExecuteCommandLogConfigurationProperty.Builder s3BucketName(String s3BucketName) Sets the value ofCfnCluster.ExecuteCommandLogConfigurationProperty.getS3BucketName()- 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 CfnCluster.ExecuteCommandLogConfigurationProperty.Builder s3EncryptionEnabled(Boolean s3EncryptionEnabled) - Parameters:
- s3EncryptionEnabled- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- Returns:
- this
 
- 
s3EncryptionEnabled@Stability(Stable) public CfnCluster.ExecuteCommandLogConfigurationProperty.Builder s3EncryptionEnabled(IResolvable s3EncryptionEnabled) - Parameters:
- s3EncryptionEnabled- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- Returns:
- this
 
- 
s3KeyPrefix@Stability(Stable) public CfnCluster.ExecuteCommandLogConfigurationProperty.Builder s3KeyPrefix(String s3KeyPrefix) Sets the value ofCfnCluster.ExecuteCommandLogConfigurationProperty.getS3KeyPrefix()- Parameters:
- s3KeyPrefix- An optional folder in the S3 bucket to place logs in.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnCluster.ExecuteCommandLogConfigurationProperty>
- Returns:
- a new instance of CfnCluster.ExecuteCommandLogConfigurationProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-