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 Details

    • Builder

      public Builder()
  • Method Details

    • functionName

      @Stability(Stable) public CfnMacroProps.Builder functionName(String functionName)
      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 CfnMacroProps.Builder name(String name)
      Sets the value of CfnMacroProps.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

      @Stability(Stable) public CfnMacroProps.Builder description(String description)
      Parameters:
      description - A description of the macro.
      Returns:
      this
    • logGroupName

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

      @Stability(Stable) public CfnMacroProps.Builder logRoleArn(String logRoleArn)
      Parameters:
      logRoleArn - The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs .
      Returns:
      this
    • build

      @Stability(Stable) public CfnMacroProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMacroProps>
      Returns:
      a new instance of CfnMacroProps
      Throws:
      NullPointerException - if any required attribute was not provided