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