DATASOURCE::CloudStorageGateway::StorageBundle

DATASOURCE::CloudStorageGateway::StorageBundle类型用于查询指定的网关集群信息。

语法

{
  "Type": "DATASOURCE::CloudStorageGateway::StorageBundle",
  "Properties": {
    "StorageBundleId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

StorageBundleId

String

网关集群ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • Description:网关集群的描述。

  • CreateTime:网关集群创建时间。时间戳为秒(s)。

  • StorageBundleId:网关集群ID。

  • StorageBundleName:网关集群名称

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  StorageBundleId:
    Type: String
    Description:
      en: The ID of the gateway cluster.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::CloudStorageGateway::StorageBundle
    Properties:
      StorageBundleId:
        Ref: StorageBundleId
Outputs:
  Description:
    Description: The description of the gateway cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  CreateTime:
    Description: 'The timestamp when the gateway cluster was created. Unit: seconds.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  StorageBundleId:
    Description: The ID of the gateway cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageBundleId
  StorageBundleName:
    Description: The name of the gateway cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - StorageBundleName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "StorageBundleId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the gateway cluster."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CloudStorageGateway::StorageBundle",
      "Properties": {
        "StorageBundleId": {
          "Ref": "StorageBundleId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the gateway cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "CreateTime": {
      "Description": "The timestamp when the gateway cluster was created. Unit: seconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "StorageBundleId": {
      "Description": "The ID of the gateway cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageBundleId"
        ]
      }
    },
    "StorageBundleName": {
      "Description": "The name of the gateway cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "StorageBundleName"
        ]
      }
    }
  }
}