class PhysicalResourceIdReference
Language | Type name |
---|---|
.NET | Amazon.CDK.CustomResources.PhysicalResourceIdReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/customresources#PhysicalResourceIdReference |
Java | software.amazon.awscdk.customresources.PhysicalResourceIdReference |
Python | aws_cdk.custom_resources.PhysicalResourceIdReference |
TypeScript (source) | aws-cdk-lib » custom_resources » PhysicalResourceIdReference |
Implements
IResolvable
Reference to the physical resource id that can be passed to the AWS operation as a parameter.
Example
const awsCustom = new cr.AwsCustomResource(this, 'aws-custom', {
onCreate: {
service: '...',
action: '...',
parameters: {
text: '...',
},
physicalResourceId: cr.PhysicalResourceId.of('...'),
},
onUpdate: {
service: '...',
action: '...',
parameters: {
text: '...',
resourceId: new cr.PhysicalResourceIdReference(),
},
},
policy: cr.AwsCustomResourcePolicy.fromSdkCalls({
resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE,
}),
})
Initializer
new PhysicalResourceIdReference()
Properties
Name | Type | Description |
---|---|---|
creation | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
creationStack
Type:
string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
Methods
Name | Description |
---|---|
resolve(_context) | Produce the Token's value at resolution time. |
to | toJSON serialization to replace PhysicalResourceIdReference with a magic string. |
to | Return a string representation of this resolvable object. |
resolve(_context)
public resolve(_context: IResolveContext): any
Parameters
- _context
IResolve
Context
Returns
any
Produce the Token's value at resolution time.
JSON()
topublic toJSON(): string
Returns
string
toJSON serialization to replace PhysicalResourceIdReference
with a magic string.
String()
topublic toString(): string
Returns
string
Return a string representation of this resolvable object.
Returns a reversible string representation.