Class CfnOutputProps.Builder

java.lang.Object
software.amazon.awscdk.CfnOutputProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOutputProps>
Enclosing interface:
CfnOutputProps

@Stability(Stable) public static final class CfnOutputProps.Builder extends Object implements software.amazon.jsii.Builder<CfnOutputProps>
A builder for CfnOutputProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • value

      @Stability(Stable) public CfnOutputProps.Builder value(String value)
      Sets the value of CfnOutputProps.getValue()
      Parameters:
      value - The value of the property returned by the aws cloudformation describe-stacks command. This parameter is required. The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
      Returns:
      this
    • condition

      @Stability(Stable) public CfnOutputProps.Builder condition(CfnCondition condition)
      Parameters:
      condition - A condition to associate with this output value. If the condition evaluates to false, this output value will not be included in the stack.
      Returns:
      this
    • description

      @Stability(Stable) public CfnOutputProps.Builder description(String description)
      Parameters:
      description - A String type that describes the output value. The description can be a maximum of 4 K in length.
      Returns:
      this
    • exportName

      @Stability(Stable) public CfnOutputProps.Builder exportName(String exportName)
      Parameters:
      exportName - The name used to export the value of this output across stacks. To import the value from another stack, use Fn.importValue(exportName).
      Returns:
      this
    • key

      @Stability(Stable) public CfnOutputProps.Builder key(String key)
      Sets the value of CfnOutputProps.getKey()
      Parameters:
      key - The key of the property returned by aws cloudformation describe-stacks command.
      Returns:
      this
    • build

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