Package software.amazon.awscdk.core
Class CfnMacro.Builder
java.lang.Object
software.amazon.awscdk.core.CfnMacro.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMacro>
- Enclosing class:
CfnMacro
@Stability(Stable)
public static final class CfnMacro.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMacro>
A fluent builder for
CfnMacro
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnMacro.Builder
description
(String description) A description of the macro.functionName
(String functionName) The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run.logGroupName
(String logGroupName) The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.logRoleArn
(String logRoleArn) The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs .The name of the macro.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnMacro.Builder
.
-
functionName
The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run.- 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
The name of the macro.The name of the macro must be unique across all macros in the account.
- Parameters:
name
- The name of the macro. This parameter is required.- Returns:
this
-
description
A description of the macro.- Parameters:
description
- A description of the macro. This parameter is required.- Returns:
this
-
logGroupName
The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.- Parameters:
logGroupName
- The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function. This parameter is required.- Returns:
this
-
logRoleArn
The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs .- Parameters:
logRoleArn
- The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs . This parameter is required.- Returns:
this
-
build
-