class PhysicalResourceId
Language | Type name |
---|---|
.NET | Amazon.CDK.CustomResources.PhysicalResourceId |
Java | software.amazon.awscdk.customresources.PhysicalResourceId |
Python | aws_cdk.custom_resources.PhysicalResourceId |
TypeScript (source) | @aws-cdk/custom-resources » PhysicalResourceId |
Physical ID of the custom resource.
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,
}),
})
Properties
Name | Type | Description |
---|---|---|
id? | string | Literal string to be used as the physical id. |
response | string | Path to a response data element to be used as the physical id. |
id?
Type:
string
(optional)
Literal string to be used as the physical id.
responsePath?
Type:
string
(optional)
Path to a response data element to be used as the physical id.
Methods
Name | Description |
---|---|
static from | Extract the physical resource id from the path (dot notation) to the data in the API call response. |
static of(id) | Explicit physical resource id. |
Response(responsePath)
static frompublic static fromResponse(responsePath: string): PhysicalResourceId
Parameters
- responsePath
string
Returns
Extract the physical resource id from the path (dot notation) to the data in the API call response.
static of(id)
public static of(id: string): PhysicalResourceId
Parameters
- id
string
Returns
Explicit physical resource id.