CfnDynamicReference

class aws_cdk.CfnDynamicReference(service, key)

Bases: 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:

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

ExampleMetadata:

infused

Example:

CfnDynamicReference(CfnDynamicReferenceService.SECRETS_MANAGER, "secret-id:secret-string:json-key:version-stage:version-id")
Parameters:

Methods

resolve(_context)

Produce the Token’s value at resolution time.

Parameters:

_context (IResolveContext) –

Return type:

Any

to_json()

Turn this Token into JSON.

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

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.

Return type:

str

to_string_list()

Convert an instance of this Token to a string list.

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

Return type:

List[str]

Attributes

creation_stack

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

type_hint

Type that the Intrinsic is expected to evaluate to.