Class PhysicalResourceIdReference
Reference to the physical resource id that can be passed to the AWS operation as a parameter.
Inheritance
Implements
Namespace: Amazon.CDK.CustomResources
Assembly: Amazon.CDK.AWS.CustomResources.dll
Syntax (csharp)
public class PhysicalResourceIdReference : DeputyBase, IResolvable
Syntax (vb)
Public Class PhysicalResourceIdReference
Inherits DeputyBase
Implements IResolvable
Remarks
ExampleMetadata: infused
Examples
var awsCustom = new AwsCustomResource(this, "aws-custom", new AwsCustomResourceProps {
OnCreate = new AwsSdkCall {
Service = "...",
Action = "...",
Parameters = new Dictionary<string, string> {
{ "text", "..." }
},
PhysicalResourceId = PhysicalResourceId.Of("...")
},
OnUpdate = new AwsSdkCall {
Service = "...",
Action = "...",
Parameters = new Dictionary<string, object> {
{ "text", "..." },
{ "resourceId", new PhysicalResourceIdReference() }
}
},
Policy = AwsCustomResourcePolicy.FromSdkCalls(new SdkCallsPolicyOptions {
Resources = AwsCustomResourcePolicy.ANY_RESOURCE
})
});
Synopsis
Constructors
PhysicalResourceIdReference() | |
PhysicalResourceIdReference(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PhysicalResourceIdReference(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CreationStack | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Methods
Resolve(IResolveContext) | Produce the Token's value at resolution time. |
ToJSON() | toJSON serialization to replace |
ToString() | Return a string representation of this resolvable object. |
Constructors
PhysicalResourceIdReference()
public PhysicalResourceIdReference()
PhysicalResourceIdReference(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PhysicalResourceIdReference(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PhysicalResourceIdReference(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PhysicalResourceIdReference(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CreationStack
The creation stack of this resolvable which will be appended to errors thrown during resolution.
public virtual string[] CreationStack { get; }
Property Value
System.String[]
Remarks
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
Methods
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext _)
Parameters
Returns
System.Object
ToJSON()
toJSON serialization to replace PhysicalResourceIdReference
with a magic string.
public virtual string ToJSON()
Returns
System.String
ToString()
Return a string representation of this resolvable object.
public override string ToString()
Returns
System.String
Remarks
Returns a reversible string representation.