Intrinsic
- class aws_cdk.Intrinsic(value, *, stack_trace=None, type_hint=None)
Bases:
object
Token subclass that represents values intrinsic to the target document language.
WARNING: this class should not be externally exposed, but is currently visible because of a limitation of jsii (https://github.com/aws/jsii/issues/524).
This class will disappear in a future release and should not be used.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk # value: Any intrinsic = cdk.Intrinsic(value, stack_trace=False, type_hint=cdk.ResolutionTypeHint.STRING )
- Parameters:
value (
Any
) –stack_trace (
Optional
[bool
]) – Capture the stack trace of where this token is created. Default: truetype_hint (
Optional
[ResolutionTypeHint
]) – Type that this token is expected to evaluate to. Default: ResolutionTypeHint.STRING
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.