getSoftwareUpdates method
Returns an Amazon S3 presigned URL for an update file associated with a
specified JobId.
May throw InvalidJobStateException.
May throw InvalidResourceException.
Parameter jobId :
The ID for a job that you want to get the software update file for, for
example JID123e4567-e89b-12d3-a456-426655440000.
Implementation
Future<GetSoftwareUpdatesResult> getSoftwareUpdates({
required String jobId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSIESnowballJobManagementService.GetSoftwareUpdates'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
},
);
return GetSoftwareUpdatesResult.fromJson(jsonResponse.body);
}