ALIYUN::DBS::Download is used to create an advanced download task.
Syntax
{
"Type": "ALIYUN::DBS::Download",
"Properties": {
"BakSetId": String,
"InstanceName": String,
"DownloadPointInTime": String,
"BakSetType": String,
"BakSetSize": String,
"TargetPath": String,
"TargetType": String,
"TargetOssRegion": String,
"DeleteBackupSetInOss": Boolean,
"TargetBucket": String,
"FormatType": String,
"DownloadAddressDuration": Integer
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
BakSetId | String | No | No | The ID of the full backup set. | You can call the DescribeBackups operation to query the ID of the full backup set. For more information about the operation, see Query the data backup files. Note This property must be specified when BakSetType is set to full. |
InstanceName | String | Yes | No | The instance ID. | None. |
DownloadPointInTime | String | No | No | The point in time at which the backup set is downloaded. | Specify a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. The timestamp is of the Long type. Example: 1661331864000. Note This property must be specified when BakSetType is set to pitr. |
BakSetType | String | No | No | The type of the download task. | Valid values:
|
BakSetSize | String | No | No | The size of the full backup set. | You can call the DescribeBackups operation to query the size of the full backup set. For more information about the operation, see Query the data backup files. |
TargetPath | String | No | No | The destination path to which the backup set is downloaded. | This property must be specified when TargetType is set to OSS. |
TargetType | String | No | No | The type of the destination to which the backup set is downloaded. | Valid values:
|
TargetOssRegion | String | No | No | The region where the Object Storage Service (OSS) bucket resides. | This property must be specified when TargetType is set to OSS. |
DeleteBackupSetInOss | Boolean | No | Yes | Specifies whether to delete the backup set from OSS when the stack is deleted. | Valid values:
|
TargetBucket | String | No | No | The name of the OSS bucket that is used to store the backup set. | This property must be specified when TargetType is set to OSS. Make sure that your account has the AliyunDBSDefaultRole permission. For more information about how to obtain the permission, see Use RAM for resource authorization. To obtain the permission, you can also follow the operation instructions in the Resource Access Management (RAM) console. |
FormatType | String | Yes | No | The destination format to which the downloaded backup set is converted. | Valid values:
|
DownloadAddressDuration | Integer | No | No | The validity period of the URL when TargetType is set to URL. | Valid values: 300 to 86400. Unit: seconds. Default value: 7200. |
Return values
Fn::GetAtt
InstanceName: the instance ID.
BakSetId: the ID of the backup set.
DownloadAddressInfo: the information about the download address.
TaskId: the ID of the download task.