deleteEndpoint method
Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see Using Amazon SNS Mobile Push Notifications.
When you delete an endpoint that is also subscribed to a topic, then you must also unsubscribe the endpoint from the topic.
May throw InvalidParameterException. May throw InternalErrorException. May throw AuthorizationErrorException.
Parameter endpointArn
:
EndpointArn of endpoint to delete.
Implementation
Future<void> deleteEndpoint({
required String endpointArn,
}) async {
ArgumentError.checkNotNull(endpointArn, 'endpointArn');
final $request = <String, dynamic>{};
$request['EndpointArn'] = endpointArn;
await _protocol.send(
$request,
action: 'DeleteEndpoint',
version: '2010-03-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteEndpointInput'],
shapes: shapes,
);
}