Class ExecuteCommandLogConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ExecuteCommandLogConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExecuteCommandLogConfiguration>
- Enclosing interface:
ExecuteCommandLogConfiguration
@Stability(Stable)
public static final class ExecuteCommandLogConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ExecuteCommandLogConfiguration>
A builder for
ExecuteCommandLogConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchEncryptionEnabled
(Boolean cloudWatchEncryptionEnabled) Sets the value ofExecuteCommandLogConfiguration.getCloudWatchEncryptionEnabled()
cloudWatchLogGroup
(ILogGroup cloudWatchLogGroup) Sets the value ofExecuteCommandLogConfiguration.getCloudWatchLogGroup()
Sets the value ofExecuteCommandLogConfiguration.getS3Bucket()
s3EncryptionEnabled
(Boolean s3EncryptionEnabled) Sets the value ofExecuteCommandLogConfiguration.getS3EncryptionEnabled()
s3KeyPrefix
(String s3KeyPrefix) Sets the value ofExecuteCommandLogConfiguration.getS3KeyPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchEncryptionEnabled
@Stability(Stable) public ExecuteCommandLogConfiguration.Builder cloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled) Sets the value ofExecuteCommandLogConfiguration.getCloudWatchEncryptionEnabled()
- Parameters:
cloudWatchEncryptionEnabled
- Whether or not to enable encryption on the CloudWatch logs.- Returns:
this
-
cloudWatchLogGroup
@Stability(Stable) public ExecuteCommandLogConfiguration.Builder cloudWatchLogGroup(ILogGroup cloudWatchLogGroup) Sets the value ofExecuteCommandLogConfiguration.getCloudWatchLogGroup()
- Parameters:
cloudWatchLogGroup
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.- Returns:
this
-
s3Bucket
Sets the value ofExecuteCommandLogConfiguration.getS3Bucket()
- Parameters:
s3Bucket
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.- Returns:
this
-
s3EncryptionEnabled
@Stability(Stable) public ExecuteCommandLogConfiguration.Builder s3EncryptionEnabled(Boolean s3EncryptionEnabled) Sets the value ofExecuteCommandLogConfiguration.getS3EncryptionEnabled()
- Parameters:
s3EncryptionEnabled
- Whether or not to enable encryption on the S3 bucket.- Returns:
this
-
s3KeyPrefix
Sets the value ofExecuteCommandLogConfiguration.getS3KeyPrefix()
- Parameters:
s3KeyPrefix
- An optional folder in the S3 bucket to place logs in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ExecuteCommandLogConfiguration>
- Returns:
- a new instance of
ExecuteCommandLogConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-