describeJob method

Future<DescribeJobResult> describeJob({
  1. required String accountId,
  2. required String jobId,
})

Retrieves the configuration parameters and status for a Batch Operations job. For more information, see S3 Batch Operations in the Amazon Simple Storage Service Developer Guide.

Related actions include:

May throw BadRequestException. May throw TooManyRequestsException. May throw NotFoundException. May throw InternalServiceException.

Parameter accountId :

Parameter jobId : The ID for the job whose information you want to retrieve.

Implementation

Future<DescribeJobResult> describeJob({
  required String accountId,
  required String jobId,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  _s.validateStringLength(
    'accountId',
    accountId,
    0,
    64,
    isRequired: true,
  );
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    5,
    36,
    isRequired: true,
  );
  final headers = <String, String>{
    'x-amz-account-id': accountId.toString(),
  };
  final $result = await _protocol.send(
    method: 'GET',
    requestUri: '/v20180820/jobs/${Uri.encodeComponent(jobId)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return DescribeJobResult.fromXml($result.body);
}