@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.429Z") @Stability(value=Experimental) public class CfnOutput extends CfnElement
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnOutput.Builder
(experimental) A fluent builder for
CfnOutput. |
| Modifier | Constructor and Description |
|---|---|
|
CfnOutput(software.constructs.Construct scope,
String id,
CfnOutputProps props)
(experimental) Creates an CfnOutput value for this stack.
|
protected |
CfnOutput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnOutput(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CfnCondition |
getCondition()
(experimental) A condition to associate with this output value.
|
String |
getDescription()
(experimental) A String type that describes the output value.
|
String |
getExportName()
(experimental) The name used to export the value of this output across stacks.
|
String |
getImportValue()
(experimental) Return the `Fn.importValue` expression to import this value into another stack.
|
Object |
getValue()
(experimental) The value of the property returned by the aws cloudformation describe-stacks command.
|
void |
setCondition(CfnCondition value)
(experimental) A condition to associate with this output value.
|
void |
setDescription(String value)
(experimental) A String type that describes the output value.
|
void |
setExportName(String value)
(experimental) The name used to export the value of this output across stacks.
|
void |
setValue(Object value)
(experimental) The value of the property returned by the aws cloudformation describe-stacks command.
|
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CfnOutput(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnOutput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CfnOutput(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnOutputProps props)
scope - The parent construct. This parameter is required.id - This parameter is required.props - CfnOutput properties. This parameter is required.@Stability(value=Experimental) @NotNull public String getImportValue()
The returned value should not be used in the same stack, but in a different one. It must be deployed to the same environment, as CloudFormation exports can only be imported in the same Region and account.
The is no automatic registration of dependencies between stacks when using this mechanism, so you should make sure to deploy them in the right order yourself.
You can use this mechanism to share values across Stacks in different Stages. If you intend to share the value to another Stack inside the same Stage, the automatic cross-stack referencing mechanism is more convenient.
@Stability(value=Experimental) @NotNull public Object getValue()
The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
@Stability(value=Experimental)
public void setValue(@NotNull
Object value)
The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
@Stability(value=Experimental) @Nullable public CfnCondition getCondition()
If the condition evaluates
to false, this output value will not be included in the stack.
Default: - No condition is associated with the output.
@Stability(value=Experimental)
public void setCondition(@Nullable
CfnCondition 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.
@Stability(value=Experimental) @Nullable public String getDescription()
The description can be a maximum of 4 K in length.
Default: - No description.
@Stability(value=Experimental)
public void setDescription(@Nullable
String value)
The description can be a maximum of 4 K in length.
Default: - No description.
@Stability(value=Experimental) @Nullable public String getExportName()
To use the value in another stack, pass the value of
output.importValue to it.
Default: - the output is not exported
@Stability(value=Experimental)
public void setExportName(@Nullable
String value)
To use the value in another stack, pass the value of
output.importValue to it.
Default: - the output is not exported
Copyright © 2021. All rights reserved.