put_agent_upgrade_settings
async
¶
put_agent_upgrade_settings(
appliance_arn: ApplianceArn,
enable_auto_upgrade: bool,
*,
config_overrides: Optional[AsyncBackupExternalClientConfig] = None,
start_hour_utc: Optional[HourOfDayUtc] = None,
end_hour_utc: Optional[HourOfDayUtc] = None,
) -> PutAgentUpgradeSettingsOutput
Configures per-appliance daily auto-upgrade settings. When EnableAutoUpgrade is true, StartHourUtc and EndHourUtc are required and define the daily UTC window during which the appliance may be upgraded automatically. The upgrade fires once daily at a random time within the configured window. Validation rules: - If EnableAutoUpgrade=true, StartHourUtc and EndHourUtc MUST both be provided. - If EnableAutoUpgrade=false, StartHourUtc and EndHourUtc are ignored. - Wrap-around is supported (e.g., StartHourUtc=22, EndHourUtc=4 means 10pm-4am UTC). - Window must be ≥1 hour (StartHourUtc != EndHourUtc).
Parameters:
-
appliance_arn(ApplianceArn) –The Amazon Resource Name (ARN) of the appliance.
-
enable_auto_upgrade(bool) –Specifies whether automatic agent upgrades are enabled for the appliance.
Raises:
-
AccessDeniedException–The request was denied because you do not have permission to perform the requested operation.
-
ConflictException–The request conflicts with the current state of the specified resource.
-
InternalServerException–The request failed because of an internal server error.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was denied because the request rate is too high.
-
ValidationException–The request contains invalid parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup_external/_services/async_backup_external.py
1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 | |