@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:45.242Z")
public class PhysicalResourceId
extends software.amazon.jsii.JsiiObject
Example:
AwsCustomResource awsCustom = AwsCustomResource.Builder.create(this, "aws-custom") .onCreate(AwsSdkCall.builder() .service("...") .action("...") .parameters(Map.of( "text", "...")) .physicalResourceId(PhysicalResourceId.of("...")) .build()) .onUpdate(AwsSdkCall.builder() .service("...") .action("...") .parameters(Map.of( "text", "...", "resourceId", new PhysicalResourceIdReference())) .build()) .policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder() .resources(AwsCustomResourcePolicy.ANY_RESOURCE) .build())) .build();
Modifier | Constructor and Description |
---|---|
protected |
PhysicalResourceId(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PhysicalResourceId(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static PhysicalResourceId |
fromResponse(java.lang.String responsePath)
Extract the physical resource id from the path (dot notation) to the data in the API call response.
|
java.lang.String |
getId()
Literal string to be used as the physical id.
|
java.lang.String |
getResponsePath()
Path to a response data element to be used as the physical id.
|
static PhysicalResourceId |
of(java.lang.String id)
Explicit physical resource id.
|
protected PhysicalResourceId(software.amazon.jsii.JsiiObjectRef objRef)
protected PhysicalResourceId(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static PhysicalResourceId fromResponse(java.lang.String responsePath)
responsePath
- This parameter is required.public static PhysicalResourceId of(java.lang.String id)
id
- This parameter is required.public java.lang.String getId()
public java.lang.String getResponsePath()