Class CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.CloudWatchLogConfigurationProperty>
- Enclosing interface:
CfnClusterPropsMixin.CloudWatchLogConfigurationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.CloudWatchLogConfigurationProperty>
A builder for
CfnClusterPropsMixin.CloudWatchLogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getEnabled()encryptionKeyArn(String encryptionKeyArn) logGroupName(String logGroupName) logStreamNamePrefix(String logStreamNamePrefix) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getLogTypes()logTypes(IResolvable logTypes) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getLogTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies if CloudWatch logging is enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies if CloudWatch logging is enabled.- Returns:
this
-
encryptionKeyArn
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder encryptionKeyArn(String encryptionKeyArn) - Parameters:
encryptionKeyArn- The ARN of the encryption key used to encrypt the logs.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder logGroupName(String logGroupName) - Parameters:
logGroupName- The name of the CloudWatch log group where logs are published.- Returns:
this
-
logStreamNamePrefix
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder logStreamNamePrefix(String logStreamNamePrefix) - Parameters:
logStreamNamePrefix- The prefix of the log stream name.- Returns:
this
-
logTypes
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder logTypes(IResolvable logTypes) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getLogTypes()- Parameters:
logTypes- A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR.- Returns:
this
-
logTypes
@Stability(Stable) public CfnClusterPropsMixin.CloudWatchLogConfigurationProperty.Builder logTypes(Map<String, ? extends List<String>> logTypes) Sets the value ofCfnClusterPropsMixin.CloudWatchLogConfigurationProperty.getLogTypes()- Parameters:
logTypes- A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.CloudWatchLogConfigurationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.CloudWatchLogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-