public class ConfigKt
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
validateBucketName(java.lang.String bucketName)
Validates an S3 bucket name, throwing IllegalArgumentException if it is not legal, returning the name if it is.
|
static java.lang.String |
validateName(java.lang.String name)
Validates a name, throwing IllegalArgumentException if it is not legal, returns the name if it is.
|
@NotNull
public static java.lang.String validateBucketName(@NotNull
java.lang.String bucketName)
Validates an S3 bucket name, throwing IllegalArgumentException if it is not legal, returning the name if it is.
Bucket names must only contain lower-case letters, numbers and dashes. They must start and end with a letter or a number The minimum length is 3 characters and the maximum is 63.
@Nullable
public static java.lang.String validateName(@Nullable
java.lang.String name)
Validates a name, throwing IllegalArgumentException if it is not legal, returns the name if it is.
They must contain only numbers, lower-case letters and dashes
The must start and end with a number or letter
The minimum length is 1 character