describeEventTracker method

Future<DescribeEventTrackerResponse> describeEventTracker({
  1. required String eventTrackerArn,
})

Describes an event tracker. The response includes the trackingId and status of the event tracker. For more information on event trackers, see CreateEventTracker.

May throw InvalidInputException. May throw ResourceNotFoundException.

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

Implementation

Future<DescribeEventTrackerResponse> describeEventTracker({
  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.DescribeEventTracker'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'eventTrackerArn': eventTrackerArn,
    },
  );

  return DescribeEventTrackerResponse.fromJson(jsonResponse.body);
}