Interface IResourceProps
Construction properties for {@link Resource}.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public interface IResourceProps
Syntax (vb)
Public Interface IResourceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var resourceProps = new ResourceProps {
Account = "account",
EnvironmentFromArn = "environmentFromArn",
PhysicalName = "physicalName",
Region = "region"
};
Synopsis
Properties
Account | The AWS account ID this resource belongs to. |
EnvironmentFromArn | ARN to deduce region and account from. |
PhysicalName | The value passed in by users to the physical name prop of the resource. |
Region | The AWS region this resource belongs to. |
Properties
Account
The AWS account ID this resource belongs to.
virtual string Account { get; }
Property Value
System.String
Remarks
Default: - the resource is in the same account as the stack it belongs to
EnvironmentFromArn
ARN to deduce region and account from.
virtual string EnvironmentFromArn { get; }
Property Value
System.String
Remarks
The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources.
Cannot be supplied together with either account
or region
.
Default: - take environment from account
, region
parameters, or use Stack environment.
PhysicalName
The value passed in by users to the physical name prop of the resource.
virtual string PhysicalName { get; }
Property Value
System.String
Remarks
Default: - The physical name will be allocated by CloudFormation at deployment time
Region
The AWS region this resource belongs to.
virtual string Region { get; }
Property Value
System.String
Remarks
Default: - the resource is in the same region as the stack it belongs to