@pulumi/pulumi - v3.243.0
    Preparing search index...

    Class StackReference

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: Output<string>

    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.

    secretOutputNames: Output<string[]>

    The names of any stack outputs which contain secrets.

    urn: Output<string>

    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>