/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.sns; import java.util.concurrent.Future; import com.amazonaws.AmazonClientException; import com.amazonaws.AmazonServiceException; import com.amazonaws.handlers.AsyncHandler; import com.amazonaws.services.sns.model.*; /** * Interface for accessing Amazon Simple Notification Service asynchronously. * Amazon Simple Notification Service *

* Amazon Simple Notification Service (Amazon SNS) is a web service that enables * you to build distributed web-enabled applications. Applications can use * Amazon SNS to easily push real-time notification messages to interested * subscribers over multiple delivery protocols. For more information about this * product see the Amazon SNS product * page. For detailed information about Amazon SNS features and their * associated API calls, see the Amazon SNS Developer * Guide. *

*

* For information on the permissions you need to use this API, see Identity and access management in Amazon SNS in the Amazon SNS * Developer Guide. *

*

* We also provide SDKs that enable you to access Amazon SNS from your preferred * programming language. The SDKs contain functionality that automatically takes * care of tasks such as: cryptographically signing your service requests, * retrying requests, and handling error responses. For a list of available * SDKs, go to Tools for Amazon Web * Services. *

**/ public interface AmazonSNSAsync extends AmazonSNS { /** *

* Adds a statement to a topic's access control policy, granting access for * the specified Amazon Web Services accounts to the specified actions. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param addPermissionRequest * @return A Java Future object containing the response from the * AddPermission service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future addPermissionAsync(AddPermissionRequest addPermissionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Adds a statement to a topic's access control policy, granting access for * the specified Amazon Web Services accounts to the specified actions. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param addPermissionRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * AddPermission service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future addPermissionAsync(AddPermissionRequest addPermissionRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Accepts a phone number and indicates whether the phone holder has opted * out of receiving SMS messages from your Amazon Web Services account. You * cannot send SMS messages to a number that is opted out. *

*

* To resume sending messages, you can opt in the number by using the * OptInPhoneNumber action. *

* * @param checkIfPhoneNumberIsOptedOutRequest

* The input for the CheckIfPhoneNumberIsOptedOut * action. *

* @return A Java Future object containing the response from the * CheckIfPhoneNumberIsOptedOut service method, as returned by * Amazon Simple Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future checkIfPhoneNumberIsOptedOutAsync( CheckIfPhoneNumberIsOptedOutRequest checkIfPhoneNumberIsOptedOutRequest) throws AmazonServiceException, AmazonClientException; /** *

* Accepts a phone number and indicates whether the phone holder has opted * out of receiving SMS messages from your Amazon Web Services account. You * cannot send SMS messages to a number that is opted out. *

*

* To resume sending messages, you can opt in the number by using the * OptInPhoneNumber action. *

* * @param checkIfPhoneNumberIsOptedOutRequest

* The input for the CheckIfPhoneNumberIsOptedOut * action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CheckIfPhoneNumberIsOptedOut service method, as returned by * Amazon Simple Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future checkIfPhoneNumberIsOptedOutAsync( CheckIfPhoneNumberIsOptedOutRequest checkIfPhoneNumberIsOptedOutRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Verifies an endpoint owner's intent to receive messages by validating the * token sent to the endpoint by an earlier Subscribe action. * If the token is valid, the action creates a new subscription and returns * its Amazon Resource Name (ARN). This call requires an AWS signature only * when the AuthenticateOnUnsubscribe flag is set to "true". *

* * @param confirmSubscriptionRequest

* Input for ConfirmSubscription action. *

* @return A Java Future object containing the response from the * ConfirmSubscription service method, as returned by Amazon Simple * Notification Service. * @throws SubscriptionLimitExceededException * @throws InvalidParameterException * @throws NotFoundException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws FilterPolicyLimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future confirmSubscriptionAsync( ConfirmSubscriptionRequest confirmSubscriptionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Verifies an endpoint owner's intent to receive messages by validating the * token sent to the endpoint by an earlier Subscribe action. * If the token is valid, the action creates a new subscription and returns * its Amazon Resource Name (ARN). This call requires an AWS signature only * when the AuthenticateOnUnsubscribe flag is set to "true". *

* * @param confirmSubscriptionRequest

* Input for ConfirmSubscription action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ConfirmSubscription service method, as returned by Amazon Simple * Notification Service. * @throws SubscriptionLimitExceededException * @throws InvalidParameterException * @throws NotFoundException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws FilterPolicyLimitExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future confirmSubscriptionAsync( ConfirmSubscriptionRequest confirmSubscriptionRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a platform application object for one of the supported push * notification services, such as APNS and GCM (Firebase Cloud Messaging), * to which devices and mobile apps may register. You must specify * PlatformPrincipal and PlatformCredential * attributes when using the CreatePlatformApplication action. *

*

* PlatformPrincipal and PlatformCredential are * received from the notification service. *

*
    *
  • *

    * For ADM, PlatformPrincipal is * client id and PlatformCredential is * client secret. *

    *
  • *
  • *

    * For Baidu, PlatformPrincipal is * API key and PlatformCredential is * secret key. *

    *
  • *
  • *

    * For APNS and APNS_SANDBOX using certificate * credentials, PlatformPrincipal is * SSL certificate and PlatformCredential is * private key. *

    *
  • *
  • *

    * For APNS and APNS_SANDBOX using token * credentials, PlatformPrincipal is * signing key ID and PlatformCredential is * signing key. *

    *
  • *
  • *

    * For GCM (Firebase Cloud Messaging), there is no * PlatformPrincipal and the PlatformCredential is * API key. *

    *
  • *
  • *

    * For MPNS, PlatformPrincipal is * TLS certificate and PlatformCredential is * private key. *

    *
  • *
  • *

    * For WNS, PlatformPrincipal is * Package Security Identifier and * PlatformCredential is secret key. *

    *
  • *
*

* You can use the returned PlatformApplicationArn as an * attribute for the CreatePlatformEndpoint action. *

* * @param createPlatformApplicationRequest

* Input for CreatePlatformApplication action. *

* @return A Java Future object containing the response from the * CreatePlatformApplication service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createPlatformApplicationAsync( CreatePlatformApplicationRequest createPlatformApplicationRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a platform application object for one of the supported push * notification services, such as APNS and GCM (Firebase Cloud Messaging), * to which devices and mobile apps may register. You must specify * PlatformPrincipal and PlatformCredential * attributes when using the CreatePlatformApplication action. *

*

* PlatformPrincipal and PlatformCredential are * received from the notification service. *

*
    *
  • *

    * For ADM, PlatformPrincipal is * client id and PlatformCredential is * client secret. *

    *
  • *
  • *

    * For Baidu, PlatformPrincipal is * API key and PlatformCredential is * secret key. *

    *
  • *
  • *

    * For APNS and APNS_SANDBOX using certificate * credentials, PlatformPrincipal is * SSL certificate and PlatformCredential is * private key. *

    *
  • *
  • *

    * For APNS and APNS_SANDBOX using token * credentials, PlatformPrincipal is * signing key ID and PlatformCredential is * signing key. *

    *
  • *
  • *

    * For GCM (Firebase Cloud Messaging), there is no * PlatformPrincipal and the PlatformCredential is * API key. *

    *
  • *
  • *

    * For MPNS, PlatformPrincipal is * TLS certificate and PlatformCredential is * private key. *

    *
  • *
  • *

    * For WNS, PlatformPrincipal is * Package Security Identifier and * PlatformCredential is secret key. *

    *
  • *
*

* You can use the returned PlatformApplicationArn as an * attribute for the CreatePlatformEndpoint action. *

* * @param createPlatformApplicationRequest

* Input for CreatePlatformApplication action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreatePlatformApplication service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createPlatformApplicationAsync( CreatePlatformApplicationRequest createPlatformApplicationRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates an endpoint for a device and mobile app on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. CreatePlatformEndpoint requires the * PlatformApplicationArn that is returned from * CreatePlatformApplication. You can use the returned * EndpointArn to send a message to a mobile app or by the * Subscribe action for subscription to a topic. The * CreatePlatformEndpoint action is idempotent, so if the * requester already owns an endpoint with the same device token and * attributes, that endpoint's ARN is returned without creating a new * endpoint. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* When using CreatePlatformEndpoint with Baidu, two attributes * must be provided: ChannelId and UserId. The token field must also contain * the ChannelId. For more information, see Creating an Amazon SNS Endpoint for Baidu. *

* * @param createPlatformEndpointRequest

* Input for CreatePlatformEndpoint action. *

* @return A Java Future object containing the response from the * CreatePlatformEndpoint service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createPlatformEndpointAsync( CreatePlatformEndpointRequest createPlatformEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates an endpoint for a device and mobile app on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. CreatePlatformEndpoint requires the * PlatformApplicationArn that is returned from * CreatePlatformApplication. You can use the returned * EndpointArn to send a message to a mobile app or by the * Subscribe action for subscription to a topic. The * CreatePlatformEndpoint action is idempotent, so if the * requester already owns an endpoint with the same device token and * attributes, that endpoint's ARN is returned without creating a new * endpoint. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* When using CreatePlatformEndpoint with Baidu, two attributes * must be provided: ChannelId and UserId. The token field must also contain * the ChannelId. For more information, see Creating an Amazon SNS Endpoint for Baidu. *

* * @param createPlatformEndpointRequest

* Input for CreatePlatformEndpoint action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreatePlatformEndpoint service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createPlatformEndpointAsync( CreatePlatformEndpointRequest createPlatformEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Adds a destination phone number to an Amazon Web Services account in the * SMS sandbox and sends a one-time password (OTP) to that phone number. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param createSMSSandboxPhoneNumberRequest * @return A Java Future object containing the response from the * CreateSMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws OptedOutException * @throws UserErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createSMSSandboxPhoneNumberAsync( CreateSMSSandboxPhoneNumberRequest createSMSSandboxPhoneNumberRequest) throws AmazonServiceException, AmazonClientException; /** *

* Adds a destination phone number to an Amazon Web Services account in the * SMS sandbox and sends a one-time password (OTP) to that phone number. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param createSMSSandboxPhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateSMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws OptedOutException * @throws UserErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createSMSSandboxPhoneNumberAsync( CreateSMSSandboxPhoneNumberRequest createSMSSandboxPhoneNumberRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a topic to which notifications can be published. Users can create * at most 100,000 standard topics (at most 1,000 FIFO topics). For more * information, see Creating an Amazon SNS topic in the Amazon SNS Developer * Guide. This action is idempotent, so if the requester already owns a * topic with the specified name, that topic's ARN is returned without * creating a new topic. *

* * @param createTopicRequest

* Input for CreateTopic action. *

* @return A Java Future object containing the response from the CreateTopic * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws TopicLimitExceededException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createTopicAsync(CreateTopicRequest createTopicRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a topic to which notifications can be published. Users can create * at most 100,000 standard topics (at most 1,000 FIFO topics). For more * information, see Creating an Amazon SNS topic in the Amazon SNS Developer * Guide. This action is idempotent, so if the requester already owns a * topic with the specified name, that topic's ARN is returned without * creating a new topic. *

* * @param createTopicRequest

* Input for CreateTopic action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the CreateTopic * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws TopicLimitExceededException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future createTopicAsync(CreateTopicRequest createTopicRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* 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. *

* * @param deleteEndpointRequest

* Input for DeleteEndpoint action. *

* @return A Java Future object containing the response from the * DeleteEndpoint service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteEndpointAsync(DeleteEndpointRequest deleteEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* 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. *

* * @param deleteEndpointRequest

* Input for DeleteEndpoint action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteEndpoint service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteEndpointAsync(DeleteEndpointRequest deleteEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* 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. *

* * @param deletePlatformApplicationRequest

* Input for DeletePlatformApplication action. *

* @return A Java Future object containing the response from the * DeletePlatformApplication service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deletePlatformApplicationAsync( DeletePlatformApplicationRequest deletePlatformApplicationRequest) throws AmazonServiceException, AmazonClientException; /** *

* 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. *

* * @param deletePlatformApplicationRequest

* Input for DeletePlatformApplication action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeletePlatformApplication service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deletePlatformApplicationAsync( DeletePlatformApplicationRequest deletePlatformApplicationRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes an Amazon Web Services account's verified or pending phone number * from the SMS sandbox. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param deleteSMSSandboxPhoneNumberRequest * @return A Java Future object containing the response from the * DeleteSMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws UserErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteSMSSandboxPhoneNumberAsync( DeleteSMSSandboxPhoneNumberRequest deleteSMSSandboxPhoneNumberRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes an Amazon Web Services account's verified or pending phone number * from the SMS sandbox. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param deleteSMSSandboxPhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteSMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws UserErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteSMSSandboxPhoneNumberAsync( DeleteSMSSandboxPhoneNumberRequest deleteSMSSandboxPhoneNumberRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. *

* * @param deleteTopicRequest * @return A Java Future object containing the response from the DeleteTopic * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws StaleTagException * @throws TagPolicyException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteTopicAsync(DeleteTopicRequest deleteTopicRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. *

* * @param deleteTopicRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the DeleteTopic * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws StaleTagException * @throws TagPolicyException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future deleteTopicAsync(DeleteTopicRequest deleteTopicRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the specified inline DataProtectionPolicy document * that is stored in the specified Amazon SNS topic. *

* * @param getDataProtectionPolicyRequest * @return A Java Future object containing the response from the * GetDataProtectionPolicy service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getDataProtectionPolicyAsync( GetDataProtectionPolicyRequest getDataProtectionPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the specified inline DataProtectionPolicy document * that is stored in the specified Amazon SNS topic. *

* * @param getDataProtectionPolicyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetDataProtectionPolicy service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getDataProtectionPolicyAsync( GetDataProtectionPolicyRequest getDataProtectionPolicyRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the endpoint attributes for a device on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. For more information, see Using * Amazon SNS Mobile Push Notifications. *

* * @param getEndpointAttributesRequest

* Input for GetEndpointAttributes action. *

* @return A Java Future object containing the response from the * GetEndpointAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getEndpointAttributesAsync( GetEndpointAttributesRequest getEndpointAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the endpoint attributes for a device on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. For more information, see Using * Amazon SNS Mobile Push Notifications. *

* * @param getEndpointAttributesRequest

* Input for GetEndpointAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetEndpointAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getEndpointAttributesAsync( GetEndpointAttributesRequest getEndpointAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

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

* * @param getPlatformApplicationAttributesRequest

* Input for GetPlatformApplicationAttributes action. *

* @return A Java Future object containing the response from the * GetPlatformApplicationAttributes service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getPlatformApplicationAttributesAsync( GetPlatformApplicationAttributesRequest getPlatformApplicationAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

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

* * @param getPlatformApplicationAttributesRequest

* Input for GetPlatformApplicationAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetPlatformApplicationAttributes service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getPlatformApplicationAttributesAsync( GetPlatformApplicationAttributesRequest getPlatformApplicationAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns the settings for sending SMS messages from your Amazon Web * Services account. *

*

* These settings are set with the SetSMSAttributes action. *

* * @param getSMSAttributesRequest

* The input for the GetSMSAttributes request. *

* @return A Java Future object containing the response from the * GetSMSAttributes service method, as returned by Amazon Simple * Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSMSAttributesAsync( GetSMSAttributesRequest getSMSAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns the settings for sending SMS messages from your Amazon Web * Services account. *

*

* These settings are set with the SetSMSAttributes action. *

* * @param getSMSAttributesRequest

* The input for the GetSMSAttributes request. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetSMSAttributes service method, as returned by Amazon Simple * Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSMSAttributesAsync( GetSMSAttributesRequest getSMSAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the SMS sandbox status for the calling Amazon Web Services * account in the target Amazon Web Services Region. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param getSMSSandboxAccountStatusRequest * @return A Java Future object containing the response from the * GetSMSSandboxAccountStatus service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSMSSandboxAccountStatusAsync( GetSMSSandboxAccountStatusRequest getSMSSandboxAccountStatusRequest) throws AmazonServiceException, AmazonClientException; /** *

* Retrieves the SMS sandbox status for the calling Amazon Web Services * account in the target Amazon Web Services Region. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param getSMSSandboxAccountStatusRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetSMSSandboxAccountStatus service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSMSSandboxAccountStatusAsync( GetSMSSandboxAccountStatusRequest getSMSSandboxAccountStatusRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns all of the properties of a subscription. *

* * @param getSubscriptionAttributesRequest

* Input for GetSubscriptionAttributes. *

* @return A Java Future object containing the response from the * GetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSubscriptionAttributesAsync( GetSubscriptionAttributesRequest getSubscriptionAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns all of the properties of a subscription. *

* * @param getSubscriptionAttributesRequest

* Input for GetSubscriptionAttributes. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getSubscriptionAttributesAsync( GetSubscriptionAttributesRequest getSubscriptionAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. *

* * @param getTopicAttributesRequest

* Input for GetTopicAttributes action. *

* @return A Java Future object containing the response from the * GetTopicAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getTopicAttributesAsync( GetTopicAttributesRequest getTopicAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. *

* * @param getTopicAttributesRequest

* Input for GetTopicAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * GetTopicAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future getTopicAttributesAsync( GetTopicAttributesRequest getTopicAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Lists the endpoints and endpoint attributes for devices in a supported * push notification service, such as GCM (Firebase Cloud Messaging) and * APNS. The results for ListEndpointsByPlatformApplication are * paginated and return a limited list of endpoints, up to 100. If * additional records are available after the first page results, then a * NextToken string will be returned. To receive the next page, you call * ListEndpointsByPlatformApplication again using the NextToken * string received from the previous call. When there are no more records to * return, NextToken will be null. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listEndpointsByPlatformApplicationRequest

* Input for ListEndpointsByPlatformApplication action. *

* @return A Java Future object containing the response from the * ListEndpointsByPlatformApplication service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listEndpointsByPlatformApplicationAsync( ListEndpointsByPlatformApplicationRequest listEndpointsByPlatformApplicationRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the endpoints and endpoint attributes for devices in a supported * push notification service, such as GCM (Firebase Cloud Messaging) and * APNS. The results for ListEndpointsByPlatformApplication are * paginated and return a limited list of endpoints, up to 100. If * additional records are available after the first page results, then a * NextToken string will be returned. To receive the next page, you call * ListEndpointsByPlatformApplication again using the NextToken * string received from the previous call. When there are no more records to * return, NextToken will be null. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listEndpointsByPlatformApplicationRequest

* Input for ListEndpointsByPlatformApplication action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEndpointsByPlatformApplication service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listEndpointsByPlatformApplicationAsync( ListEndpointsByPlatformApplicationRequest listEndpointsByPlatformApplicationRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Lists the calling Amazon Web Services account's dedicated origination * numbers and their metadata. For more information about origination * numbers, see Origination numbers in the Amazon SNS Developer Guide. *

* * @param listOriginationNumbersRequest * @return A Java Future object containing the response from the * ListOriginationNumbers service method, as returned by Amazon * Simple Notification Service. * @throws InternalErrorException * @throws AuthorizationErrorException * @throws ThrottledException * @throws InvalidParameterException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listOriginationNumbersAsync( ListOriginationNumbersRequest listOriginationNumbersRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the calling Amazon Web Services account's dedicated origination * numbers and their metadata. For more information about origination * numbers, see Origination numbers in the Amazon SNS Developer Guide. *

* * @param listOriginationNumbersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListOriginationNumbers service method, as returned by Amazon * Simple Notification Service. * @throws InternalErrorException * @throws AuthorizationErrorException * @throws ThrottledException * @throws InvalidParameterException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listOriginationNumbersAsync( ListOriginationNumbersRequest listOriginationNumbersRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of phone numbers that are opted out, meaning you cannot * send SMS messages to them. *

*

* The results for ListPhoneNumbersOptedOut are paginated, and * each page returns up to 100 phone numbers. If additional phone numbers * are available after the first page of results, then a * NextToken string will be returned. To receive the next page, * you call ListPhoneNumbersOptedOut again using the * NextToken string received from the previous call. When there * are no more records to return, NextToken will be null. *

* * @param listPhoneNumbersOptedOutRequest

* The input for the ListPhoneNumbersOptedOut * action. *

* @return A Java Future object containing the response from the * ListPhoneNumbersOptedOut service method, as returned by Amazon * Simple Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listPhoneNumbersOptedOutAsync( ListPhoneNumbersOptedOutRequest listPhoneNumbersOptedOutRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of phone numbers that are opted out, meaning you cannot * send SMS messages to them. *

*

* The results for ListPhoneNumbersOptedOut are paginated, and * each page returns up to 100 phone numbers. If additional phone numbers * are available after the first page of results, then a * NextToken string will be returned. To receive the next page, * you call ListPhoneNumbersOptedOut again using the * NextToken string received from the previous call. When there * are no more records to return, NextToken will be null. *

* * @param listPhoneNumbersOptedOutRequest

* The input for the ListPhoneNumbersOptedOut * action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListPhoneNumbersOptedOut service method, as returned by Amazon * Simple Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listPhoneNumbersOptedOutAsync( ListPhoneNumbersOptedOutRequest listPhoneNumbersOptedOutRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Lists the platform application objects for the supported push * notification services, such as APNS and GCM (Firebase Cloud Messaging). * The results for ListPlatformApplications are paginated and * return a limited list of applications, up to 100. If additional records * are available after the first page results, then a NextToken string will * be returned. To receive the next page, you call * ListPlatformApplications using the NextToken string received * from the previous call. When there are no more records to return, * NextToken will be null. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* This action is throttled at 15 transactions per second (TPS). *

* * @param listPlatformApplicationsRequest

* Input for ListPlatformApplications action. *

* @return A Java Future object containing the response from the * ListPlatformApplications service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listPlatformApplicationsAsync( ListPlatformApplicationsRequest listPlatformApplicationsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the platform application objects for the supported push * notification services, such as APNS and GCM (Firebase Cloud Messaging). * The results for ListPlatformApplications are paginated and * return a limited list of applications, up to 100. If additional records * are available after the first page results, then a NextToken string will * be returned. To receive the next page, you call * ListPlatformApplications using the NextToken string received * from the previous call. When there are no more records to return, * NextToken will be null. For more information, see Using * Amazon SNS Mobile Push Notifications. *

*

* This action is throttled at 15 transactions per second (TPS). *

* * @param listPlatformApplicationsRequest

* Input for ListPlatformApplications action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListPlatformApplications service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listPlatformApplicationsAsync( ListPlatformApplicationsRequest listPlatformApplicationsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Lists the calling Amazon Web Services account's current verified and * pending destination phone numbers in the SMS sandbox. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param listSMSSandboxPhoneNumbersRequest * @return A Java Future object containing the response from the * ListSMSSandboxPhoneNumbers service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSMSSandboxPhoneNumbersAsync( ListSMSSandboxPhoneNumbersRequest listSMSSandboxPhoneNumbersRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the calling Amazon Web Services account's current verified and * pending destination phone numbers in the SMS sandbox. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param listSMSSandboxPhoneNumbersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListSMSSandboxPhoneNumbers service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSMSSandboxPhoneNumbersAsync( ListSMSSandboxPhoneNumbersRequest listSMSSandboxPhoneNumbersRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the requester's subscriptions. Each call returns a * limited list of subscriptions, up to 100. If there are more * subscriptions, a NextToken is also returned. Use the * NextToken parameter in a new ListSubscriptions * call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listSubscriptionsRequest

* Input for ListSubscriptions action. *

* @return A Java Future object containing the response from the * ListSubscriptions service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSubscriptionsAsync( ListSubscriptionsRequest listSubscriptionsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the requester's subscriptions. Each call returns a * limited list of subscriptions, up to 100. If there are more * subscriptions, a NextToken is also returned. Use the * NextToken parameter in a new ListSubscriptions * call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listSubscriptionsRequest

* Input for ListSubscriptions action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListSubscriptions service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSubscriptionsAsync( ListSubscriptionsRequest listSubscriptionsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the subscriptions to a specific topic. Each call * returns a limited list of subscriptions, up to 100. If there are more * subscriptions, a NextToken is also returned. Use the * NextToken parameter in a new * ListSubscriptionsByTopic call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listSubscriptionsByTopicRequest

* Input for ListSubscriptionsByTopic action. *

* @return A Java Future object containing the response from the * ListSubscriptionsByTopic service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSubscriptionsByTopicAsync( ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the subscriptions to a specific topic. Each call * returns a limited list of subscriptions, up to 100. If there are more * subscriptions, a NextToken is also returned. Use the * NextToken parameter in a new * ListSubscriptionsByTopic call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listSubscriptionsByTopicRequest

* Input for ListSubscriptionsByTopic action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListSubscriptionsByTopic service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listSubscriptionsByTopicAsync( ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* List all tags added to the specified Amazon SNS topic. For an overview, * see Amazon SNS * Tags in the Amazon Simple Notification Service Developer * Guide. *

* * @param listTagsForResourceRequest * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon Simple * Notification Service. * @throws ResourceNotFoundException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listTagsForResourceAsync( ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* List all tags added to the specified Amazon SNS topic. For an overview, * see Amazon SNS * Tags in the Amazon Simple Notification Service Developer * Guide. *

* * @param listTagsForResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon Simple * Notification Service. * @throws ResourceNotFoundException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listTagsForResourceAsync( ListTagsForResourceRequest listTagsForResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the requester's topics. Each call returns a limited * list of topics, up to 100. If there are more topics, a * NextToken is also returned. Use the NextToken * parameter in a new ListTopics call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listTopicsRequest * @return A Java Future object containing the response from the ListTopics * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listTopicsAsync(ListTopicsRequest listTopicsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns a list of the requester's topics. Each call returns a limited * list of topics, up to 100. If there are more topics, a * NextToken is also returned. Use the NextToken * parameter in a new ListTopics call to get further results. *

*

* This action is throttled at 30 transactions per second (TPS). *

* * @param listTopicsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the ListTopics * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future listTopicsAsync(ListTopicsRequest listTopicsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Use this request to opt in a phone number that is opted out, which * enables you to resume sending SMS messages to the number. *

*

* You can opt in a phone number only once every 30 days. *

* * @param optInPhoneNumberRequest

* Input for the OptInPhoneNumber action. *

* @return A Java Future object containing the response from the * OptInPhoneNumber service method, as returned by Amazon Simple * Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future optInPhoneNumberAsync( OptInPhoneNumberRequest optInPhoneNumberRequest) throws AmazonServiceException, AmazonClientException; /** *

* Use this request to opt in a phone number that is opted out, which * enables you to resume sending SMS messages to the number. *

*

* You can opt in a phone number only once every 30 days. *

* * @param optInPhoneNumberRequest

* Input for the OptInPhoneNumber action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * OptInPhoneNumber service method, as returned by Amazon Simple * Notification Service. * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws InvalidParameterException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future optInPhoneNumberAsync( OptInPhoneNumberRequest optInPhoneNumberRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Sends a message to an Amazon SNS topic, a text message (SMS message) * directly to a phone number, or a message to a mobile platform endpoint * (when you specify the TargetArn). *

*

* If you send a message to a topic, Amazon SNS delivers the message to each * endpoint that is subscribed to the topic. The format of the message * depends on the notification protocol for each subscribed endpoint. *

*

* When a messageId is returned, the message is saved and * Amazon SNS immediately delivers it to subscribers. *

*

* To use the Publish action for publishing a message to a * mobile endpoint, such as an app on a Kindle device or mobile phone, you * must specify the EndpointArn for the TargetArn parameter. The EndpointArn * is returned when making a call with the * CreatePlatformEndpoint action. *

*

* For more information about formatting messages, see Send Custom Platform-Specific Payloads in Messages to Mobile * Devices. *

* *

* You can publish messages only to topics and endpoints in the same Amazon * Web Services Region. *

*
* * @param publishRequest

* Input for Publish action. *

* @return A Java Future object containing the response from the Publish * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InvalidParameterValueException * @throws InternalErrorException * @throws NotFoundException * @throws EndpointDisabledException * @throws PlatformApplicationDisabledException * @throws AuthorizationErrorException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException * @throws KMSAccessDeniedException * @throws InvalidSecurityException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future publishAsync(PublishRequest publishRequest) throws AmazonServiceException, AmazonClientException; /** *

* Sends a message to an Amazon SNS topic, a text message (SMS message) * directly to a phone number, or a message to a mobile platform endpoint * (when you specify the TargetArn). *

*

* If you send a message to a topic, Amazon SNS delivers the message to each * endpoint that is subscribed to the topic. The format of the message * depends on the notification protocol for each subscribed endpoint. *

*

* When a messageId is returned, the message is saved and * Amazon SNS immediately delivers it to subscribers. *

*

* To use the Publish action for publishing a message to a * mobile endpoint, such as an app on a Kindle device or mobile phone, you * must specify the EndpointArn for the TargetArn parameter. The EndpointArn * is returned when making a call with the * CreatePlatformEndpoint action. *

*

* For more information about formatting messages, see Send Custom Platform-Specific Payloads in Messages to Mobile * Devices. *

* *

* You can publish messages only to topics and endpoints in the same Amazon * Web Services Region. *

*
* * @param publishRequest

* Input for Publish action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the Publish * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InvalidParameterValueException * @throws InternalErrorException * @throws NotFoundException * @throws EndpointDisabledException * @throws PlatformApplicationDisabledException * @throws AuthorizationErrorException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException * @throws KMSAccessDeniedException * @throws InvalidSecurityException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future publishAsync(PublishRequest publishRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Publishes up to ten messages to the specified topic. This is a batch * version of Publish. For FIFO topics, multiple messages * within a single batch are published in the order they are sent, and * messages are deduplicated within the batch and across batches for 5 * minutes. *

*

* The result of publishing each message is reported individually in the * response. Because the batch request can result in a combination of * successful and unsuccessful actions, you should check for batch errors * even when the call returns an HTTP status code of 200. *

*

* The maximum allowed individual message size and the maximum total payload * size (the sum of the individual lengths of all of the batched messages) * are both 256 KB (262,144 bytes). *

*

* Some actions take lists of parameters. These lists are specified using * the param.n notation. Values of n are integers * starting from 1. For example, a parameter list with two elements looks * like this: *

*

* &AttributeName.1=first *

*

* &AttributeName.2=second *

*

* If you send a batch message to a topic, Amazon SNS publishes the batch * message to each endpoint that is subscribed to the topic. The format of * the batch message depends on the notification protocol for each * subscribed endpoint. *

*

* When a messageId is returned, the batch message is saved and * Amazon SNS immediately delivers the message to subscribers. *

* * @param publishBatchRequest * @return A Java Future object containing the response from the * PublishBatch service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InvalidParameterValueException * @throws InternalErrorException * @throws NotFoundException * @throws EndpointDisabledException * @throws PlatformApplicationDisabledException * @throws AuthorizationErrorException * @throws BatchEntryIdsNotDistinctException * @throws BatchRequestTooLongException * @throws EmptyBatchRequestException * @throws InvalidBatchEntryIdException * @throws TooManyEntriesInBatchRequestException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException * @throws KMSAccessDeniedException * @throws InvalidSecurityException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future publishBatchAsync(PublishBatchRequest publishBatchRequest) throws AmazonServiceException, AmazonClientException; /** *

* Publishes up to ten messages to the specified topic. This is a batch * version of Publish. For FIFO topics, multiple messages * within a single batch are published in the order they are sent, and * messages are deduplicated within the batch and across batches for 5 * minutes. *

*

* The result of publishing each message is reported individually in the * response. Because the batch request can result in a combination of * successful and unsuccessful actions, you should check for batch errors * even when the call returns an HTTP status code of 200. *

*

* The maximum allowed individual message size and the maximum total payload * size (the sum of the individual lengths of all of the batched messages) * are both 256 KB (262,144 bytes). *

*

* Some actions take lists of parameters. These lists are specified using * the param.n notation. Values of n are integers * starting from 1. For example, a parameter list with two elements looks * like this: *

*

* &AttributeName.1=first *

*

* &AttributeName.2=second *

*

* If you send a batch message to a topic, Amazon SNS publishes the batch * message to each endpoint that is subscribed to the topic. The format of * the batch message depends on the notification protocol for each * subscribed endpoint. *

*

* When a messageId is returned, the batch message is saved and * Amazon SNS immediately delivers the message to subscribers. *

* * @param publishBatchRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * PublishBatch service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InvalidParameterValueException * @throws InternalErrorException * @throws NotFoundException * @throws EndpointDisabledException * @throws PlatformApplicationDisabledException * @throws AuthorizationErrorException * @throws BatchEntryIdsNotDistinctException * @throws BatchRequestTooLongException * @throws EmptyBatchRequestException * @throws InvalidBatchEntryIdException * @throws TooManyEntriesInBatchRequestException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException * @throws KMSAccessDeniedException * @throws InvalidSecurityException * @throws ValidationException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future publishBatchAsync(PublishBatchRequest publishBatchRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Adds or updates an inline policy document that is stored in the specified * Amazon SNS topic. *

* * @param putDataProtectionPolicyRequest * @return A Java Future object containing the response from the * PutDataProtectionPolicy service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future putDataProtectionPolicyAsync( PutDataProtectionPolicyRequest putDataProtectionPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Adds or updates an inline policy document that is stored in the specified * Amazon SNS topic. *

* * @param putDataProtectionPolicyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * PutDataProtectionPolicy service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future putDataProtectionPolicyAsync( PutDataProtectionPolicyRequest putDataProtectionPolicyRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Removes a statement from a topic's access control policy. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param removePermissionRequest

* Input for RemovePermission action. *

* @return A Java Future object containing the response from the * RemovePermission service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future removePermissionAsync(RemovePermissionRequest removePermissionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Removes a statement from a topic's access control policy. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param removePermissionRequest

* Input for RemovePermission action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * RemovePermission service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future removePermissionAsync(RemovePermissionRequest removePermissionRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Sets the attributes for an endpoint for a device on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. For more information, see Using * Amazon SNS Mobile Push Notifications. *

* * @param setEndpointAttributesRequest

* Input for SetEndpointAttributes action. *

* @return A Java Future object containing the response from the * SetEndpointAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setEndpointAttributesAsync( SetEndpointAttributesRequest setEndpointAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Sets the attributes for an endpoint for a device on one of the supported * push notification services, such as GCM (Firebase Cloud Messaging) and * APNS. For more information, see Using * Amazon SNS Mobile Push Notifications. *

* * @param setEndpointAttributesRequest

* Input for SetEndpointAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * SetEndpointAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setEndpointAttributesAsync( SetEndpointAttributesRequest setEndpointAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Sets the attributes of the platform application object for the supported * push notification services, such as APNS and GCM (Firebase Cloud * Messaging). For more information, see Using * Amazon SNS Mobile Push Notifications. For information on configuring * attributes for message delivery status, see Using Amazon SNS Application Attributes for Message Delivery Status. *

* * @param setPlatformApplicationAttributesRequest

* Input for SetPlatformApplicationAttributes action. *

* @return A Java Future object containing the response from the * SetPlatformApplicationAttributes service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setPlatformApplicationAttributesAsync( SetPlatformApplicationAttributesRequest setPlatformApplicationAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Sets the attributes of the platform application object for the supported * push notification services, such as APNS and GCM (Firebase Cloud * Messaging). For more information, see Using * Amazon SNS Mobile Push Notifications. For information on configuring * attributes for message delivery status, see Using Amazon SNS Application Attributes for Message Delivery Status. *

* * @param setPlatformApplicationAttributesRequest

* Input for SetPlatformApplicationAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * SetPlatformApplicationAttributes service method, as returned by * Amazon Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setPlatformApplicationAttributesAsync( SetPlatformApplicationAttributesRequest setPlatformApplicationAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Use this request to set the default settings for sending SMS messages and * receiving daily SMS usage reports. *

*

* You can override some of these settings for a single message when you use * the Publish action with the * MessageAttributes.entry.N parameter. For more information, * see Publishing to a mobile phone in the Amazon SNS Developer * Guide. *

* *

* To use this operation, you must grant the Amazon SNS service principal ( * sns.amazonaws.com) permission to perform the * s3:ListBucket action. *

*
* * @param setSMSAttributesRequest

* The input for the SetSMSAttributes action. *

* @return A Java Future object containing the response from the * SetSMSAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setSMSAttributesAsync( SetSMSAttributesRequest setSMSAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Use this request to set the default settings for sending SMS messages and * receiving daily SMS usage reports. *

*

* You can override some of these settings for a single message when you use * the Publish action with the * MessageAttributes.entry.N parameter. For more information, * see Publishing to a mobile phone in the Amazon SNS Developer * Guide. *

* *

* To use this operation, you must grant the Amazon SNS service principal ( * sns.amazonaws.com) permission to perform the * s3:ListBucket action. *

*
* * @param setSMSAttributesRequest

* The input for the SetSMSAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * SetSMSAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws ThrottledException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setSMSAttributesAsync( SetSMSAttributesRequest setSMSAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Allows a subscription owner to set an attribute of the subscription to a * new value. *

* * @param setSubscriptionAttributesRequest

* Input for SetSubscriptionAttributes action. *

* @return A Java Future object containing the response from the * SetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws FilterPolicyLimitExceededException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setSubscriptionAttributesAsync( SetSubscriptionAttributesRequest setSubscriptionAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Allows a subscription owner to set an attribute of the subscription to a * new value. *

* * @param setSubscriptionAttributesRequest

* Input for SetSubscriptionAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * SetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws FilterPolicyLimitExceededException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setSubscriptionAttributesAsync( SetSubscriptionAttributesRequest setSubscriptionAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Allows a topic owner to set an attribute of the topic to a new value. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param setTopicAttributesRequest

* Input for SetTopicAttributes action. *

* @return A Java Future object containing the response from the * SetTopicAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setTopicAttributesAsync(SetTopicAttributesRequest setTopicAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Allows a topic owner to set an attribute of the topic to a new value. *

* *

* To remove the ability to change topic permissions, you must deny * permissions to the AddPermission, * RemovePermission, and SetTopicAttributes * actions in your IAM policy. *

*
* * @param setTopicAttributesRequest

* Input for SetTopicAttributes action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * SetTopicAttributes service method, as returned by Amazon Simple * Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future setTopicAttributesAsync(SetTopicAttributesRequest setTopicAttributesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is * HTTP/S or email, or if the endpoint and the topic are not in the same * Amazon Web Services account, the endpoint owner must run the * ConfirmSubscription action to confirm the subscription. *

*

* You call the ConfirmSubscription action with the token from * the subscription response. Confirmation tokens are valid for three days. *

*

* This action is throttled at 100 transactions per second (TPS). *

* * @param subscribeRequest

* Input for Subscribe action. *

* @return A Java Future object containing the response from the Subscribe * service method, as returned by Amazon Simple Notification * Service. * @throws SubscriptionLimitExceededException * @throws FilterPolicyLimitExceededException * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future subscribeAsync(SubscribeRequest subscribeRequest) throws AmazonServiceException, AmazonClientException; /** *

* Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is * HTTP/S or email, or if the endpoint and the topic are not in the same * Amazon Web Services account, the endpoint owner must run the * ConfirmSubscription action to confirm the subscription. *

*

* You call the ConfirmSubscription action with the token from * the subscription response. Confirmation tokens are valid for three days. *

*

* This action is throttled at 100 transactions per second (TPS). *

* * @param subscribeRequest

* Input for Subscribe action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the Subscribe * service method, as returned by Amazon Simple Notification * Service. * @throws SubscriptionLimitExceededException * @throws FilterPolicyLimitExceededException * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future subscribeAsync(SubscribeRequest subscribeRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS * Tags in the Amazon SNS Developer Guide. *

*

* When you use topic tags, keep the following guidelines in mind: *

*
    *
  • *

    * Adding more than 50 tags to a topic isn't recommended. *

    *
  • *
  • *

    * Tags don't have any semantic meaning. Amazon SNS interprets tags as * character strings. *

    *
  • *
  • *

    * Tags are case-sensitive. *

    *
  • *
  • *

    * A new tag with a key identical to that of an existing tag overwrites the * existing tag. *

    *
  • *
  • *

    * Tagging actions are limited to 10 TPS per Amazon Web Services account, * per Amazon Web Services Region. If your application requires a higher * throughput, file a technical support request. *

    *
  • *
* * @param tagResourceRequest * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Simple Notification * Service. * @throws ResourceNotFoundException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future tagResourceAsync(TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS * Tags in the Amazon SNS Developer Guide. *

*

* When you use topic tags, keep the following guidelines in mind: *

*
    *
  • *

    * Adding more than 50 tags to a topic isn't recommended. *

    *
  • *
  • *

    * Tags don't have any semantic meaning. Amazon SNS interprets tags as * character strings. *

    *
  • *
  • *

    * Tags are case-sensitive. *

    *
  • *
  • *

    * A new tag with a key identical to that of an existing tag overwrites the * existing tag. *

    *
  • *
  • *

    * Tagging actions are limited to 10 TPS per Amazon Web Services account, * per Amazon Web Services Region. If your application requires a higher * throughput, file a technical support request. *

    *
  • *
* * @param tagResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Simple Notification * Service. * @throws ResourceNotFoundException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a subscription. If the subscription requires authentication for * deletion, only the owner of the subscription or the topic's owner can * unsubscribe, and an Amazon Web Services signature is required. If the * Unsubscribe call does not require authentication and the * requester is not the subscription owner, a final cancellation message is * delivered to the endpoint, so that the endpoint owner can easily * resubscribe to the topic if the Unsubscribe request was * unintended. *

* *

* Amazon SQS queue subscriptions require authentication for deletion. Only * the owner of the subscription, or the owner of the topic can unsubscribe * using the required Amazon Web Services signature. *

*
*

* This action is throttled at 100 transactions per second (TPS). *

* * @param unsubscribeRequest

* Input for Unsubscribe action. *

* @return A Java Future object containing the response from the Unsubscribe * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future unsubscribeAsync(UnsubscribeRequest unsubscribeRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a subscription. If the subscription requires authentication for * deletion, only the owner of the subscription or the topic's owner can * unsubscribe, and an Amazon Web Services signature is required. If the * Unsubscribe call does not require authentication and the * requester is not the subscription owner, a final cancellation message is * delivered to the endpoint, so that the endpoint owner can easily * resubscribe to the topic if the Unsubscribe request was * unintended. *

* *

* Amazon SQS queue subscriptions require authentication for deletion. Only * the owner of the subscription, or the owner of the topic can unsubscribe * using the required Amazon Web Services signature. *

*
*

* This action is throttled at 100 transactions per second (TPS). *

* * @param unsubscribeRequest

* Input for Unsubscribe action. *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the Unsubscribe * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws InvalidSecurityException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future unsubscribeAsync(UnsubscribeRequest unsubscribeRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS * Tags in the Amazon SNS Developer Guide. *

* * @param untagResourceRequest * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Simple * Notification Service. * @throws ResourceNotFoundException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future untagResourceAsync(UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS * Tags in the Amazon SNS Developer Guide. *

* * @param untagResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Simple * Notification Service. * @throws ResourceNotFoundException * @throws TagLimitExceededException * @throws StaleTagException * @throws TagPolicyException * @throws InvalidParameterException * @throws AuthorizationErrorException * @throws ConcurrentAccessException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Verifies a destination phone number with a one-time password (OTP) for * the calling Amazon Web Services account. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param verifySMSSandboxPhoneNumberRequest * @return A Java Future object containing the response from the * VerifySMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws VerificationException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future verifySMSSandboxPhoneNumberAsync( VerifySMSSandboxPhoneNumberRequest verifySMSSandboxPhoneNumberRequest) throws AmazonServiceException, AmazonClientException; /** *

* Verifies a destination phone number with a one-time password (OTP) for * the calling Amazon Web Services account. *

*

* When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a * safe environment for you to try Amazon SNS features without risking your * reputation as an SMS sender. While your Amazon Web Services account is in * the SMS sandbox, you can use all of the features of Amazon SNS. However, * you can send SMS messages only to verified destination phone numbers. For * more information, including how to move out of the sandbox to send * messages without restrictions, see SMS * sandbox in the Amazon SNS Developer Guide. *

* * @param verifySMSSandboxPhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * VerifySMSSandboxPhoneNumber service method, as returned by Amazon * Simple Notification Service. * @throws AuthorizationErrorException * @throws InternalErrorException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws VerificationException * @throws ThrottledException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ Future verifySMSSandboxPhoneNumberAsync( VerifySMSSandboxPhoneNumberRequest verifySMSSandboxPhoneNumberRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; }