update_snapshot_schedule
¶
update_snapshot_schedule(
volume_arn: VolumeARN,
start_at: HourOfDay,
recurrence_in_hours: RecurrenceInHours,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
description: Optional[Description] = None,
tags: Optional[Tags] = None,
) -> UpdateSnapshotScheduleOutput
Updates a snapshot schedule configured for a gateway volume. This operation is only supported in the cached volume and stored volume gateway types.
The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.
In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.
Parameters:
-
volume_arn(VolumeARN) –The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.
-
start_at(HourOfDay) –The hour of the day at which the snapshot schedule begins represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.
-
recurrence_in_hours(RecurrenceInHours) –Frequency of snapshots. Specify the number of hours between snapshots.
-
description(Optional[Description], default:None) –Optional description of the snapshot that overwrites the existing description.
-
tags(Optional[Tags], default:None) –A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a volume snapshot schedule Updates a snapshot schedule configured for a gateway volume.
>>> client.update_snapshot_schedule(volume_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB', start_at=0, recurrence_in_hours=1, description='Hourly snapshot')
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 | |