amazonka-sns-2.0: Amazon Simple Notification Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SNS.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

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

Errors

_AuthorizationErrorException :: AsError a => Fold a ServiceError Source #

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

_BatchEntryIdsNotDistinctException :: AsError a => Fold a ServiceError Source #

Two or more batch entries in the request have the same Id.

_BatchRequestTooLongException :: AsError a => Fold a ServiceError Source #

The length of all the batch messages put together is more than the limit.

_ConcurrentAccessException :: AsError a => Fold a ServiceError Source #

Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially.

_EmptyBatchRequestException :: AsError a => Fold a ServiceError Source #

The batch request doesn't contain any entries.

_EndpointDisabledException :: AsError a => Fold a ServiceError Source #

Exception error indicating endpoint disabled.

_FilterPolicyLimitExceededException :: AsError a => Fold a ServiceError Source #

Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support Center.

_InternalErrorException :: AsError a => Fold a ServiceError Source #

Indicates an internal service error.

_InvalidBatchEntryIdException :: AsError a => Fold a ServiceError Source #

The Id of a batch entry in a batch request doesn't abide by the specification.

_InvalidParameterException :: AsError a => Fold a ServiceError Source #

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

_InvalidParameterValueException :: AsError a => Fold a ServiceError Source #

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

_InvalidSecurityException :: AsError a => Fold a ServiceError Source #

The credential signature isn't valid. You must use an HTTPS endpoint and sign your request using Signature Version 4.

_KMSAccessDeniedException :: AsError a => Fold a ServiceError Source #

The ciphertext references a key that doesn't exist or that you don't have access to.

_KMSDisabledException :: AsError a => Fold a ServiceError Source #

The request was rejected because the specified customer master key (CMK) isn't enabled.

_KMSInvalidStateException :: AsError a => Fold a ServiceError Source #

The request was rejected because the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the Key Management Service Developer Guide.

_KMSNotFoundException :: AsError a => Fold a ServiceError Source #

The request was rejected because the specified entity or resource can't be found.

_KMSOptInRequired :: AsError a => Fold a ServiceError Source #

The Amazon Web Services access key ID needs a subscription for the service.

_KMSThrottlingException :: AsError a => Fold a ServiceError Source #

The request was denied due to request throttling. For more information about throttling, see Limits in the Key Management Service Developer Guide.

_NotFoundException :: AsError a => Fold a ServiceError Source #

Indicates that the requested resource does not exist.

_OptedOutException :: AsError a => Fold a ServiceError Source #

Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. You can't send SMS messages to phone numbers that opt out.

_PlatformApplicationDisabledException :: AsError a => Fold a ServiceError Source #

Exception error indicating platform application disabled.

_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #

Can’t perform the action on the specified resource. Make sure that the resource exists.

_StaleTagException :: AsError a => Fold a ServiceError Source #

A tag has been added to a resource with the same ARN as a deleted resource. Wait a short while and then retry the operation.

_SubscriptionLimitExceededException :: AsError a => Fold a ServiceError Source #

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

_TagLimitExceededException :: AsError a => Fold a ServiceError Source #

Can't add more than 50 tags to a topic.

_TagPolicyException :: AsError a => Fold a ServiceError Source #

The request doesn't comply with the IAM tag policy. Correct your request and then retry it.

_ThrottledException :: AsError a => Fold a ServiceError Source #

Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account.

_TooManyEntriesInBatchRequestException :: AsError a => Fold a ServiceError Source #

The batch request contains more entries than permissible.

_TopicLimitExceededException :: AsError a => Fold a ServiceError Source #

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

_UserErrorException :: AsError a => Fold a ServiceError Source #

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

_ValidationException :: AsError a => Fold a ServiceError Source #

Indicates that a parameter in the request is invalid.

_VerificationException :: AsError a => Fold a ServiceError Source #

Indicates that the one-time password (OTP) used for verification is invalid.

LanguageCodeString

newtype LanguageCodeString Source #

Supported language code for sending OTP message

Instances

Instances details
FromJSON LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

FromJSONKey LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToJSON LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToJSONKey LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToByteString LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToHeader LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToLog LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToQuery LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

FromText LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToText LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

FromXML LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

ToXML LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Generic LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Associated Types

type Rep LanguageCodeString :: Type -> Type #

Read LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Show LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

NFData LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Methods

rnf :: LanguageCodeString -> () #

Eq LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Ord LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

Hashable LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

type Rep LanguageCodeString Source # 
Instance details

Defined in Amazonka.SNS.Types.LanguageCodeString

type Rep LanguageCodeString = D1 ('MetaData "LanguageCodeString" "Amazonka.SNS.Types.LanguageCodeString" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'True) (C1 ('MetaCons "LanguageCodeString'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromLanguageCodeString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

NumberCapability

newtype NumberCapability Source #

Enum listing out all supported number capabilities.

Instances

Instances details
FromJSON NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

FromJSONKey NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToJSON NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToJSONKey NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToByteString NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToHeader NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToLog NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToQuery NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

FromText NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToText NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

FromXML NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

ToXML NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Generic NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Associated Types

type Rep NumberCapability :: Type -> Type #

Read NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Show NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

NFData NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Methods

rnf :: NumberCapability -> () #

Eq NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Ord NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

Hashable NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

type Rep NumberCapability Source # 
Instance details

Defined in Amazonka.SNS.Types.NumberCapability

type Rep NumberCapability = D1 ('MetaData "NumberCapability" "Amazonka.SNS.Types.NumberCapability" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'True) (C1 ('MetaCons "NumberCapability'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromNumberCapability") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

RouteType

newtype RouteType Source #

Enum listing out all supported route types. The following enum values are supported. 1. Transactional : Non-marketing traffic 2. Promotional : Marketing 3. Premium : Premium routes for OTP delivery to the carriers

Constructors

RouteType' 

Fields

Instances

Instances details
FromJSON RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

FromJSONKey RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToJSON RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToJSONKey RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToByteString RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Methods

toBS :: RouteType -> ByteString #

ToHeader RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToLog RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToQuery RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

FromText RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToText RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Methods

toText :: RouteType -> Text #

FromXML RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

ToXML RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Methods

toXML :: RouteType -> XML #

Generic RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Associated Types

type Rep RouteType :: Type -> Type #

Read RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Show RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

NFData RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Methods

rnf :: RouteType -> () #

Eq RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Ord RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

Hashable RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

type Rep RouteType Source # 
Instance details

Defined in Amazonka.SNS.Types.RouteType

type Rep RouteType = D1 ('MetaData "RouteType" "Amazonka.SNS.Types.RouteType" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'True) (C1 ('MetaCons "RouteType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromRouteType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

SMSSandboxPhoneNumberVerificationStatus

newtype SMSSandboxPhoneNumberVerificationStatus Source #

Enum listing out all supported destination phone number verification statuses. The following enum values are supported. 1. PENDING : The destination phone number is pending verification. 2. VERIFIED : The destination phone number is verified.

Instances

Instances details
FromJSON SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

FromJSONKey SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToJSON SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToJSONKey SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToByteString SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToHeader SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToLog SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToQuery SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

FromText SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToText SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

FromXML SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

ToXML SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Generic SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Read SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Show SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

NFData SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Eq SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Ord SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

Hashable SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

type Rep SMSSandboxPhoneNumberVerificationStatus Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus

type Rep SMSSandboxPhoneNumberVerificationStatus = D1 ('MetaData "SMSSandboxPhoneNumberVerificationStatus" "Amazonka.SNS.Types.SMSSandboxPhoneNumberVerificationStatus" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'True) (C1 ('MetaCons "SMSSandboxPhoneNumberVerificationStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromSMSSandboxPhoneNumberVerificationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

BatchResultErrorEntry

data BatchResultErrorEntry Source #

Gives a detailed description of failed messages in the batch.

See: newBatchResultErrorEntry smart constructor.

Constructors

BatchResultErrorEntry' 

Fields

  • message :: Maybe Text

    A message explaining why the action failed on this entry.

  • id :: Text

    The Id of an entry in a batch request

  • code :: Text

    An error code representing why the action failed on this entry.

  • senderFault :: Bool

    Specifies whether the error happened due to the caller of the batch API action.

Instances

Instances details
FromXML BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

Generic BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

Associated Types

type Rep BatchResultErrorEntry :: Type -> Type #

Read BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

Show BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

NFData BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

Methods

rnf :: BatchResultErrorEntry -> () #

Eq BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

Hashable BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

type Rep BatchResultErrorEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.BatchResultErrorEntry

type Rep BatchResultErrorEntry = D1 ('MetaData "BatchResultErrorEntry" "Amazonka.SNS.Types.BatchResultErrorEntry" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "BatchResultErrorEntry'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "senderFault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newBatchResultErrorEntry Source #

Create a value of BatchResultErrorEntry with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:message:BatchResultErrorEntry', batchResultErrorEntry_message - A message explaining why the action failed on this entry.

$sel:id:BatchResultErrorEntry', batchResultErrorEntry_id - The Id of an entry in a batch request

$sel:code:BatchResultErrorEntry', batchResultErrorEntry_code - An error code representing why the action failed on this entry.

$sel:senderFault:BatchResultErrorEntry', batchResultErrorEntry_senderFault - Specifies whether the error happened due to the caller of the batch API action.

batchResultErrorEntry_message :: Lens' BatchResultErrorEntry (Maybe Text) Source #

A message explaining why the action failed on this entry.

batchResultErrorEntry_id :: Lens' BatchResultErrorEntry Text Source #

The Id of an entry in a batch request

batchResultErrorEntry_code :: Lens' BatchResultErrorEntry Text Source #

An error code representing why the action failed on this entry.

batchResultErrorEntry_senderFault :: Lens' BatchResultErrorEntry Bool Source #

Specifies whether the error happened due to the caller of the batch API action.

Endpoint

data Endpoint Source #

The endpoint for mobile app and device.

See: newEndpoint smart constructor.

Constructors

Endpoint' 

Fields

Instances

Instances details
FromXML Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Generic Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Associated Types

type Rep Endpoint :: Type -> Type #

Methods

from :: Endpoint -> Rep Endpoint x #

to :: Rep Endpoint x -> Endpoint #

Read Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Show Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

NFData Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Methods

rnf :: Endpoint -> () #

Eq Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Hashable Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

Methods

hashWithSalt :: Int -> Endpoint -> Int #

hash :: Endpoint -> Int #

type Rep Endpoint Source # 
Instance details

Defined in Amazonka.SNS.Types.Endpoint

type Rep Endpoint = D1 ('MetaData "Endpoint" "Amazonka.SNS.Types.Endpoint" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "Endpoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "endpointArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newEndpoint :: Endpoint Source #

Create a value of Endpoint with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attributes:Endpoint', endpoint_attributes - Attributes for endpoint.

$sel:endpointArn:Endpoint', endpoint_endpointArn - The EndpointArn for mobile app and device.

endpoint_endpointArn :: Lens' Endpoint (Maybe Text) Source #

The 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 Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide.

See: newMessageAttributeValue smart constructor.

Constructors

MessageAttributeValue' 

Fields

Instances

Instances details
ToQuery MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Generic MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Associated Types

type Rep MessageAttributeValue :: Type -> Type #

Read MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Show MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

NFData MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Methods

rnf :: MessageAttributeValue -> () #

Eq MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Hashable MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

type Rep MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

type Rep MessageAttributeValue = D1 ('MetaData "MessageAttributeValue" "Amazonka.SNS.Types.MessageAttributeValue" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "MessageAttributeValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "binaryValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: (S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMessageAttributeValue Source #

Create a value of MessageAttributeValue with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:binaryValue:MessageAttributeValue', messageAttributeValue_binaryValue - 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. -- 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.

$sel:stringValue:MessageAttributeValue', messageAttributeValue_stringValue - Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.

$sel:dataType:MessageAttributeValue', messageAttributeValue_dataType - Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.

messageAttributeValue_binaryValue :: 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. -- 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.

messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text) Source #

Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.

messageAttributeValue_dataType :: Lens' MessageAttributeValue Text Source #

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

PhoneNumberInformation

data PhoneNumberInformation Source #

A list of phone numbers and their metadata.

See: newPhoneNumberInformation smart constructor.

Constructors

PhoneNumberInformation' 

Fields

Instances

Instances details
FromXML PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

Generic PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

Associated Types

type Rep PhoneNumberInformation :: Type -> Type #

Read PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

Show PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

NFData PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

Methods

rnf :: PhoneNumberInformation -> () #

Eq PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

Hashable PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

type Rep PhoneNumberInformation Source # 
Instance details

Defined in Amazonka.SNS.Types.PhoneNumberInformation

type Rep PhoneNumberInformation = D1 ('MetaData "PhoneNumberInformation" "Amazonka.SNS.Types.PhoneNumberInformation" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PhoneNumberInformation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "iso2CountryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "numberCapabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NumberCapability])))) :*: (S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "routeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RouteType)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newPhoneNumberInformation :: PhoneNumberInformation Source #

Create a value of PhoneNumberInformation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:createdAt:PhoneNumberInformation', phoneNumberInformation_createdAt - The date and time when the phone number was created.

$sel:iso2CountryCode:PhoneNumberInformation', phoneNumberInformation_iso2CountryCode - The two-character code for the country or region, in ISO 3166-1 alpha-2 format.

$sel:numberCapabilities:PhoneNumberInformation', phoneNumberInformation_numberCapabilities - The capabilities of each phone number.

$sel:phoneNumber:PhoneNumberInformation', phoneNumberInformation_phoneNumber - The phone number.

$sel:routeType:PhoneNumberInformation', phoneNumberInformation_routeType - The list of supported routes.

$sel:status:PhoneNumberInformation', phoneNumberInformation_status - The status of the phone number.

phoneNumberInformation_createdAt :: Lens' PhoneNumberInformation (Maybe UTCTime) Source #

The date and time when the phone number was created.

phoneNumberInformation_iso2CountryCode :: Lens' PhoneNumberInformation (Maybe Text) Source #

The two-character code for the country or region, in ISO 3166-1 alpha-2 format.

PlatformApplication

data PlatformApplication Source #

Platform application object.

See: newPlatformApplication smart constructor.

Constructors

PlatformApplication' 

Fields

Instances

Instances details
FromXML PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

Generic PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

Associated Types

type Rep PlatformApplication :: Type -> Type #

Read PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

Show PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

NFData PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

Methods

rnf :: PlatformApplication -> () #

Eq PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

Hashable PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

type Rep PlatformApplication Source # 
Instance details

Defined in Amazonka.SNS.Types.PlatformApplication

type Rep PlatformApplication = D1 ('MetaData "PlatformApplication" "Amazonka.SNS.Types.PlatformApplication" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PlatformApplication'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "platformApplicationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newPlatformApplication :: PlatformApplication Source #

Create a value of PlatformApplication with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attributes:PlatformApplication', platformApplication_attributes - Attributes for platform application object.

$sel:platformApplicationArn:PlatformApplication', platformApplication_platformApplicationArn - PlatformApplicationArn for platform application object.

platformApplication_attributes :: Lens' PlatformApplication (Maybe (HashMap Text Text)) Source #

Attributes for platform application object.

platformApplication_platformApplicationArn :: Lens' PlatformApplication (Maybe Text) Source #

PlatformApplicationArn for platform application object.

PublishBatchRequestEntry

data PublishBatchRequestEntry Source #

Contains the details of a single Amazon SNS message along with an Id that identifies a message within the batch.

See: newPublishBatchRequestEntry smart constructor.

Constructors

PublishBatchRequestEntry' 

Fields

  • messageAttributes :: Maybe (HashMap Text MessageAttributeValue)

    Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.

  • messageDeduplicationId :: Maybe Text

    This parameter applies only to FIFO (first-in-first-out) topics.

    The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered.

    • Every message must have a unique MessageDeduplicationId.

      • You may provide a MessageDeduplicationId explicitly.
      • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your topic, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).
      • If you don't provide a MessageDeduplicationId and the topic doesn't have ContentBasedDeduplication set, the action fails with an error.
      • If the topic has a ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.
    • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.
    • If you send one message with ContentBasedDeduplication enabled, and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

    The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

    If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SNS can't detect duplicate messages.

    Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted.

    The length of MessageDeduplicationId is 128 characters.

    MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

  • messageGroupId :: Maybe Text

    This parameter applies only to FIFO (first-in-first-out) topics.

    The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion.

    You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

    The length of MessageGroupId is 128 characters.

    MessageGroupId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

    MessageGroupId is required for FIFO topics. You can't use it for standard topics.

  • messageStructure :: Maybe Text

    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).

  • subject :: Maybe Text

    The subject of the batch message.

  • id :: Text

    An identifier for the message in this batch.

    The Ids of a batch request must be unique within a request.

    This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

  • message :: Text

    The body of the message.

Instances

Instances details
ToQuery PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

Generic PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

Associated Types

type Rep PublishBatchRequestEntry :: Type -> Type #

Read PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

Show PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

NFData PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

Eq PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

Hashable PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

type Rep PublishBatchRequestEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchRequestEntry

type Rep PublishBatchRequestEntry = D1 ('MetaData "PublishBatchRequestEntry" "Amazonka.SNS.Types.PublishBatchRequestEntry" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PublishBatchRequestEntry'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MessageAttributeValue))) :*: (S1 ('MetaSel ('Just "messageDeduplicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "messageStructure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newPublishBatchRequestEntry Source #

Create a value of PublishBatchRequestEntry with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:messageAttributes:PublishBatchRequestEntry', publishBatchRequestEntry_messageAttributes - Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.

$sel:messageDeduplicationId:PublishBatchRequestEntry', publishBatchRequestEntry_messageDeduplicationId - This parameter applies only to FIFO (first-in-first-out) topics.

The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered.

  • Every message must have a unique MessageDeduplicationId.

    • You may provide a MessageDeduplicationId explicitly.
    • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your topic, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).
    • If you don't provide a MessageDeduplicationId and the topic doesn't have ContentBasedDeduplication set, the action fails with an error.
    • If the topic has a ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.
  • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.
  • If you send one message with ContentBasedDeduplication enabled, and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SNS can't detect duplicate messages.

Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters.

MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

$sel:messageGroupId:PublishBatchRequestEntry', publishBatchRequestEntry_messageGroupId - This parameter applies only to FIFO (first-in-first-out) topics.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion.

You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

The length of MessageGroupId is 128 characters.

MessageGroupId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

MessageGroupId is required for FIFO topics. You can't use it for standard topics.

$sel:messageStructure:PublishBatchRequestEntry', publishBatchRequestEntry_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).

$sel:subject:PublishBatchRequestEntry', publishBatchRequestEntry_subject - The subject of the batch message.

$sel:id:PublishBatchRequestEntry', publishBatchRequestEntry_id - An identifier for the message in this batch.

The Ids of a batch request must be unique within a request.

This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

$sel:message:PublishBatchRequestEntry', publishBatchRequestEntry_message - The body of the message.

publishBatchRequestEntry_messageAttributes :: Lens' PublishBatchRequestEntry (Maybe (HashMap Text MessageAttributeValue)) Source #

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.

publishBatchRequestEntry_messageDeduplicationId :: Lens' PublishBatchRequestEntry (Maybe Text) Source #

This parameter applies only to FIFO (first-in-first-out) topics.

The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered.

  • Every message must have a unique MessageDeduplicationId.

    • You may provide a MessageDeduplicationId explicitly.
    • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your topic, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).
    • If you don't provide a MessageDeduplicationId and the topic doesn't have ContentBasedDeduplication set, the action fails with an error.
    • If the topic has a ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.
  • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.
  • If you send one message with ContentBasedDeduplication enabled, and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SNS can't detect duplicate messages.

Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters.

MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

publishBatchRequestEntry_messageGroupId :: Lens' PublishBatchRequestEntry (Maybe Text) Source #

This parameter applies only to FIFO (first-in-first-out) topics.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion.

You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

The length of MessageGroupId is 128 characters.

MessageGroupId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).

MessageGroupId is required for FIFO topics. You can't use it for standard topics.

publishBatchRequestEntry_messageStructure :: Lens' PublishBatchRequestEntry (Maybe Text) Source #

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).

publishBatchRequestEntry_id :: Lens' PublishBatchRequestEntry Text Source #

An identifier for the message in this batch.

The Ids of a batch request must be unique within a request.

This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

PublishBatchResultEntry

data PublishBatchResultEntry Source #

Encloses data related to a successful message in a batch request for topic.

See: newPublishBatchResultEntry smart constructor.

Constructors

PublishBatchResultEntry' 

Fields

  • id :: Maybe Text

    The Id of an entry in a batch request.

  • messageId :: Maybe Text

    An identifier for the message.

  • sequenceNumber :: Maybe Text

    This parameter applies only to FIFO (first-in-first-out) topics.

    The large, non-consecutive number that Amazon SNS assigns to each message.

    The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

Instances

Instances details
FromXML PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

Generic PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

Associated Types

type Rep PublishBatchResultEntry :: Type -> Type #

Read PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

Show PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

NFData PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

Methods

rnf :: PublishBatchResultEntry -> () #

Eq PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

Hashable PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

type Rep PublishBatchResultEntry Source # 
Instance details

Defined in Amazonka.SNS.Types.PublishBatchResultEntry

type Rep PublishBatchResultEntry = D1 ('MetaData "PublishBatchResultEntry" "Amazonka.SNS.Types.PublishBatchResultEntry" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "PublishBatchResultEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sequenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newPublishBatchResultEntry :: PublishBatchResultEntry Source #

Create a value of PublishBatchResultEntry with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:id:PublishBatchResultEntry', publishBatchResultEntry_id - The Id of an entry in a batch request.

$sel:messageId:PublishBatchResultEntry', publishBatchResultEntry_messageId - An identifier for the message.

$sel:sequenceNumber:PublishBatchResultEntry', publishBatchResultEntry_sequenceNumber - This parameter applies only to FIFO (first-in-first-out) topics.

The large, non-consecutive number that Amazon SNS assigns to each message.

The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

publishBatchResultEntry_id :: Lens' PublishBatchResultEntry (Maybe Text) Source #

The Id of an entry in a batch request.

publishBatchResultEntry_sequenceNumber :: Lens' PublishBatchResultEntry (Maybe Text) Source #

This parameter applies only to FIFO (first-in-first-out) topics.

The large, non-consecutive number that Amazon SNS assigns to each message.

The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

SMSSandboxPhoneNumber

data SMSSandboxPhoneNumber Source #

A verified or pending destination phone number in the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

See: newSMSSandboxPhoneNumber smart constructor.

Constructors

SMSSandboxPhoneNumber' 

Fields

Instances

Instances details
FromXML SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

Generic SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

Associated Types

type Rep SMSSandboxPhoneNumber :: Type -> Type #

Read SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

Show SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

NFData SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

Methods

rnf :: SMSSandboxPhoneNumber -> () #

Eq SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

Hashable SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

type Rep SMSSandboxPhoneNumber Source # 
Instance details

Defined in Amazonka.SNS.Types.SMSSandboxPhoneNumber

type Rep SMSSandboxPhoneNumber = D1 ('MetaData "SMSSandboxPhoneNumber" "Amazonka.SNS.Types.SMSSandboxPhoneNumber" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "SMSSandboxPhoneNumber'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SMSSandboxPhoneNumberVerificationStatus))))

newSMSSandboxPhoneNumber :: SMSSandboxPhoneNumber Source #

Create a value of SMSSandboxPhoneNumber with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:phoneNumber:SMSSandboxPhoneNumber', sMSSandboxPhoneNumber_phoneNumber - The destination phone number.

$sel:status:SMSSandboxPhoneNumber', sMSSandboxPhoneNumber_status - The destination phone number's verification status.

Subscription

data Subscription Source #

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

See: newSubscription smart constructor.

Constructors

Subscription' 

Fields

Instances

Instances details
FromXML Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Generic Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Associated Types

type Rep Subscription :: Type -> Type #

Read Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Show Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

NFData Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Methods

rnf :: Subscription -> () #

Eq Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Hashable Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

type Rep Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

type Rep Subscription = D1 ('MetaData "Subscription" "Amazonka.SNS.Types.Subscription" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "Subscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "endpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "topicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newSubscription :: Subscription Source #

Create a value of Subscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:endpoint:Subscription', subscription_endpoint - The subscription's endpoint (format depends on the protocol).

$sel:owner:Subscription', subscription_owner - The subscription's owner.

$sel:protocol:Subscription', subscription_protocol - The subscription's protocol.

$sel:subscriptionArn:Subscription', subscription_subscriptionArn - The subscription's ARN.

$sel:topicArn:Subscription', subscription_topicArn - The ARN of the subscription's topic.

subscription_endpoint :: Lens' Subscription (Maybe Text) Source #

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

subscription_owner :: Lens' Subscription (Maybe Text) Source #

The subscription's owner.

subscription_protocol :: Lens' Subscription (Maybe Text) Source #

The subscription's protocol.

subscription_topicArn :: Lens' Subscription (Maybe Text) Source #

The ARN of the subscription's topic.

Tag

data Tag Source #

The list of tags to be added to the specified topic.

See: newTag smart constructor.

Constructors

Tag' 

Fields

  • key :: Text

    The required key portion of the tag.

  • value :: Text

    The optional value portion of the tag.

Instances

Instances details
ToQuery Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

toQuery :: Tag -> QueryString #

FromXML Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

parseXML :: [Node] -> Either String Tag #

Generic Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Read Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Show Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

NFData Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

rnf :: Tag -> () #

Eq Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Hashable Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

type Rep Tag Source # 
Instance details

Defined in Amazonka.SNS.Types.Tag

type Rep Tag = D1 ('MetaData "Tag" "Amazonka.SNS.Types.Tag" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newTag Source #

Create a value of Tag with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:key:Tag', tag_key - The required key portion of the tag.

$sel:value:Tag', tag_value - The optional value portion of the tag.

tag_key :: Lens' Tag Text Source #

The required key portion of the tag.

tag_value :: Lens' Tag Text Source #

The optional value portion of the tag.

Topic

data Topic Source #

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

See: newTopic smart constructor.

Constructors

Topic' 

Fields

Instances

Instances details
FromXML Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Methods

parseXML :: [Node] -> Either String Topic #

Generic Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Associated Types

type Rep Topic :: Type -> Type #

Methods

from :: Topic -> Rep Topic x #

to :: Rep Topic x -> Topic #

Read Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Show Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Methods

showsPrec :: Int -> Topic -> ShowS #

show :: Topic -> String #

showList :: [Topic] -> ShowS #

NFData Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Methods

rnf :: Topic -> () #

Eq Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Methods

(==) :: Topic -> Topic -> Bool #

(/=) :: Topic -> Topic -> Bool #

Hashable Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

Methods

hashWithSalt :: Int -> Topic -> Int #

hash :: Topic -> Int #

type Rep Topic Source # 
Instance details

Defined in Amazonka.SNS.Types.Topic

type Rep Topic = D1 ('MetaData "Topic" "Amazonka.SNS.Types.Topic" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "Topic'" 'PrefixI 'True) (S1 ('MetaSel ('Just "topicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newTopic :: Topic Source #

Create a value of Topic with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:topicArn:Topic', topic_topicArn - The topic's ARN.

topic_topicArn :: Lens' Topic (Maybe Text) Source #

The topic's ARN.