CfnDynamicReference

class aws_cdk.core.CfnDynamicReference(service, key)

Bases: aws_cdk.core.Intrinsic

References a dynamically retrieved value.

This is a Construct so that subclasses will (eventually) be able to attach metadata to themselves without having to change call signatures.

see :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html

__init__(service, key)
Parameters
Return type

None

Methods

resolve(_context)

Produce the Token’s value at resolution time.

Parameters

_context (IResolveContext) –

stability :stability: experimental

Return type

Any

to_json()

Turn this Token into JSON.

Called automatically when JSON.stringify() is called on a Token.

stability :stability: experimental

Return type

Any

to_string()

Convert an instance of this Token to a string.

This method will be called implicitly by language runtimes if the object is embedded into a string. We treat it the same as an explicit stringification.

stability :stability: experimental

Return type

str

Attributes

creation_stack

The captured stack trace which represents the location in which this token was created.

stability :stability: experimental

Return type

List[str]