Class Names
Functions for devising unique names for constructs.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class Names : DeputyBase
Syntax (vb)
Public Class Names
Inherits DeputyBase
Remarks
For example, those can be used to allocate unique physical names for resources.
Synopsis
Constructors
Names(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Names(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
NodeUniqueId(ConstructNode) | Returns a CloudFormation-compatible unique identifier for a construct based on its path. |
UniqueId(Construct) | Returns a CloudFormation-compatible unique identifier for a construct based on its path. |
Constructors
Names(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Names(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Names(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Names(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
NodeUniqueId(ConstructNode)
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
public static string NodeUniqueId(ConstructNode node)
Parameters
- node ConstructNode
The construct node.
Returns
System.String
a unique id based on the construct path
Remarks
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
.
UniqueId(Construct)
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
public static string UniqueId(Construct construct)
Parameters
- construct Constructs.Construct
The construct.
Returns
System.String
a unique id based on the construct path
Remarks
The identifier includes a human readable portion rendered from the path components and a hash suffix.