Class PhysicalResourceId
Physical ID of the custom resource.
Inheritance
Namespace: Amazon.CDK.CustomResources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PhysicalResourceId : DeputyBase
Syntax (vb)
Public Class PhysicalResourceId
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var getParameter = new AwsCustomResource(this, "AssociateVPCWithHostedZone", new AwsCustomResourceProps {
OnCreate = new AwsSdkCall {
AssumedRoleArn = "arn:aws:iam::OTHERACCOUNT:role/CrossAccount/ManageHostedZoneConnections",
Service = "Route53",
Action = "AssociateVPCWithHostedZone",
Parameters = new Dictionary<string, object> {
{ "HostedZoneId", "hz-123" },
{ "VPC", new Struct {
VPCId = "vpc-123",
VPCRegion = "region-for-vpc"
} }
},
PhysicalResourceId = PhysicalResourceId.Of("${vpcStack.SharedVpc.VpcId}-${vpcStack.Region}-${PrivateHostedZone.HostedZoneId}")
},
//Will ignore any resource and use the assumedRoleArn as resource and 'sts:AssumeRole' for service:action
Policy = AwsCustomResourcePolicy.FromSdkCalls(new SdkCallsPolicyOptions {
Resources = AwsCustomResourcePolicy.ANY_RESOURCE
})
});
Synopsis
Constructors
PhysicalResourceId(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PhysicalResourceId(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Id | Literal string to be used as the physical id. |
ResponsePath | Path to a response data element to be used as the physical id. |
Methods
FromResponse(String) | Extract the physical resource id from the path (dot notation) to the data in the API call response. |
Of(String) | Explicit physical resource id. |
Constructors
PhysicalResourceId(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PhysicalResourceId(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PhysicalResourceId(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PhysicalResourceId(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Id
Literal string to be used as the physical id.
public virtual string Id { get; }
Property Value
System.String
ResponsePath
Path to a response data element to be used as the physical id.
public virtual string ResponsePath { get; }
Property Value
System.String
Methods
FromResponse(String)
Extract the physical resource id from the path (dot notation) to the data in the API call response.
public static PhysicalResourceId FromResponse(string responsePath)
Parameters
- responsePath System.String
Returns
Of(String)
Explicit physical resource id.
public static PhysicalResourceId Of(string id)
Parameters
- id System.String
Returns