update_maintenance_start_time
async
¶
update_maintenance_start_time(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
hour_of_day: Optional[HourOfDay] = None,
minute_of_hour: Optional[MinuteOfHour] = None,
day_of_week: Optional[DayOfWeek] = None,
day_of_month: Optional[DayOfMonth] = None,
software_update_preferences: Optional[SoftwareUpdatePreferences] = None,
) -> UpdateMaintenanceStartTimeOutput
Updates a gateway's maintenance window schedule, with settings for monthly or weekly cadence, specific day and time to begin maintenance, and which types of updates to apply. Time configuration uses the gateway's time zone. You can pass values for a complete maintenance schedule, or update policy, or both. Previous values will persist for whichever setting you choose not to modify. If an incomplete or invalid maintenance schedule is passed, the entire request will be rejected with an error and no changes will occur.
A complete maintenance schedule must include values for both MinuteOfHour and HourOfDay, and either DayOfMonth or DayOfWeek.
We recommend keeping maintenance updates turned on, except in specific use cases where the brief disruptions caused by updating the gateway could critically impact your deployment.
Parameters:
-
hour_of_day(Optional[HourOfDay], default:None) –The hour component of the maintenance start time represented as hh, where hh is the hour (00 to 23). The hour of the day is in the time zone of the gateway.
-
minute_of_hour(Optional[MinuteOfHour], default:None) –The minute component of the maintenance start time represented as mm, where mm is the minute (00 to 59). The minute of the hour is in the time zone of the gateway.
-
day_of_week(Optional[DayOfWeek], default:None) –The day of the week component of the maintenance start time week represented as an ordinal number from 0 to 6, where 0 represents Sunday and 6 represents Saturday.
-
day_of_month(Optional[DayOfMonth], default:None) –The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month. It is not possible to set the maintenance schedule to start on days 29 through 31.
-
software_update_preferences(Optional[SoftwareUpdatePreferences], default:None) –A set of variables indicating the software update preferences for the gateway.
Includes
AutomaticUpdatePolicyfield with the following inputs:ALL_VERSIONS- Enables regular gateway maintenance updates.EMERGENCY_VERSIONS_ONLY- Disables regular gateway maintenance updates. The gateway will still receive emergency version updates on rare occasions if necessary to remedy highly critical security or durability issues. You will be notified before an emergency version update is applied. These updates are applied during your gateway's scheduled maintenance window.
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 gateway's maintenance start time Updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is in your gateway's time zone.
>>> await client.update_maintenance_start_time(gateway_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', hour_of_day=0, minute_of_hour=30, day_of_week=2)
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 | |