aws-cdk-lib.PhysicalName

class PhysicalName

LanguageType name
.NETAmazon.CDK.PhysicalName
Gogithub.com/aws/aws-cdk-go/awscdk/v2#PhysicalName
Javasoftware.amazon.awscdk.PhysicalName
Pythonaws_cdk.PhysicalName
TypeScript (source)aws-cdk-lib » PhysicalName

Includes special markers for automatic generation of physical names.

Properties

NameTypeDescription
static GENERATE_IF_NEEDEDstringUse this to automatically generate a physical name for an AWS resource only if the resource is referenced across environments (account/region).

static GENERATE_IF_NEEDED

Type: string

Use this to automatically generate a physical name for an AWS resource only if the resource is referenced across environments (account/region).

Otherwise, the name will be allocated during deployment by CloudFormation.

If you are certain that a resource will be referenced across environments, you may also specify an explicit physical name for it. This option is mostly designed for reusable constructs which may or may not be referenced across environments.