AWSSDK.SimpleNotificationService
Implementation for accessing SimpleNotificationService
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 http://aws.amazon.com/sns.
For detailed information about Amazon SNS features and their associated API calls, see
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.
Subscribes an existing Amazon SQS queue to an existing Amazon SNS topic.
The policy applied to the SQS queue is similar to this:
{
"Version" : "2008-10-17",
"Statement" : [{
"Sid" : "topic-subscription-arn:aws:sns:us-west-2:599109622955:myTopic",
"Effect" : "Allow",
"Principal" : "*",
"Action" : ["sqs:SendMessage"],
"Resource":["arn:aws:sqs:us-west-2:599109622955:myQueue"],
"Condition" : {
"ArnLike":{
"aws:SourceArn":["arn:aws:sns:us-west-2:599109622955:myTopic"]
}
}
}]
}
There might be a small time period immediately after
subscribing the SQS queue to the SNS topic and updating the SQS queue's
policy, where messages are not able to be delivered to the queue. After a
moment, the new queue policy will propagate and the queue will be able to
receive messages. This delay only occurs immediately after initially
subscribing the queue.
The topic to subscribe to
The SQS client used to get attributes and set the policy on the SQS queue.
The queue to add a subscription to.
The subscription ARN as returned by Amazon SNS when the queue is
successfully subscribed to the topic.
Subscribes an existing Amazon SQS queue to existing Amazon SNS topics.
The policy applied to the SQS queue is similar to this:
{
"Version" : "2008-10-17",
"Statement" : [{
"Sid" : "topic-subscription-arn:aws:sns:us-west-2:599109622955:myTopic",
"Effect" : "Allow",
"Principal" : "*",
"Action" : ["sqs:SendMessage"],
"Resource":["arn:aws:sqs:us-west-2:599109622955:myQueue"],
"Condition" : {
"ArnLike":{
"aws:SourceArn":["arn:aws:sns:us-west-2:599109622955:myTopic"]
}
}
}]
}
There might be a small time period immediately after
subscribing the SQS queue to the SNS topic and updating the SQS queue's
policy, where messages are not able to be delivered to the queue. After a
moment, the new queue policy will propagate and the queue will be able to
receive messages. This delay only occurs immediately after initially
subscribing the queue.
The topics to subscribe to
The SQS client used to get attributes and set the policy on the SQS queue.
The queue to add a subscription to.
The mapping of topic ARNs to subscription ARNs as returned by Amazon SNS when the queue is
successfully subscribed to each topic.
Add statement to the policy that gives the sns topic access to send a message to the queue.
Check to see if the policy for the queue has already given permission to the topic.
Finds an existing Amazon SNS topic by iterating all SNS topics until a match is found.
The ListTopics method is used to fetch upto 100 SNS topics at a time until a SNS topic
with an TopicArn that matches is found.
The name of the topic find
The matched SNS topic.
This is a utility method which updates the policy of a topic to allow the
S3 bucket to publish events to it.
The topic that will have its policy updated.
The bucket that will be given access to publish from.
Constructs AmazonSimpleNotificationServiceClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="AWSProfileName" value="AWS Default"/>
</appSettings>
</configuration>
Constructs AmazonSimpleNotificationServiceClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="AWSProfileName" value="AWS Default"/>
</appSettings>
</configuration>
The region to connect.
Constructs AmazonSimpleNotificationServiceClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="AWSProfileName" value="AWS Default"/>
</appSettings>
</configuration>
The AmazonSimpleNotificationServiceClient Configuration Object
Constructs AmazonSimpleNotificationServiceClient with AWS Credentials
AWS Credentials
Constructs AmazonSimpleNotificationServiceClient with AWS Credentials
AWS Credentials
The region to connect.
Constructs AmazonSimpleNotificationServiceClient with AWS Credentials and an
AmazonSimpleNotificationServiceClient Configuration object.
AWS Credentials
The AmazonSimpleNotificationServiceClient Configuration Object
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID and AWS Secret Key
AWS Access Key ID
AWS Secret Access Key
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID and AWS Secret Key
AWS Access Key ID
AWS Secret Access Key
The region to connect.
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID, AWS Secret Key and an
AmazonSimpleNotificationServiceClient Configuration object.
AWS Access Key ID
AWS Secret Access Key
The AmazonSimpleNotificationServiceClient Configuration Object
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID and AWS Secret Key
AWS Access Key ID
AWS Secret Access Key
AWS Session Token
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID and AWS Secret Key
AWS Access Key ID
AWS Secret Access Key
AWS Session Token
The region to connect.
Constructs AmazonSimpleNotificationServiceClient with AWS Access Key ID, AWS Secret Key and an
AmazonSimpleNotificationServiceClient Configuration object.
AWS Access Key ID
AWS Secret Access Key
AWS Session Token
The AmazonSimpleNotificationServiceClient Configuration Object
Creates the signer for the service.
Disposes the service client.
Adds a statement to a topic's access control policy, granting access for the specified
AWS accounts to the specified actions.
The ARN of the topic whose access control policy you wish to modify.
A unique identifier for the new policy statement.
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.
The response from the AddPermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Adds a statement to a topic's access control policy, granting access for the specified
AWS accounts to the specified actions.
Container for the necessary parameters to execute the AddPermission service method.
The response from the AddPermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the AddPermission operation.
Container for the necessary parameters to execute the AddPermission operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddPermission
operation.
Finishes the asynchronous execution of the AddPermission operation.
The IAsyncResult returned by the call to BeginAddPermission.
Returns a AddPermissionResult from SimpleNotificationService.
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".
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
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".
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
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".
Container for the necessary parameters to execute the ConfirmSubscription service method.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Initiates the asynchronous execution of the ConfirmSubscription operation.
Container for the necessary parameters to execute the ConfirmSubscription operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndConfirmSubscription
operation.
Finishes the asynchronous execution of the ConfirmSubscription operation.
The IAsyncResult returned by the call to BeginConfirmSubscription.
Returns a ConfirmSubscriptionResult from SimpleNotificationService.
Creates a platform application object for one of the supported push notification services,
such as APNS and GCM, to which devices and mobile apps may register. You must
specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication
action. The PlatformPrincipal is received from the notification service. For APNS/APNS_SANDBOX,
PlatformPrincipal is "SSL certificate". For GCM, PlatformPrincipal is not applicable.
For ADM, PlatformPrincipal is "client id". The PlatformCredential is also received
from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is
"private key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential
is "client secret". The PlatformApplicationArn that is returned when using
CreatePlatformApplication is then used as an attribute for the CreatePlatformEndpoint
action. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the CreatePlatformApplication service method.
The response from the CreatePlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the CreatePlatformApplication operation.
Container for the necessary parameters to execute the CreatePlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePlatformApplication
operation.
Finishes the asynchronous execution of the CreatePlatformApplication operation.
The IAsyncResult returned by the call to BeginCreatePlatformApplication.
Returns a CreatePlatformApplicationResult from SimpleNotificationService.
Creates an endpoint for a device and mobile app on one of the supported push notification
services, such as GCM and APNS. CreatePlatformEndpoint requires
the PlatformApplicationArn that is returned from CreatePlatformApplication.
The EndpointArn that is returned when using CreatePlatformEndpoint
can then be used by the Publish action 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.
Container for the necessary parameters to execute the CreatePlatformEndpoint service method.
The response from the CreatePlatformEndpoint service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the CreatePlatformEndpoint operation.
Container for the necessary parameters to execute the CreatePlatformEndpoint operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePlatformEndpoint
operation.
Finishes the asynchronous execution of the CreatePlatformEndpoint operation.
The IAsyncResult returned by the call to BeginCreatePlatformEndpoint.
Returns a CreatePlatformEndpointResult from SimpleNotificationService.
Creates a topic to which notifications can be published. Users can create at most
3000 topics. For more information, see http://aws.amazon.com/sns.
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.
The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.
The response from the CreateTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the customer already owns the maximum allowed number of topics.
Creates a topic to which notifications can be published. Users can create at most
3000 topics. For more information, see http://aws.amazon.com/sns.
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.
Container for the necessary parameters to execute the CreateTopic service method.
The response from the CreateTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the customer already owns the maximum allowed number of topics.
Initiates the asynchronous execution of the CreateTopic operation.
Container for the necessary parameters to execute the CreateTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTopic
operation.
Finishes the asynchronous execution of the CreateTopic operation.
The IAsyncResult returned by the call to BeginCreateTopic.
Returns a CreateTopicResult from SimpleNotificationService.
Deletes the endpoint from Amazon SNS. This action is idempotent. For more information,
see Using Amazon
SNS Mobile Push Notifications.
Container for the necessary parameters to execute the DeleteEndpoint service method.
The response from the DeleteEndpoint service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the DeleteEndpoint operation.
Container for the necessary parameters to execute the DeleteEndpoint operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEndpoint
operation.
Finishes the asynchronous execution of the DeleteEndpoint operation.
The IAsyncResult returned by the call to BeginDeleteEndpoint.
Returns a DeleteEndpointResult from SimpleNotificationService.
Deletes a platform application object for one of the supported push notification services,
such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the DeletePlatformApplication service method.
The response from the DeletePlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the DeletePlatformApplication operation.
Container for the necessary parameters to execute the DeletePlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePlatformApplication
operation.
Finishes the asynchronous execution of the DeletePlatformApplication operation.
The IAsyncResult returned by the call to BeginDeletePlatformApplication.
Returns a DeletePlatformApplicationResult from SimpleNotificationService.
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.
The ARN of the topic you want to delete. http://sns.us-east-1.amazonaws.com/ ?TopicArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3AMy-Topic &Action=DeleteTopic &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2010-03-31T12%3A00%3A00.000Z &AWSAccessKeyId=(AWS Access Key ID) &Signature=DjHBa%2BbYCKQAzctOPnLP7MbHnrHT3%2FK3kFEZjwcf9%2FU%3D <DeleteTopicResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/"> <ResponseMetadata> <RequestId>fba800b9-3765-11df-8cf3-c58c53254dfb</RequestId> </ResponseMetadata></DeleteTopicResponse>
The response from the DeleteTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
Container for the necessary parameters to execute the DeleteTopic service method.
The response from the DeleteTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the DeleteTopic operation.
Container for the necessary parameters to execute the DeleteTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTopic
operation.
Finishes the asynchronous execution of the DeleteTopic operation.
The IAsyncResult returned by the call to BeginDeleteTopic.
Returns a DeleteTopicResult from SimpleNotificationService.
Retrieves the endpoint attributes for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the GetEndpointAttributes service method.
The response from the GetEndpointAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetEndpointAttributes operation.
Container for the necessary parameters to execute the GetEndpointAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEndpointAttributes
operation.
Finishes the asynchronous execution of the GetEndpointAttributes operation.
The IAsyncResult returned by the call to BeginGetEndpointAttributes.
Returns a GetEndpointAttributesResult from SimpleNotificationService.
Retrieves the attributes of the platform application object for the supported push
notification services, such as APNS and GCM. For more information, see
Using Amazon
SNS Mobile Push Notifications.
Container for the necessary parameters to execute the GetPlatformApplicationAttributes service method.
The response from the GetPlatformApplicationAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetPlatformApplicationAttributes operation.
Container for the necessary parameters to execute the GetPlatformApplicationAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPlatformApplicationAttributes
operation.
Finishes the asynchronous execution of the GetPlatformApplicationAttributes operation.
The IAsyncResult returned by the call to BeginGetPlatformApplicationAttributes.
Returns a GetPlatformApplicationAttributesResult from SimpleNotificationService.
Returns all of the properties of a subscription.
The ARN of the subscription whose properties you want to get.
The response from the GetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Returns all of the properties of a subscription.
Container for the necessary parameters to execute the GetSubscriptionAttributes service method.
The response from the GetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetSubscriptionAttributes operation.
Container for the necessary parameters to execute the GetSubscriptionAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSubscriptionAttributes
operation.
Finishes the asynchronous execution of the GetSubscriptionAttributes operation.
The IAsyncResult returned by the call to BeginGetSubscriptionAttributes.
Returns a GetSubscriptionAttributesResult from SimpleNotificationService.
Returns all of the properties of a topic. Topic properties returned might differ
based on the authorization of the user.
The ARN of the topic whose properties you want to get.
The response from the GetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Returns all of the properties of a topic. Topic properties returned might differ
based on the authorization of the user.
Container for the necessary parameters to execute the GetTopicAttributes service method.
The response from the GetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetTopicAttributes operation.
Container for the necessary parameters to execute the GetTopicAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTopicAttributes
operation.
Finishes the asynchronous execution of the GetTopicAttributes operation.
The IAsyncResult returned by the call to BeginGetTopicAttributes.
Returns a GetTopicAttributesResult from SimpleNotificationService.
Lists the endpoints and endpoint attributes for devices in a supported push notification
service, such as GCM 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.
Container for the necessary parameters to execute the ListEndpointsByPlatformApplication service method.
The response from the ListEndpointsByPlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the ListEndpointsByPlatformApplication operation.
Container for the necessary parameters to execute the ListEndpointsByPlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEndpointsByPlatformApplication
operation.
Finishes the asynchronous execution of the ListEndpointsByPlatformApplication operation.
The IAsyncResult returned by the call to BeginListEndpointsByPlatformApplication.
Returns a ListEndpointsByPlatformApplicationResult from SimpleNotificationService.
Lists the platform application objects for the supported push notification services,
such as APNS and GCM. 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.
The response from the ListPlatformApplications service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Lists the platform application objects for the supported push notification services,
such as APNS and GCM. 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.
Container for the necessary parameters to execute the ListPlatformApplications service method.
The response from the ListPlatformApplications service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListPlatformApplications operation.
Container for the necessary parameters to execute the ListPlatformApplications operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPlatformApplications
operation.
Finishes the asynchronous execution of the ListPlatformApplications operation.
The IAsyncResult returned by the call to BeginListPlatformApplications.
Returns a ListPlatformApplicationsResult from SimpleNotificationService.
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.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Token returned by the previous ListSubscriptions request.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Container for the necessary parameters to execute the ListSubscriptions service method.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListSubscriptions operation.
Container for the necessary parameters to execute the ListSubscriptions operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubscriptions
operation.
Finishes the asynchronous execution of the ListSubscriptions operation.
The IAsyncResult returned by the call to BeginListSubscriptions.
Returns a ListSubscriptionsResult from SimpleNotificationService.
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.
The ARN of the topic for which you wish to find subscriptions.
Token returned by the previous ListSubscriptionsByTopic request.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
The ARN of the topic for which you wish to find subscriptions.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
Container for the necessary parameters to execute the ListSubscriptionsByTopic service method.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the ListSubscriptionsByTopic operation.
Container for the necessary parameters to execute the ListSubscriptionsByTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubscriptionsByTopic
operation.
Finishes the asynchronous execution of the ListSubscriptionsByTopic operation.
The IAsyncResult returned by the call to BeginListSubscriptionsByTopic.
Returns a ListSubscriptionsByTopicResult from SimpleNotificationService.
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.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Token returned by the previous ListTopics request.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Container for the necessary parameters to execute the ListTopics service method.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListTopics operation.
Container for the necessary parameters to execute the ListTopics operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTopics
operation.
Finishes the asynchronous execution of the ListTopics operation.
The IAsyncResult returned by the call to BeginListTopics.
Returns a ListTopicsResult from SimpleNotificationService.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
Container for the necessary parameters to execute the Publish service method.
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Initiates the asynchronous execution of the Publish operation.
Container for the necessary parameters to execute the Publish operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPublish
operation.
Finishes the asynchronous execution of the Publish operation.
The IAsyncResult returned by the call to BeginPublish.
Returns a PublishResult from SimpleNotificationService.
Removes a statement from a topic's access control policy.
The ARN of the topic whose access control policy you wish to modify.
The unique label of the statement you want to remove.
The response from the RemovePermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Removes a statement from a topic's access control policy.
Container for the necessary parameters to execute the RemovePermission service method.
The response from the RemovePermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the RemovePermission operation.
Container for the necessary parameters to execute the RemovePermission operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemovePermission
operation.
Finishes the asynchronous execution of the RemovePermission operation.
The IAsyncResult returned by the call to BeginRemovePermission.
Returns a RemovePermissionResult from SimpleNotificationService.
Sets the attributes for an endpoint for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the SetEndpointAttributes service method.
The response from the SetEndpointAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetEndpointAttributes operation.
Container for the necessary parameters to execute the SetEndpointAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetEndpointAttributes
operation.
Finishes the asynchronous execution of the SetEndpointAttributes operation.
The IAsyncResult returned by the call to BeginSetEndpointAttributes.
Returns a SetEndpointAttributesResult from SimpleNotificationService.
Sets the attributes of the platform application object for the supported push notification
services, such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the SetPlatformApplicationAttributes service method.
The response from the SetPlatformApplicationAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetPlatformApplicationAttributes operation.
Container for the necessary parameters to execute the SetPlatformApplicationAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetPlatformApplicationAttributes
operation.
Finishes the asynchronous execution of the SetPlatformApplicationAttributes operation.
The IAsyncResult returned by the call to BeginSetPlatformApplicationAttributes.
Returns a SetPlatformApplicationAttributesResult from SimpleNotificationService.
Allows a subscription owner to set an attribute of the topic to a new value.
The ARN of the subscription to modify.
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: DeliveryPolicy | RawMessageDelivery
The new value for the attribute in JSON format.
The response from the SetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Allows a subscription owner to set an attribute of the topic to a new value.
Container for the necessary parameters to execute the SetSubscriptionAttributes service method.
The response from the SetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetSubscriptionAttributes operation.
Container for the necessary parameters to execute the SetSubscriptionAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetSubscriptionAttributes
operation.
Finishes the asynchronous execution of the SetSubscriptionAttributes operation.
The IAsyncResult returned by the call to BeginSetSubscriptionAttributes.
Returns a SetSubscriptionAttributesResult from SimpleNotificationService.
Allows a topic owner to set an attribute of the topic to a new value.
The ARN of the topic to modify.
The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: Policy | DisplayName | DeliveryPolicy
The new value for the attribute.
The response from the SetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Allows a topic owner to set an attribute of the topic to a new value.
Container for the necessary parameters to execute the SetTopicAttributes service method.
The response from the SetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetTopicAttributes operation.
Container for the necessary parameters to execute the SetTopicAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetTopicAttributes
operation.
Finishes the asynchronous execution of the SetTopicAttributes operation.
The IAsyncResult returned by the call to BeginSetTopicAttributes.
Returns a SetTopicAttributesResult from SimpleNotificationService.
Prepares to subscribe an endpoint by sending the endpoint a confirmation message.
To actually create a subscription, the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are
valid for three days.
The ARN of the topic you want to subscribe to.
The protocol you want to use. Supported protocols include: http -- delivery of JSON-encoded message via HTTP POST https -- delivery of JSON-encoded message via HTTPS POST email -- delivery of message via SMTP email-json -- delivery of JSON-encoded message via SMTP sms -- delivery of message via SMS sqs -- delivery of JSON-encoded message to an Amazon SQS queue application -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.
The endpoint that you want to receive notifications. Endpoints vary by protocol: - For the
http protocol, the endpoint is an URL beginning with "http://" - For the
https protocol, the endpoint is a URL beginning with "https://" - For the
email protocol, the endpoint is an email address - For the
email-json protocol, the endpoint is an email address - For the
sms protocol, the endpoint is a phone number of an SMS-enabled device - For the
sqs protocol, the endpoint is the ARN of an Amazon SQS queue - For the
application protocol, the endpoint is the EndpointArn of a mobile app and device.
The response from the Subscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Prepares to subscribe an endpoint by sending the endpoint a confirmation message.
To actually create a subscription, the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are
valid for three days.
Container for the necessary parameters to execute the Subscribe service method.
The response from the Subscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Initiates the asynchronous execution of the Subscribe operation.
Container for the necessary parameters to execute the Subscribe operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSubscribe
operation.
Finishes the asynchronous execution of the Subscribe operation.
The IAsyncResult returned by the call to BeginSubscribe.
Returns a SubscribeResult from SimpleNotificationService.
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 AWS 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.
The ARN of the subscription to be deleted.
The response from the Unsubscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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 AWS 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.
Container for the necessary parameters to execute the Unsubscribe service method.
The response from the Unsubscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the Unsubscribe operation.
Container for the necessary parameters to execute the Unsubscribe operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUnsubscribe
operation.
Finishes the asynchronous execution of the Unsubscribe operation.
The IAsyncResult returned by the call to BeginUnsubscribe.
Returns a UnsubscribeResult from SimpleNotificationService.
Interface for accessing SimpleNotificationService
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 http://aws.amazon.com/sns.
For detailed information about Amazon SNS features and their associated API calls, see
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.
Subscribes an existing Amazon SQS queue to an existing Amazon SNS topic.
The policy applied to the SQS queue is similar to this:
{
"Version" : "2008-10-17",
"Statement" : [{
"Sid" : "topic-subscription-arn:aws:sns:us-west-2:599109622955:myTopic",
"Effect" : "Allow",
"Principal" : {
"AWS":["*"]
},
"Action" : ["sqs:SendMessage"],
"Resource":["arn:aws:sqs:us-west-2:599109622955:myQueue"],
"Condition" : {
"ArnLike":{
"aws:SourceArn":["arn:aws:sns:us-west-2:599109622955:myTopic"]
}
}
}]
}
There might be a small time period immediately after
subscribing the SQS queue to the SNS topic and updating the SQS queue's
policy, where messages are not able to be delivered to the queue. After a
moment, the new queue policy will propagate and the queue will be able to
receive messages. This delay only occurs immediately after initially
subscribing the queue.
The topic to subscribe to
The SQS client used to get attributes and set the policy on the SQS queue.
The queue to add a subscription to.
The subscription ARN as returned by Amazon SNS when the queue is
successfully subscribed to the topic.
Subscribes an existing Amazon SQS queue to existing Amazon SNS topics.
The policy applied to the SQS queue is similar to this:
{
"Version" : "2008-10-17",
"Statement" : [{
"Sid" : "topic-subscription-arn:aws:sns:us-west-2:599109622955:myTopic",
"Effect" : "Allow",
"Principal" : "*",
"Action" : ["sqs:SendMessage"],
"Resource":["arn:aws:sqs:us-west-2:599109622955:myQueue"],
"Condition" : {
"ArnLike":{
"aws:SourceArn":["arn:aws:sns:us-west-2:599109622955:myTopic"]
}
}
}]
}
There might be a small time period immediately after
subscribing the SQS queue to the SNS topic and updating the SQS queue's
policy, where messages are not able to be delivered to the queue. After a
moment, the new queue policy will propagate and the queue will be able to
receive messages. This delay only occurs immediately after initially
subscribing the queue.
The topics to subscribe to
The SQS client used to get attributes and set the policy on the SQS queue.
The queue to add a subscription to.
The mapping of topic ARNs to subscription ARNs as returned by Amazon SNS when the queue is
successfully subscribed to each topic.
Finds an existing Amazon SNS topic by iterating all SNS topics until a match is found.
The ListTopics method is used to fetch upto 100 SNS topics at a time until a SNS topic
with an TopicArn that matches is found.
The name of the topic find
The matched SNS topic.
This is a utility method which updates the policy of a topic to allow the
S3 bucket to publish events to it.
The topic that will have its policy updated.
The bucket that will be given access to publish from.
Adds a statement to a topic's access control policy, granting access for the specified
AWS accounts to the specified actions.
The ARN of the topic whose access control policy you wish to modify.
A unique identifier for the new policy statement.
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.
The response from the AddPermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Adds a statement to a topic's access control policy, granting access for the specified
AWS accounts to the specified actions.
Container for the necessary parameters to execute the AddPermission service method.
The response from the AddPermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the AddPermission operation.
Container for the necessary parameters to execute the AddPermission operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddPermission
operation.
Finishes the asynchronous execution of the AddPermission operation.
The IAsyncResult returned by the call to BeginAddPermission.
Returns a AddPermissionResult from SimpleNotificationService.
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".
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
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".
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
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".
Container for the necessary parameters to execute the ConfirmSubscription service method.
The response from the ConfirmSubscription service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Initiates the asynchronous execution of the ConfirmSubscription operation.
Container for the necessary parameters to execute the ConfirmSubscription operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndConfirmSubscription
operation.
Finishes the asynchronous execution of the ConfirmSubscription operation.
The IAsyncResult returned by the call to BeginConfirmSubscription.
Returns a ConfirmSubscriptionResult from SimpleNotificationService.
Creates a platform application object for one of the supported push notification services,
such as APNS and GCM, to which devices and mobile apps may register. You must
specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication
action. The PlatformPrincipal is received from the notification service. For APNS/APNS_SANDBOX,
PlatformPrincipal is "SSL certificate". For GCM, PlatformPrincipal is not applicable.
For ADM, PlatformPrincipal is "client id". The PlatformCredential is also received
from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is
"private key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential
is "client secret". The PlatformApplicationArn that is returned when using
CreatePlatformApplication is then used as an attribute for the CreatePlatformEndpoint
action. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the CreatePlatformApplication service method.
The response from the CreatePlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the CreatePlatformApplication operation.
Container for the necessary parameters to execute the CreatePlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePlatformApplication
operation.
Finishes the asynchronous execution of the CreatePlatformApplication operation.
The IAsyncResult returned by the call to BeginCreatePlatformApplication.
Returns a CreatePlatformApplicationResult from SimpleNotificationService.
Creates an endpoint for a device and mobile app on one of the supported push notification
services, such as GCM and APNS. CreatePlatformEndpoint requires
the PlatformApplicationArn that is returned from CreatePlatformApplication.
The EndpointArn that is returned when using CreatePlatformEndpoint
can then be used by the Publish action 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.
Container for the necessary parameters to execute the CreatePlatformEndpoint service method.
The response from the CreatePlatformEndpoint service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the CreatePlatformEndpoint operation.
Container for the necessary parameters to execute the CreatePlatformEndpoint operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePlatformEndpoint
operation.
Finishes the asynchronous execution of the CreatePlatformEndpoint operation.
The IAsyncResult returned by the call to BeginCreatePlatformEndpoint.
Returns a CreatePlatformEndpointResult from SimpleNotificationService.
Creates a topic to which notifications can be published. Users can create at most
3000 topics. For more information, see http://aws.amazon.com/sns.
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.
The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.
The response from the CreateTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the customer already owns the maximum allowed number of topics.
Creates a topic to which notifications can be published. Users can create at most
3000 topics. For more information, see http://aws.amazon.com/sns.
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.
Container for the necessary parameters to execute the CreateTopic service method.
The response from the CreateTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the customer already owns the maximum allowed number of topics.
Initiates the asynchronous execution of the CreateTopic operation.
Container for the necessary parameters to execute the CreateTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTopic
operation.
Finishes the asynchronous execution of the CreateTopic operation.
The IAsyncResult returned by the call to BeginCreateTopic.
Returns a CreateTopicResult from SimpleNotificationService.
Deletes the endpoint from Amazon SNS. This action is idempotent. For more information,
see Using Amazon
SNS Mobile Push Notifications.
Container for the necessary parameters to execute the DeleteEndpoint service method.
The response from the DeleteEndpoint service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the DeleteEndpoint operation.
Container for the necessary parameters to execute the DeleteEndpoint operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEndpoint
operation.
Finishes the asynchronous execution of the DeleteEndpoint operation.
The IAsyncResult returned by the call to BeginDeleteEndpoint.
Returns a DeleteEndpointResult from SimpleNotificationService.
Deletes a platform application object for one of the supported push notification services,
such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the DeletePlatformApplication service method.
The response from the DeletePlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the DeletePlatformApplication operation.
Container for the necessary parameters to execute the DeletePlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePlatformApplication
operation.
Finishes the asynchronous execution of the DeletePlatformApplication operation.
The IAsyncResult returned by the call to BeginDeletePlatformApplication.
Returns a DeletePlatformApplicationResult from SimpleNotificationService.
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.
The ARN of the topic you want to delete. http://sns.us-east-1.amazonaws.com/ ?TopicArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3AMy-Topic &Action=DeleteTopic &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2010-03-31T12%3A00%3A00.000Z &AWSAccessKeyId=(AWS Access Key ID) &Signature=DjHBa%2BbYCKQAzctOPnLP7MbHnrHT3%2FK3kFEZjwcf9%2FU%3D <DeleteTopicResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/"> <ResponseMetadata> <RequestId>fba800b9-3765-11df-8cf3-c58c53254dfb</RequestId> </ResponseMetadata></DeleteTopicResponse>
The response from the DeleteTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
Container for the necessary parameters to execute the DeleteTopic service method.
The response from the DeleteTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the DeleteTopic operation.
Container for the necessary parameters to execute the DeleteTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTopic
operation.
Finishes the asynchronous execution of the DeleteTopic operation.
The IAsyncResult returned by the call to BeginDeleteTopic.
Returns a DeleteTopicResult from SimpleNotificationService.
Retrieves the endpoint attributes for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the GetEndpointAttributes service method.
The response from the GetEndpointAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetEndpointAttributes operation.
Container for the necessary parameters to execute the GetEndpointAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEndpointAttributes
operation.
Finishes the asynchronous execution of the GetEndpointAttributes operation.
The IAsyncResult returned by the call to BeginGetEndpointAttributes.
Returns a GetEndpointAttributesResult from SimpleNotificationService.
Retrieves the attributes of the platform application object for the supported push
notification services, such as APNS and GCM. For more information, see
Using Amazon
SNS Mobile Push Notifications.
Container for the necessary parameters to execute the GetPlatformApplicationAttributes service method.
The response from the GetPlatformApplicationAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetPlatformApplicationAttributes operation.
Container for the necessary parameters to execute the GetPlatformApplicationAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPlatformApplicationAttributes
operation.
Finishes the asynchronous execution of the GetPlatformApplicationAttributes operation.
The IAsyncResult returned by the call to BeginGetPlatformApplicationAttributes.
Returns a GetPlatformApplicationAttributesResult from SimpleNotificationService.
Returns all of the properties of a subscription.
The ARN of the subscription whose properties you want to get.
The response from the GetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Returns all of the properties of a subscription.
Container for the necessary parameters to execute the GetSubscriptionAttributes service method.
The response from the GetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetSubscriptionAttributes operation.
Container for the necessary parameters to execute the GetSubscriptionAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSubscriptionAttributes
operation.
Finishes the asynchronous execution of the GetSubscriptionAttributes operation.
The IAsyncResult returned by the call to BeginGetSubscriptionAttributes.
Returns a GetSubscriptionAttributesResult from SimpleNotificationService.
Returns all of the properties of a topic. Topic properties returned might differ
based on the authorization of the user.
The ARN of the topic whose properties you want to get.
The response from the GetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Returns all of the properties of a topic. Topic properties returned might differ
based on the authorization of the user.
Container for the necessary parameters to execute the GetTopicAttributes service method.
The response from the GetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the GetTopicAttributes operation.
Container for the necessary parameters to execute the GetTopicAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTopicAttributes
operation.
Finishes the asynchronous execution of the GetTopicAttributes operation.
The IAsyncResult returned by the call to BeginGetTopicAttributes.
Returns a GetTopicAttributesResult from SimpleNotificationService.
Lists the endpoints and endpoint attributes for devices in a supported push notification
service, such as GCM 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.
Container for the necessary parameters to execute the ListEndpointsByPlatformApplication service method.
The response from the ListEndpointsByPlatformApplication service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the ListEndpointsByPlatformApplication operation.
Container for the necessary parameters to execute the ListEndpointsByPlatformApplication operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEndpointsByPlatformApplication
operation.
Finishes the asynchronous execution of the ListEndpointsByPlatformApplication operation.
The IAsyncResult returned by the call to BeginListEndpointsByPlatformApplication.
Returns a ListEndpointsByPlatformApplicationResult from SimpleNotificationService.
Lists the platform application objects for the supported push notification services,
such as APNS and GCM. 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.
The response from the ListPlatformApplications service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Lists the platform application objects for the supported push notification services,
such as APNS and GCM. 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.
Container for the necessary parameters to execute the ListPlatformApplications service method.
The response from the ListPlatformApplications service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListPlatformApplications operation.
Container for the necessary parameters to execute the ListPlatformApplications operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPlatformApplications
operation.
Finishes the asynchronous execution of the ListPlatformApplications operation.
The IAsyncResult returned by the call to BeginListPlatformApplications.
Returns a ListPlatformApplicationsResult from SimpleNotificationService.
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.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Token returned by the previous ListSubscriptions request.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Container for the necessary parameters to execute the ListSubscriptions service method.
The response from the ListSubscriptions service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListSubscriptions operation.
Container for the necessary parameters to execute the ListSubscriptions operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubscriptions
operation.
Finishes the asynchronous execution of the ListSubscriptions operation.
The IAsyncResult returned by the call to BeginListSubscriptions.
Returns a ListSubscriptionsResult from SimpleNotificationService.
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.
The ARN of the topic for which you wish to find subscriptions.
Token returned by the previous ListSubscriptionsByTopic request.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
The ARN of the topic for which you wish to find subscriptions.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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.
Container for the necessary parameters to execute the ListSubscriptionsByTopic service method.
The response from the ListSubscriptionsByTopic service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the ListSubscriptionsByTopic operation.
Container for the necessary parameters to execute the ListSubscriptionsByTopic operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubscriptionsByTopic
operation.
Finishes the asynchronous execution of the ListSubscriptionsByTopic operation.
The IAsyncResult returned by the call to BeginListSubscriptionsByTopic.
Returns a ListSubscriptionsByTopicResult from SimpleNotificationService.
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.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Token returned by the previous ListTopics request.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
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.
Container for the necessary parameters to execute the ListTopics service method.
The response from the ListTopics service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Initiates the asynchronous execution of the ListTopics operation.
Container for the necessary parameters to execute the ListTopics operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTopics
operation.
Finishes the asynchronous execution of the ListTopics operation.
The IAsyncResult returned by the call to BeginListTopics.
Returns a ListTopicsResult from SimpleNotificationService.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
Container for the necessary parameters to execute the Publish service method.
The response from the Publish service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Exception error indicating endpoint disabled.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Exception error indicating platform application disabled.
Initiates the asynchronous execution of the Publish operation.
Container for the necessary parameters to execute the Publish operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPublish
operation.
Finishes the asynchronous execution of the Publish operation.
The IAsyncResult returned by the call to BeginPublish.
Returns a PublishResult from SimpleNotificationService.
Removes a statement from a topic's access control policy.
The ARN of the topic whose access control policy you wish to modify.
The unique label of the statement you want to remove.
The response from the RemovePermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Removes a statement from a topic's access control policy.
Container for the necessary parameters to execute the RemovePermission service method.
The response from the RemovePermission service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the RemovePermission operation.
Container for the necessary parameters to execute the RemovePermission operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemovePermission
operation.
Finishes the asynchronous execution of the RemovePermission operation.
The IAsyncResult returned by the call to BeginRemovePermission.
Returns a RemovePermissionResult from SimpleNotificationService.
Sets the attributes for an endpoint for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the SetEndpointAttributes service method.
The response from the SetEndpointAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetEndpointAttributes operation.
Container for the necessary parameters to execute the SetEndpointAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetEndpointAttributes
operation.
Finishes the asynchronous execution of the SetEndpointAttributes operation.
The IAsyncResult returned by the call to BeginSetEndpointAttributes.
Returns a SetEndpointAttributesResult from SimpleNotificationService.
Sets the attributes of the platform application object for the supported push notification
services, such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Container for the necessary parameters to execute the SetPlatformApplicationAttributes service method.
The response from the SetPlatformApplicationAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetPlatformApplicationAttributes operation.
Container for the necessary parameters to execute the SetPlatformApplicationAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetPlatformApplicationAttributes
operation.
Finishes the asynchronous execution of the SetPlatformApplicationAttributes operation.
The IAsyncResult returned by the call to BeginSetPlatformApplicationAttributes.
Returns a SetPlatformApplicationAttributesResult from SimpleNotificationService.
Allows a subscription owner to set an attribute of the topic to a new value.
The ARN of the subscription to modify.
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: DeliveryPolicy | RawMessageDelivery
The new value for the attribute in JSON format.
The response from the SetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Allows a subscription owner to set an attribute of the topic to a new value.
Container for the necessary parameters to execute the SetSubscriptionAttributes service method.
The response from the SetSubscriptionAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetSubscriptionAttributes operation.
Container for the necessary parameters to execute the SetSubscriptionAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetSubscriptionAttributes
operation.
Finishes the asynchronous execution of the SetSubscriptionAttributes operation.
The IAsyncResult returned by the call to BeginSetSubscriptionAttributes.
Returns a SetSubscriptionAttributesResult from SimpleNotificationService.
Allows a topic owner to set an attribute of the topic to a new value.
The ARN of the topic to modify.
The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: Policy | DisplayName | DeliveryPolicy
The new value for the attribute.
The response from the SetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Allows a topic owner to set an attribute of the topic to a new value.
Container for the necessary parameters to execute the SetTopicAttributes service method.
The response from the SetTopicAttributes service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the SetTopicAttributes operation.
Container for the necessary parameters to execute the SetTopicAttributes operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetTopicAttributes
operation.
Finishes the asynchronous execution of the SetTopicAttributes operation.
The IAsyncResult returned by the call to BeginSetTopicAttributes.
Returns a SetTopicAttributesResult from SimpleNotificationService.
Prepares to subscribe an endpoint by sending the endpoint a confirmation message.
To actually create a subscription, the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are
valid for three days.
The ARN of the topic you want to subscribe to.
The protocol you want to use. Supported protocols include: http -- delivery of JSON-encoded message via HTTP POST https -- delivery of JSON-encoded message via HTTPS POST email -- delivery of message via SMTP email-json -- delivery of JSON-encoded message via SMTP sms -- delivery of message via SMS sqs -- delivery of JSON-encoded message to an Amazon SQS queue application -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.
The endpoint that you want to receive notifications. Endpoints vary by protocol: - For the
http protocol, the endpoint is an URL beginning with "http://" - For the
https protocol, the endpoint is a URL beginning with "https://" - For the
email protocol, the endpoint is an email address - For the
email-json protocol, the endpoint is an email address - For the
sms protocol, the endpoint is a phone number of an SMS-enabled device - For the
sqs protocol, the endpoint is the ARN of an Amazon SQS queue - For the
application protocol, the endpoint is the EndpointArn of a mobile app and device.
The response from the Subscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Prepares to subscribe an endpoint by sending the endpoint a confirmation message.
To actually create a subscription, the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are
valid for three days.
Container for the necessary parameters to execute the Subscribe service method.
The response from the Subscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Indicates that the customer already owns the maximum allowed number of subscriptions.
Initiates the asynchronous execution of the Subscribe operation.
Container for the necessary parameters to execute the Subscribe operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSubscribe
operation.
Finishes the asynchronous execution of the Subscribe operation.
The IAsyncResult returned by the call to BeginSubscribe.
Returns a SubscribeResult from SimpleNotificationService.
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 AWS 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.
The ARN of the subscription to be deleted.
The response from the Unsubscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
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 AWS 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.
Container for the necessary parameters to execute the Unsubscribe service method.
The response from the Unsubscribe service method, as returned by SimpleNotificationService.
Indicates that the user has been denied access to the requested resource.
Indicates an internal service error.
Indicates that a request parameter does not comply with the associated constraints.
Indicates that the requested resource does not exist.
Initiates the asynchronous execution of the Unsubscribe operation.
Container for the necessary parameters to execute the Unsubscribe operation on AmazonSimpleNotificationServiceClient.
An AsyncCallback delegate that is invoked when the operation completes.
A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
procedure using the AsyncState property.
An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUnsubscribe
operation.
Finishes the asynchronous execution of the Unsubscribe operation.
The IAsyncResult returned by the call to BeginUnsubscribe.
Returns a UnsubscribeResult from SimpleNotificationService.
This class reads in JSON formatted Amazon SNS messages into Message objects. The messages can also be verified using the IsMessageSignatureValid operation.
The value of the Type property for a subscription confirmation message
The value of the Type property for a unsubscribe confirmation message
The value of the Type property for a notification message
Parses the JSON message from Amazon SNS into the Message object.
The JSON text from an Amazon SNS message
The Message object with properties set from the JSON document
Gets a Universally Unique Identifier, unique for each message published. For a notification that Amazon SNS resends during a retry, the message ID of the original message is used.
Gets the MessageText value specified when the notification was published to the topic.
Gets the Base64-encoded "SHA1withRSA" signature of the Message, MessageId, Subject (if present), Type, Timestamp, and TopicArn values.
Gets the Version of the Amazon SNS signature used.
Gets the URL to the certificate that was used to sign the message.
Gets the Subject parameter specified when the notification was published to the topic. Note that this is an optional parameter.
If no Subject was specified, then this name/value pair does not appear in this JSON document.
Gets the URL that you must visit in order to re-confirm the subscription. Alternatively, you can instead use the Token with the ConfirmSubscription action to re-confirm the subscription.
Gets the time (GMT) when the notification was published.
Gets a value you can use with the ConfirmSubscription action to re-confirm the subscription. Alternatively, you can simply visit the SubscribeURL.
Gets the Amazon Resource Name (ARN) for the topic.
Gets the type of message. Possible values are Notification, SubscriptionConfirmation, and UnsubscribeConfirmation.
Returns true if the message type is a subscription confirmation.
True if the message type is a subscription confirmation.
Returns true if the message type is a unsubscribe confirmation.
True if the message type is a unsubscribe confirmation.
Returns true if the message type is a notification message.
True if the message type is a notification message.
Gets a URL that you can use to unsubscribe the endpoint from this topic. If you visit this URL, Amazon SNS unsubscribes the endpoint and stops sending notifications to this endpoint.
Verifies that the signing certificate url is from a recognizable source.
Returns the cert url if it cen be verified, otherwise throws an exception.
Verifies the authenticity of a message sent by Amazon SNS. This is done by computing a signature from the fields in the message and then comparing
the signature to the signature provided as part of the message.
Returns true if the message is authentic.
Build the string to sign for Notification messages.
The string to sign
Build the string to sign for SubscriptionConfirmation and UnsubscribeConfirmation messages.
The string to sign
Uses the SubscribeURL property to subscribe to the topic
Uses the UnsubscribeURL property to unsubscribe from the topic
Configuration for accessing Amazon SimpleNotificationService service
Default constructor
The constant used to lookup in the region hash the endpoint.
Gets the ServiceVersion property.
Gets the value of UserAgent property.
Common exception for the SimpleNotificationService service.
Construct instance of AmazonSimpleNotificationServiceException
Construct instance of AmazonSimpleNotificationServiceException
Construct instance of AmazonSimpleNotificationServiceException
Construct instance of AmazonSimpleNotificationServiceException
Construct instance of AmazonSimpleNotificationServiceException
Constructs a new instance of the AmazonSimpleNotificationServiceException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the AddPermission operation.
Adds a statement to a topic's access control policy, granting access for the specified
AWS accounts to the specified actions.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates AddPermissionRequest with the parameterized properties
The ARN of the topic whose access control policy you wish to modify.
A unique identifier for the new policy statement.
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.
Gets and sets the property ActionName.
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
Gets and sets the property AWSAccountId.
The AWS account IDs of the users (principals) who will be given access to the specified
actions. The users must have AWS accounts, but do not need to be signed up
for this service.
Gets and sets the property Label.
A unique identifier for the new policy statement.
Gets and sets the property TopicArn.
The ARN of the topic whose access control policy you wish to modify.
This is the response object from the AddPermission operation.
SimpleNotificationService exception
Constructs a new AuthorizationErrorException with the specified error
message.
Describes the error encountered.
Construct instance of AuthorizationErrorException
Construct instance of AuthorizationErrorException
Construct instance of AuthorizationErrorException
Construct instance of AuthorizationErrorException
Constructs a new instance of the AuthorizationErrorException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the ConfirmSubscription operation.
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".
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates ConfirmSubscriptionRequest with the parameterized properties
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
Instantiates ConfirmSubscriptionRequest with the parameterized properties
The ARN of the topic for which you wish to confirm a subscription.
Short-lived token sent to an endpoint during the Subscribe action.
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
Gets and sets the property AuthenticateOnUnsubscribe.
Disallows unauthenticated unsubscribes of the subscription. If the value of this
parameter is true and the request has an AWS signature, then only the
topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe
action requires AWS authentication.
Gets and sets the property Token.
Short-lived token sent to an endpoint during the Subscribe action.
Gets and sets the property TopicArn.
The ARN of the topic for which you wish to confirm a subscription.
Response for ConfirmSubscriptions action.
Gets and sets the property SubscriptionArn.
The ARN of the created subscription.
Container for the parameters to the CreatePlatformApplication operation.
Creates a platform application object for one of the supported push notification services,
such as APNS and GCM, to which devices and mobile apps may register. You must
specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication
action. The PlatformPrincipal is received from the notification service. For APNS/APNS_SANDBOX,
PlatformPrincipal is "SSL certificate". For GCM, PlatformPrincipal is not applicable.
For ADM, PlatformPrincipal is "client id". The PlatformCredential is also received
from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is
"private key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential
is "client secret". The PlatformApplicationArn that is returned when using
CreatePlatformApplication is then used as an attribute for the CreatePlatformEndpoint
action. For more information, see Using
Amazon SNS Mobile Push Notifications.
Gets and sets the property Attributes.
For a list of attributes, see SetPlatformApplicationAttributes
Gets and sets the property Name.
Application names must be made up of only uppercase and lowercase ASCII letters, numbers,
underscores, hyphens, and periods, and must be between 1 and 256 characters long.
Gets and sets the property Platform.
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple
Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
Response from CreatePlatformApplication action.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn is returned.
Container for the parameters to the CreatePlatformEndpoint operation.
Creates an endpoint for a device and mobile app on one of the supported push notification
services, such as GCM and APNS. CreatePlatformEndpoint requires
the PlatformApplicationArn that is returned from CreatePlatformApplication.
The EndpointArn that is returned when using CreatePlatformEndpoint
can then be used by the Publish action 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.
Gets and sets the property Attributes.
For a list of attributes, see SetEndpointAttributes.
Gets and sets the property CustomUserData.
Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data.
The data must be in UTF-8 format and less than 2KB.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn returned from CreatePlatformApplication is used to create a
an endpoint.
Gets and sets the property Token.
Unique identifier created by the notification service for an app on a device.
The specific name for Token will vary, depending on which notification service is
being used. For example, when using APNS as the notification service, you need
the device token. Alternatively, when using GCM or ADM, the device token equivalent
is called the registration ID.
Response from CreateEndpoint action.
Gets and sets the property EndpointArn.
EndpointArn returned from CreateEndpoint action.
Container for the parameters to the CreateTopic operation.
Creates a topic to which notifications can be published. Users can create at most
3000 topics. For more information, see http://aws.amazon.com/sns.
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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates CreateTopicRequest with the parameterized properties
The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.
Gets and sets the property Name.
The name of the topic you want to create.
Constraints: Topic names must be made up of only uppercase and lowercase ASCII
letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters
long.
Response from CreateTopic action.
Gets and sets the property TopicArn.
The Amazon Resource Name (ARN) assigned to the created topic.
Container for the parameters to the DeleteEndpoint operation.
Deletes the endpoint from Amazon SNS. This action is idempotent. For more information,
see Using Amazon
SNS Mobile Push Notifications.
Gets and sets the property EndpointArn.
EndpointArn of endpoint to delete.
This is the response object from the DeleteEndpoint operation.
Container for the parameters to the DeletePlatformApplication operation.
Deletes a platform application object for one of the supported push notification services,
such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn of platform application object to delete.
This is the response object from the DeletePlatformApplication operation.
Container for the parameters to the DeleteTopic operation.
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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates DeleteTopicRequest with the parameterized properties
The ARN of the topic you want to delete. http://sns.us-east-1.amazonaws.com/ ?TopicArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3AMy-Topic &Action=DeleteTopic &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2010-03-31T12%3A00%3A00.000Z &AWSAccessKeyId=(AWS Access Key ID) &Signature=DjHBa%2BbYCKQAzctOPnLP7MbHnrHT3%2FK3kFEZjwcf9%2FU%3D <DeleteTopicResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/"> <ResponseMetadata> <RequestId>fba800b9-3765-11df-8cf3-c58c53254dfb</RequestId> </ResponseMetadata></DeleteTopicResponse>
Gets and sets the property TopicArn.
The ARN of the topic you want to delete.
This is the response object from the DeleteTopic operation.
Endpoint for mobile app and device.
Gets and sets the property Attributes.
Attributes for endpoint.
Gets and sets the property EndpointArn.
EndpointArn for mobile app and device.
SimpleNotificationService exception
Constructs a new EndpointDisabledException with the specified error
message.
Describes the error encountered.
Construct instance of EndpointDisabledException
Construct instance of EndpointDisabledException
Construct instance of EndpointDisabledException
Construct instance of EndpointDisabledException
Constructs a new instance of the EndpointDisabledException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the GetEndpointAttributes operation.
Retrieves the endpoint attributes for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Gets and sets the property EndpointArn.
EndpointArn for GetEndpointAttributes input.
Response from GetEndpointAttributes of the EndpointArn.
Gets and sets the property Attributes.
Attributes include the following:
CustomUserData -- arbitrary user data to associate
with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format
and less than 2KB. Enabled -- flag that enables/disables
delivery to the endpoint. Amazon SNS will set this to false when a notification
service indicates to Amazon SNS that the endpoint is invalid. Users can set
it back to true, typically after updating Token. Token
-- device token, also referred to as a registration id, for an app and mobile device.
This is returned from the notification service when an app and mobile device
are registered with the notification service.
Container for the parameters to the GetPlatformApplicationAttributes operation.
Retrieves the attributes of the platform application object for the supported push
notification services, such as APNS and GCM. For more information, see
Using Amazon
SNS Mobile Push Notifications.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn for GetPlatformApplicationAttributesInput.
Response for GetPlatformApplicationAttributes action.
Gets and sets the property Attributes.
Attributes include the following:
EventEndpointCreated -- Topic ARN
to which EndpointCreated event notifications should be sent. EventEndpointDeleted
-- Topic ARN to which EndpointDeleted event notifications should be sent.
EventEndpointUpdated -- Topic ARN to which EndpointUpdate event
notifications should be sent. EventDeliveryFailure
-- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct
Publish delivery failure (permanent) to one of the application's endpoints.
Container for the parameters to the GetSubscriptionAttributes operation.
Returns all of the properties of a subscription.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates GetSubscriptionAttributesRequest with the parameterized properties
The ARN of the subscription whose properties you want to get.
Gets and sets the property SubscriptionArn.
The ARN of the subscription whose properties you want to get.
Response for GetSubscriptionAttributes action.
Gets and sets the property Attributes.
A map of the subscription's attributes. Attributes in this map include the following:
SubscriptionArn -- the subscription's ARN
TopicArn -- the topic ARN that the subscription is associated with
Owner -- the AWS account ID of the subscription's owner
ConfirmationWasAuthenticated -- true if the subscription confirmation
request was authenticated DeliveryPolicy -- the JSON serialization
of the subscription's delivery policy EffectiveDeliveryPolicy
-- the JSON serialization of the effective delivery policy that takes into account
the topic delivery policy and account system defaults
Container for the parameters to the GetTopicAttributes operation.
Returns all of the properties of a topic. Topic properties returned might differ
based on the authorization of the user.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates GetTopicAttributesRequest with the parameterized properties
The ARN of the topic whose properties you want to get.
Gets and sets the property TopicArn.
The ARN of the topic whose properties you want to get.
Response for GetTopicAttributes action.
Gets and sets the property Attributes.
A map of the topic's attributes. Attributes in this map include the following:
TopicArn -- the topic's ARN Owner
-- the AWS account ID of the topic's owner Policy -- the
JSON serialization of the topic's access control policy DisplayName
-- the human-readable name used in the "From" field for notifications to email and
email-json endpoints SubscriptionsPending -- the number
of subscriptions pending confirmation on this topic SubscriptionsConfirmed
-- the number of confirmed subscriptions on this topic SubscriptionsDeleted
-- the number of deleted subscriptions on this topic DeliveryPolicy
-- the JSON serialization of the topic's delivery policy EffectiveDeliveryPolicy
-- the JSON serialization of the effective delivery policy that takes into account
system defaults
SimpleNotificationService exception
Constructs a new InternalErrorException with the specified error
message.
Describes the error encountered.
Construct instance of InternalErrorException
Construct instance of InternalErrorException
Construct instance of InternalErrorException
Construct instance of InternalErrorException
Constructs a new instance of the InternalErrorException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
SimpleNotificationService exception
Constructs a new InvalidParameterException with the specified error
message.
Describes the error encountered.
Construct instance of InvalidParameterException
Construct instance of InvalidParameterException
Construct instance of InvalidParameterException
Construct instance of InvalidParameterException
Constructs a new instance of the InvalidParameterException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
SimpleNotificationService exception
Constructs a new InvalidParameterValueException with the specified error
message.
Describes the error encountered.
Construct instance of InvalidParameterValueException
Construct instance of InvalidParameterValueException
Construct instance of InvalidParameterValueException
Construct instance of InvalidParameterValueException
Constructs a new instance of the InvalidParameterValueException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the ListEndpointsByPlatformApplication operation.
Lists the endpoints and endpoint attributes for devices in a supported push notification
service, such as GCM 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.
Gets and sets the property NextToken.
NextToken string is used when calling ListEndpointsByPlatformApplication action to
retrieve additional records that are available after the first page results.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action.
Response for ListEndpointsByPlatformApplication action.
Gets and sets the property Endpoints.
Endpoints returned for ListEndpointsByPlatformApplication action.
Gets and sets the property NextToken.
NextToken string is returned when calling ListEndpointsByPlatformApplication action
if additional records are available after the first page results.
Container for the parameters to the ListPlatformApplications operation.
Lists the platform application objects for the supported push notification services,
such as APNS and GCM. 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.
Gets and sets the property NextToken.
NextToken string is used when calling ListPlatformApplications action to retrieve
additional records that are available after the first page results.
Response for ListPlatformApplications action.
Gets and sets the property NextToken.
NextToken string is returned when calling ListPlatformApplications action if additional
records are available after the first page results.
Gets and sets the property PlatformApplications.
Platform applications returned when calling ListPlatformApplications action.
Container for the parameters to the ListSubscriptionsByTopic operation.
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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates ListSubscriptionsByTopicRequest with the parameterized properties
The ARN of the topic for which you wish to find subscriptions.
Instantiates ListSubscriptionsByTopicRequest with the parameterized properties
The ARN of the topic for which you wish to find subscriptions.
Token returned by the previous ListSubscriptionsByTopic request.
Gets and sets the property NextToken.
Token returned by the previous ListSubscriptionsByTopic request.
Gets and sets the property TopicArn.
The ARN of the topic for which you wish to find subscriptions.
Response for ListSubscriptionsByTopic action.
Gets and sets the property NextToken.
Token to pass along to the next ListSubscriptionsByTopic request. This
element is returned if there are more subscriptions to retrieve.
Gets and sets the property Subscriptions.
A list of subscriptions.
Container for the parameters to the ListSubscriptions operation.
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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates ListSubscriptionsRequest with the parameterized properties
Token returned by the previous ListSubscriptions request.
Gets and sets the property NextToken.
Token returned by the previous ListSubscriptions request.
Response for ListSubscriptions action
Gets and sets the property NextToken.
Token to pass along to the next ListSubscriptions request. This element
is returned if there are more subscriptions to retrieve.
Gets and sets the property Subscriptions.
A list of subscriptions.
Container for the parameters to the ListTopics operation.
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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates ListTopicsRequest with the parameterized properties
Token returned by the previous ListTopics request.
Gets and sets the property NextToken.
Token returned by the previous ListTopics request.
Response for ListTopics action.
Gets and sets the property NextToken.
Token to pass along to the next ListTopics request. This element is returned
if there are additional topics to retrieve.
Gets and sets the property Topics.
A list of topic ARNs.
The user-specified message attribute value. For string data types, the value attribute
has the same restrictions on the content as the message body. For more information,
see Publish.
Name, type, and value must not be empty or null. In addition, the message body should
not be empty or null. All parts of the message attribute, including name, type,
and value, are included in the message size restriction, which is currently 256 KB
(262,144 bytes).
Gets and sets the property BinaryValue.
Binary type attributes can store any binary data, for example, compressed data, encrypted
data, or images.
Gets and sets the property DataType.
Amazon SNS supports the following logical data types: String, Number, and Binary.
For more information, see Message
Attribute Data Types.
Gets and sets the property StringValue.
Strings are Unicode with UTF8 binary encoding. For a list of code values, see
http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.
SimpleNotificationService exception
Constructs a new NotFoundException with the specified error
message.
Describes the error encountered.
Construct instance of NotFoundException
Construct instance of NotFoundException
Construct instance of NotFoundException
Construct instance of NotFoundException
Constructs a new instance of the NotFoundException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Platform application object.
Gets and sets the property Attributes.
Attributes for platform application object.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn for platform application object.
SimpleNotificationService exception
Constructs a new PlatformApplicationDisabledException with the specified error
message.
Describes the error encountered.
Construct instance of PlatformApplicationDisabledException
Construct instance of PlatformApplicationDisabledException
Construct instance of PlatformApplicationDisabledException
Construct instance of PlatformApplicationDisabledException
Constructs a new instance of the PlatformApplicationDisabledException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the Publish operation.
Sends a message to all of a topic's subscribed endpoints. When a messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it
to the topic's subscribers shortly. The format of the outgoing message to each
subscribed endpoint depends on the notification protocol selected.
To use the Publish action for sending a message to a mobile endpoint,
such as an app on a Kindle device or mobile phone, you must specify the EndpointArn.
The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action. The second example below shows a request and response for publishing
to a mobile endpoint.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates PublishRequest with the parameterized properties
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
Instantiates PublishRequest with the parameterized properties
The topic you want to publish to.
The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. See the Examples section for the format of the JSON object. Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints: - Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing messages.
- Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).
- Values have a minimum length of 0 (the empty string, "", is allowed).
- Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).
- Non-string values will cause the key to be ignored.
- Keys that do not correspond to supported transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will cause the
Publish call to return an error (no partial delivery).
Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
Gets and sets the property Message.
The message you want to send to the topic.
If you want to send the same message to all transport protocols, include the
text of the message as a String value.
If you want to send different messages for each transport protocol, set the
value of the MessageStructure parameter to json and
use a JSON object for the Message parameter. See the Examples section
for the format of the JSON object.
Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144
bytes, not 262144 characters).
JSON-specific constraints: - Keys in the JSON object that correspond
to supported transport protocols must have simple JSON string values.
- The values will be parsed (unescaped) before they are used in outgoing
messages.
- Outbound notifications are JSON encoded (meaning
that the characters will be reescaped for sending).
- Values have a
minimum length of 0 (the empty string, "", is allowed).
- Values have
a maximum length bounded by the overall message size (so, including multiple
protocols may limit message sizes).
- Non-string values will cause the
key to be ignored.
- Keys that do not correspond to supported
transport protocols are ignored.
- Duplicate keys are not allowed.
- Failure to parse or validate any key or value in the message will
cause the
Publish call to return an error (no partial delivery).
Gets and sets the property MessageAttributes.
Gets and sets the property MessageStructure.
Set MessageStructure to json if you want to send a
different message for each protocol. For example, using one publish action, you
can send a short message to your SMS subscribers and a longer message to your
email subscribers. If you set MessageStructure to json,
the value of the Message parameter must:
- be a syntactically valid JSON object; and
- contain
at least a top-level JSON key of "default" with a value that is a string.
You can define other top-level keys that define the message you want to send
to a specific transport protocol (e.g., "http").
For information about sending different messages for each protocol using the
AWS Management Console, go to Create
Different Messages for Each Protocol in the Amazon Simple Notification
Service Getting Started Guide.
Valid value: json
Gets and sets the property Subject.
Optional parameter to be used as the "Subject" line when the message is delivered
to email endpoints. This field will also be included, if present, in the standard
JSON messages delivered to other endpoints.
Constraints: Subjects must be ASCII text that begins with a letter, number,
or punctuation mark; must not include line breaks or control characters; and
must be less than 100 characters long.
Gets and sets the property TargetArn.
Either TopicArn or EndpointArn, but not both.
Gets and sets the property TopicArn.
The topic you want to publish to.
Response for Publish action.
Gets and sets the property MessageId.
Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
Container for the parameters to the RemovePermission operation.
Removes a statement from a topic's access control policy.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates RemovePermissionRequest with the parameterized properties
The ARN of the topic whose access control policy you wish to modify.
The unique label of the statement you want to remove.
Gets and sets the property Label.
The unique label of the statement you want to remove.
Gets and sets the property TopicArn.
The ARN of the topic whose access control policy you wish to modify.
This is the response object from the RemovePermission operation.
Container for the parameters to the SetEndpointAttributes operation.
Sets the attributes for an endpoint for a device on one of the supported push notification
services, such as GCM and APNS. For more information, see Using
Amazon SNS Mobile Push Notifications.
Gets and sets the property Attributes.
A map of the endpoint attributes. Attributes in this map include the following:
CustomUserData -- arbitrary user data to associate
with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format
and less than 2KB. Enabled -- flag that enables/disables
delivery to the endpoint. Amazon SNS will set this to false when a notification
service indicates to Amazon SNS that the endpoint is invalid. Users can set
it back to true, typically after updating Token. Token
-- device token, also referred to as a registration id, for an app and mobile device.
This is returned from the notification service when an app and mobile device
are registered with the notification service.
Gets and sets the property EndpointArn.
EndpointArn used for SetEndpointAttributes action.
This is the response object from the SetEndpointAttributes operation.
Container for the parameters to the SetPlatformApplicationAttributes operation.
Sets the attributes of the platform application object for the supported push notification
services, such as APNS and GCM. For more information, see Using
Amazon SNS Mobile Push Notifications.
Gets and sets the property Attributes.
A map of the platform application attributes. Attributes in this map include the following:
PlatformCredential -- The credential received
from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is "private
key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential
is "client secret". PlatformPrincipal -- The principal
received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is
"SSL certificate". For GCM, PlatformPrincipal is not applicable. For ADM,
PlatformPrincipal is "client id". EventEndpointCreated
-- Topic ARN to which EndpointCreated event notifications should be sent.
EventEndpointDeleted -- Topic ARN to which EndpointDeleted event
notifications should be sent. EventEndpointUpdated -- Topic
ARN to which EndpointUpdate event notifications should be sent. EventDeliveryFailure
-- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct
Publish delivery failure (permanent) to one of the application's endpoints.
Gets and sets the property PlatformApplicationArn.
PlatformApplicationArn for SetPlatformApplicationAttributes action.
This is the response object from the SetPlatformApplicationAttributes operation.
Container for the parameters to the SetSubscriptionAttributes operation.
Allows a subscription owner to set an attribute of the topic to a new value.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates SetSubscriptionAttributesRequest with the parameterized properties
The ARN of the subscription to modify.
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: DeliveryPolicy | RawMessageDelivery
The new value for the attribute in JSON format.
Gets and sets the property AttributeName.
The name of the attribute you want to set. Only a subset of the subscriptions attributes
are mutable.
Valid values: DeliveryPolicy | RawMessageDelivery
Gets and sets the property AttributeValue.
The new value for the attribute in JSON format.
Gets and sets the property SubscriptionArn.
The ARN of the subscription to modify.
This is the response object from the SetSubscriptionAttributes operation.
Container for the parameters to the SetTopicAttributes operation.
Allows a topic owner to set an attribute of the topic to a new value.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates SetTopicAttributesRequest with the parameterized properties
The ARN of the topic to modify.
The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: Policy | DisplayName | DeliveryPolicy
The new value for the attribute.
Gets and sets the property AttributeName.
The name of the attribute you want to set. Only a subset of the topic's attributes
are mutable.
Valid values: Policy | DisplayName | DeliveryPolicy
Gets and sets the property AttributeValue.
The new value for the attribute.
Gets and sets the property TopicArn.
The ARN of the topic to modify.
This is the response object from the SetTopicAttributes operation.
Container for the parameters to the Subscribe operation.
Prepares to subscribe an endpoint by sending the endpoint a confirmation message.
To actually create a subscription, the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are
valid for three days.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates SubscribeRequest with the parameterized properties
The ARN of the topic you want to subscribe to.
The protocol you want to use. Supported protocols include: http -- delivery of JSON-encoded message via HTTP POST https -- delivery of JSON-encoded message via HTTPS POST email -- delivery of message via SMTP email-json -- delivery of JSON-encoded message via SMTP sms -- delivery of message via SMS sqs -- delivery of JSON-encoded message to an Amazon SQS queue application -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.
The endpoint that you want to receive notifications. Endpoints vary by protocol: - For the
http protocol, the endpoint is an URL beginning with "http://" - For the
https protocol, the endpoint is a URL beginning with "https://" - For the
email protocol, the endpoint is an email address - For the
email-json protocol, the endpoint is an email address - For the
sms protocol, the endpoint is a phone number of an SMS-enabled device - For the
sqs protocol, the endpoint is the ARN of an Amazon SQS queue - For the
application protocol, the endpoint is the EndpointArn of a mobile app and device.
Gets and sets the property Endpoint.
The endpoint that you want to receive notifications. Endpoints vary by protocol:
- For the
http protocol, the endpoint is an URL beginning
with "http://" - For the
https protocol, the endpoint is
a URL beginning with "https://" - For the
email protocol,
the endpoint is an email address - For the
email-json protocol,
the endpoint is an email address - For the
sms protocol,
the endpoint is a phone number of an SMS-enabled device - For the
sqs
protocol, the endpoint is the ARN of an Amazon SQS queue - For the
application
protocol, the endpoint is the EndpointArn of a mobile app and device.
Gets and sets the property Protocol.
The protocol you want to use. Supported protocols include:
http -- delivery of JSON-encoded message via HTTP POST
https -- delivery of JSON-encoded message via HTTPS POST
email -- delivery of message via SMTP email-json
-- delivery of JSON-encoded message via SMTP sms -- delivery
of message via SMS sqs -- delivery of JSON-encoded message
to an Amazon SQS queue application -- delivery of JSON-encoded
message to an EndpointArn for a mobile app and device.
Gets and sets the property TopicArn.
The ARN of the topic you want to subscribe to.
Response for Subscribe action.
Gets and sets the property SubscriptionArn.
The ARN of the subscription, if the service was able to create a subscription
immediately (without requiring endpoint owner confirmation).
A wrapper type for the attributes of an Amazon SNS subscription.
Empty constructor used to set properties independently even when a simple constructor is available
Gets and sets the property Endpoint.
The subscription's endpoint (format depends on the protocol).
Gets and sets the property Owner.
The subscription's owner.
Gets and sets the property Protocol.
The subscription's protocol.
Gets and sets the property SubscriptionArn.
The subscription's ARN.
Gets and sets the property TopicArn.
The ARN of the subscription's topic.
SimpleNotificationService exception
Constructs a new SubscriptionLimitExceededException with the specified error
message.
Describes the error encountered.
Construct instance of SubscriptionLimitExceededException
Construct instance of SubscriptionLimitExceededException
Construct instance of SubscriptionLimitExceededException
Construct instance of SubscriptionLimitExceededException
Constructs a new instance of the SubscriptionLimitExceededException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes,
use GetTopicAttributes.
Empty constructor used to set properties independently even when a simple constructor is available
Gets and sets the property TopicArn.
The topic's ARN.
SimpleNotificationService exception
Constructs a new TopicLimitExceededException with the specified error
message.
Describes the error encountered.
Construct instance of TopicLimitExceededException
Construct instance of TopicLimitExceededException
Construct instance of TopicLimitExceededException
Construct instance of TopicLimitExceededException
Constructs a new instance of the TopicLimitExceededException class with serialized data.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null.
The class name is null or is zero (0).
Container for the parameters to the Unsubscribe operation.
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 AWS 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.
Empty constructor used to set properties independently even when a simple constructor is available
Instantiates UnsubscribeRequest with the parameterized properties
The ARN of the subscription to be deleted.
Gets and sets the property SubscriptionArn.
The ARN of the subscription to be deleted.
This is the response object from the Unsubscribe operation.
AddPermission Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for AddPermission operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ConfirmSubscription Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ConfirmSubscription operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
CreatePlatformApplication Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for CreatePlatformApplication operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
CreatePlatformEndpoint Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for CreatePlatformEndpoint operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
CreateTopic Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for CreateTopic operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
DeleteEndpoint Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for DeleteEndpoint operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
DeletePlatformApplication Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for DeletePlatformApplication operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
DeleteTopic Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for DeleteTopic operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Response Unmarshaller for Endpoint Object
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
GetEndpointAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for GetEndpointAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
GetPlatformApplicationAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for GetPlatformApplicationAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
GetSubscriptionAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for GetSubscriptionAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
GetTopicAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for GetTopicAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ListEndpointsByPlatformApplication Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ListEndpointsByPlatformApplication operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ListPlatformApplications Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ListPlatformApplications operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ListSubscriptionsByTopic Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ListSubscriptionsByTopic operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ListSubscriptions Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ListSubscriptions operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
ListTopics Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for ListTopics operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Response Unmarshaller for PlatformApplication Object
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Publish Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for Publish operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
RemovePermission Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for RemovePermission operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
SetEndpointAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for SetEndpointAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
SetPlatformApplicationAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for SetPlatformApplicationAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
SetSubscriptionAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for SetSubscriptionAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
SetTopicAttributes Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for SetTopicAttributes operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Subscribe Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for Subscribe operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Response Unmarshaller for Subscription Object
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Response Unmarshaller for Topic Object
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Unsubscribe Request Marshaller
Marshaller the request object to the HTTP request.
Marshaller the request object to the HTTP request.
Response Unmarshaller for Unsubscribe operation
Unmarshaller the response from the service to the response class.
Unmarshaller error response to exception.
Gets the singleton.
Base class for SimpleNotificationService operation requests.