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

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
NameStringYesYesThe name of the namespace.None

Response parameters

Fn::GetAtt

  • NamespaceId: the ID of the namespace.
  • Endpoint: the endpoint of the namespace.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      Namespace:
        Type: ALIYUN::ACM::Namespace
        Properties:
          Name: Demo
    Parameters: {}
    Outputs:
      Endpoint:
        Description: Endpoint
        Value:
          Fn::GetAtt:
            - Namespace
            - Endpoint
      NamespaceId:
        Description: ID namespace
        Value:
          Fn::GetAtt:
            - Namespace
            - NamespaceId
  • JSONformat

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

For more information about the combination example of the namespace and the configuration, visit Configuration.json and Configuration.yml.