ALIYUN::ESA::KvNamespace

ALIYUN::ESA::KvNamespace类型用于创建KV存储空间。

语法

{
  "Type": "ALIYUN::ESA::KvNamespace",
  "Properties": {
    "KvNamespace": String,
    "Description": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

KvNamespace

String

KV存储空间的名字。

Description

String

KV存储空间的描述信息。

返回值

Fn::GetAtt

  • Description:KV存储空间的描述信息。

  • KvCapacityUsed:账户下所有KV存储空间的已用容量。

  • KvCapacity:账户下所有KV存储空间的可用容量,单位为字节。

  • KvCapacityString:账户下所有KV存储空间的可用容量。

  • NamespaceId:KV存储空间ID。

  • KvCapacityUsedString:账户下所有KV存储空间的已用容量。

  • KvNamespace:KV存储空间名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KvNamespace:
    Type: String
    Description:
      en: The name of the namespace.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::KvNamespace
    Properties:
      KvNamespace:
        Ref: KvNamespace
Outputs:
  Description:
    Description: The description of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Description
  KvCapacityUsed:
    Description: 'The used capacity of the namespace. Unit: bytes.'
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - KvCapacityUsed
  KvCapacity:
    Description: 'The available capacity of the namespace. Unit: bytes.'
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - KvCapacity
  KvCapacityString:
    Description: The available capacity of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - KvCapacityString
  NamespaceId:
    Description: The ID of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - NamespaceId
  KvCapacityUsedString:
    Description: The used capacity of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - KvCapacityUsedString
  KvNamespace:
    Description: The name of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - KvNamespace
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KvNamespace": {
      "Type": "String",
      "Description": {
        "en": "The name of the namespace."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::KvNamespace",
      "Properties": {
        "KvNamespace": {
          "Ref": "KvNamespace"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      }
    },
    "KvCapacityUsed": {
      "Description": "The used capacity of the namespace. Unit: bytes.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KvCapacityUsed"
        ]
      }
    },
    "KvCapacity": {
      "Description": "The available capacity of the namespace. Unit: bytes.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KvCapacity"
        ]
      }
    },
    "KvCapacityString": {
      "Description": "The available capacity of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KvCapacityString"
        ]
      }
    },
    "NamespaceId": {
      "Description": "The ID of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "NamespaceId"
        ]
      }
    },
    "KvCapacityUsedString": {
      "Description": "The used capacity of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KvCapacityUsedString"
        ]
      }
    },
    "KvNamespace": {
      "Description": "The name of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KvNamespace"
        ]
      }
    }
  }
}