getSoftwareUpdates method

Future<GetSoftwareUpdatesResult> getSoftwareUpdates({
  1. required String jobId,
})

Returns an Amazon S3 presigned URL for an update file associated with a specified JobId.

May throw InvalidResourceException. May throw InvalidJobStateException.

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 {
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    39,
    39,
    isRequired: true,
  );
  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);
}