Class CfnMacroProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnMacroProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMacroProps>
- Enclosing interface:
CfnMacroProps
@Stability(Stable)
public static final class CfnMacroProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMacroProps>
A builder for
CfnMacroProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnMacroProps.getDescription()
functionName
(String functionName) Sets the value ofCfnMacroProps.getFunctionName()
logGroupName
(String logGroupName) Sets the value ofCfnMacroProps.getLogGroupName()
logRoleArn
(String logRoleArn) Sets the value ofCfnMacroProps.getLogRoleArn()
Sets the value ofCfnMacroProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionName
Sets the value ofCfnMacroProps.getFunctionName()
- Parameters:
functionName
- The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMacroProps.getName()
- Parameters:
name
- The name of the macro. This parameter is required. The name of the macro must be unique across all macros in the account.- Returns:
this
-
description
Sets the value ofCfnMacroProps.getDescription()
- Parameters:
description
- A description of the macro.- Returns:
this
-
logGroupName
Sets the value ofCfnMacroProps.getLogGroupName()
- Parameters:
logGroupName
- The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.- Returns:
this
-
logRoleArn
Sets the value ofCfnMacroProps.getLogRoleArn()
- Parameters:
logRoleArn
- The ARN of the role AWS 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<CfnMacroProps>
- Returns:
- a new instance of
CfnMacroProps
- Throws:
NullPointerException
- if any required attribute was not provided
-