Class CfnMacroMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudformation.CfnMacroMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMacroMixinProps>
- Enclosing interface:
CfnMacroMixinProps
@Stability(Stable)
public static final class CfnMacroMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMacroMixinProps>
A builder for
CfnMacroMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnMacroMixinProps.getDescription()functionName(String functionName) Sets the value ofCfnMacroMixinProps.getFunctionName()logGroupName(String logGroupName) Sets the value ofCfnMacroMixinProps.getLogGroupName()logRoleArn(String logRoleArn) Sets the value ofCfnMacroMixinProps.getLogRoleArn()Sets the value ofCfnMacroMixinProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnMacroMixinProps.getDescription()- Parameters:
description- A description of the macro.- Returns:
this
-
functionName
Sets the value ofCfnMacroMixinProps.getFunctionName()- Parameters:
functionName- The Amazon Resource Name (ARN) of the underlying Lambda function that you want CloudFormation to invoke when the macro is run.- Returns:
this
-
logGroupName
Sets the value ofCfnMacroMixinProps.getLogGroupName()- Parameters:
logGroupName- The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function. This will be an existing CloudWatch Logs LogGroup. Neither CloudFormation or Lambda will create the group.- Returns:
this
-
logRoleArn
Sets the value ofCfnMacroMixinProps.getLogRoleArn()- Parameters:
logRoleArn- The ARN of the role CloudFormation should assume when sending log entries to CloudWatch Logs .- Returns:
this
-
name
Sets the value ofCfnMacroMixinProps.getName()- Parameters:
name- The name of the macro. The name of the macro must be unique across all macros in the account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMacroMixinProps>- Returns:
- a new instance of
CfnMacroMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-