ALIYUN::CR::Repository is used to create a repository.
Syntax
{
"Type": "ALIYUN::CR::Repository",
"Properties": {
"RepoNamespace": String,
"Summary": String,
"RepoType": String,
"Detail": String,
"RepoName": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
RepoNamespace | String | Yes | No | The namespace of the repository. | None. |
Summary | String | Yes | Yes | The synopsis of the repository. | The synopsis must be 1 to 100 characters in length. |
RepoType | String | Yes | Yes | The type of the repository. Public repositories support anonymous downloads. Private repositories require logon to download. | Valid values:
|
Detail | String | No | Yes | The description of the repository. | The Markdown syntax is supported. The description can be up to 2,000 characters in length. |
RepoName | String | Yes | No | The name of the repository. | The name must be 2 to 64 characters in length, and can contain lowercase letters, digits, periods (.), hyphens (-), and underscores (_). |
Response parameters
Fn::GetAtt
RepoId: the ID of the repository.
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Repository": {
"Type": "ALIYUN::CR::Repository",
"Properties": {
"RepoType": {
"Ref": "RepoType"
},
"RepoNamespace": {
"Ref": "RepoNamespace"
},
"Detail": {
"Ref": "Detail"
},
"RepoName": {
"Ref": "RepoName"
},
"Summary": {
"Ref": "Summary"
}
}
}
},
"Parameters": {
"RepoType": {
"Type": "String",
"Description": "repository visibility, public or private",
"AllowedValues": [
"PUBLIC",
"PRIVATE"
]
},
"RepoNamespace": {
"MinLength": 2,
"Type": "String",
"Description": "the namespace the repo belongs to",
"MaxLength": 30
},
"Detail": {
"Type": "String",
"Description": "detailed configuration in markdown format",
"MaxLength": 2000
},
"RepoName": {
"MinLength": 1,
"Type": "String",
"Description": "the name of the repo",
"MaxLength": 64
},
"Summary": {
"MinLength": 1,
"Type": "String",
"Description": "description or something alike",
"MaxLength": 100
}
},
"Outputs": {
"RepoId": {
"Description": "The repo id",
"Value": {
"Fn::GetAtt": [
"Repository",
"RepoId"
]
}
}
}
}