Class PhysicalResourceIdReference
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.customresources.PhysicalResourceIdReference
- All Implemented Interfaces:
IResolvable,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:02.830Z")
@Stability(Stable)
public class PhysicalResourceIdReference
extends software.amazon.jsii.JsiiObject
implements IResolvable
Reference to the physical resource id that can be passed to the AWS operation as a parameter.
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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.IResolvable
IResolvable.Jsii$Default, IResolvable.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPhysicalResourceIdReference(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPhysicalResourceIdReference(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe creation stack of this resolvable which will be appended to errors thrown during resolution.resolve(IResolveContext _context) Produce the Token's value at resolution time.toJSON()toJSON serialization to replacePhysicalResourceIdReferencewith a magic string.toString()Return a string representation of this resolvable object.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.IResolvable
getTypeHintMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PhysicalResourceIdReference
protected PhysicalResourceIdReference(software.amazon.jsii.JsiiObjectRef objRef) -
PhysicalResourceIdReference
protected PhysicalResourceIdReference(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PhysicalResourceIdReference
@Stability(Stable) public PhysicalResourceIdReference()
-
-
Method Details
-
resolve
Produce the Token's value at resolution time.- Specified by:
resolvein interfaceIResolvable- Parameters:
_context- This parameter is required.
-
toJSON
toJSON serialization to replacePhysicalResourceIdReferencewith a magic string. -
toString
Return a string representation of this resolvable object.Returns a reversible string representation.
- Specified by:
toStringin interfaceIResolvable- Overrides:
toStringin classObject
-
getCreationStack
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.
- Specified by:
getCreationStackin interfaceIResolvable
-