deleteEventStream method

Future<DeleteEventStreamResponse> deleteEventStream({
  1. required String applicationId,
})

Deletes the event stream for an application.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Parameter applicationId : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Implementation

Future<DeleteEventStreamResponse> deleteEventStream({
  required String applicationId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'DELETE',
    requestUri: '/v1/apps/${Uri.encodeComponent(applicationId)}/eventstream',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DeleteEventStreamResponse(
    eventStream: EventStream.fromJson($json),
  );
}