deleteEventTracker method

Future<void> deleteEventTracker({
  1. required String eventTrackerArn,
})

Deletes the event tracker. Does not delete the event-interactions dataset from the associated dataset group. For more information on event trackers, see CreateEventTracker.

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

Parameter eventTrackerArn : The Amazon Resource Name (ARN) of the event tracker to delete.

Implementation

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