Class StackReference

Manages a reference to a Pulumi stack. The referenced stack's outputs are available via the outputs property or the output method.

Hierarchy (view full)

Constructors

Properties

id: Output<string>

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

name: Output<string>

The name of the referenced stack.

outputs: Output<{
    [name: string]: any;
}>

The outputs of the referenced stack.

Type declaration

  • [name: string]: any
secretOutputNames: Output<string[]>

The names of any stack outputs which contain secrets.

urn: Output<string>

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Methods

  • Fetches the value promptly of the named stack output. May return undefined if the value is not known for some reason.

    This operation is not supported (and will throw) if the named stack output is a secret.

    Parameters

    • name: string

      The name of the stack output to fetch.

    Returns Promise<any>

  • Fetches the value promptly of the named stack output. Throws an error if the stack output is not found.

    This operation is not supported (and will throw) if the named stack output is a secret.

    Parameters

    • name: string

      The name of the stack output to fetch.

    Returns Promise<any>

Generated using TypeDoc