Reference¶
-
class
aws_cdk.core.
Reference
(value, target, display_name=None)¶ Bases:
aws_cdk.core.Intrinsic
An intrinsic Token that represents a reference to a construct.
References are recorded.
- Parameters
value (
Any
) –target (
IConstruct
) –display_name (
Optional
[str
]) –
Methods
-
resolve
(_context)¶ (experimental) Produce the Token’s value at resolution time.
- Parameters
_context (
IResolveContext
) –- Stability
experimental
- Return type
Any
-
to_json
()¶ (experimental) Turn this Token into JSON.
Called automatically when JSON.stringify() is called on a Token.
- Stability
experimental
- Return type
Any
-
to_string
()¶ (experimental) 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
experimental
- Return type
str
Attributes
-
creation_stack
¶ (experimental) The captured stack trace which represents the location in which this token was created.
- Stability
experimental
- Return type
List
[str
]
-
display_name
¶ - Return type
str
-
target
¶ - Return type
Static Methods
-
classmethod
is_reference
(x)¶ Check whether this is actually a Reference.
- Parameters
x (
Any
) –- Return type
bool