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

Name Type Required Editable Description Validity
RepoNamespace String Yes No The name of the namespace to which the repository belongs. Specify the value of this parameter from the namespaces that you have applied for. 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. None.
Summary String Yes Yes The summary of the repository. The summary must be 1 to 100 characters in length. None.
RepoType String Yes Yes The type of the repository. Public repositories support anonymous downloads. Private repositories require logon to download. Valid values: PUBLIC and PRIVATE.
Detail String No Yes The detailed information about the repository. The Markdown syntax is supported. The information can be up to 2,000 characters in length. None.
RepoName String Yes No The name of the repository. The name must be 1 to 64 characters in length and can contain lowercase letters, digits, hyphens (-), and underscores (_). It cannot start with a hyphen or an underscore. None.

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"
        ]
      }
    }
  }
}