UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

37 lines (36 loc) 1.75 kB
import type { IConstruct } from 'constructs'; import { CfnReference } from './cfn-reference'; import { Intrinsic } from './intrinsic'; import type { Reference } from '../reference'; import type { IResolvable, IResolveContext } from '../resolvable'; import { Stack } from '../stack'; import { ReferenceStrength } from '../cross-stack-reference-strength'; export declare const STRING_LIST_REFERENCE_DELIMITER = "||"; /** * A token wrapper that carries a per-usage reference strength override. * * When the resolution loop encounters this token, it resolves the underlying * CfnReference using the overridden strength instead of the default lookup chain, * and stores the result on this wrapper (not on the singleton CfnReference). */ export declare class CustomCoupledReference extends Intrinsic { static isCustomCoupledReference(x: IResolvable): x is CustomCoupledReference; readonly reference: CfnReference; readonly strength: ReferenceStrength; private resolvedValue?; constructor(reference: CfnReference, strength: ReferenceStrength); assignValue(value: IResolvable): void; resolve(context: IResolveContext): any; } /** * This is called from the App level to resolve all references defined. Each * reference is resolved based on its consumption context. */ export declare function resolveReferences(scope: IConstruct): void; export declare function getExportable(stack: Stack, reference: Reference): Intrinsic; /** * Translate a Reference into a nested stack into a value in the parent stack * * Will create Outputs along the chain of Nested Stacks, and return the final `{ Fn::GetAtt }`. */ export declare function referenceNestedStackValueInParent(reference: Reference, targetStack: Stack): Intrinsic;