deleteEndpoint method

Future<DeleteEndpointResponse> deleteEndpoint({
  1. required String applicationId,
  2. required String endpointId,
})

Deletes an endpoint from 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.

Parameter endpointId : The unique identifier for the endpoint.

Implementation

Future<DeleteEndpointResponse> deleteEndpoint({
  required String applicationId,
  required String endpointId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(endpointId, 'endpointId');
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/apps/${Uri.encodeComponent(applicationId)}/endpoints/${Uri.encodeComponent(endpointId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DeleteEndpointResponse(
    endpointResponse: EndpointResponse.fromJson($json),
  );
}