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"
]
}
}
}
}
该文章对您有帮助吗?