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.104.0 (build e79254c)",
date="2024-11-06T23:25:18.423Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResolvable
IResolvable.Jsii$Default, IResolvable.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
PhysicalResourceIdReference
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PhysicalResourceIdReference
(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 replacePhysicalResourceIdReference
with 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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.IResolvable
getTypeHint
Methods 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:
resolve
in interfaceIResolvable
- Parameters:
_context
- This parameter is required.
-
toJSON
toJSON serialization to replacePhysicalResourceIdReference
with a magic string. -
toString
Return a string representation of this resolvable object.Returns a reversible string representation.
- Specified by:
toString
in interfaceIResolvable
- Overrides:
toString
in 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:
getCreationStack
in interfaceIResolvable
-