Package software.amazon.awscdk.core
Class CfnOutput.Builder
java.lang.Object
software.amazon.awscdk.core.CfnOutput.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOutput>
- Enclosing class:
- CfnOutput
@Stability(Stable)
public static final class CfnOutput.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOutput>
A fluent builder for
CfnOutput.-
Method Summary
Modifier and TypeMethodDescriptionbuild()condition(CfnCondition condition) A condition to associate with this output value.static CfnOutput.Builderdescription(String description) A String type that describes the output value.exportName(String exportName) The name used to export the value of this output across stacks.The value of the property returned by the aws cloudformation describe-stacks command.
-
Method Details
-
create
@Stability(Stable) public static CfnOutput.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- The parent construct. This parameter is required.id- This parameter is required.- Returns:
- a new instance of
CfnOutput.Builder.
-
value
The value of the property returned by the aws cloudformation describe-stacks command.The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
- Parameters:
value- The value of the property returned by the aws cloudformation describe-stacks command. This parameter is required.- Returns:
this
-
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.Default: - No condition is associated with the output.
- Parameters:
condition- A condition to associate with this output value. This parameter is required.- Returns:
this
-
description
A String type that describes the output value.The description can be a maximum of 4 K in length.
Default: - No description.
- Parameters:
description- A String type that describes the output value. This parameter is required.- Returns:
this
-
exportName
The name used to export the value of this output across stacks.To import the value from another stack, use
Fn.importValue(exportName).Default: - the output is not exported
- Parameters:
exportName- The name used to export the value of this output across stacks. This parameter is required.- Returns:
this
-
build
-