deleteAdapter method

Future<void> deleteAdapter({
  1. required String adapterId,
})

Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerError. May throw InvalidParameterException. May throw ProvisionedThroughputExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter adapterId : A string containing a unique ID for the adapter to be deleted.

Implementation

Future<void> deleteAdapter({
  required String adapterId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Textract.DeleteAdapter'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AdapterId': adapterId,
    },
  );
}