deletePlatformApplication method

Future<void> deletePlatformApplication({
  1. required String platformApplicationArn,
})

Deletes a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). For more information, see Using Amazon SNS Mobile Push Notifications.

May throw InvalidParameterException. May throw InternalErrorException. May throw AuthorizationErrorException.

Parameter platformApplicationArn : PlatformApplicationArn of platform application object to delete.

Implementation

Future<void> deletePlatformApplication({
  required String platformApplicationArn,
}) async {
  ArgumentError.checkNotNull(
      platformApplicationArn, 'platformApplicationArn');
  final $request = <String, dynamic>{};
  $request['PlatformApplicationArn'] = platformApplicationArn;
  await _protocol.send(
    $request,
    action: 'DeletePlatformApplication',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeletePlatformApplicationInput'],
    shapes: shapes,
  );
}