class CfnDynamicReference
Language | Type name |
---|---|
![]() | Amazon.CDK.CfnDynamicReference |
![]() | software.amazon.awscdk.core.CfnDynamicReference |
![]() | aws_cdk.core.CfnDynamicReference |
![]() | @aws-cdk/core » CfnDynamicReference |
Implements
IResolvable
Extends
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.
Example
new CfnDynamicReference(
CfnDynamicReferenceService.SECRETS_MANAGER,
'secret-id:secret-string:json-key:version-stage:version-id',
);
Initializer
new CfnDynamicReference(service: CfnDynamicReferenceService, key: string)
Parameters
- service
Cfn
Dynamic Reference Service - key
string
Properties
Name | Type | Description |
---|---|---|
creation | string[] | The captured stack trace which represents the location in which this token was created. |
creationStack
Type:
string[]
The captured stack trace which represents the location in which this token was created.
Methods
Name | Description |
---|---|
resolve(_context) | Produce the Token's value at resolution time. |
to | Turn this Token into JSON. |
to | Convert an instance of this Token to a string. |
resolve(_context)
public resolve(_context: IResolveContext): any
Parameters
- _context
IResolve
Context
Returns
any
Produce the Token's value at resolution time.
toJSON()
public toJSON(): any
Returns
any
Turn this Token into JSON.
Called automatically when JSON.stringify() is called on a Token.
toString()
public toString(): string
Returns
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.