Class CfnCluster.CloudWatchLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.CloudWatchLogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.CloudWatchLogConfigurationProperty>
- Enclosing interface:
CfnCluster.CloudWatchLogConfigurationProperty
@Stability(Stable)
public static final class CfnCluster.CloudWatchLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.CloudWatchLogConfigurationProperty>
A builder for
CfnCluster.CloudWatchLogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEnabled()encryptionKeyArn(String encryptionKeyArn) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEncryptionKeyArn()logGroupName(String logGroupName) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogGroupName()logStreamNamePrefix(String logStreamNamePrefix) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogStreamNamePrefix()Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogTypes()logTypes(IResolvable logTypes) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies if CloudWatch logging is enabled. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies if CloudWatch logging is enabled. This parameter is required.- Returns:
this
-
encryptionKeyArn
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder encryptionKeyArn(String encryptionKeyArn) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getEncryptionKeyArn()- Parameters:
encryptionKeyArn- The ARN of the encryption key used to encrypt the logs.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogGroupName()- Parameters:
logGroupName- The name of the CloudWatch log group where logs are published.- Returns:
this
-
logStreamNamePrefix
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder logStreamNamePrefix(String logStreamNamePrefix) Sets the value ofCfnCluster.CloudWatchLogConfigurationProperty.getLogStreamNamePrefix()- Parameters:
logStreamNamePrefix- The prefix of the log stream name.- Returns:
this
-
logTypes
@Stability(Stable) public CfnCluster.CloudWatchLogConfigurationProperty.Builder logTypes(IResolvable logTypes) Sets the value ofCfnCluster.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 CfnCluster.CloudWatchLogConfigurationProperty.Builder logTypes(Map<String, ? extends List<String>> logTypes) Sets the value ofCfnCluster.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<CfnCluster.CloudWatchLogConfigurationProperty>- Returns:
- a new instance of
CfnCluster.CloudWatchLogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-