ALIYUN::SAE::Namespace is used to create a Namespace.

Syntax

{
  "Type": "ALIYUN::SAE::Namespace",
  "Properties": {
    "NamespaceName": String,
    "NamespaceId": String,
    "NamespaceDescription": String
  }
}

Properties

Property Type Required Editable Description Constraint
NamespaceName String Yes Yes The name of the namespace. None
NamespaceId String Yes No The ID of the namespace. For example: cn-hangzhou:test. Valid values: RegionId:LogicalId. LogicalId can contain lowercase letters or digits.
NamespaceDescription String No Yes The description of the alarm task. None

Response parameters

Fn::GetAtt

NamespaceId: the ID of the namespace.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NamespaceName": {
      "Type": "String",
      "Description": "Namespace name"
    },
    "NamespaceId": {
      "Type": "String",
      "Description": "Namespace ID. Format: \"regionId:logicalId\" or \"logicalId\""
    },
    "NamespaceDescription": {
      "Type": "String",
      "Description": "Namespace description"
    }
  },
  "Resources": {
    "Namespace": {
      "Type": "ALIYUN::SAE::Namespace",
      "Properties": {
        "NamespaceName": {
          "Ref": "NamespaceName"
        },
        "NamespaceId": {
          "Ref": "NamespaceId"
        },
        "NamespaceDescription": {
          "Ref": "NamespaceDescription"
        }
      }
    }
  },
  "Outputs": {
    "NamespaceId": {
      "Description": "Namespace ID",
      "Value": {
        "Fn::GetAtt": [
          "Namespace",
          "NamespaceId"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NamespaceName:
    Type: String
    Description: Namespace name
  NamespaceId:
    Type: String
    Description: 'Namespace ID. Format: "regionId:logicalId" or "logicalId"'
  NamespaceDescription:
    Type: String
    Description: Namespace description
Resources:
  Namespace:
    Type: 'ALIYUN::SAE::Namespace'
    Properties:
      NamespaceName:
        Ref: NamespaceName
      NamespaceId:
        Ref: NamespaceId
      NamespaceDescription:
        Ref: NamespaceDescription
Outputs:
  NamespaceId:
    Description: Namespace ID
    Value:
      'Fn::GetAtt':
        -Namespace
        -NamespaceId