ALIYUN::POLARDB::Backup は、PolarDB クラスタのフルスナップショットバックアップを作成するために使用されます。
構文
{
"Type": "ALIYUN::POLARDB::Backup",
"Properties": {
"DBClusterId": String
}
}プロパティ
プロパティ | 型 | 必須 | 編集可能 | 説明 | 制約 |
DBClusterId | String | はい | いいえ | クラスタ ID。 | なし。 |
戻り値
Fn::GetAtt
DBClusterId: クラスタ ID。
BackupJobId: バックアップセットの ID。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBClusterId:
Type: String
Description:
en: The cluster ID.
Required: true
AssociationProperty: ALIYUN::POLARDB::DBCluster::DBClusterId
Resources:
Backup:
Type: ALIYUN::POLARDB::Backup
Properties:
DBClusterId:
Ref: DBClusterId
Outputs:
DBClusterId:
Description: The ID of the cluster.
Value:
Fn::GetAtt:
- Backup
- DBClusterId
BackupJobId:
Description: The ID of the backup set.
Value:
Fn::GetAtt:
- Backup
- BackupJobId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBClusterId": {
"Type": "String",
"Description": {
"en": "The cluster ID."
},
"Required": true,
"AssociationProperty": "ALIYUN::POLARDB::DBCluster::DBClusterId"
}
},
"Resources": {
"Backup": {
"Type": "ALIYUN::POLARDB::Backup",
"Properties": {
"DBClusterId": {
"Ref": "DBClusterId"
}
}
}
},
"Outputs": {
"DBClusterId": {
"Description": "The ID of the cluster.",
"Value": {
"Fn::GetAtt": [
"Backup",
"DBClusterId"
]
}
},
"BackupJobId": {
"Description": "The ID of the backup set.",
"Value": {
"Fn::GetAtt": [
"Backup",
"BackupJobId"
]
}
}
}
}