ALIYUN::CloudStorageGateway::ExpressSync

更新时间:
复制为 MD 格式

ALIYUN::CloudStorageGateway::ExpressSync类型用于创建极速同步组。

语法

{
  "Type": "ALIYUN::CloudStorageGateway::ExpressSync",
  "Properties": {
    "BucketName": String,
    "BucketRegion": String,
    "Name": String,
    "BucketPrefix": String,
    "Description": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

BucketName

String

OSS存储桶的名称。

BucketRegion

String

OSS存储桶的地域。

Name

String

极速同步组的名称。

BucketPrefix

String

OSS存储桶的前缀。

Description

String

极速同步组的描述。

返回值

Fn::GetAtt

ExpressSyncId:极速同步组的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BucketName:
    Type: String
    Description:
      en: The name of the OSS bucket.
      zh: OSS存储桶的名称。
    Required: true
  BucketRegion:
    Type: String
    Description:
      en: The region of the OSS bucket.
      zh: OSS存储桶的地域。
    Required: true
  Name:
    Type: String
    Description:
      en: The name of the ExpressSync.
      zh: ExpressSync的名称。
    Required: true
Resources:
  ExpressSync:
    Type: ALIYUN::CloudStorageGateway::ExpressSync
    Properties:
      BucketName:
        Ref: BucketName
      BucketRegion:
        Ref: BucketRegion
      Name:
        Ref: Name
Outputs:
  ExpressSyncId:
    Description:
      en: The ID of the ExpressSync.
      zh: ExpressSync的ID。
    Value:
      Fn::GetAtt:
        - ExpressSync
        - ExpressSyncId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BucketName": {
      "Type": "String",
      "Description": {
        "en": "The name of the OSS bucket.",
        "zh": "OSS存储桶的名称。"
      },
      "Required": true
    },
    "BucketRegion": {
      "Type": "String",
      "Description": {
        "en": "The region of the OSS bucket.",
        "zh": "OSS存储桶的地域。"
      },
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the ExpressSync.",
        "zh": "ExpressSync的名称。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExpressSync": {
      "Type": "ALIYUN::CloudStorageGateway::ExpressSync",
      "Properties": {
        "BucketName": {
          "Ref": "BucketName"
        },
        "BucketRegion": {
          "Ref": "BucketRegion"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "ExpressSyncId": {
      "Description": {
        "en": "The ID of the ExpressSync.",
        "zh": "ExpressSync的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExpressSync",
          "ExpressSyncId"
        ]
      }
    }
  }
}