Class ExecuteCommandConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ExecuteCommandConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExecuteCommandConfiguration>
- Enclosing interface:
ExecuteCommandConfiguration
@Stability(Stable)
public static final class ExecuteCommandConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ExecuteCommandConfiguration>
A builder for
ExecuteCommandConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofExecuteCommandConfiguration.getKmsKey()logConfiguration(ExecuteCommandLogConfiguration logConfiguration) Sets the value ofExecuteCommandConfiguration.getLogConfiguration()logging(ExecuteCommandLogging logging) Sets the value ofExecuteCommandConfiguration.getLogging()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKey
Sets the value ofExecuteCommandConfiguration.getKmsKey()- Parameters:
kmsKey- The AWS Key Management Service key ID to encrypt the data between the local client and the container.- Returns:
this
-
logConfiguration
@Stability(Stable) public ExecuteCommandConfiguration.Builder logConfiguration(ExecuteCommandLogConfiguration logConfiguration) Sets the value ofExecuteCommandConfiguration.getLogConfiguration()- Parameters:
logConfiguration- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.- Returns:
this
-
logging
@Stability(Stable) public ExecuteCommandConfiguration.Builder logging(ExecuteCommandLogging logging) Sets the value ofExecuteCommandConfiguration.getLogging()- Parameters:
logging- The log settings to use for logging the execute command session.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExecuteCommandConfiguration>- Returns:
- a new instance of
ExecuteCommandConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-