Names
- class aws_cdk.core.Names(*args: Any, **kwargs)
Bases:
object
Functions for devising unique names for constructs.
For example, those can be used to allocate unique physical names for resources.
Static Methods
- classmethod node_unique_id(node)
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
.- Parameters:
node (
ConstructNode
) – The construct node.- Return type:
str
- Returns:
a unique id based on the construct path
- classmethod unique_id(construct)
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.
- Parameters:
construct (
Construct
) – The construct.- Return type:
str
- Returns:
a unique id based on the construct path