Class IdentifierUtils
java.lang.Object
software.amazon.cloudformation.resource.IdentifierUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateResourceIdentifier(String logicalResourceId, String clientRequestToken) For named resources, use this method to safely generate a user friendly resource name when the customer does not pass in an explicit name For more info, see the named resources section of the developer guide https://...static StringgenerateResourceIdentifier(String logicalResourceId, String clientRequestToken, int maxLength) For named resources, use this method to safely generate a user friendly resource name when the customer does not pass in an explicit name For more info, see the named resources section of the developer guide https://...static StringgenerateResourceIdentifier(String stackId, String logicalResourceId, String clientRequestToken, int maxLength)
-
Field Details
-
GUID_LENGTH
public static final int GUID_LENGTH- See Also:
-
-
Method Details
-
generateResourceIdentifier
public static String generateResourceIdentifier(String logicalResourceId, String clientRequestToken) For named resources, use this method to safely generate a user friendly resource name when the customer does not pass in an explicit name For more info, see the named resources section of the developer guide https://...- Parameters:
logicalResourceId- logical name for the resource as defined in CloudFormationclientRequestToken- the idempotent token from CloudFormation to help detect duplicate calls- Returns:
- generated ID string
-
generateResourceIdentifier
public static String generateResourceIdentifier(String logicalResourceId, String clientRequestToken, int maxLength) For named resources, use this method to safely generate a user friendly resource name when the customer does not pass in an explicit name For more info, see the named resources section of the developer guide https://...- Parameters:
logicalResourceId- logical name for the resource as defined in CloudFormationclientRequestToken- the idempotent token from CloudFormation to help detect duplicate callsmaxLength- the maximum length size for the identifier- Returns:
- generated ID string
-
generateResourceIdentifier
-