deleteTerminology method

Future<void> deleteTerminology({
  1. required String name,
})

A synchronous action that deletes a custom terminology.

May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw InvalidParameterValueException. May throw InternalServerException.

Parameter name : The name of the custom terminology being deleted.

Implementation

Future<void> deleteTerminology({
  required String name,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSShineFrontendService_20170701.DeleteTerminology'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
    },
  );
}