deleteAdapterVersion method

Future<void> deleteAdapterVersion({
  1. required String adapterId,
  2. required String adapterVersion,
})

Deletes an Amazon Textract adapter version. Requires that you specify both an AdapterId and a AdapterVersion. Deletes the adapter version specified by the AdapterId and the AdapterVersion.

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 version that will be deleted.

Parameter adapterVersion : Specifies the adapter version to be deleted.

Implementation

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