Interface IResourceProps
Construction properties for {@link Resource}.
public interface IResourceProps
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"
};
Remarks
ExampleMetadata: fixture=_generated
Properties
Account
The AWS account ID this resource belongs to.
string? Account { get; }
Property Value
Remarks
Default: - the resource is in the same account as the stack it belongs to
EnvironmentFromArn
ARN to deduce region and account from.
string? EnvironmentFromArn { get; }
Property Value
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.
string? PhysicalName { get; }
Property Value
Remarks
Default: - The physical name will be allocated by CloudFormation at deployment time
Region
The AWS region this resource belongs to.
string? Region { get; }
Property Value
Remarks
Default: - the resource is in the same region as the stack it belongs to