Given a valid region name, return a boto.sns.connection.SNSConnection.
Type: | str |
---|---|
Parameters: | region_name – The name of the region to connect to. |
Return type: | boto.sns.connection.SNSConnection or None |
Returns: | A connection to the given region, or None if an invalid region name is given |
Get all available regions for the SNS service.
Return type: | list |
---|---|
Returns: | A list of boto.regioninfo.RegionInfo instances |
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`_.
Adds a statement to a topic’s access control policy, granting access for the specified AWS accounts to the specified actions.
Parameters: |
|
---|
Get properties of a Topic
Parameters: |
---|
The CreatePlatformApplication action 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`_.
Parameters: |
|
---|
The CreatePlatformEndpoint 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. For more information, see `Using Amazon SNS Mobile Push Notifications`_.
Parameters: |
|
---|
The DeleteEndpoint action, which is idempotent, deletes the endpoint from SNS. For more information, see `Using Amazon SNS Mobile Push Notifications`_.
Parameters: | endpoint_arn (string) – EndpointArn of endpoint to delete. |
---|
The DeletePlatformApplication action 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`_.
Parameters: | platform_application_arn (string) – PlatformApplicationArn of platform application object to delete. |
---|
Get list of all subscriptions.
Parameters: | next_token (string) – Token returned by the previous call to this method. |
---|
Get list of all subscriptions to a specific topic.
Parameters: |
---|
Parameters: | next_token (string) – Token returned by the previous call to this method. |
---|
The GetEndpointAttributes 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`_.
Parameters: | endpoint_arn (string) – EndpointArn for GetEndpointAttributes input. |
---|
The GetPlatformApplicationAttributes action 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`_.
Parameters: | platform_application_arn (string) – PlatformApplicationArn for GetPlatformApplicationAttributesInput. |
---|
Get attributes of a Topic
Parameters: | topic (string) – The ARN of the topic. |
---|
The ListEndpointsByPlatformApplication action 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`_.
Parameters: |
---|
The ListPlatformApplications action 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`_.
Parameters: | next_token (string) – NextToken string is used when calling ListPlatformApplications action to retrieve additional records that are available after the first page results. |
---|
Get properties of a Topic
Parameters: |
|
---|
Removes a statement from a topic’s access control policy.
Parameters: |
---|
The SetEndpointAttributes action 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`_.
Parameters: |
---|
endpoint. SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
Message Processor will set this to false when a notification service indicates to SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.
an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
The SetPlatformApplicationAttributes action 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`_.
Parameters: |
---|
service. For APNS/APNS_SANDBOX, PlatformCredential is “private key”. For GCM, PlatformCredential is “API key”. For ADM, PlatformCredential is “client secret”.
service. For APNS/APNS_SANDBOX, PlatformPrincipal is “SSL certificate”. For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is “client id”.
notifications should be sent.
notifications should be sent.
notifications should be sent.
notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application’s endpoints.
Get attributes of a Topic
Parameters: |
---|
Subscribe to a Topic.
Parameters: |
|
---|
Subscribe an SQS queue to a topic.
This is convenience method that handles most of the complexity involved in using an SQS queue as an endpoint for an SNS topic. To achieve this the following operations are performed:
Parameters: |
|
---|