ALIYUN::ACM::Namespace is used to create a namespace.

Syntax

{
  "Type": "ALIYUN::ACM::Namespace",
  "Properties": {
    "Name": String
  }
}

Properties

Parameter Type Required Editable Description Constraint
Name String Yes Yes The namespace to which the repository you want to update belongs. None

Return value

Fn::GetAtt

NamespaceId: The ID of the namespace.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Namespace": {
      "Type": "ALIYUN::ACM::Namespace",
      "Properties": {
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Parameters": {
    "Name": {
      "Type": "String",
      "Description": "Namespace name"
    }
  },
  "Outputs": {
    "NamespaceId": {
      "Description": "ID namespace",
      "Value": {
        "Fn::GetAtt": [
          "Namespace",
          "NamespaceId"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Namespace:
    Type: 'ALIYUN::ACM::Namespace'
    Properties:
      Name:
        Ref: Name
Parameters:
  Name:
    Type: String
    Description: Namespace name
Outputs:
  NamespaceId:
    Description: ID namespace
    Value:
      'Fn::GetAtt':
        -Namespace
        -NamespaceId