amazonka-sns-1.2.0.1: Amazon Simple Notification Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SNS.Types

Contents

Description

 

Synopsis

Service Configuration

sNS :: Service Source

API version '2010-03-31' of the Amazon Simple Notification Service SDK configuration.

Errors

_EndpointDisabledException :: AsError a => Getting (First ServiceError) a ServiceError Source

Exception error indicating endpoint disabled.

_AuthorizationErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source

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

_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source

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

_SubscriptionLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

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

_PlatformApplicationDisabledException :: AsError a => Getting (First ServiceError) a ServiceError Source

Exception error indicating platform application disabled.

_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source

Indicates an internal service error.

_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source

Indicates that the requested resource does not exist.

_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError Source

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

_TopicLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

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

Endpoint

data Endpoint Source

Endpoint for mobile app and device.

See: endpoint smart constructor.

endpoint :: Endpoint Source

Creates a value of Endpoint with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

eAttributes :: Lens' Endpoint (HashMap Text Text) Source

Attributes for endpoint.

eEndpointARN :: Lens' Endpoint (Maybe Text) Source

EndpointArn for mobile app and device.

MessageAttributeValue

data MessageAttributeValue Source

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). For more information, see Using Amazon SNS Message Attributes.

See: messageAttributeValue smart constructor.

messageAttributeValue Source

Creates a value of MessageAttributeValue with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

mavBinaryValue :: Lens' MessageAttributeValue (Maybe ByteString) Source

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.

Note: This Lens automatically encodes and decodes Base64 data, despite what the AWS documentation might say. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

mavStringValue :: Lens' MessageAttributeValue (Maybe Text) Source

Strings are Unicode with UTF8 binary encoding. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

mavDataType :: Lens' MessageAttributeValue Text Source

Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see Message Attribute Data Types.

PlatformApplication

platformApplication :: PlatformApplication Source

Creates a value of PlatformApplication with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

paPlatformApplicationARN :: Lens' PlatformApplication (Maybe Text) Source

PlatformApplicationArn for platform application object.

paAttributes :: Lens' PlatformApplication (HashMap Text Text) Source

Attributes for platform application object.

Subscription

data Subscription Source

A wrapper type for the attributes of an Amazon SNS subscription.

See: subscription smart constructor.

subscription :: Subscription Source

Creates a value of Subscription with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sProtocol :: Lens' Subscription (Maybe Text) Source

The subscription's protocol.

sOwner :: Lens' Subscription (Maybe Text) Source

The subscription's owner.

sTopicARN :: Lens' Subscription (Maybe Text) Source

The ARN of the subscription's topic.

sEndpoint :: Lens' Subscription (Maybe Endpoint) Source

The subscription's endpoint (format depends on the protocol).

sSubscriptionARN :: Lens' Subscription (Maybe Text) Source

The subscription's ARN.

Topic

data Topic Source

A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes, use GetTopicAttributes.

See: topic smart constructor.

topic :: Topic Source

Creates a value of Topic with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tTopicARN :: Lens' Topic (Maybe Text) Source

The topic's ARN.