class Names
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Names |
Java | software.amazon.awscdk.core.Names |
Python | aws_cdk.core.Names |
TypeScript (source) | @aws-cdk/core » Names |
Functions for devising unique names for constructs.
For example, those can be used to allocate unique physical names for resources.
Methods
| Name | Description |
|---|---|
| static node | Returns a CloudFormation-compatible unique identifier for a construct based on its path. |
| static unique | Returns a CloudFormation-compatible unique identifier for a construct based on its path. |
static nodeUniqueId(node)
public static nodeUniqueId(node: ConstructNode): string
Parameters
- node
Construct— The construct node.Node
Returns
string
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
The identifier includes a human readable portion rendered from the path components and a hash suffix.
TODO (v2): replace with API to use constructs.Node.
static uniqueId(construct)
public static uniqueId(construct: Construct): string
Parameters
- construct
Construct— The construct.
Returns
string
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
The identifier includes a human readable portion rendered from the path components and a hash suffix.

.NET
Java
Python
TypeScript (