aws-cdk-lib.UniqueResourceNameOptions

interface UniqueResourceNameOptions

LanguageType name
.NETAmazon.CDK.UniqueResourceNameOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2#UniqueResourceNameOptions
Javasoftware.amazon.awscdk.UniqueResourceNameOptions
Pythonaws_cdk.UniqueResourceNameOptions
TypeScript (source)aws-cdk-lib » UniqueResourceNameOptions

Options for creating a unique resource name.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const uniqueResourceNameOptions: cdk.UniqueResourceNameOptions = {
  allowedSpecialCharacters: 'allowedSpecialCharacters',
  maxLength: 123,
  separator: 'separator',
};

Properties

NameTypeDescription
allowedSpecialCharacters?stringNon-alphanumeric characters allowed in the unique resource name.
maxLength?numberThe maximum length of the unique resource name.
separator?stringThe separator used between the path components.

allowedSpecialCharacters?

Type: string (optional, default: none)

Non-alphanumeric characters allowed in the unique resource name.


maxLength?

Type: number (optional, default: 256)

The maximum length of the unique resource name.


separator?

Type: string (optional, default: none)

The separator used between the path components.