文档

ALIYUN::CloudStorageGateway::StorageBundle

更新时间:

ALIYUN::CloudStorageGateway::StorageBundle类型用于创建一个网关集群。

语法

{
  "Type": "ALIYUN::CloudStorageGateway::StorageBundle",
  "Properties": {
    "Description": String,
    "StorageBundleName": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Description

String

网关集群描述。

长度限制0~128个字符。

StorageBundleName

String

网关集群名。

长度限制1~60个字符,可以包含大小写字母,中文,数字,“.”,“_”或“-”,同时必须以大小写字母或者中文开头。

返回值

Fn::GetAtt

  • Description:网关集群描述。

  • CreateTime:网关集群的创建时间。

  • StorageBundleId:网关集群ID。

  • StorageBundleName:网关集群名称。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Description:
        AssociationProperty: TextArea
        Description:
          en: The description of the gateway cluster. The description must be 0 to 128
            characters in length.
        Required: false
        Type: String
      StorageBundleName:
        Description:
          en: The name of the gateway cluster. The name must be 1 to 60 characters in
            length and can contain letters, digits, periods (.), underscores (_), and
            hyphens (-). It must start with a letter.
        Required: true
        Type: String
    Resources:
      ExtensionResource:
        Properties:
          Description:
            Ref: Description
          StorageBundleName:
            Ref: StorageBundleName
        Type: ALIYUN::CloudStorageGateway::StorageBundle
    Outputs:
      CreateTime:
        Description: Create a gateway cluster timestamp.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CreateTime
      Description:
        Description: Gateway cluster description.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - Description
      StorageBundleId:
        Description: The ID of the gateway cluster.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - StorageBundleId
      StorageBundleName:
        Description: Gateway cluster name.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - StorageBundleName
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Description": {
          "AssociationProperty": "TextArea",
          "Type": "String",
          "Description": {
            "en": "The description of the gateway cluster. The description must be 0 to 128 characters in length."
          },
          "Required": false
        },
        "StorageBundleName": {
          "Type": "String",
          "Description": {
            "en": "The name of the gateway cluster. The name must be 1 to 60 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::CloudStorageGateway::StorageBundle",
          "Properties": {
            "Description": {
              "Ref": "Description"
            },
            "StorageBundleName": {
              "Ref": "StorageBundleName"
            }
          }
        }
      },
      "Outputs": {
        "Description": {
          "Description": "Gateway cluster description.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Description"
            ]
          }
        },
        "CreateTime": {
          "Description": "Create a gateway cluster timestamp.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "StorageBundleId": {
          "Description": "The ID of the gateway cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "StorageBundleId"
            ]
          }
        },
        "StorageBundleName": {
          "Description": "Gateway cluster name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "StorageBundleName"
            ]
          }
        }
      }
    }
                            
  • 本页导读 (1)
文档反馈