Package software.amazon.awscdk.core
Class CfnOutputProps.Builder
java.lang.Object
software.amazon.awscdk.core.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.condition(CfnCondition condition) Sets the value ofCfnOutputProps.getCondition()description(String description) Sets the value ofCfnOutputProps.getDescription()exportName(String exportName) Sets the value ofCfnOutputProps.getExportName()Sets the value ofCfnOutputProps.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofCfnOutputProps.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
Sets the value ofCfnOutputProps.getCondition()- Parameters:
condition- A condition to associate with this output value. If the condition evaluates tofalse, this output value will not be included in the stack.- Returns:
this
-
description
Sets the value ofCfnOutputProps.getDescription()- Parameters:
description- A String type that describes the output value. The description can be a maximum of 4 K in length.- Returns:
this
-
exportName
Sets the value ofCfnOutputProps.getExportName()- Parameters:
exportName- The name used to export the value of this output across stacks. To import the value from another stack, useFn.importValue(exportName).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOutputProps>- Returns:
- a new instance of
CfnOutputProps - Throws:
NullPointerException- if any required attribute was not provided
-