@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.920Z") @Stability(value=Stable) public class Names extends software.amazon.jsii.JsiiObject
For example, those can be used to allocate unique physical names for resources.
| Modifier | Constructor and Description |
|---|---|
protected |
Names(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Names(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static String |
nodeUniqueId(software.constructs.Node node)
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
|
static String |
uniqueId(software.constructs.IConstruct construct)
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
|
static String |
uniqueResourceName(software.constructs.IConstruct construct,
UniqueResourceNameOptions options)
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Names(software.amazon.jsii.JsiiObjectRef objRef)
protected Names(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static String nodeUniqueId(@NotNull software.constructs.Node node)
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.
node - The construct node. This parameter is required.@Stability(value=Stable) @NotNull public static String uniqueId(@NotNull software.constructs.IConstruct construct)
The identifier includes a human readable portion rendered from the path components and a hash suffix. uniqueId is not unique if multiple copies of the stack are deployed. Prefer using uniqueResourceName().
construct - The construct. This parameter is required.@Stability(value=Stable) @NotNull public static String uniqueResourceName(@NotNull software.constructs.IConstruct construct, @NotNull UniqueResourceNameOptions options)
This function finds the stackName of the parent stack (non-nested) to the construct, and the ids of the components in the construct path.
The user can define allowed special characters, a separator between the elements, and the maximum length of the resource name. The name includes a human readable portion rendered from the path components, with or without user defined separators, and a hash suffix. If the resource name is longer than the maximum length, it is trimmed in the middle.
construct - The construct. This parameter is required.options - Options for defining the unique resource name. This parameter is required.Copyright © 2022. All rights reserved.