全部產品
Search
文件中心

:ALIYUN::CMS::Namespace

更新時間:Jul 27, 2024

ALIYUN::CMS::Namespace類型用於建立指標倉庫。

文法

{
  "Type": "ALIYUN::CMS::Namespace",
  "Properties": {
    "Description": String,
    "Specification": String,
    "Namespace": String
  }
}

屬性

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Namespace

String

指標倉庫名稱。

由小寫字母、數字和短劃線(-)組成。

Description

String

指標倉庫描述。

Specification

String

資料存放區時間長度。

取值:

  • cms.s1.large:資料存放區時間長度15天。

  • cms.s1.xlarge:資料存放區時間長度32天。

  • cms.s1.2xlarge:資料存放區時間長度63天。

  • cms.s1.3xlarge(預設值):資料存放區時間長度93天。

  • cms.s1.6xlarge:資料存放區時間長度185天。

  • cms.s1.12xlarge:資料存放區時間長度367天。

傳回值

Fn::GetAtt

  • ModifyTime:上次修改命名空間時產生的時間。

  • Description:指標倉庫描述。

  • CreateTime:建立命名空間時產生的時間。

  • Specification:資料存放區時間長度。

  • Namespace:指標倉庫名稱。

樣本

YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Description:
    Description: The description of the namespace.
    Type: String
  Namespace:
    AllowedPattern: ^[-a-z0-9]+$
    Description: 'The name of the namespace.

      The name can contain lowercase letters, digits, and hyphens (-).'
    Type: String
  Specification:
    AllowedValues:
    - cms.s1.large
    - cms.s1.xlarge
    - cms.s1.2xlarge
    - cms.s1.3xlarge
    - cms.s1.6xlarge
    - cms.s1.12xlarge
    Description: 'The data retention period of the namespace. Valid values:

      - cms.s1.large: Data storage duration is 15 days.

      - cms.s1.xlarge: Data storage duration is 32 days.

      - cms.s1.2xlarge: Data storage duration 63 days.

      - cms.s1.3xlarge: Data storage duration 93 days.

      - cms.s1.6xlarge: Data storage duration 185 days.

      - cms.s1.12xlarge: Data storage duration 376 days.'
    Type: String
Resources:
  ExtensionResource:
    Properties:
      Description:
        Ref: Description
      Namespace:
        Ref: Namespace
      Specification:
        Ref: Specification
    Type: ALIYUN::CMS::Namespace
Outputs:
  CreateTime:
    Description: 'The timestamp that was generated when the namespace was created.

      Unit: milliseconds.'
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - CreateTime
  Description:
    Description: The description of the namespace.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Description
  ModifyTime:
    Description: The timestamp that was generated when the namespace was last modified.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - ModifyTime
  Namespace:
    Description: The namespace for the Alibaba Cloud service.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Namespace
  Specification:
    Description: 'The data retention period of the namespace. Valid values:

      - cms.s1.large: Data storage duration is 15 days.

      - cms.s1.xlarge: Data storage duration is 32 days.

      - cms.s1.2xlarge: Data storage duration 63 days.

      - cms.s1.3xlarge: Data storage duration 93 days.

      - cms.s1.6xlarge: Data storage duration 185 days.

      - cms.s1.12xlarge: Data storage duration 376 days.'
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Specification

JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Description": {
      "Type": "String",
      "Description": "The description of the namespace."
    },
    "Specification": {
      "Type": "String",
      "Description": "The data retention period of the namespace. Valid values:\n- cms.s1.large: Data storage duration is 15 days.\n- cms.s1.xlarge: Data storage duration is 32 days.\n- cms.s1.2xlarge: Data storage duration 63 days.\n- cms.s1.3xlarge: Data storage duration 93 days.\n- cms.s1.6xlarge: Data storage duration 185 days.\n- cms.s1.12xlarge: Data storage duration 376 days.",
      "AllowedValues": [
        "cms.s1.large",
        "cms.s1.xlarge",
        "cms.s1.2xlarge",
        "cms.s1.3xlarge",
        "cms.s1.6xlarge",
        "cms.s1.12xlarge"
      ]
    },
    "Namespace": {
      "Type": "String",
      "Description": "The name of the namespace.\nThe name can contain lowercase letters, digits, and hyphens (-).",
      "AllowedPattern": "^[-a-z0-9]+$"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CMS::Namespace",
      "Properties": {
        "Description": {
          "Ref": "Description"
        },
        "Specification": {
          "Ref": "Specification"
        },
        "Namespace": {
          "Ref": "Namespace"
        }
      }
    }
  },
  "Outputs": {
    "ModifyTime": {
      "Description": "The timestamp that was generated when the namespace was last modified.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ModifyTime"
        ]
      }
    },
    "Description": {
      "Description": "The description of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      }
    },
    "CreateTime": {
      "Description": "The timestamp that was generated when the namespace was created.\nUnit: milliseconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "Specification": {
      "Description": "The data retention period of the namespace. Valid values:\n- cms.s1.large: Data storage duration is 15 days.\n- cms.s1.xlarge: Data storage duration is 32 days.\n- cms.s1.2xlarge: Data storage duration 63 days.\n- cms.s1.3xlarge: Data storage duration 93 days.\n- cms.s1.6xlarge: Data storage duration 185 days.\n- cms.s1.12xlarge: Data storage duration 376 days.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Specification"
        ]
      }
    },
    "Namespace": {
      "Description": "The namespace for the Alibaba Cloud service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Namespace"
        ]
      }
    }
  }
}