aws-cdk-lib.IResolvable

interface IResolvable

LanguageType name
.NETAmazon.CDK.IResolvable
Gogithub.com/aws/aws-cdk-go/awscdk/v2#IResolvable
Javasoftware.amazon.awscdk.IResolvable
Pythonaws_cdk.IResolvable
TypeScript (source)aws-cdk-lib » IResolvable

Implemented by EventField, Match, PolicyDocument, PhysicalResourceIdReference, CfnCondition, CfnDynamicReference, CfnJson, Intrinsic, JsonNull, SecretValue

Obtainable from JsonPath.objectAt(), JsonPath.stringToJson(), Fn.getAtt(), Fn.transform(), Lazy.any(), Lazy.uncachedAny(), Token.asAny(), Tokenization.reverse(), Tokenization.reverseCompleteString(), Tokenization.reverseList(), Tokenization.reverseNumber()

Interface for values that can be resolvable later.

Tokens are special objects that participate in synthesis.

Properties

NameTypeDescription
creationStackstring[]The creation stack of this resolvable which will be appended to errors thrown during resolution.
typeHint?ResolutionTypeHintThe type that this token will likely resolve to.

creationStack

Type: string[]

The creation stack of this resolvable which will be appended to errors thrown during resolution.

This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.


typeHint?

Type: ResolutionTypeHint (optional)

The type that this token will likely resolve to.

Methods

NameDescription
resolve(context)Produce the Token's value at resolution time.
toString()Return a string representation of this resolvable object.

resolve(context)

public resolve(context: IResolveContext): any

Parameters

  • context IResolveContext

Returns

  • any

Produce the Token's value at resolution time.


toString()

public toString(): string

Returns

  • string

Return a string representation of this resolvable object.

Returns a reversible string representation.