Creates a Container Registry namespace.
Syntax
{
"Type": "ALIYUN::CR::Namespace",
"Properties": {
"Namespace": String,
"DefaultVisibility": String,
"AutoCreate": Boolean,
"InstanceId": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Namespace |
String |
Yes |
No |
The name of the namespace. |
The name must be 2 to 30 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It cannot start with a hyphen (-) or an underscore (_). |
|
DefaultVisibility |
String |
No |
Yes |
The default visibility of repositories in the namespace. |
Valid values:
|
|
AutoCreate |
Boolean |
No |
Yes |
Specifies whether to automatically create a repository. |
Valid values:
|
|
InstanceId |
String |
No |
No |
The instance ID. |
Example: cri-xkx6vujuhay0****. |
Return values
Fn::GetAtt
-
NamespaceId: the namespace ID.
-
InstanceId: the instance ID.
-
Namespace: the name of the namespace.