Class CfnCluster.ExecuteCommandConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ExecuteCommandConfigurationProperty>
- Enclosing interface:
CfnCluster.ExecuteCommandConfigurationProperty
@Stability(Stable)
public static final class CfnCluster.ExecuteCommandConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ExecuteCommandConfigurationProperty>
A builder for
CfnCluster.ExecuteCommandConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getKmsKeyId()
logConfiguration
(IResolvable logConfiguration) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getLogConfiguration()
logConfiguration
(CfnCluster.ExecuteCommandLogConfigurationProperty logConfiguration) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getLogConfiguration()
Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getLogging()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
@Stability(Stable) public CfnCluster.ExecuteCommandConfigurationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- Specify an AWS Key Management Service key ID to encrypt the data between the local client and the container.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnCluster.ExecuteCommandConfigurationProperty.Builder logConfiguration(IResolvable logConfiguration) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.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. Whenlogging=OVERRIDE
is specified, alogConfiguration
must be provided.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnCluster.ExecuteCommandConfigurationProperty.Builder logConfiguration(CfnCluster.ExecuteCommandLogConfigurationProperty logConfiguration) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.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. Whenlogging=OVERRIDE
is specified, alogConfiguration
must be provided.- Returns:
this
-
logging
@Stability(Stable) public CfnCluster.ExecuteCommandConfigurationProperty.Builder logging(String logging) Sets the value ofCfnCluster.ExecuteCommandConfigurationProperty.getLogging()
- Parameters:
logging
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.NONE
: The execute command session is not logged.DEFAULT
: Theawslogs
configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogs
log driver is configured in the task definition, the output won't be logged.OVERRIDE
: Specify the logging details as a part oflogConfiguration
. If theOVERRIDE
logging option is specified, thelogConfiguration
is required.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ExecuteCommandConfigurationProperty>
- Returns:
- a new instance of
CfnCluster.ExecuteCommandConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-