CfnOutputProps

class aws_cdk.core.CfnOutputProps(*, value, condition=None, description=None, export_name=None)

Bases: object

__init__(*, value, condition=None, description=None, export_name=None)
Parameters
  • value (str) – 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.

  • condition (Optional[CfnCondition]) – 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.

  • description (Optional[str]) – A String type that describes the output value. The description can be a maximum of 4 K in length. Default: - No description.

  • export_name (Optional[str]) – 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

Attributes

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 :default: - No condition is associated with the output.

Return type

Optional[CfnCondition]

description

A String type that describes the output value. The description can be a maximum of 4 K in length.

default :default: - No description.

Return type

Optional[str]

export_name

The name used to export the value of this output across stacks.

To import the value from another stack, use Fn.importValue(exportName).

default :default: - the output is not exported

Return type

Optional[str]

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.

Return type

str