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 Details

    • create

      @Stability(Stable) public static CfnMacro.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnMacro.Builder.
    • functionName

      @Stability(Stable) public CfnMacro.Builder 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.

      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

      @Stability(Stable) public CfnMacro.Builder name(String 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

      @Stability(Stable) public CfnMacro.Builder description(String description)
      A description of the macro.

      Parameters:
      description - A description of the macro. This parameter is required.
      Returns:
      this
    • logGroupName

      @Stability(Stable) public CfnMacro.Builder logGroupName(String 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

      @Stability(Stable) public CfnMacro.Builder logRoleArn(String 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

      @Stability(Stable) public CfnMacro build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMacro>
      Returns:
      a newly built instance of CfnMacro.