[][src]Struct sns_push_notifications::SnsClient

pub struct SnsClient { /* fields omitted */ }

A client for interacting with SNS

Methods

impl SnsClient[src]

pub fn new_checked(region: Region) -> Result<Self, Error>[src]

Create a new client for a specific region.

It requires that the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are set. It will return an error if either of them aren't set.

pub fn register_device(
    &self,
    token: &str,
    platform_application_arn: &str
) -> Result<EndpointArn, Error>
[src]

Register a device with SNS and get back its corresponding ID.

If a device with the given token has already been registered you'll get back the same ID.

You can get the platform_application_arn from the SNS dashboard.

pub fn send_push(
    &self,
    push: &Push,
    endpoint_arn: &EndpointArn
) -> Result<(), Error>
[src]

Send a push notification to a specific endpoint arn.

Auto Trait Implementations

impl Send for SnsClient

impl Sync for SnsClient

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T