updateGatewaySoftwareNow method
Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.
May throw ResourceNotFoundException.
Parameter gatewayArn :
The Amazon Resource Name (ARN) of the gateway to be updated.
Implementation
Future<UpdateGatewaySoftwareNowOutput> updateGatewaySoftwareNow({
required String gatewayArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'BackupOnPremises_v20210101.UpdateGatewaySoftwareNow'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GatewayArn': gatewayArn,
},
);
return UpdateGatewaySoftwareNowOutput.fromJson(jsonResponse.body);
}