@aws-cdk/core
Version:
AWS Cloud Development Kit Core Library
121 lines (120 loc) • 3.79 kB
TypeScript
import { Construct } from 'constructs';
import { CfnElement } from './cfn-element';
/**
*
*/
export interface CfnOutputProps {
/**
* A String type that describes the output value.
*
* The description can be a maximum of 4 K in length.
*
* @default - No description.
*/
readonly description?: string;
/**
* 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.
*/
readonly value: string;
/**
* 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
*/
readonly exportName?: string;
/**
* 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.
*/
readonly condition?: CfnCondition;
}
/**
*
*/
export declare class CfnOutput extends CfnElement {
private _description?;
private _condition?;
private _value?;
private _exportName?;
/**
* Creates an CfnOutput value for this stack.
*
* @param scope The parent construct.
* @param props CfnOutput properties.
*/
constructor(scope: Construct, id: string, props: CfnOutputProps);
/**
* A String type that describes the output value.
*
* The description can be a maximum of 4 K in length.
*
* @default - No description.
*/
get description(): string | undefined;
/**
* A String type that describes the output value.
*
* The description can be a maximum of 4 K in length.
*
* @default - No description.
*/
set description(description: string | undefined);
/**
* 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.
*/
get value(): any;
/**
* 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.
*/
set value(value: any);
/**
* 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.
*/
get condition(): CfnCondition | undefined;
/**
* 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.
*/
set condition(condition: CfnCondition | undefined);
/**
* 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
*/
get exportName(): string | undefined;
/**
* 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
*/
set exportName(exportName: string | undefined);
}
import { CfnCondition } from './cfn-condition';