CreateVectorBucketDialog.utils.ts7 lines · main
| 1 | /** |
| 2 | * Rules: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-buckets-naming.html?icmpid=docs_amazons3_console |
| 3 | * Vector bucket names must be between 3 and 63 characters long. |
| 4 | * Vector bucket names can consist only of lowercase letters (a-z), numbers (0-9), and hyphens (-). |
| 5 | * Vector bucket names must begin and end with a letter or number. |
| 6 | */ |
| 7 | export const validVectorBucketName = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/ |