deleteFilter method

Future<void> deleteFilter({
  1. required String filterArn,
})

Deletes a filter.

May throw InvalidInputException. May throw ResourceNotFoundException. May throw ResourceInUseException.

Parameter filterArn : The ARN of the filter to delete.

Implementation

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