Class CfnResourceVersion.LoggingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnResourceVersion.LoggingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceVersion.LoggingConfigProperty>
- Enclosing interface:
CfnResourceVersion.LoggingConfigProperty
@Stability(Stable)
public static final class CfnResourceVersion.LoggingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceVersion.LoggingConfigProperty>
A builder for
CfnResourceVersion.LoggingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.logGroupName
(String logGroupName) Sets the value ofCfnResourceVersion.LoggingConfigProperty.getLogGroupName()
logRoleArn
(String logRoleArn) Sets the value ofCfnResourceVersion.LoggingConfigProperty.getLogRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupName
@Stability(Stable) public CfnResourceVersion.LoggingConfigProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnResourceVersion.LoggingConfigProperty.getLogGroupName()
- Parameters:
logGroupName
- The Amazon CloudWatch logs group to which CloudFormation sends error logging information when invoking the type's handlers.- Returns:
this
-
logRoleArn
@Stability(Stable) public CfnResourceVersion.LoggingConfigProperty.Builder logRoleArn(String logRoleArn) Sets the value ofCfnResourceVersion.LoggingConfigProperty.getLogRoleArn()
- Parameters:
logRoleArn
- The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceVersion.LoggingConfigProperty>
- Returns:
- a new instance of
CfnResourceVersion.LoggingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-