updateGatewaySoftwareNow
inline suspend fun StorageGatewayClient.updateGatewaySoftwareNow(crossinline block: UpdateGatewaySoftwareNowRequest.Builder.() -> Unit): UpdateGatewaySoftwareNowResponse
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.
Samples
fun main() {
//sampleStart
// Updates the gateway virtual machine (VM) software. The request immediately triggers the software
// update.
val resp = storageGatewayClient.updateGatewaySoftwareNow {
gatewayArn = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
}
//sampleEnd
}