Class PhysicalResourceId
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.customresources.PhysicalResourceId
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.050Z")
@Stability(Stable)
public class PhysicalResourceId
extends software.amazon.jsii.JsiiObject
Physical ID of the custom resource.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
PhysicalResourceId
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PhysicalResourceId
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalResourceId
fromResponse
(String responsePath) Extract the physical resource id from the path (dot notation) to the data in the API call response.getId()
Literal string to be used as the physical id.Path to a response data element to be used as the physical id.static PhysicalResourceId
Explicit physical resource id.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PhysicalResourceId
protected PhysicalResourceId(software.amazon.jsii.JsiiObjectRef objRef) -
PhysicalResourceId
protected PhysicalResourceId(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromResponse
@Stability(Stable) @NotNull public static PhysicalResourceId fromResponse(@NotNull String responsePath) Extract the physical resource id from the path (dot notation) to the data in the API call response.- Parameters:
responsePath
- This parameter is required.
-
of
Explicit physical resource id.- Parameters:
id
- This parameter is required.
-
getId
Literal string to be used as the physical id. -
getResponsePath
Path to a response data element to be used as the physical id.
-