getTransformerJob method

Future<GetTransformerJobResponse> getTransformerJob({
  1. required String transformerId,
  2. required String transformerJobId,
})

Returns the details of the transformer run, based on the Transformer job ID.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter transformerId : Specifies the system-assigned unique identifier for the transformer.

Parameter transformerJobId : Specifies the unique, system-generated identifier for a transformer run.

Implementation

Future<GetTransformerJobResponse> getTransformerJob({
  required String transformerId,
  required String transformerJobId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'B2BI.GetTransformerJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'transformerId': transformerId,
      'transformerJobId': transformerJobId,
    },
  );

  return GetTransformerJobResponse.fromJson(jsonResponse.body);
}