Class CfnApplication.CloudWatchLoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.CloudWatchLoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.CloudWatchLoggingConfigurationProperty>
- Enclosing interface:
CfnApplication.CloudWatchLoggingConfigurationProperty
@Stability(Stable)
public static final class CfnApplication.CloudWatchLoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.CloudWatchLoggingConfigurationProperty>
A builder for
CfnApplication.CloudWatchLoggingConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getEnabled()
encryptionKeyArn
(String encryptionKeyArn) logGroupName
(String logGroupName) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogGroupName()
logStreamNamePrefix
(String logStreamNamePrefix) logTypeMap
(List<? extends Object> logTypeMap) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogTypeMap()
logTypeMap
(IResolvable logTypeMap) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogTypeMap()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getEnabled()
- Parameters:
enabled
- Enables CloudWatch logging.- Returns:
this
-
enabled
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getEnabled()
- Parameters:
enabled
- Enables CloudWatch logging.- Returns:
this
-
encryptionKeyArn
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder encryptionKeyArn(String encryptionKeyArn) - Parameters:
encryptionKeyArn
- The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogGroupName()
- Parameters:
logGroupName
- The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.- Returns:
this
-
logStreamNamePrefix
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder logStreamNamePrefix(String logStreamNamePrefix) - Parameters:
logStreamNamePrefix
- Prefix for the CloudWatch log stream name.- Returns:
this
-
logTypeMap
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder logTypeMap(IResolvable logTypeMap) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogTypeMap()
- Parameters:
logTypeMap
- The specific log-streams which need to be uploaded to CloudWatch.- Returns:
this
-
logTypeMap
@Stability(Stable) public CfnApplication.CloudWatchLoggingConfigurationProperty.Builder logTypeMap(List<? extends Object> logTypeMap) Sets the value ofCfnApplication.CloudWatchLoggingConfigurationProperty.getLogTypeMap()
- Parameters:
logTypeMap
- The specific log-streams which need to be uploaded to CloudWatch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.CloudWatchLoggingConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.CloudWatchLoggingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-