aws-sns-0.1: Bindings for AWS SNS Version 2013-03-31

Stabilityexperimental
MaintainerLars Kuhtz <lars@alephcloud.com>
Safe HaskellNone

Aws.Sns.Commands.Subscribe

Description

API Version: 2013-03-31

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.

http://docs.aws.amazon.com/sns/2010-03-31/APIReference/API_Subscribe.html

Documentation

data Subscribe Source

Constructors

Subscribe 

Fields

subscribeEndpoint :: !(Maybe SnsEndpoint)

The endpoint that you want to receive notifications. This must match with the corresponding protocol (see SnsEndPoint for details).

subscribeProtocol :: !SnsProtocol

The protocol you want to use.

subscribeTopicArn :: !Arn

The ARN of the topic you want to subscribe to.

data SubscribeResponse Source

Constructors

SubscribeResponse 

Fields

subscribeResSubscriptionArn :: !(Maybe Arn)

The ARN of the subscription, if the service was able to create a subscription immediately (without requiring endpoint owner confirmation).

data SubscribeErrors Source

Constructors

SubscribeAuthorizationError

Indicates that the user has been denied access to the requested resource.

Code 403

SubscribeInternalError

Indicates an internal service error.

Code 500

SubscribeInvalidParameter

Indicates that a request parameter does not comply with the associated constraints.

Code 400

SubscribeNotFound

Indicates that the requested resource does not exist.

Code 404

SubscribeTopicLimitExceeded

Indicates that the customer already owns the maximum allowed number of subscriptions.

Code 403