Package software.amazon.awscdk.core
Class Names
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.Names
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.088Z")
@Stability(Stable)
public class Names
extends software.amazon.jsii.JsiiObject
Functions for devising unique names for constructs.
For example, those can be used to allocate unique physical names for resources.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
nodeUniqueId
(ConstructNode node) Returns a CloudFormation-compatible unique identifier for a construct based on its path.static String
uniqueId
(software.constructs.Construct construct) Returns a CloudFormation-compatible unique identifier for a construct based on its path.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Names
protected Names(software.amazon.jsii.JsiiObjectRef objRef) -
Names
protected Names(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
nodeUniqueId
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
- The construct node. This parameter is required.- Returns:
- a unique id based on the construct path
-
uniqueId
@Stability(Stable) @NotNull public static String uniqueId(@NotNull software.constructs.Construct 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
- The construct. This parameter is required.- Returns:
- a unique id based on the construct path
-