ALIYUN::SchedulerX::Namespace

更新时间:
复制为 MD 格式

ALIYUN::SchedulerX::Namespace类型用于创建命名空间。

语法

{
  "Type": "ALIYUN::SchedulerX::Namespace",
  "Properties": {
    "Name": String,
    "Description": String,
    "Uid": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Name

String

命名空间的名称。

Description

String

命名空间的描述。

Uid

String

命名空间UID全局唯一,

建议使用UUID生成。

返回值

Fn::GetAtt

NamespaceUid:命名空间的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Uid:
    Type: String
    Description:
      en: Namespace UID is globally unique; it is recommended to generate it using UUID.
    Default: Null
    Required: false
  Name:
    Type: String
    Description:
      en: The name of the namespace.
    Required: true
  Description:
    Type: String
    Description:
      en: The description of the namespace.
    AssociationProperty: TextArea
    Default: Null
    Required: false
Resources:
  Namespace:
    Type: ALIYUN::SchedulerX::Namespace
    Properties:
      Uid:
        Ref: Uid
      Name:
        Ref: Name
      Description:
        Ref: Description
Outputs:
  NamespaceUid:
    Value:
      Fn::GetAtt:
        - Namespace
        - NamespaceUid
    Description: The ID of the namespace.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Uid": {
      "Type": "String",
      "Description": {
        "en": "Namespace UID is globally unique; it is recommended to generate it using UUID."
      },
      "Default": null,
      "Required": false
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the namespace."
      },
      "Required": true
    },
    "Description": {
      "Type": "String",
      "Description": {
        "en": "The description of the namespace."
      },
      "AssociationProperty": "TextArea",
      "Default": null,
      "Required": false
    }
  },
  "Resources": {
    "Namespace": {
      "Type": "ALIYUN::SchedulerX::Namespace",
      "Properties": {
        "Uid": {
          "Ref": "Uid"
        },
        "Name": {
          "Ref": "Name"
        },
        "Description": {
          "Ref": "Description"
        }
      }
    }
  },
  "Outputs": {
    "NamespaceUid": {
      "Value": {
        "Fn::GetAtt": [
          "Namespace",
          "NamespaceUid"
        ]
      },
      "Description": "The ID of the namespace."
    }
  }
}