Class CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandConfigurationProperty>
- Enclosing interface:
CfnClusterPropsMixin.ExecuteCommandConfigurationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandConfigurationProperty>
A builder for
CfnClusterPropsMixin.ExecuteCommandConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ExecuteCommandConfigurationProperty.getKmsKeyId()Sets the value ofCfnClusterPropsMixin.ExecuteCommandConfigurationProperty.getKmsKeyId()logConfiguration(CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty logConfiguration) logConfiguration(IResolvable logConfiguration) Sets the value ofCfnClusterPropsMixin.ExecuteCommandConfigurationProperty.getLogging()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnClusterPropsMixin.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
-
kmsKeyId
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder kmsKeyId(IKeyRef kmsKeyId) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder logConfiguration(IResolvable logConfiguration) - 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=OVERRIDEis specified, alogConfigurationmust be provided.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder logConfiguration(CfnClusterPropsMixin.ExecuteCommandLogConfigurationProperty logConfiguration) - 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=OVERRIDEis specified, alogConfigurationmust be provided.- Returns:
this
-
logging
@Stability(Stable) public CfnClusterPropsMixin.ExecuteCommandConfigurationProperty.Builder logging(String logging) Sets the value ofCfnClusterPropsMixin.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: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged.OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis required.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ExecuteCommandConfigurationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ExecuteCommandConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-