update_snapshot_schedule
async
¶
update_snapshot_schedule(
volume_arn: VolumeARN,
start_at: HourOfDay,
recurrence_in_hours: RecurrenceInHours,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = 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.
>>> await 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/async_storage_gateway.py
6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 | |