Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- defaultService :: Service
- _AuthorizationErrorException :: AsError a => Fold a ServiceError
- _BatchEntryIdsNotDistinctException :: AsError a => Fold a ServiceError
- _BatchRequestTooLongException :: AsError a => Fold a ServiceError
- _ConcurrentAccessException :: AsError a => Fold a ServiceError
- _EmptyBatchRequestException :: AsError a => Fold a ServiceError
- _EndpointDisabledException :: AsError a => Fold a ServiceError
- _FilterPolicyLimitExceededException :: AsError a => Fold a ServiceError
- _InternalErrorException :: AsError a => Fold a ServiceError
- _InvalidBatchEntryIdException :: AsError a => Fold a ServiceError
- _InvalidParameterException :: AsError a => Fold a ServiceError
- _InvalidParameterValueException :: AsError a => Fold a ServiceError
- _InvalidSecurityException :: AsError a => Fold a ServiceError
- _KMSAccessDeniedException :: AsError a => Fold a ServiceError
- _KMSDisabledException :: AsError a => Fold a ServiceError
- _KMSInvalidStateException :: AsError a => Fold a ServiceError
- _KMSNotFoundException :: AsError a => Fold a ServiceError
- _KMSOptInRequired :: AsError a => Fold a ServiceError
- _KMSThrottlingException :: AsError a => Fold a ServiceError
- _NotFoundException :: AsError a => Fold a ServiceError
- _OptedOutException :: AsError a => Fold a ServiceError
- _PlatformApplicationDisabledException :: AsError a => Fold a ServiceError
- _ResourceNotFoundException :: AsError a => Fold a ServiceError
- _StaleTagException :: AsError a => Fold a ServiceError
- _SubscriptionLimitExceededException :: AsError a => Fold a ServiceError
- _TagLimitExceededException :: AsError a => Fold a ServiceError
- _TagPolicyException :: AsError a => Fold a ServiceError
- _ThrottledException :: AsError a => Fold a ServiceError
- _TooManyEntriesInBatchRequestException :: AsError a => Fold a ServiceError
- _TopicLimitExceededException :: AsError a => Fold a ServiceError
- _UserErrorException :: AsError a => Fold a ServiceError
- _ValidationException :: AsError a => Fold a ServiceError
- _VerificationException :: AsError a => Fold a ServiceError
- newtype LanguageCodeString where
- LanguageCodeString' { }
- pattern LanguageCodeString_De_DE :: LanguageCodeString
- pattern LanguageCodeString_En_GB :: LanguageCodeString
- pattern LanguageCodeString_En_US :: LanguageCodeString
- pattern LanguageCodeString_Es_419 :: LanguageCodeString
- pattern LanguageCodeString_Es_ES :: LanguageCodeString
- pattern LanguageCodeString_Fr_CA :: LanguageCodeString
- pattern LanguageCodeString_Fr_FR :: LanguageCodeString
- pattern LanguageCodeString_It_IT :: LanguageCodeString
- pattern LanguageCodeString_Ja_JP :: LanguageCodeString
- pattern LanguageCodeString_Kr_KR :: LanguageCodeString
- pattern LanguageCodeString_Pt_BR :: LanguageCodeString
- pattern LanguageCodeString_Zh_CN :: LanguageCodeString
- pattern LanguageCodeString_Zh_TW :: LanguageCodeString
- newtype NumberCapability where
- NumberCapability' { }
- pattern NumberCapability_MMS :: NumberCapability
- pattern NumberCapability_SMS :: NumberCapability
- pattern NumberCapability_VOICE :: NumberCapability
- newtype RouteType where
- RouteType' { }
- pattern RouteType_Premium :: RouteType
- pattern RouteType_Promotional :: RouteType
- pattern RouteType_Transactional :: RouteType
- newtype SMSSandboxPhoneNumberVerificationStatus where
- data BatchResultErrorEntry = BatchResultErrorEntry' {}
- newBatchResultErrorEntry :: Text -> Text -> Bool -> BatchResultErrorEntry
- batchResultErrorEntry_message :: Lens' BatchResultErrorEntry (Maybe Text)
- batchResultErrorEntry_id :: Lens' BatchResultErrorEntry Text
- batchResultErrorEntry_code :: Lens' BatchResultErrorEntry Text
- batchResultErrorEntry_senderFault :: Lens' BatchResultErrorEntry Bool
- data Endpoint = Endpoint' {
- attributes :: Maybe (HashMap Text Text)
- endpointArn :: Maybe Text
- newEndpoint :: Endpoint
- endpoint_attributes :: Lens' Endpoint (Maybe (HashMap Text Text))
- endpoint_endpointArn :: Lens' Endpoint (Maybe Text)
- data MessageAttributeValue = MessageAttributeValue' {
- binaryValue :: Maybe Base64
- stringValue :: Maybe Text
- dataType :: Text
- newMessageAttributeValue :: Text -> MessageAttributeValue
- messageAttributeValue_binaryValue :: Lens' MessageAttributeValue (Maybe ByteString)
- messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text)
- messageAttributeValue_dataType :: Lens' MessageAttributeValue Text
- data PhoneNumberInformation = PhoneNumberInformation' {}
- newPhoneNumberInformation :: PhoneNumberInformation
- phoneNumberInformation_createdAt :: Lens' PhoneNumberInformation (Maybe UTCTime)
- phoneNumberInformation_iso2CountryCode :: Lens' PhoneNumberInformation (Maybe Text)
- phoneNumberInformation_numberCapabilities :: Lens' PhoneNumberInformation (Maybe [NumberCapability])
- phoneNumberInformation_phoneNumber :: Lens' PhoneNumberInformation (Maybe Text)
- phoneNumberInformation_routeType :: Lens' PhoneNumberInformation (Maybe RouteType)
- phoneNumberInformation_status :: Lens' PhoneNumberInformation (Maybe Text)
- data PlatformApplication = PlatformApplication' {}
- newPlatformApplication :: PlatformApplication
- platformApplication_attributes :: Lens' PlatformApplication (Maybe (HashMap Text Text))
- platformApplication_platformApplicationArn :: Lens' PlatformApplication (Maybe Text)
- data PublishBatchRequestEntry = PublishBatchRequestEntry' {}
- newPublishBatchRequestEntry :: Text -> Text -> PublishBatchRequestEntry
- publishBatchRequestEntry_messageAttributes :: Lens' PublishBatchRequestEntry (Maybe (HashMap Text MessageAttributeValue))
- publishBatchRequestEntry_messageDeduplicationId :: Lens' PublishBatchRequestEntry (Maybe Text)
- publishBatchRequestEntry_messageGroupId :: Lens' PublishBatchRequestEntry (Maybe Text)
- publishBatchRequestEntry_messageStructure :: Lens' PublishBatchRequestEntry (Maybe Text)
- publishBatchRequestEntry_subject :: Lens' PublishBatchRequestEntry (Maybe Text)
- publishBatchRequestEntry_id :: Lens' PublishBatchRequestEntry Text
- publishBatchRequestEntry_message :: Lens' PublishBatchRequestEntry Text
- data PublishBatchResultEntry = PublishBatchResultEntry' {}
- newPublishBatchResultEntry :: PublishBatchResultEntry
- publishBatchResultEntry_id :: Lens' PublishBatchResultEntry (Maybe Text)
- publishBatchResultEntry_messageId :: Lens' PublishBatchResultEntry (Maybe Text)
- publishBatchResultEntry_sequenceNumber :: Lens' PublishBatchResultEntry (Maybe Text)
- data SMSSandboxPhoneNumber = SMSSandboxPhoneNumber' {}
- newSMSSandboxPhoneNumber :: SMSSandboxPhoneNumber
- sMSSandboxPhoneNumber_phoneNumber :: Lens' SMSSandboxPhoneNumber (Maybe Text)
- sMSSandboxPhoneNumber_status :: Lens' SMSSandboxPhoneNumber (Maybe SMSSandboxPhoneNumberVerificationStatus)
- data Subscription = Subscription' {}
- newSubscription :: Subscription
- subscription_endpoint :: Lens' Subscription (Maybe Text)
- subscription_owner :: Lens' Subscription (Maybe Text)
- subscription_protocol :: Lens' Subscription (Maybe Text)
- subscription_subscriptionArn :: Lens' Subscription (Maybe Text)
- subscription_topicArn :: Lens' Subscription (Maybe Text)
- data Tag = Tag' {}
- newTag :: Text -> Text -> Tag
- tag_key :: Lens' Tag Text
- tag_value :: Lens' Tag Text
- data Topic = Topic' {}
- newTopic :: Topic
- topic_topicArn :: Lens' Topic (Maybe Text)
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
pattern LanguageCodeString_De_DE :: LanguageCodeString | |
pattern LanguageCodeString_En_GB :: LanguageCodeString | |
pattern LanguageCodeString_En_US :: LanguageCodeString | |
pattern LanguageCodeString_Es_419 :: LanguageCodeString | |
pattern LanguageCodeString_Es_ES :: LanguageCodeString | |
pattern LanguageCodeString_Fr_CA :: LanguageCodeString | |
pattern LanguageCodeString_Fr_FR :: LanguageCodeString | |
pattern LanguageCodeString_It_IT :: LanguageCodeString | |
pattern LanguageCodeString_Ja_JP :: LanguageCodeString | |
pattern LanguageCodeString_Kr_KR :: LanguageCodeString | |
pattern LanguageCodeString_Pt_BR :: LanguageCodeString | |
pattern LanguageCodeString_Zh_CN :: LanguageCodeString | |
pattern LanguageCodeString_Zh_TW :: LanguageCodeString |
Instances
NumberCapability
newtype NumberCapability Source #
Enum listing out all supported number capabilities.
pattern NumberCapability_MMS :: NumberCapability | |
pattern NumberCapability_SMS :: NumberCapability | |
pattern NumberCapability_VOICE :: NumberCapability |
Instances
RouteType
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
pattern RouteType_Premium :: RouteType | |
pattern RouteType_Promotional :: RouteType | |
pattern RouteType_Transactional :: RouteType |
Instances
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.
pattern SMSSandboxPhoneNumberVerificationStatus_Pending :: SMSSandboxPhoneNumberVerificationStatus | |
pattern SMSSandboxPhoneNumberVerificationStatus_Verified :: SMSSandboxPhoneNumberVerificationStatus |
Instances
BatchResultErrorEntry
data BatchResultErrorEntry Source #
Gives a detailed description of failed messages in the batch.
See: newBatchResultErrorEntry
smart constructor.
Instances
newBatchResultErrorEntry Source #
:: Text | |
-> Text | |
-> Bool | |
-> BatchResultErrorEntry |
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
The endpoint for mobile app and device.
See: newEndpoint
smart constructor.
Endpoint' | |
|
Instances
FromXML Endpoint Source # | |
Generic Endpoint Source # | |
Read Endpoint Source # | |
Show Endpoint Source # | |
NFData Endpoint Source # | |
Defined in Amazonka.SNS.Types.Endpoint | |
Eq Endpoint Source # | |
Hashable Endpoint Source # | |
Defined in Amazonka.SNS.Types.Endpoint | |
type Rep Endpoint Source # | |
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.
MessageAttributeValue' | |
|
Instances
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.
PhoneNumberInformation' | |
|
Instances
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.
phoneNumberInformation_numberCapabilities :: Lens' PhoneNumberInformation (Maybe [NumberCapability]) Source #
The capabilities of each phone number.
phoneNumberInformation_phoneNumber :: Lens' PhoneNumberInformation (Maybe Text) Source #
The phone number.
phoneNumberInformation_routeType :: Lens' PhoneNumberInformation (Maybe RouteType) Source #
The list of supported routes.
phoneNumberInformation_status :: Lens' PhoneNumberInformation (Maybe Text) Source #
The status of the phone number.
PlatformApplication
data PlatformApplication Source #
Platform application object.
See: newPlatformApplication
smart constructor.
PlatformApplication' | |
|
Instances
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.
PublishBatchRequestEntry' | |
|
Instances
newPublishBatchRequestEntry Source #
:: Text | |
-> Text | |
-> PublishBatchRequestEntry |
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 enableContentBasedDeduplication
for your topic, Amazon SNS uses a SHA-256 hash to generate theMessageDeduplicationId
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 haveContentBasedDeduplication
set, the action fails with an error. - If the topic has a
ContentBasedDeduplication
set, yourMessageDeduplicationId
overrides the generated one.
- You may provide a
- 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 aMessageDeduplicationId
that is the same as the one generated for the firstMessageDeduplicationId
, 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 enableContentBasedDeduplication
for your topic, Amazon SNS uses a SHA-256 hash to generate theMessageDeduplicationId
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 haveContentBasedDeduplication
set, the action fails with an error. - If the topic has a
ContentBasedDeduplication
set, yourMessageDeduplicationId
overrides the generated one.
- You may provide a
- 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 aMessageDeduplicationId
that is the same as the one generated for the firstMessageDeduplicationId
, 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_subject :: Lens' PublishBatchRequestEntry (Maybe Text) Source #
The subject of the batch message.
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 (_).
publishBatchRequestEntry_message :: Lens' PublishBatchRequestEntry Text Source #
The body of the message.
PublishBatchResultEntry
data PublishBatchResultEntry Source #
Encloses data related to a successful message in a batch request for topic.
See: newPublishBatchResultEntry
smart constructor.
PublishBatchResultEntry' | |
|
Instances
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_messageId :: Lens' PublishBatchResultEntry (Maybe Text) Source #
An identifier for the message.
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.
SMSSandboxPhoneNumber' | |
|
Instances
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.
sMSSandboxPhoneNumber_phoneNumber :: Lens' SMSSandboxPhoneNumber (Maybe Text) Source #
The destination phone number.
sMSSandboxPhoneNumber_status :: Lens' SMSSandboxPhoneNumber (Maybe SMSSandboxPhoneNumberVerificationStatus) Source #
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.
Instances
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_subscriptionArn :: Lens' Subscription (Maybe Text) Source #
The subscription's ARN.
subscription_topicArn :: Lens' Subscription (Maybe Text) Source #
The ARN of the subscription's topic.
Tag
The list of tags to be added to the specified topic.
See: newTag
smart constructor.
Instances
ToQuery Tag Source # | |
Defined in Amazonka.SNS.Types.Tag toQuery :: Tag -> QueryString # | |
FromXML Tag Source # | |
Generic Tag Source # | |
Read Tag Source # | |
Show Tag Source # | |
NFData Tag Source # | |
Defined in Amazonka.SNS.Types.Tag | |
Eq Tag Source # | |
Hashable Tag Source # | |
Defined in Amazonka.SNS.Types.Tag | |
type Rep Tag Source # | |
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))) |
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.
Topic
A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve
a topic's attributes, use GetTopicAttributes
.
See: newTopic
smart constructor.
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.