Package software.amazon.awscdk
Class CfnHookVersion.LoggingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.CfnHookVersion.LoggingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookVersion.LoggingConfigProperty>
- Enclosing interface:
CfnHookVersion.LoggingConfigProperty
@Stability(Stable)
public static final class CfnHookVersion.LoggingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHookVersion.LoggingConfigProperty>
A builder for
CfnHookVersion.LoggingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.logGroupName
(String logGroupName) Sets the value ofCfnHookVersion.LoggingConfigProperty.getLogGroupName()
logRoleArn
(String logRoleArn) Sets the value ofCfnHookVersion.LoggingConfigProperty.getLogRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupName
@Stability(Stable) public CfnHookVersion.LoggingConfigProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnHookVersion.LoggingConfigProperty.getLogGroupName()
- Parameters:
logGroupName
- The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.- Returns:
this
-
logRoleArn
@Stability(Stable) public CfnHookVersion.LoggingConfigProperty.Builder logRoleArn(String logRoleArn) Sets the value ofCfnHookVersion.LoggingConfigProperty.getLogRoleArn()
- Parameters:
logRoleArn
- The Amazon Resource Name (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<CfnHookVersion.LoggingConfigProperty>
- Returns:
- a new instance of
CfnHookVersion.LoggingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-