Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.StorageGateway.UpdateGatewaySoftwareNow
Description
Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.
When you make this request, you get a 200 OK
success response
immediately. However, it might take some time for the update to
complete. You can call DescribeGatewayInformation to verify the gateway
is in the STATE_RUNNING
state.
A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing your Windows iSCSI settings and Customizing your Linux iSCSI settings, respectively.
Synopsis
- data UpdateGatewaySoftwareNow = UpdateGatewaySoftwareNow' {
- gatewayARN :: Text
- newUpdateGatewaySoftwareNow :: Text -> UpdateGatewaySoftwareNow
- updateGatewaySoftwareNow_gatewayARN :: Lens' UpdateGatewaySoftwareNow Text
- data UpdateGatewaySoftwareNowResponse = UpdateGatewaySoftwareNowResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newUpdateGatewaySoftwareNowResponse :: Int -> UpdateGatewaySoftwareNowResponse
- updateGatewaySoftwareNowResponse_gatewayARN :: Lens' UpdateGatewaySoftwareNowResponse (Maybe Text)
- updateGatewaySoftwareNowResponse_httpStatus :: Lens' UpdateGatewaySoftwareNowResponse Int
Creating a Request
data UpdateGatewaySoftwareNow Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway to update.
See: newUpdateGatewaySoftwareNow
smart constructor.
Constructors
UpdateGatewaySoftwareNow' | |
Fields
|
Instances
newUpdateGatewaySoftwareNow Source #
Create a value of UpdateGatewaySoftwareNow
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gatewayARN:UpdateGatewaySoftwareNow'
, updateGatewaySoftwareNow_gatewayARN
- Undocumented member.
Request Lenses
updateGatewaySoftwareNow_gatewayARN :: Lens' UpdateGatewaySoftwareNow Text Source #
Undocumented member.
Destructuring the Response
data UpdateGatewaySoftwareNowResponse Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway that was updated.
See: newUpdateGatewaySoftwareNowResponse
smart constructor.
Constructors
UpdateGatewaySoftwareNowResponse' | |
Fields
|
Instances
newUpdateGatewaySoftwareNowResponse Source #
Create a value of UpdateGatewaySoftwareNowResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gatewayARN:UpdateGatewaySoftwareNow'
, updateGatewaySoftwareNowResponse_gatewayARN
- Undocumented member.
$sel:httpStatus:UpdateGatewaySoftwareNowResponse'
, updateGatewaySoftwareNowResponse_httpStatus
- The response's http status code.
Response Lenses
updateGatewaySoftwareNowResponse_gatewayARN :: Lens' UpdateGatewaySoftwareNowResponse (Maybe Text) Source #
Undocumented member.
updateGatewaySoftwareNowResponse_httpStatus :: Lens' UpdateGatewaySoftwareNowResponse Int Source #
The response's http status code.