@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.892Z") @Stability(value=Stable) 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(String responsePath)
Extract the physical resource id from the path (dot notation) to the data in the API call response.
|
String |
getId()
Literal string to be used as the physical id.
|
String |
getResponsePath()
Path to a response data element to be used as the physical id.
|
static PhysicalResourceId |
of(String id)
Explicit physical resource id.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PhysicalResourceId(software.amazon.jsii.JsiiObjectRef objRef)
protected PhysicalResourceId(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static PhysicalResourceId fromResponse(@NotNull String responsePath)
responsePath - This parameter is required.@Stability(value=Stable) @NotNull public static PhysicalResourceId of(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @Nullable public String getId()
@Stability(value=Stable) @Nullable public String getResponsePath()
Copyright © 2022. All rights reserved.