packages feed

amazonka-sns 1.4.4 → 1.4.5

raw patch · 35 files changed

+421/−460 lines, 35 filesdep ~amazonka-coredep ~amazonka-snsdep ~amazonka-testPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-core, amazonka-sns, amazonka-test

API changes (from Hackage documentation)

Files

README.md view
@@ -8,28 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -Amazon Simple Notification Service--Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see <http://aws.amazon.com/sns/ http:\/\/aws.amazon.com\/sns>. For detailed information about Amazon SNS features and their associated API calls, see the <http://docs.aws.amazon.com/sns/latest/dg/ Amazon SNS Developer Guide>.--We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-sns) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.SNS](http://hackage.haskell.org/package/amazonka-sns/docs/Network-AWS-SNS.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-sns.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-sns-version:               1.4.4+version:               1.4.5 synopsis:              Amazon Simple Notification Service SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,24 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    Amazon Simple Notification Service--    Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see <http://aws.amazon.com/sns/ http:\/\/aws.amazon.com\/sns>. For detailed information about Amazon SNS features and their associated API calls, see the <http://docs.aws.amazon.com/sns/latest/dg/ Amazon SNS Developer Guide>.--    We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding     de/serialisation into more palatable Haskell values.     The provided lenses should be compatible with any of the major lens libraries     such as <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.SNS" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.SNS" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -83,7 +78,7 @@         , Network.AWS.SNS.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-sns-test@@ -103,9 +98,9 @@         , Test.AWS.SNS.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-sns == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-sns == 1.4.5.*         , base         , bytestring         , tasty
gen/Network/AWS/SNS.hs view
@@ -11,11 +11,12 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Amazon Simple Notification Service+-- __Amazon Simple Notification Service__ ----- Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see <http://aws.amazon.com/sns/ http:\/\/aws.amazon.com\/sns>. For detailed information about Amazon SNS features and their associated API calls, see the <http://docs.aws.amazon.com/sns/latest/dg/ Amazon SNS Developer Guide>.+-- Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see <http://aws.amazon.com/sns/ http://aws.amazon.com/sns> . For detailed information about Amazon SNS features and their associated API calls, see the <http://docs.aws.amazon.com/sns/latest/dg/ Amazon SNS Developer Guide> . ----- We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.+-- We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services> .+-- module Network.AWS.SNS     (     -- * Service Configuration
gen/Network/AWS/SNS/AddPermission.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Adds a statement to a topic\'s access control policy, granting access for the specified AWS accounts to the specified actions.+-- Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.+--+-- module Network.AWS.SNS.AddPermission     (     -- * Creating a Request@@ -54,13 +56,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'apTopicARN'+-- * 'apTopicARN' - The ARN of the topic whose access control policy you wish to modify. ----- * 'apLabel'+-- * 'apLabel' - A unique identifier for the new policy statement. ----- * 'apAWSAccountId'+-- * 'apAWSAccountId' - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service. ----- * 'apActionName'+-- * 'apActionName' - The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name. addPermission     :: Text -- ^ 'apTopicARN'     -> Text -- ^ 'apLabel'@@ -85,9 +87,7 @@ apAWSAccountId :: Lens' AddPermission [Text] apAWSAccountId = lens _apAWSAccountId (\ s a -> s{_apAWSAccountId = a}) . _Coerce; --- | The action you want to allow for the specified principal(s).------ Valid values: any Amazon SNS action name.+-- | The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name. apActionName :: Lens' AddPermission [Text] apActionName = lens _apActionName (\ s a -> s{_apActionName = a}) . _Coerce; 
gen/Network/AWS/SNS/CheckIfPhoneNumberIsOptedOut.hs view
@@ -20,7 +20,9 @@ -- -- Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your account. You cannot send SMS messages to a number that is opted out. ----- To resume sending messages, you can opt in the number by using the 'OptInPhoneNumber' action.+--+-- To resume sending messages, you can opt in the number by using the @OptInPhoneNumber@ action.+-- module Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut     (     -- * Creating a Request@@ -44,8 +46,10 @@ import           Network.AWS.SNS.Types import           Network.AWS.SNS.Types.Product --- | The input for the 'CheckIfPhoneNumberIsOptedOut' action.+-- | The input for the @CheckIfPhoneNumberIsOptedOut@ action. --+--+-- -- /See:/ 'checkIfPhoneNumberIsOptedOut' smart constructor. newtype CheckIfPhoneNumberIsOptedOut = CheckIfPhoneNumberIsOptedOut'     { _cipniooPhoneNumber :: Text@@ -55,7 +59,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cipniooPhoneNumber'+-- * 'cipniooPhoneNumber' - The phone number for which you want to check the opt out status. checkIfPhoneNumberIsOptedOut     :: Text -- ^ 'cipniooPhoneNumber'     -> CheckIfPhoneNumberIsOptedOut@@ -98,8 +102,10 @@                "Version" =: ("2010-03-31" :: ByteString),                "phoneNumber" =: _cipniooPhoneNumber] --- | The response from the 'CheckIfPhoneNumberIsOptedOut' action.+-- | The response from the @CheckIfPhoneNumberIsOptedOut@ action. --+--+-- -- /See:/ 'checkIfPhoneNumberIsOptedOutResponse' smart constructor. data CheckIfPhoneNumberIsOptedOutResponse = CheckIfPhoneNumberIsOptedOutResponse'     { _cipnioorsIsOptedOut     :: !(Maybe Bool)@@ -110,9 +116,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cipnioorsIsOptedOut'+-- * 'cipnioorsIsOptedOut' - Indicates whether the phone number is opted out:     * @true@ – The phone number is opted out, meaning you cannot publish SMS messages to it.     * @false@ – The phone number is opted in, meaning you can publish SMS messages to it. ----- * 'cipnioorsResponseStatus'+-- * 'cipnioorsResponseStatus' - -- | The response status code. checkIfPhoneNumberIsOptedOutResponse     :: Int -- ^ 'cipnioorsResponseStatus'     -> CheckIfPhoneNumberIsOptedOutResponse@@ -122,16 +128,11 @@     , _cipnioorsResponseStatus = pResponseStatus_     } --- | Indicates whether the phone number is opted out:------ -   'true' – The phone number is opted out, meaning you cannot publish SMS messages to it.------ -   'false' – The phone number is opted in, meaning you can publish SMS messages to it.---+-- | Indicates whether the phone number is opted out:     * @true@ – The phone number is opted out, meaning you cannot publish SMS messages to it.     * @false@ – The phone number is opted in, meaning you can publish SMS messages to it. cipnioorsIsOptedOut :: Lens' CheckIfPhoneNumberIsOptedOutResponse (Maybe Bool) cipnioorsIsOptedOut = lens _cipnioorsIsOptedOut (\ s a -> s{_cipnioorsIsOptedOut = a}); --- | The response status code.+-- | -- | The response status code. cipnioorsResponseStatus :: Lens' CheckIfPhoneNumberIsOptedOutResponse Int cipnioorsResponseStatus = lens _cipnioorsResponseStatus (\ s a -> s{_cipnioorsResponseStatus = a}); 
gen/Network/AWS/SNS/ConfirmSubscription.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Verifies an endpoint owner\'s intent to receive messages by validating the token sent to the endpoint by an earlier 'Subscribe' action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the 'AuthenticateOnUnsubscribe' flag is set to \"true\".+-- Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier @Subscribe@ action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the @AuthenticateOnUnsubscribe@ flag is set to "true".+--+-- module Network.AWS.SNS.ConfirmSubscription     (     -- * Creating a Request@@ -46,6 +48,8 @@  -- | Input for ConfirmSubscription action. --+--+-- -- /See:/ 'confirmSubscription' smart constructor. data ConfirmSubscription = ConfirmSubscription'     { _csAuthenticateOnUnsubscribe :: !(Maybe Text)@@ -57,11 +61,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csAuthenticateOnUnsubscribe'+-- * 'csAuthenticateOnUnsubscribe' - Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is @true@ and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. ----- * 'csTopicARN'+-- * 'csTopicARN' - The ARN of the topic for which you wish to confirm a subscription. ----- * 'csToken'+-- * 'csToken' - Short-lived token sent to an endpoint during the @Subscribe@ action. confirmSubscription     :: Text -- ^ 'csTopicARN'     -> Text -- ^ 'csToken'@@ -73,7 +77,7 @@     , _csToken = pToken_     } --- | Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is 'true' and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.+-- | Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is @true@ and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. csAuthenticateOnUnsubscribe :: Lens' ConfirmSubscription (Maybe Text) csAuthenticateOnUnsubscribe = lens _csAuthenticateOnUnsubscribe (\ s a -> s{_csAuthenticateOnUnsubscribe = a}); @@ -81,7 +85,7 @@ csTopicARN :: Lens' ConfirmSubscription Text csTopicARN = lens _csTopicARN (\ s a -> s{_csTopicARN = a}); --- | Short-lived token sent to an endpoint during the 'Subscribe' action.+-- | Short-lived token sent to an endpoint during the @Subscribe@ action. csToken :: Lens' ConfirmSubscription Text csToken = lens _csToken (\ s a -> s{_csToken = a}); @@ -116,6 +120,8 @@  -- | Response for ConfirmSubscriptions action. --+--+-- -- /See:/ 'confirmSubscriptionResponse' smart constructor. data ConfirmSubscriptionResponse = ConfirmSubscriptionResponse'     { _csrsSubscriptionARN :: !(Maybe Text)@@ -126,9 +132,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csrsSubscriptionARN'+-- * 'csrsSubscriptionARN' - The ARN of the created subscription. ----- * 'csrsResponseStatus'+-- * 'csrsResponseStatus' - -- | The response status code. confirmSubscriptionResponse     :: Int -- ^ 'csrsResponseStatus'     -> ConfirmSubscriptionResponse@@ -142,7 +148,7 @@ csrsSubscriptionARN :: Lens' ConfirmSubscriptionResponse (Maybe Text) csrsSubscriptionARN = lens _csrsSubscriptionARN (\ s a -> s{_csrsSubscriptionARN = a}); --- | The response status code.+-- | -- | The response status code. csrsResponseStatus :: Lens' ConfirmSubscriptionResponse Int csrsResponseStatus = lens _csrsResponseStatus (\ s a -> s{_csrsResponseStatus = a}); 
gen/Network/AWS/SNS/CreatePlatformApplication.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a platform application object for one of the supported push notification services, such as APNS and GCM, to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the 'CreatePlatformApplication' action. The PlatformPrincipal is received from the notification service. For APNS\/APNS_SANDBOX, PlatformPrincipal is \"SSL certificate\". For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is \"client id\". The PlatformCredential is also received from the notification service. For WNS, PlatformPrincipal is \"Package Security Identifier\". For MPNS, PlatformPrincipal is \"TLS certificate\". For Baidu, PlatformPrincipal is \"API key\".+-- Creates a platform application object for one of the supported push notification services, such as APNS and GCM, to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the @CreatePlatformApplication@ action. The PlatformPrincipal is received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is "SSL certificate". For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client id". The PlatformCredential is also received from the notification service. For WNS, PlatformPrincipal is "Package Security Identifier". For MPNS, PlatformPrincipal is "TLS certificate". For Baidu, PlatformPrincipal is "API key". ----- For APNS\/APNS_SANDBOX, PlatformCredential is \"private key\". For GCM, PlatformCredential is \"API key\". For ADM, PlatformCredential is \"client secret\". For WNS, PlatformCredential is \"secret key\". For MPNS, PlatformCredential is \"private key\". For Baidu, PlatformCredential is \"secret key\". The PlatformApplicationArn that is returned when using 'CreatePlatformApplication' is then used as an attribute for the 'CreatePlatformEndpoint' action. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>. For more information about obtaining the PlatformPrincipal and PlatformCredential for each of the supported push notification services, see <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html Getting Started with Apple Push Notification Service>, <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-adm.html Getting Started with Amazon Device Messaging>, <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-baidu.html Getting Started with Baidu Cloud Push>, <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html Getting Started with Google Cloud Messaging for Android>, <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-mpns.html Getting Started with MPNS>, or <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-wns.html Getting Started with WNS>.+--+-- For APNS/APNS_SANDBOX, PlatformCredential is "private key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client secret". For WNS, PlatformCredential is "secret key". For MPNS, PlatformCredential is "private key". For Baidu, PlatformCredential is "secret key". The PlatformApplicationArn that is returned when using @CreatePlatformApplication@ is then used as an attribute for the @CreatePlatformEndpoint@ action. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . For more information about obtaining the PlatformPrincipal and PlatformCredential for each of the supported push notification services, see <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html Getting Started with Apple Push Notification Service> , <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-adm.html Getting Started with Amazon Device Messaging> , <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-baidu.html Getting Started with Baidu Cloud Push> , <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html Getting Started with Google Cloud Messaging for Android> , <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-mpns.html Getting Started with MPNS> , or <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-wns.html Getting Started with WNS> .+-- module Network.AWS.SNS.CreatePlatformApplication     (     -- * Creating a Request@@ -48,6 +50,8 @@  -- | Input for CreatePlatformApplication action. --+--+-- -- /See:/ 'createPlatformApplication' smart constructor. data CreatePlatformApplication = CreatePlatformApplication'     { _cpaName       :: !Text@@ -59,11 +63,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpaName'+-- * 'cpaName' - Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long. ----- * 'cpaPlatform'+-- * 'cpaPlatform' - The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging). ----- * 'cpaAttributes'+-- * 'cpaAttributes' - For a list of attributes, see <http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html SetPlatformApplicationAttributes> createPlatformApplication     :: Text -- ^ 'cpaName'     -> Text -- ^ 'cpaPlatform'@@ -120,6 +124,8 @@  -- | Response from CreatePlatformApplication action. --+--+-- -- /See:/ 'createPlatformApplicationResponse' smart constructor. data CreatePlatformApplicationResponse = CreatePlatformApplicationResponse'     { _cparsPlatformApplicationARN :: !(Maybe Text)@@ -130,9 +136,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cparsPlatformApplicationARN'+-- * 'cparsPlatformApplicationARN' - PlatformApplicationArn is returned. ----- * 'cparsResponseStatus'+-- * 'cparsResponseStatus' - -- | The response status code. createPlatformApplicationResponse     :: Int -- ^ 'cparsResponseStatus'     -> CreatePlatformApplicationResponse@@ -146,7 +152,7 @@ cparsPlatformApplicationARN :: Lens' CreatePlatformApplicationResponse (Maybe Text) cparsPlatformApplicationARN = lens _cparsPlatformApplicationARN (\ s a -> s{_cparsPlatformApplicationARN = a}); --- | The response status code.+-- | -- | The response status code. cparsResponseStatus :: Lens' CreatePlatformApplicationResponse Int cparsResponseStatus = lens _cparsResponseStatus (\ s a -> s{_cparsResponseStatus = a}); 
gen/Network/AWS/SNS/CreatePlatformEndpoint.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM and APNS. 'CreatePlatformEndpoint' requires the PlatformApplicationArn that is returned from 'CreatePlatformApplication'. The EndpointArn that is returned when using 'CreatePlatformEndpoint' can then be used by the 'Publish' action to send a message to a mobile app or by the 'Subscribe' action for subscription to a topic. The 'CreatePlatformEndpoint' action is idempotent, so if the requester already owns an endpoint with the same device token and attributes, that endpoint\'s ARN is returned without creating a new endpoint. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM and APNS. @CreatePlatformEndpoint@ requires the PlatformApplicationArn that is returned from @CreatePlatformApplication@ . The EndpointArn that is returned when using @CreatePlatformEndpoint@ can then be used by the @Publish@ action to send a message to a mobile app or by the @Subscribe@ action for subscription to a topic. The @CreatePlatformEndpoint@ action is idempotent, so if the requester already owns an endpoint with the same device token and attributes, that endpoint's ARN is returned without creating a new endpoint. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . ----- When using 'CreatePlatformEndpoint' with Baidu, two attributes must be provided: ChannelId and UserId. The token field must also contain the ChannelId. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html Creating an Amazon SNS Endpoint for Baidu>.+--+-- When using @CreatePlatformEndpoint@ with Baidu, two attributes must be provided: ChannelId and UserId. The token field must also contain the ChannelId. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html Creating an Amazon SNS Endpoint for Baidu> .+-- module Network.AWS.SNS.CreatePlatformEndpoint     (     -- * Creating a Request@@ -49,6 +51,8 @@  -- | Input for CreatePlatformEndpoint action. --+--+-- -- /See:/ 'createPlatformEndpoint' smart constructor. data CreatePlatformEndpoint = CreatePlatformEndpoint'     { _cpeCustomUserData         :: !(Maybe Text)@@ -61,13 +65,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpeCustomUserData'+-- * 'cpeCustomUserData' - Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. ----- * 'cpeAttributes'+-- * 'cpeAttributes' - For a list of attributes, see <http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html SetEndpointAttributes> . ----- * 'cpePlatformApplicationARN'+-- * 'cpePlatformApplicationARN' - PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. ----- * 'cpeToken'+-- * 'cpeToken' - Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID. createPlatformEndpoint     :: Text -- ^ 'cpePlatformApplicationARN'     -> Text -- ^ 'cpeToken'@@ -84,7 +88,7 @@ cpeCustomUserData :: Lens' CreatePlatformEndpoint (Maybe Text) cpeCustomUserData = lens _cpeCustomUserData (\ s a -> s{_cpeCustomUserData = a}); --- | For a list of attributes, see <http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html SetEndpointAttributes>.+-- | For a list of attributes, see <http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html SetEndpointAttributes> . cpeAttributes :: Lens' CreatePlatformEndpoint (HashMap Text Text) cpeAttributes = lens _cpeAttributes (\ s a -> s{_cpeAttributes = a}) . _Default . _Map; @@ -133,6 +137,8 @@  -- | Response from CreateEndpoint action. --+--+-- -- /See:/ 'createPlatformEndpointResponse' smart constructor. data CreatePlatformEndpointResponse = CreatePlatformEndpointResponse'     { _cpersEndpointARN    :: !(Maybe Text)@@ -143,9 +149,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpersEndpointARN'+-- * 'cpersEndpointARN' - EndpointArn returned from CreateEndpoint action. ----- * 'cpersResponseStatus'+-- * 'cpersResponseStatus' - -- | The response status code. createPlatformEndpointResponse     :: Int -- ^ 'cpersResponseStatus'     -> CreatePlatformEndpointResponse@@ -159,7 +165,7 @@ cpersEndpointARN :: Lens' CreatePlatformEndpointResponse (Maybe Text) cpersEndpointARN = lens _cpersEndpointARN (\ s a -> s{_cpersEndpointARN = a}); --- | The response status code.+-- | -- | The response status code. cpersResponseStatus :: Lens' CreatePlatformEndpointResponse Int cpersResponseStatus = lens _cpersResponseStatus (\ s a -> s{_cpersResponseStatus = a}); 
gen/Network/AWS/SNS/CreateTopic.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a topic to which notifications can be published. Users can create at most 100,000 topics. For more information, see <http://aws.amazon.com/sns/ http:\/\/aws.amazon.com\/sns>. This action is idempotent, so if the requester already owns a topic with the specified name, that topic\'s ARN is returned without creating a new topic.+-- Creates a topic to which notifications can be published. Users can create at most 100,000 topics. For more information, see <http://aws.amazon.com/sns/ http://aws.amazon.com/sns> . This action is idempotent, so if the requester already owns a topic with the specified name, that topic's ARN is returned without creating a new topic.+--+-- module Network.AWS.SNS.CreateTopic     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | Input for CreateTopic action. --+--+-- -- /See:/ 'createTopic' smart constructor. newtype CreateTopic = CreateTopic'     { _ctName :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ctName'+-- * 'ctName' - The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. createTopic     :: Text -- ^ 'ctName'     -> CreateTopic@@ -62,9 +66,7 @@     { _ctName = pName_     } --- | The name of the topic you want to create.------ Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.+-- | The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. ctName :: Lens' CreateTopic Text ctName = lens _ctName (\ s a -> s{_ctName = a}); @@ -96,6 +98,8 @@  -- | Response from CreateTopic action. --+--+-- -- /See:/ 'createTopicResponse' smart constructor. data CreateTopicResponse = CreateTopicResponse'     { _ctrsTopicARN       :: !(Maybe Text)@@ -106,9 +110,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ctrsTopicARN'+-- * 'ctrsTopicARN' - The Amazon Resource Name (ARN) assigned to the created topic. ----- * 'ctrsResponseStatus'+-- * 'ctrsResponseStatus' - -- | The response status code. createTopicResponse     :: Int -- ^ 'ctrsResponseStatus'     -> CreateTopicResponse@@ -122,7 +126,7 @@ ctrsTopicARN :: Lens' CreateTopicResponse (Maybe Text) ctrsTopicARN = lens _ctrsTopicARN (\ s a -> s{_ctrsTopicARN = a}); --- | The response status code.+-- | -- | The response status code. ctrsResponseStatus :: Lens' CreateTopicResponse Int ctrsResponseStatus = lens _ctrsResponseStatus (\ s a -> s{_ctrsResponseStatus = a}); 
gen/Network/AWS/SNS/DeleteEndpoint.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . --+-- -- When you delete an endpoint that is also subscribed to a topic, then you must also unsubscribe the endpoint from the topic.+-- module Network.AWS.SNS.DeleteEndpoint     (     -- * Creating a Request@@ -43,6 +45,8 @@  -- | Input for DeleteEndpoint action. --+--+-- -- /See:/ 'deleteEndpoint' smart constructor. newtype DeleteEndpoint = DeleteEndpoint'     { _deEndpointARN :: Text@@ -52,7 +56,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'deEndpointARN'+-- * 'deEndpointARN' - EndpointArn of endpoint to delete. deleteEndpoint     :: Text -- ^ 'deEndpointARN'     -> DeleteEndpoint
gen/Network/AWS/SNS/DeletePlatformApplication.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes a platform application object for one of the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Deletes a platform application object for one of the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> .+--+-- module Network.AWS.SNS.DeletePlatformApplication     (     -- * Creating a Request@@ -41,6 +43,8 @@  -- | Input for DeletePlatformApplication action. --+--+-- -- /See:/ 'deletePlatformApplication' smart constructor. newtype DeletePlatformApplication = DeletePlatformApplication'     { _dpaPlatformApplicationARN :: Text@@ -50,7 +54,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dpaPlatformApplicationARN'+-- * 'dpaPlatformApplicationARN' - PlatformApplicationArn of platform application object to delete. deletePlatformApplication     :: Text -- ^ 'dpaPlatformApplicationARN'     -> DeletePlatformApplication
gen/Network/AWS/SNS/DeleteTopic.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.+--+-- module Network.AWS.SNS.DeleteTopic     (     -- * Creating a Request@@ -48,7 +50,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dtTopicARN'+-- * 'dtTopicARN' - The ARN of the topic you want to delete. deleteTopic     :: Text -- ^ 'dtTopicARN'     -> DeleteTopic
gen/Network/AWS/SNS/GetEndpointAttributes.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM and APNS. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM and APNS. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> .+--+-- module Network.AWS.SNS.GetEndpointAttributes     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | Input for GetEndpointAttributes action. --+--+-- -- /See:/ 'getEndpointAttributes' smart constructor. newtype GetEndpointAttributes = GetEndpointAttributes'     { _geaEndpointARN :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'geaEndpointARN'+-- * 'geaEndpointARN' - EndpointArn for GetEndpointAttributes input. getEndpointAttributes     :: Text -- ^ 'geaEndpointARN'     -> GetEndpointAttributes@@ -97,6 +101,8 @@  -- | Response from GetEndpointAttributes of the EndpointArn. --+--+-- -- /See:/ 'getEndpointAttributesResponse' smart constructor. data GetEndpointAttributesResponse = GetEndpointAttributesResponse'     { _gearsAttributes     :: !(Maybe (Map Text Text))@@ -107,9 +113,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gearsAttributes'+-- * 'gearsAttributes' - Attributes include the following:     * @CustomUserData@ -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.     * @Enabled@ -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.     * @Token@ -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service. ----- * 'gearsResponseStatus'+-- * 'gearsResponseStatus' - -- | The response status code. getEndpointAttributesResponse     :: Int -- ^ 'gearsResponseStatus'     -> GetEndpointAttributesResponse@@ -119,18 +125,11 @@     , _gearsResponseStatus = pResponseStatus_     } --- | Attributes include the following:------ -   'CustomUserData' -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.------ -   'Enabled' -- flag that enables\/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.------ -   'Token' -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.---+-- | Attributes include the following:     * @CustomUserData@ -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.     * @Enabled@ -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.     * @Token@ -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service. gearsAttributes :: Lens' GetEndpointAttributesResponse (HashMap Text Text) gearsAttributes = lens _gearsAttributes (\ s a -> s{_gearsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gearsResponseStatus :: Lens' GetEndpointAttributesResponse Int gearsResponseStatus = lens _gearsResponseStatus (\ s a -> s{_gearsResponseStatus = a}); 
gen/Network/AWS/SNS/GetPlatformApplicationAttributes.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Retrieves the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> .+--+-- module Network.AWS.SNS.GetPlatformApplicationAttributes     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | Input for GetPlatformApplicationAttributes action. --+--+-- -- /See:/ 'getPlatformApplicationAttributes' smart constructor. newtype GetPlatformApplicationAttributes = GetPlatformApplicationAttributes'     { _gpaaPlatformApplicationARN :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gpaaPlatformApplicationARN'+-- * 'gpaaPlatformApplicationARN' - PlatformApplicationArn for GetPlatformApplicationAttributesInput. getPlatformApplicationAttributes     :: Text -- ^ 'gpaaPlatformApplicationARN'     -> GetPlatformApplicationAttributes@@ -104,6 +108,8 @@  -- | Response for GetPlatformApplicationAttributes action. --+--+-- -- /See:/ 'getPlatformApplicationAttributesResponse' smart constructor. data GetPlatformApplicationAttributesResponse = GetPlatformApplicationAttributesResponse'     { _gpaarsAttributes     :: !(Maybe (Map Text Text))@@ -114,9 +120,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gpaarsAttributes'+-- * 'gpaarsAttributes' - Attributes include the following:     * @EventEndpointCreated@ -- Topic ARN to which EndpointCreated event notifications should be sent.     * @EventEndpointDeleted@ -- Topic ARN to which EndpointDeleted event notifications should be sent.     * @EventEndpointUpdated@ -- Topic ARN to which EndpointUpdate event notifications should be sent.     * @EventDeliveryFailure@ -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints. ----- * 'gpaarsResponseStatus'+-- * 'gpaarsResponseStatus' - -- | The response status code. getPlatformApplicationAttributesResponse     :: Int -- ^ 'gpaarsResponseStatus'     -> GetPlatformApplicationAttributesResponse@@ -126,20 +132,11 @@     , _gpaarsResponseStatus = pResponseStatus_     } --- | Attributes include the following:------ -   'EventEndpointCreated' -- Topic ARN to which EndpointCreated event notifications should be sent.------ -   'EventEndpointDeleted' -- Topic ARN to which EndpointDeleted event notifications should be sent.------ -   'EventEndpointUpdated' -- Topic ARN to which EndpointUpdate event notifications should be sent.------ -   'EventDeliveryFailure' -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application\'s endpoints.---+-- | Attributes include the following:     * @EventEndpointCreated@ -- Topic ARN to which EndpointCreated event notifications should be sent.     * @EventEndpointDeleted@ -- Topic ARN to which EndpointDeleted event notifications should be sent.     * @EventEndpointUpdated@ -- Topic ARN to which EndpointUpdate event notifications should be sent.     * @EventDeliveryFailure@ -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints. gpaarsAttributes :: Lens' GetPlatformApplicationAttributesResponse (HashMap Text Text) gpaarsAttributes = lens _gpaarsAttributes (\ s a -> s{_gpaarsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gpaarsResponseStatus :: Lens' GetPlatformApplicationAttributesResponse Int gpaarsResponseStatus = lens _gpaarsResponseStatus (\ s a -> s{_gpaarsResponseStatus = a}); 
gen/Network/AWS/SNS/GetSMSAttributes.hs view
@@ -20,7 +20,9 @@ -- -- Returns the settings for sending SMS messages from your account. ----- These settings are set with the 'SetSMSAttributes' action.+--+-- These settings are set with the @SetSMSAttributes@ action.+-- module Network.AWS.SNS.GetSMSAttributes     (     -- * Creating a Request@@ -44,8 +46,10 @@ import           Network.AWS.SNS.Types import           Network.AWS.SNS.Types.Product --- | The input for the 'GetSMSAttributes' request.+-- | The input for the @GetSMSAttributes@ request. --+--+-- -- /See:/ 'getSMSAttributes' smart constructor. newtype GetSMSAttributes = GetSMSAttributes'     { _gsmsaAttributes :: Maybe [Text]@@ -55,7 +59,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsmsaAttributes'+-- * 'gsmsaAttributes' - A list of the individual attribute names, such as @MonthlySpendLimit@ , for which you want values. For all attribute names, see <http://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html SetSMSAttributes> . If you don't use this parameter, Amazon SNS returns all SMS attributes. getSMSAttributes     :: GetSMSAttributes getSMSAttributes =@@ -63,11 +67,7 @@     { _gsmsaAttributes = Nothing     } --- | A list of the individual attribute names, such as 'MonthlySpendLimit', for which you want values.------ For all attribute names, see <http://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html SetSMSAttributes>.------ If you don\'t use this parameter, Amazon SNS returns all SMS attributes.+-- | A list of the individual attribute names, such as @MonthlySpendLimit@ , for which you want values. For all attribute names, see <http://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html SetSMSAttributes> . If you don't use this parameter, Amazon SNS returns all SMS attributes. gsmsaAttributes :: Lens' GetSMSAttributes [Text] gsmsaAttributes = lens _gsmsaAttributes (\ s a -> s{_gsmsaAttributes = a}) . _Default . _Coerce; @@ -100,8 +100,10 @@                "attributes" =:                  toQuery (toQueryList "member" <$> _gsmsaAttributes)] --- | The response from the 'GetSMSAttributes' request.+-- | The response from the @GetSMSAttributes@ request. --+--+-- -- /See:/ 'getSMSAttributesResponse' smart constructor. data GetSMSAttributesResponse = GetSMSAttributesResponse'     { _gsmsarsAttributes     :: !(Maybe (Map Text Text))@@ -112,9 +114,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsmsarsAttributes'+-- * 'gsmsarsAttributes' - The SMS attribute names and their values. ----- * 'gsmsarsResponseStatus'+-- * 'gsmsarsResponseStatus' - -- | The response status code. getSMSAttributesResponse     :: Int -- ^ 'gsmsarsResponseStatus'     -> GetSMSAttributesResponse@@ -128,7 +130,7 @@ gsmsarsAttributes :: Lens' GetSMSAttributesResponse (HashMap Text Text) gsmsarsAttributes = lens _gsmsarsAttributes (\ s a -> s{_gsmsarsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gsmsarsResponseStatus :: Lens' GetSMSAttributesResponse Int gsmsarsResponseStatus = lens _gsmsarsResponseStatus (\ s a -> s{_gsmsarsResponseStatus = a}); 
gen/Network/AWS/SNS/GetSubscriptionAttributes.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Returns all of the properties of a subscription.+--+-- module Network.AWS.SNS.GetSubscriptionAttributes     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | Input for GetSubscriptionAttributes. --+--+-- -- /See:/ 'getSubscriptionAttributes' smart constructor. newtype GetSubscriptionAttributes = GetSubscriptionAttributes'     { _gsaSubscriptionARN :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsaSubscriptionARN'+-- * 'gsaSubscriptionARN' - The ARN of the subscription whose properties you want to get. getSubscriptionAttributes     :: Text -- ^ 'gsaSubscriptionARN'     -> GetSubscriptionAttributes@@ -98,6 +102,8 @@  -- | Response for GetSubscriptionAttributes action. --+--+-- -- /See:/ 'getSubscriptionAttributesResponse' smart constructor. data GetSubscriptionAttributesResponse = GetSubscriptionAttributesResponse'     { _gsarsAttributes     :: !(Maybe (Map Text Text))@@ -108,9 +114,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsarsAttributes'+-- * 'gsarsAttributes' - A map of the subscription's attributes. Attributes in this map include the following:     * @SubscriptionArn@ -- the subscription's ARN     * @TopicArn@ -- the topic ARN that the subscription is associated with     * @Owner@ -- the AWS account ID of the subscription's owner     * @ConfirmationWasAuthenticated@ -- true if the subscription confirmation request was authenticated     * @DeliveryPolicy@ -- the JSON serialization of the subscription's delivery policy     * @EffectiveDeliveryPolicy@ -- the JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults ----- * 'gsarsResponseStatus'+-- * 'gsarsResponseStatus' - -- | The response status code. getSubscriptionAttributesResponse     :: Int -- ^ 'gsarsResponseStatus'     -> GetSubscriptionAttributesResponse@@ -120,24 +126,11 @@     , _gsarsResponseStatus = pResponseStatus_     } --- | A map of the subscription\'s attributes. Attributes in this map include the following:------ -   'SubscriptionArn' -- the subscription\'s ARN------ -   'TopicArn' -- the topic ARN that the subscription is associated with------ -   'Owner' -- the AWS account ID of the subscription\'s owner------ -   'ConfirmationWasAuthenticated' -- true if the subscription confirmation request was authenticated------ -   'DeliveryPolicy' -- the JSON serialization of the subscription\'s delivery policy------ -   'EffectiveDeliveryPolicy' -- the JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults---+-- | A map of the subscription's attributes. Attributes in this map include the following:     * @SubscriptionArn@ -- the subscription's ARN     * @TopicArn@ -- the topic ARN that the subscription is associated with     * @Owner@ -- the AWS account ID of the subscription's owner     * @ConfirmationWasAuthenticated@ -- true if the subscription confirmation request was authenticated     * @DeliveryPolicy@ -- the JSON serialization of the subscription's delivery policy     * @EffectiveDeliveryPolicy@ -- the JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults gsarsAttributes :: Lens' GetSubscriptionAttributesResponse (HashMap Text Text) gsarsAttributes = lens _gsarsAttributes (\ s a -> s{_gsarsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gsarsResponseStatus :: Lens' GetSubscriptionAttributesResponse Int gsarsResponseStatus = lens _gsarsResponseStatus (\ s a -> s{_gsarsResponseStatus = a}); 
gen/Network/AWS/SNS/GetTopicAttributes.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Returns all of the properties of a topic. Topic properties returned might differ based on the authorization of the user.+--+-- module Network.AWS.SNS.GetTopicAttributes     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | Input for GetTopicAttributes action. --+--+-- -- /See:/ 'getTopicAttributes' smart constructor. newtype GetTopicAttributes = GetTopicAttributes'     { _gtaTopicARN :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gtaTopicARN'+-- * 'gtaTopicARN' - The ARN of the topic whose properties you want to get. getTopicAttributes     :: Text -- ^ 'gtaTopicARN'     -> GetTopicAttributes@@ -97,6 +101,8 @@  -- | Response for GetTopicAttributes action. --+--+-- -- /See:/ 'getTopicAttributesResponse' smart constructor. data GetTopicAttributesResponse = GetTopicAttributesResponse'     { _gtarsAttributes     :: !(Maybe (Map Text Text))@@ -107,9 +113,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gtarsAttributes'+-- * 'gtarsAttributes' - A map of the topic's attributes. Attributes in this map include the following:     * @TopicArn@ -- the topic's ARN     * @Owner@ -- the AWS account ID of the topic's owner     * @Policy@ -- the JSON serialization of the topic's access control policy     * @DisplayName@ -- the human-readable name used in the "From" field for notifications to email and email-json endpoints     * @SubscriptionsPending@ -- the number of subscriptions pending confirmation on this topic     * @SubscriptionsConfirmed@ -- the number of confirmed subscriptions on this topic     * @SubscriptionsDeleted@ -- the number of deleted subscriptions on this topic     * @DeliveryPolicy@ -- the JSON serialization of the topic's delivery policy     * @EffectiveDeliveryPolicy@ -- the JSON serialization of the effective delivery policy that takes into account system defaults ----- * 'gtarsResponseStatus'+-- * 'gtarsResponseStatus' - -- | The response status code. getTopicAttributesResponse     :: Int -- ^ 'gtarsResponseStatus'     -> GetTopicAttributesResponse@@ -119,30 +125,11 @@     , _gtarsResponseStatus = pResponseStatus_     } --- | A map of the topic\'s attributes. Attributes in this map include the following:------ -   'TopicArn' -- the topic\'s ARN------ -   'Owner' -- the AWS account ID of the topic\'s owner------ -   'Policy' -- the JSON serialization of the topic\'s access control policy------ -   'DisplayName' -- the human-readable name used in the \"From\" field for notifications to email and email-json endpoints------ -   'SubscriptionsPending' -- the number of subscriptions pending confirmation on this topic------ -   'SubscriptionsConfirmed' -- the number of confirmed subscriptions on this topic------ -   'SubscriptionsDeleted' -- the number of deleted subscriptions on this topic------ -   'DeliveryPolicy' -- the JSON serialization of the topic\'s delivery policy------ -   'EffectiveDeliveryPolicy' -- the JSON serialization of the effective delivery policy that takes into account system defaults---+-- | A map of the topic's attributes. Attributes in this map include the following:     * @TopicArn@ -- the topic's ARN     * @Owner@ -- the AWS account ID of the topic's owner     * @Policy@ -- the JSON serialization of the topic's access control policy     * @DisplayName@ -- the human-readable name used in the "From" field for notifications to email and email-json endpoints     * @SubscriptionsPending@ -- the number of subscriptions pending confirmation on this topic     * @SubscriptionsConfirmed@ -- the number of confirmed subscriptions on this topic     * @SubscriptionsDeleted@ -- the number of deleted subscriptions on this topic     * @DeliveryPolicy@ -- the JSON serialization of the topic's delivery policy     * @EffectiveDeliveryPolicy@ -- the JSON serialization of the effective delivery policy that takes into account system defaults gtarsAttributes :: Lens' GetTopicAttributesResponse (HashMap Text Text) gtarsAttributes = lens _gtarsAttributes (\ s a -> s{_gtarsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gtarsResponseStatus :: Lens' GetTopicAttributesResponse Int gtarsResponseStatus = lens _gtarsResponseStatus (\ s a -> s{_gtarsResponseStatus = a}); 
gen/Network/AWS/SNS/ListEndpointsByPlatformApplication.hs view
@@ -18,8 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM and APNS. The results for 'ListEndpointsByPlatformApplication' are paginated and return a limited list of endpoints, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call 'ListEndpointsByPlatformApplication' again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM and APNS. The results for @ListEndpointsByPlatformApplication@ are paginated and return a limited list of endpoints, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call @ListEndpointsByPlatformApplication@ again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . --+--+-- -- This operation returns paginated results. module Network.AWS.SNS.ListEndpointsByPlatformApplication     (@@ -49,6 +51,8 @@  -- | Input for ListEndpointsByPlatformApplication action. --+--+-- -- /See:/ 'listEndpointsByPlatformApplication' smart constructor. data ListEndpointsByPlatformApplication = ListEndpointsByPlatformApplication'     { _lebpaNextToken              :: !(Maybe Text)@@ -59,9 +63,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lebpaNextToken'+-- * 'lebpaNextToken' - NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results. ----- * 'lebpaPlatformApplicationARN'+-- * 'lebpaPlatformApplicationARN' - PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action. listEndpointsByPlatformApplication     :: Text -- ^ 'lebpaPlatformApplicationARN'     -> ListEndpointsByPlatformApplication@@ -127,6 +131,8 @@  -- | Response for ListEndpointsByPlatformApplication action. --+--+-- -- /See:/ 'listEndpointsByPlatformApplicationResponse' smart constructor. data ListEndpointsByPlatformApplicationResponse = ListEndpointsByPlatformApplicationResponse'     { _lebparsNextToken      :: !(Maybe Text)@@ -138,11 +144,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lebparsNextToken'+-- * 'lebparsNextToken' - NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results. ----- * 'lebparsEndpoints'+-- * 'lebparsEndpoints' - Endpoints returned for ListEndpointsByPlatformApplication action. ----- * 'lebparsResponseStatus'+-- * 'lebparsResponseStatus' - -- | The response status code. listEndpointsByPlatformApplicationResponse     :: Int -- ^ 'lebparsResponseStatus'     -> ListEndpointsByPlatformApplicationResponse@@ -161,7 +167,7 @@ lebparsEndpoints :: Lens' ListEndpointsByPlatformApplicationResponse [Endpoint] lebparsEndpoints = lens _lebparsEndpoints (\ s a -> s{_lebparsEndpoints = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lebparsResponseStatus :: Lens' ListEndpointsByPlatformApplicationResponse Int lebparsResponseStatus = lens _lebparsResponseStatus (\ s a -> s{_lebparsResponseStatus = a}); 
gen/Network/AWS/SNS/ListPhoneNumbersOptedOut.hs view
@@ -20,7 +20,9 @@ -- -- Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them. ----- The results for 'ListPhoneNumbersOptedOut' are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a 'NextToken' string will be returned. To receive the next page, you call 'ListPhoneNumbersOptedOut' again using the 'NextToken' string received from the previous call. When there are no more records to return, 'NextToken' will be null.+--+-- The results for @ListPhoneNumbersOptedOut@ are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a @NextToken@ string will be returned. To receive the next page, you call @ListPhoneNumbersOptedOut@ again using the @NextToken@ string received from the previous call. When there are no more records to return, @NextToken@ will be null.+-- module Network.AWS.SNS.ListPhoneNumbersOptedOut     (     -- * Creating a Request@@ -45,8 +47,10 @@ import           Network.AWS.SNS.Types import           Network.AWS.SNS.Types.Product --- | The input for the 'ListPhoneNumbersOptedOut' action.+-- | The input for the @ListPhoneNumbersOptedOut@ action. --+--+-- -- /See:/ 'listPhoneNumbersOptedOut' smart constructor. newtype ListPhoneNumbersOptedOut = ListPhoneNumbersOptedOut'     { _lpnooNextToken :: Maybe Text@@ -56,7 +60,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lpnooNextToken'+-- * 'lpnooNextToken' - A @NextToken@ string is used when you call the @ListPhoneNumbersOptedOut@ action to retrieve additional records that are available after the first page of results. listPhoneNumbersOptedOut     :: ListPhoneNumbersOptedOut listPhoneNumbersOptedOut =@@ -64,7 +68,7 @@     { _lpnooNextToken = Nothing     } --- | A 'NextToken' string is used when you call the 'ListPhoneNumbersOptedOut' action to retrieve additional records that are available after the first page of results.+-- | A @NextToken@ string is used when you call the @ListPhoneNumbersOptedOut@ action to retrieve additional records that are available after the first page of results. lpnooNextToken :: Lens' ListPhoneNumbersOptedOut (Maybe Text) lpnooNextToken = lens _lpnooNextToken (\ s a -> s{_lpnooNextToken = a}); @@ -99,8 +103,10 @@                "Version" =: ("2010-03-31" :: ByteString),                "nextToken" =: _lpnooNextToken] --- | The response from the 'ListPhoneNumbersOptedOut' action.+-- | The response from the @ListPhoneNumbersOptedOut@ action. --+--+-- -- /See:/ 'listPhoneNumbersOptedOutResponse' smart constructor. data ListPhoneNumbersOptedOutResponse = ListPhoneNumbersOptedOutResponse'     { _lpnoorsPhoneNumbers   :: !(Maybe [Text])@@ -112,11 +118,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lpnoorsPhoneNumbers'+-- * 'lpnoorsPhoneNumbers' - A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers. ----- * 'lpnoorsNextToken'+-- * 'lpnoorsNextToken' - A @NextToken@ string is returned when you call the @ListPhoneNumbersOptedOut@ action if additional records are available after the first page of results. ----- * 'lpnoorsResponseStatus'+-- * 'lpnoorsResponseStatus' - -- | The response status code. listPhoneNumbersOptedOutResponse     :: Int -- ^ 'lpnoorsResponseStatus'     -> ListPhoneNumbersOptedOutResponse@@ -131,11 +137,11 @@ lpnoorsPhoneNumbers :: Lens' ListPhoneNumbersOptedOutResponse [Text] lpnoorsPhoneNumbers = lens _lpnoorsPhoneNumbers (\ s a -> s{_lpnoorsPhoneNumbers = a}) . _Default . _Coerce; --- | A 'NextToken' string is returned when you call the 'ListPhoneNumbersOptedOut' action if additional records are available after the first page of results.+-- | A @NextToken@ string is returned when you call the @ListPhoneNumbersOptedOut@ action if additional records are available after the first page of results. lpnoorsNextToken :: Lens' ListPhoneNumbersOptedOutResponse (Maybe Text) lpnoorsNextToken = lens _lpnoorsNextToken (\ s a -> s{_lpnoorsNextToken = a}); --- | The response status code.+-- | -- | The response status code. lpnoorsResponseStatus :: Lens' ListPhoneNumbersOptedOutResponse Int lpnoorsResponseStatus = lens _lpnoorsResponseStatus (\ s a -> s{_lpnoorsResponseStatus = a}); 
gen/Network/AWS/SNS/ListPlatformApplications.hs view
@@ -18,8 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Lists the platform application objects for the supported push notification services, such as APNS and GCM. The results for 'ListPlatformApplications' are paginated and return a limited list of applications, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call 'ListPlatformApplications' using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Lists the platform application objects for the supported push notification services, such as APNS and GCM. The results for @ListPlatformApplications@ are paginated and return a limited list of applications, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call @ListPlatformApplications@ using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . --+--+-- -- This operation returns paginated results. module Network.AWS.SNS.ListPlatformApplications     (@@ -48,6 +50,8 @@  -- | Input for ListPlatformApplications action. --+--+-- -- /See:/ 'listPlatformApplications' smart constructor. newtype ListPlatformApplications = ListPlatformApplications'     { _lpaNextToken :: Maybe Text@@ -57,7 +61,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lpaNextToken'+-- * 'lpaNextToken' - NextToken string is used when calling ListPlatformApplications action to retrieve additional records that are available after the first page results. listPlatformApplications     :: ListPlatformApplications listPlatformApplications =@@ -109,6 +113,8 @@  -- | Response for ListPlatformApplications action. --+--+-- -- /See:/ 'listPlatformApplicationsResponse' smart constructor. data ListPlatformApplicationsResponse = ListPlatformApplicationsResponse'     { _lparsPlatformApplications :: !(Maybe [PlatformApplication])@@ -120,11 +126,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lparsPlatformApplications'+-- * 'lparsPlatformApplications' - Platform applications returned when calling ListPlatformApplications action. ----- * 'lparsNextToken'+-- * 'lparsNextToken' - NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results. ----- * 'lparsResponseStatus'+-- * 'lparsResponseStatus' - -- | The response status code. listPlatformApplicationsResponse     :: Int -- ^ 'lparsResponseStatus'     -> ListPlatformApplicationsResponse@@ -143,7 +149,7 @@ lparsNextToken :: Lens' ListPlatformApplicationsResponse (Maybe Text) lparsNextToken = lens _lparsNextToken (\ s a -> s{_lparsNextToken = a}); --- | The response status code.+-- | -- | The response status code. lparsResponseStatus :: Lens' ListPlatformApplicationsResponse Int lparsResponseStatus = lens _lparsResponseStatus (\ s a -> s{_lparsResponseStatus = a}); 
gen/Network/AWS/SNS/ListSubscriptions.hs view
@@ -18,8 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of the requester\'s subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a 'NextToken' is also returned. Use the 'NextToken' parameter in a new 'ListSubscriptions' call to get further results.+-- Returns a list of the requester's subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a @NextToken@ is also returned. Use the @NextToken@ parameter in a new @ListSubscriptions@ call to get further results. --+--+-- -- This operation returns paginated results. module Network.AWS.SNS.ListSubscriptions     (@@ -48,6 +50,8 @@  -- | Input for ListSubscriptions action. --+--+-- -- /See:/ 'listSubscriptions' smart constructor. newtype ListSubscriptions = ListSubscriptions'     { _lsNextToken :: Maybe Text@@ -57,7 +61,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsNextToken'+-- * 'lsNextToken' - Token returned by the previous @ListSubscriptions@ request. listSubscriptions     :: ListSubscriptions listSubscriptions =@@ -65,7 +69,7 @@     { _lsNextToken = Nothing     } --- | Token returned by the previous 'ListSubscriptions' request.+-- | Token returned by the previous @ListSubscriptions@ request. lsNextToken :: Lens' ListSubscriptions (Maybe Text) lsNextToken = lens _lsNextToken (\ s a -> s{_lsNextToken = a}); @@ -107,6 +111,8 @@  -- | Response for ListSubscriptions action --+--+-- -- /See:/ 'listSubscriptionsResponse' smart constructor. data ListSubscriptionsResponse = ListSubscriptionsResponse'     { _lsrsNextToken      :: !(Maybe Text)@@ -118,11 +124,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsrsNextToken'+-- * 'lsrsNextToken' - Token to pass along to the next @ListSubscriptions@ request. This element is returned if there are more subscriptions to retrieve. ----- * 'lsrsSubscriptions'+-- * 'lsrsSubscriptions' - A list of subscriptions. ----- * 'lsrsResponseStatus'+-- * 'lsrsResponseStatus' - -- | The response status code. listSubscriptionsResponse     :: Int -- ^ 'lsrsResponseStatus'     -> ListSubscriptionsResponse@@ -133,7 +139,7 @@     , _lsrsResponseStatus = pResponseStatus_     } --- | Token to pass along to the next 'ListSubscriptions' request. This element is returned if there are more subscriptions to retrieve.+-- | Token to pass along to the next @ListSubscriptions@ request. This element is returned if there are more subscriptions to retrieve. lsrsNextToken :: Lens' ListSubscriptionsResponse (Maybe Text) lsrsNextToken = lens _lsrsNextToken (\ s a -> s{_lsrsNextToken = a}); @@ -141,7 +147,7 @@ lsrsSubscriptions :: Lens' ListSubscriptionsResponse [Subscription] lsrsSubscriptions = lens _lsrsSubscriptions (\ s a -> s{_lsrsSubscriptions = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lsrsResponseStatus :: Lens' ListSubscriptionsResponse Int lsrsResponseStatus = lens _lsrsResponseStatus (\ s a -> s{_lsrsResponseStatus = a}); 
gen/Network/AWS/SNS/ListSubscriptionsByTopic.hs view
@@ -18,8 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a 'NextToken' is also returned. Use the 'NextToken' parameter in a new 'ListSubscriptionsByTopic' call to get further results.+-- Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a @NextToken@ is also returned. Use the @NextToken@ parameter in a new @ListSubscriptionsByTopic@ call to get further results. --+--+-- -- This operation returns paginated results. module Network.AWS.SNS.ListSubscriptionsByTopic     (@@ -49,6 +51,8 @@  -- | Input for ListSubscriptionsByTopic action. --+--+-- -- /See:/ 'listSubscriptionsByTopic' smart constructor. data ListSubscriptionsByTopic = ListSubscriptionsByTopic'     { _lsbtNextToken :: !(Maybe Text)@@ -59,9 +63,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsbtNextToken'+-- * 'lsbtNextToken' - Token returned by the previous @ListSubscriptionsByTopic@ request. ----- * 'lsbtTopicARN'+-- * 'lsbtTopicARN' - The ARN of the topic for which you wish to find subscriptions. listSubscriptionsByTopic     :: Text -- ^ 'lsbtTopicARN'     -> ListSubscriptionsByTopic@@ -71,7 +75,7 @@     , _lsbtTopicARN = pTopicARN_     } --- | Token returned by the previous 'ListSubscriptionsByTopic' request.+-- | Token returned by the previous @ListSubscriptionsByTopic@ request. lsbtNextToken :: Lens' ListSubscriptionsByTopic (Maybe Text) lsbtNextToken = lens _lsbtNextToken (\ s a -> s{_lsbtNextToken = a}); @@ -120,6 +124,8 @@  -- | Response for ListSubscriptionsByTopic action. --+--+-- -- /See:/ 'listSubscriptionsByTopicResponse' smart constructor. data ListSubscriptionsByTopicResponse = ListSubscriptionsByTopicResponse'     { _lsbtrsNextToken      :: !(Maybe Text)@@ -131,11 +137,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsbtrsNextToken'+-- * 'lsbtrsNextToken' - Token to pass along to the next @ListSubscriptionsByTopic@ request. This element is returned if there are more subscriptions to retrieve. ----- * 'lsbtrsSubscriptions'+-- * 'lsbtrsSubscriptions' - A list of subscriptions. ----- * 'lsbtrsResponseStatus'+-- * 'lsbtrsResponseStatus' - -- | The response status code. listSubscriptionsByTopicResponse     :: Int -- ^ 'lsbtrsResponseStatus'     -> ListSubscriptionsByTopicResponse@@ -146,7 +152,7 @@     , _lsbtrsResponseStatus = pResponseStatus_     } --- | Token to pass along to the next 'ListSubscriptionsByTopic' request. This element is returned if there are more subscriptions to retrieve.+-- | Token to pass along to the next @ListSubscriptionsByTopic@ request. This element is returned if there are more subscriptions to retrieve. lsbtrsNextToken :: Lens' ListSubscriptionsByTopicResponse (Maybe Text) lsbtrsNextToken = lens _lsbtrsNextToken (\ s a -> s{_lsbtrsNextToken = a}); @@ -154,7 +160,7 @@ lsbtrsSubscriptions :: Lens' ListSubscriptionsByTopicResponse [Subscription] lsbtrsSubscriptions = lens _lsbtrsSubscriptions (\ s a -> s{_lsbtrsSubscriptions = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lsbtrsResponseStatus :: Lens' ListSubscriptionsByTopicResponse Int lsbtrsResponseStatus = lens _lsbtrsResponseStatus (\ s a -> s{_lsbtrsResponseStatus = a}); 
gen/Network/AWS/SNS/ListTopics.hs view
@@ -18,8 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of the requester\'s topics. Each call returns a limited list of topics, up to 100. If there are more topics, a 'NextToken' is also returned. Use the 'NextToken' parameter in a new 'ListTopics' call to get further results.+-- Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a @NextToken@ is also returned. Use the @NextToken@ parameter in a new @ListTopics@ call to get further results. --+--+-- -- This operation returns paginated results. module Network.AWS.SNS.ListTopics     (@@ -55,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ltNextToken'+-- * 'ltNextToken' - Token returned by the previous @ListTopics@ request. listTopics     :: ListTopics listTopics =@@ -63,7 +65,7 @@     { _ltNextToken = Nothing     } --- | Token returned by the previous 'ListTopics' request.+-- | Token returned by the previous @ListTopics@ request. ltNextToken :: Lens' ListTopics (Maybe Text) ltNextToken = lens _ltNextToken (\ s a -> s{_ltNextToken = a}); @@ -105,6 +107,8 @@  -- | Response for ListTopics action. --+--+-- -- /See:/ 'listTopicsResponse' smart constructor. data ListTopicsResponse = ListTopicsResponse'     { _ltrsTopics         :: !(Maybe [Topic])@@ -116,11 +120,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ltrsTopics'+-- * 'ltrsTopics' - A list of topic ARNs. ----- * 'ltrsNextToken'+-- * 'ltrsNextToken' - Token to pass along to the next @ListTopics@ request. This element is returned if there are additional topics to retrieve. ----- * 'ltrsResponseStatus'+-- * 'ltrsResponseStatus' - -- | The response status code. listTopicsResponse     :: Int -- ^ 'ltrsResponseStatus'     -> ListTopicsResponse@@ -135,11 +139,11 @@ ltrsTopics :: Lens' ListTopicsResponse [Topic] ltrsTopics = lens _ltrsTopics (\ s a -> s{_ltrsTopics = a}) . _Default . _Coerce; --- | Token to pass along to the next 'ListTopics' request. This element is returned if there are additional topics to retrieve.+-- | Token to pass along to the next @ListTopics@ request. This element is returned if there are additional topics to retrieve. ltrsNextToken :: Lens' ListTopicsResponse (Maybe Text) ltrsNextToken = lens _ltrsNextToken (\ s a -> s{_ltrsNextToken = a}); --- | The response status code.+-- | -- | The response status code. ltrsResponseStatus :: Lens' ListTopicsResponse Int ltrsResponseStatus = lens _ltrsResponseStatus (\ s a -> s{_ltrsResponseStatus = a}); 
gen/Network/AWS/SNS/OptInPhoneNumber.hs view
@@ -20,7 +20,9 @@ -- -- Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number. --+-- -- You can opt in a phone number only once every 30 days.+-- module Network.AWS.SNS.OptInPhoneNumber     (     -- * Creating a Request@@ -45,6 +47,8 @@  -- | Input for the OptInPhoneNumber action. --+--+-- -- /See:/ 'optInPhoneNumber' smart constructor. newtype OptInPhoneNumber = OptInPhoneNumber'     { _oipnPhoneNumber :: Text@@ -54,7 +58,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'oipnPhoneNumber'+-- * 'oipnPhoneNumber' - The phone number to opt in. optInPhoneNumber     :: Text -- ^ 'oipnPhoneNumber'     -> OptInPhoneNumber@@ -94,6 +98,8 @@  -- | The response for the OptInPhoneNumber action. --+--+-- -- /See:/ 'optInPhoneNumberResponse' smart constructor. newtype OptInPhoneNumberResponse = OptInPhoneNumberResponse'     { _oipnrsResponseStatus :: Int@@ -103,7 +109,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'oipnrsResponseStatus'+-- * 'oipnrsResponseStatus' - -- | The response status code. optInPhoneNumberResponse     :: Int -- ^ 'oipnrsResponseStatus'     -> OptInPhoneNumberResponse@@ -112,7 +118,7 @@     { _oipnrsResponseStatus = pResponseStatus_     } --- | The response status code.+-- | -- | The response status code. oipnrsResponseStatus :: Lens' OptInPhoneNumberResponse Int oipnrsResponseStatus = lens _oipnrsResponseStatus (\ s a -> s{_oipnrsResponseStatus = a}); 
gen/Network/AWS/SNS/Publish.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Sends a message to all of a topic\'s subscribed endpoints. When a 'messageId' is returned, the message has been saved and Amazon SNS will attempt to deliver it to the topic\'s subscribers shortly. The format of the outgoing message to each subscribed endpoint depends on the notification protocol.+-- Sends a message to all of a topic's subscribed endpoints. When a @messageId@ is returned, the message has been saved and Amazon SNS will attempt to deliver it to the topic's subscribers shortly. The format of the outgoing message to each subscribed endpoint depends on the notification protocol. ----- To use the 'Publish' action for sending a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the 'CreatePlatformEndpoint' action. ----- For more information about formatting messages, see <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html Send Custom Platform-Specific Payloads in Messages to Mobile Devices>.+-- To use the @Publish@ action for sending a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the @CreatePlatformEndpoint@ action.+--+-- For more information about formatting messages, see <http://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html Send Custom Platform-Specific Payloads in Messages to Mobile Devices> .+-- module Network.AWS.SNS.Publish     (     -- * Creating a Request@@ -54,6 +56,8 @@  -- | Input for Publish action. --+--+-- -- /See:/ 'publish' smart constructor. data Publish = Publish'     { _pSubject           :: !(Maybe Text)@@ -69,19 +73,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pSubject'+-- * 'pSubject' - Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long. ----- * 'pTargetARN'+-- * 'pTargetARN' - Either TopicArn or EndpointArn, but not both. If you don't specify a value for the @TargetArn@ parameter, you must specify a value for the @PhoneNumber@ or @TopicArn@ parameters. ----- * 'pMessageAttributes'+-- * 'pMessageAttributes' - Message attributes for Publish action. ----- * 'pTopicARN'+-- * 'pTopicARN' - The topic you want to publish to. If you don't specify a value for the @TopicArn@ parameter, you must specify a value for the @PhoneNumber@ or @TargetArn@ parameters. ----- * 'pPhoneNumber'+-- * 'pPhoneNumber' - The phone number to which you want to deliver an SMS message. Use E.164 format. If you don't specify a value for the @PhoneNumber@ parameter, you must specify a value for the @TargetArn@ or @TopicArn@ parameters. ----- * 'pMessageStructure'+-- * 'pMessageStructure' - 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"). For information about sending different messages for each protocol using the AWS Management Console, go to <http://docs.aws.amazon.com/sns/latest/gsg/Publish.html#sns-message-formatting-by-protocol Create Different Messages for Each Protocol> in the /Amazon Simple Notification Service Getting Started Guide/ .  Valid value: @json@ ----- * 'pMessage'+-- * 'pMessage' - The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the @MessageStructure@ parameter to @json@ and use a JSON object for the @Message@ parameter.  Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints:     * Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.     * The values will be parsed (unescaped) before they are used in outgoing messages.     * Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).     * Values have a minimum length of 0 (the empty string, "", is allowed).     * Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).     * Non-string values will cause the key to be ignored.     * Keys that do not correspond to supported transport protocols are ignored.     * Duplicate keys are not allowed.     * Failure to parse or validate any key or value in the message will cause the @Publish@ call to return an error (no partial delivery). publish     :: Text -- ^ 'pMessage'     -> Publish@@ -96,15 +100,11 @@     , _pMessage = pMessage_     } --- | Optional parameter to be used as the \"Subject\" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints.------ Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.+-- | Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number, or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long. pSubject :: Lens' Publish (Maybe Text) pSubject = lens _pSubject (\ s a -> s{_pSubject = a}); --- | Either TopicArn or EndpointArn, but not both.------ If you don\'t specify a value for the 'TargetArn' parameter, you must specify a value for the 'PhoneNumber' or 'TopicArn' parameters.+-- | Either TopicArn or EndpointArn, but not both. If you don't specify a value for the @TargetArn@ parameter, you must specify a value for the @PhoneNumber@ or @TopicArn@ parameters. pTargetARN :: Lens' Publish (Maybe Text) pTargetARN = lens _pTargetARN (\ s a -> s{_pTargetARN = a}); @@ -112,60 +112,19 @@ pMessageAttributes :: Lens' Publish (HashMap Text MessageAttributeValue) pMessageAttributes = lens _pMessageAttributes (\ s a -> s{_pMessageAttributes = a}) . _Default . _Map; --- | The topic you want to publish to.------ If you don\'t specify a value for the 'TopicArn' parameter, you must specify a value for the 'PhoneNumber' or 'TargetArn' parameters.+-- | The topic you want to publish to. If you don't specify a value for the @TopicArn@ parameter, you must specify a value for the @PhoneNumber@ or @TargetArn@ parameters. pTopicARN :: Lens' Publish (Maybe Text) pTopicARN = lens _pTopicARN (\ s a -> s{_pTopicARN = a}); --- | The phone number to which you want to deliver an SMS message. Use E.164 format.------ If you don\'t specify a value for the 'PhoneNumber' parameter, you must specify a value for the 'TargetArn' or 'TopicArn' parameters.+-- | The phone number to which you want to deliver an SMS message. Use E.164 format. If you don't specify a value for the @PhoneNumber@ parameter, you must specify a value for the @TargetArn@ or @TopicArn@ parameters. pPhoneNumber :: Lens' Publish (Maybe Text) pPhoneNumber = lens _pPhoneNumber (\ s a -> s{_pPhoneNumber = a}); --- | 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\").------ For information about sending different messages for each protocol using the AWS Management Console, go to <http://docs.aws.amazon.com/sns/latest/gsg/Publish.html#sns-message-formatting-by-protocol Create Different Messages for Each Protocol> in the /Amazon Simple Notification Service Getting Started Guide/.------ Valid value: 'json'+-- | 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"). For information about sending different messages for each protocol using the AWS Management Console, go to <http://docs.aws.amazon.com/sns/latest/gsg/Publish.html#sns-message-formatting-by-protocol Create Different Messages for Each Protocol> in the /Amazon Simple Notification Service Getting Started Guide/ .  Valid value: @json@ pMessageStructure :: Lens' Publish (Maybe Text) pMessageStructure = lens _pMessageStructure (\ s a -> s{_pMessageStructure = a}); --- | The message you want to send to the topic.------ If you want to send the same message to all transport protocols, include the text of the message as a String value.------ If you want to send different messages for each transport protocol, set the value of the 'MessageStructure' parameter to 'json' and use a JSON object for the 'Message' parameter.------ Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters).------ JSON-specific constraints:------ -   Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.------ -   The values will be parsed (unescaped) before they are used in outgoing messages.------ -   Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).------ -   Values have a minimum length of 0 (the empty string, \"\", is allowed).------ -   Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).------ -   Non-string values will cause the key to be ignored.------ -   Keys that do not correspond to supported transport protocols are ignored.------ -   Duplicate keys are not allowed.------ -   Failure to parse or validate any key or value in the message will cause the 'Publish' call to return an error (no partial delivery).---+-- | The message you want to send to the topic. If you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the @MessageStructure@ parameter to @json@ and use a JSON object for the @Message@ parameter.  Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size (262144 bytes, not 262144 characters). JSON-specific constraints:     * Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values.     * The values will be parsed (unescaped) before they are used in outgoing messages.     * Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending).     * Values have a minimum length of 0 (the empty string, "", is allowed).     * Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes).     * Non-string values will cause the key to be ignored.     * Keys that do not correspond to supported transport protocols are ignored.     * Duplicate keys are not allowed.     * Failure to parse or validate any key or value in the message will cause the @Publish@ call to return an error (no partial delivery). pMessage :: Lens' Publish Text pMessage = lens _pMessage (\ s a -> s{_pMessage = a}); @@ -205,6 +164,8 @@  -- | Response for Publish action. --+--+-- -- /See:/ 'publishResponse' smart constructor. data PublishResponse = PublishResponse'     { _prsMessageId      :: !(Maybe Text)@@ -215,9 +176,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'prsMessageId'+-- * 'prsMessageId' - Unique identifier assigned to the published message. Length Constraint: Maximum 100 characters ----- * 'prsResponseStatus'+-- * 'prsResponseStatus' - -- | The response status code. publishResponse     :: Int -- ^ 'prsResponseStatus'     -> PublishResponse@@ -227,13 +188,11 @@     , _prsResponseStatus = pResponseStatus_     } --- | Unique identifier assigned to the published message.------ Length Constraint: Maximum 100 characters+-- | Unique identifier assigned to the published message. Length Constraint: Maximum 100 characters prsMessageId :: Lens' PublishResponse (Maybe Text) prsMessageId = lens _prsMessageId (\ s a -> s{_prsMessageId = a}); --- | The response status code.+-- | -- | The response status code. prsResponseStatus :: Lens' PublishResponse Int prsResponseStatus = lens _prsResponseStatus (\ s a -> s{_prsResponseStatus = a}); 
gen/Network/AWS/SNS/RemovePermission.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Removes a statement from a topic\'s access control policy.+-- Removes a statement from a topic's access control policy.+--+-- module Network.AWS.SNS.RemovePermission     (     -- * Creating a Request@@ -42,6 +44,8 @@  -- | Input for RemovePermission action. --+--+-- -- /See:/ 'removePermission' smart constructor. data RemovePermission = RemovePermission'     { _rpTopicARN :: !Text@@ -52,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rpTopicARN'+-- * 'rpTopicARN' - The ARN of the topic whose access control policy you wish to modify. ----- * 'rpLabel'+-- * 'rpLabel' - The unique label of the statement you want to remove. removePermission     :: Text -- ^ 'rpTopicARN'     -> Text -- ^ 'rpLabel'
gen/Network/AWS/SNS/SetEndpointAttributes.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Sets the attributes for an endpoint for a device on one of the supported push notification services, such as GCM and APNS. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.+-- Sets the attributes for an endpoint for a device on one of the supported push notification services, such as GCM and APNS. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> .+--+-- module Network.AWS.SNS.SetEndpointAttributes     (     -- * Creating a Request@@ -42,6 +44,8 @@  -- | Input for SetEndpointAttributes action. --+--+-- -- /See:/ 'setEndpointAttributes' smart constructor. data SetEndpointAttributes = SetEndpointAttributes'     { _seaEndpointARN :: !Text@@ -52,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'seaEndpointARN'+-- * 'seaEndpointARN' - EndpointArn used for SetEndpointAttributes action. ----- * 'seaAttributes'+-- * 'seaAttributes' - A map of the endpoint attributes. Attributes in this map include the following:     * @CustomUserData@ -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.     * @Enabled@ -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.     * @Token@ -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service. setEndpointAttributes     :: Text -- ^ 'seaEndpointARN'     -> SetEndpointAttributes@@ -68,14 +72,7 @@ seaEndpointARN :: Lens' SetEndpointAttributes Text seaEndpointARN = lens _seaEndpointARN (\ s a -> s{_seaEndpointARN = a}); --- | A map of the endpoint attributes. Attributes in this map include the following:------ -   'CustomUserData' -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.------ -   'Enabled' -- flag that enables\/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.------ -   'Token' -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.---+-- | A map of the endpoint attributes. Attributes in this map include the following:     * @CustomUserData@ -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.     * @Enabled@ -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.     * @Token@ -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service. seaAttributes :: Lens' SetEndpointAttributes (HashMap Text Text) seaAttributes = lens _seaAttributes (\ s a -> s{_seaAttributes = a}) . _Map; 
gen/Network/AWS/SNS/SetPlatformApplicationAttributes.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>. For information on configuring attributes for message delivery status, see <http://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html Using Amazon SNS Application Attributes for Message Delivery Status>.+-- Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications> . For information on configuring attributes for message delivery status, see <http://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html Using Amazon SNS Application Attributes for Message Delivery Status> .+--+-- module Network.AWS.SNS.SetPlatformApplicationAttributes     (     -- * Creating a Request@@ -42,6 +44,8 @@  -- | Input for SetPlatformApplicationAttributes action. --+--+-- -- /See:/ 'setPlatformApplicationAttributes' smart constructor. data SetPlatformApplicationAttributes = SetPlatformApplicationAttributes'     { _spaaPlatformApplicationARN :: !Text@@ -52,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'spaaPlatformApplicationARN'+-- * 'spaaPlatformApplicationARN' - PlatformApplicationArn for SetPlatformApplicationAttributes action. ----- * 'spaaAttributes'+-- * 'spaaAttributes' - A map of the platform application attributes. Attributes in this map include the following:     * @PlatformCredential@ -- The credential received from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client secret".     * @PlatformPrincipal@ -- The principal received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client id".     * @EventEndpointCreated@ -- Topic ARN to which EndpointCreated event notifications should be sent.     * @EventEndpointDeleted@ -- Topic ARN to which EndpointDeleted event notifications should be sent.     * @EventEndpointUpdated@ -- Topic ARN to which EndpointUpdate event notifications should be sent.     * @EventDeliveryFailure@ -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.     * @SuccessFeedbackRoleArn@ -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.     * @FailureFeedbackRoleArn@ -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.     * @SuccessFeedbackSampleRate@ -- Sample rate percentage (0-100) of successfully delivered messages. setPlatformApplicationAttributes     :: Text -- ^ 'spaaPlatformApplicationARN'     -> SetPlatformApplicationAttributes@@ -68,26 +72,7 @@ spaaPlatformApplicationARN :: Lens' SetPlatformApplicationAttributes Text spaaPlatformApplicationARN = lens _spaaPlatformApplicationARN (\ s a -> s{_spaaPlatformApplicationARN = a}); --- | A map of the platform application attributes. Attributes in this map include the following:------ -   'PlatformCredential' -- The credential received from the notification service. For APNS\/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential is \"API key\". For ADM, PlatformCredential is \"client secret\".------ -   'PlatformPrincipal' -- The principal received from the notification service. For APNS\/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is \"client id\".------ -   'EventEndpointCreated' -- Topic ARN to which EndpointCreated event notifications should be sent.------ -   'EventEndpointDeleted' -- Topic ARN to which EndpointDeleted event notifications should be sent.------ -   'EventEndpointUpdated' -- Topic ARN to which EndpointUpdate event notifications should be sent.------ -   'EventDeliveryFailure' -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application\'s endpoints.------ -   'SuccessFeedbackRoleArn' -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.------ -   'FailureFeedbackRoleArn' -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.------ -   'SuccessFeedbackSampleRate' -- Sample rate percentage (0-100) of successfully delivered messages.---+-- | A map of the platform application attributes. Attributes in this map include the following:     * @PlatformCredential@ -- The credential received from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client secret".     * @PlatformPrincipal@ -- The principal received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client id".     * @EventEndpointCreated@ -- Topic ARN to which EndpointCreated event notifications should be sent.     * @EventEndpointDeleted@ -- Topic ARN to which EndpointDeleted event notifications should be sent.     * @EventEndpointUpdated@ -- Topic ARN to which EndpointUpdate event notifications should be sent.     * @EventDeliveryFailure@ -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.     * @SuccessFeedbackRoleArn@ -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.     * @FailureFeedbackRoleArn@ -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.     * @SuccessFeedbackSampleRate@ -- Sample rate percentage (0-100) of successfully delivered messages. spaaAttributes :: Lens' SetPlatformApplicationAttributes (HashMap Text Text) spaaAttributes = lens _spaaAttributes (\ s a -> s{_spaaAttributes = a}) . _Map; 
gen/Network/AWS/SNS/SetSMSAttributes.hs view
@@ -20,7 +20,9 @@ -- -- Use this request to set the default settings for sending SMS messages and receiving daily SMS usage reports. ----- You can override some of these settings for a single message when you use the 'Publish' action with the 'MessageAttributes.entry.N' parameter. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html Sending an SMS Message> in the /Amazon SNS Developer Guide/.+--+-- You can override some of these settings for a single message when you use the @Publish@ action with the @MessageAttributes.entry.N@ parameter. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html Sending an SMS Message> in the /Amazon SNS Developer Guide/ .+-- module Network.AWS.SNS.SetSMSAttributes     (     -- * Creating a Request@@ -45,6 +47,8 @@  -- | The input for the SetSMSAttributes action. --+--+-- -- /See:/ 'setSMSAttributes' smart constructor. newtype SetSMSAttributes = SetSMSAttributes'     { _ssmsaAttributes :: Map Text Text@@ -54,7 +58,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ssmsaAttributes'+-- * 'ssmsaAttributes' - The default settings for sending SMS messages from your account. You can set values for the following attribute names: @MonthlySpendLimit@ – The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes. /Important:/ Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit. By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to exceed the maximum, contact <https://aws.amazon.com/premiumsupport/ AWS Support> or your AWS sales representative for a service limit increase. @DeliveryStatusIAMRole@ – The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information. @DeliveryStatusSuccessSamplingRate@ – The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to @0@ . To write logs for 10% of your successful deliveries, set it to @10@ . @DefaultSenderID@ – A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter. @DefaultSMSType@ – The type of SMS message that you will send by default. You can assign the following values:     * @Promotional@ – (Default) Noncritical messages, such as marketing messages. Amazon SNS optimizes the message delivery to incur the lowest cost.     * @Transactional@ – Critical messages that support customer transactions, such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes the message delivery to achieve the highest reliability. @UsageReportS3Bucket@ – The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your account:     * Time that the message was published (in UTC)     * Message ID     * Destination phone number     * Message type     * Delivery status     * Message price (in USD)     * Part number (a message is split into multiple parts if it is too long for a single message)     * Total number of parts To receive the report, the bucket must have a policy that allows the Amazon SNS service principle to perform the @s3:PutObject@ and @s3:GetBucketLocation@ actions. For an example bucket policy and usage report, see <http://docs.aws.amazon.com/sns/latest/dg/sms_stats.html Monitoring SMS Activity> in the /Amazon SNS Developer Guide/ . setSMSAttributes     :: SetSMSAttributes setSMSAttributes =@@ -62,47 +66,7 @@     { _ssmsaAttributes = mempty     } --- | The default settings for sending SMS messages from your account. You can set values for the following attribute names:------ 'MonthlySpendLimit' – The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes.------ Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit.------ By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to exceed the maximum, contact <https://aws.amazon.com/premiumsupport/ AWS Support> or your AWS sales representative for a service limit increase.------ 'DeliveryStatusIAMRole' – The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information.------ 'DeliveryStatusSuccessSamplingRate' – The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to '0'. To write logs for 10% of your successful deliveries, set it to '10'.------ 'DefaultSenderID' – A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter.------ 'DefaultSMSType' – The type of SMS message that you will send by default. You can assign the following values:------ -   'Promotional' – (Default) Noncritical messages, such as marketing messages. Amazon SNS optimizes the message delivery to incur the lowest cost.------ -   'Transactional' – Critical messages that support customer transactions, such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes the message delivery to achieve the highest reliability.------ 'UsageReportS3Bucket' – The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your account:------ -   Time that the message was published (in UTC)------ -   Message ID------ -   Destination phone number------ -   Message type------ -   Delivery status------ -   Message price (in USD)------ -   Part number (a message is split into multiple parts if it is too long for a single message)------ -   Total number of parts------ To receive the report, the bucket must have a policy that allows the Amazon SNS service principle to perform the 's3:PutObject' and 's3:GetBucketLocation' actions.------ For an example bucket policy and usage report, see <http://docs.aws.amazon.com/sns/latest/dg/sms_stats.html Monitoring SMS Activity> in the /Amazon SNS Developer Guide/.+-- | The default settings for sending SMS messages from your account. You can set values for the following attribute names: @MonthlySpendLimit@ – The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes. /Important:/ Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit. By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to exceed the maximum, contact <https://aws.amazon.com/premiumsupport/ AWS Support> or your AWS sales representative for a service limit increase. @DeliveryStatusIAMRole@ – The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information. @DeliveryStatusSuccessSamplingRate@ – The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to @0@ . To write logs for 10% of your successful deliveries, set it to @10@ . @DefaultSenderID@ – A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter. @DefaultSMSType@ – The type of SMS message that you will send by default. You can assign the following values:     * @Promotional@ – (Default) Noncritical messages, such as marketing messages. Amazon SNS optimizes the message delivery to incur the lowest cost.     * @Transactional@ – Critical messages that support customer transactions, such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes the message delivery to achieve the highest reliability. @UsageReportS3Bucket@ – The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your account:     * Time that the message was published (in UTC)     * Message ID     * Destination phone number     * Message type     * Delivery status     * Message price (in USD)     * Part number (a message is split into multiple parts if it is too long for a single message)     * Total number of parts To receive the report, the bucket must have a policy that allows the Amazon SNS service principle to perform the @s3:PutObject@ and @s3:GetBucketLocation@ actions. For an example bucket policy and usage report, see <http://docs.aws.amazon.com/sns/latest/dg/sms_stats.html Monitoring SMS Activity> in the /Amazon SNS Developer Guide/ . ssmsaAttributes :: Lens' SetSMSAttributes (HashMap Text Text) ssmsaAttributes = lens _ssmsaAttributes (\ s a -> s{_ssmsaAttributes = a}) . _Map; @@ -134,6 +98,8 @@  -- | The response for the SetSMSAttributes action. --+--+-- -- /See:/ 'setSMSAttributesResponse' smart constructor. newtype SetSMSAttributesResponse = SetSMSAttributesResponse'     { _ssmsarsResponseStatus :: Int@@ -143,7 +109,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ssmsarsResponseStatus'+-- * 'ssmsarsResponseStatus' - -- | The response status code. setSMSAttributesResponse     :: Int -- ^ 'ssmsarsResponseStatus'     -> SetSMSAttributesResponse@@ -152,7 +118,7 @@     { _ssmsarsResponseStatus = pResponseStatus_     } --- | The response status code.+-- | -- | The response status code. ssmsarsResponseStatus :: Lens' SetSMSAttributesResponse Int ssmsarsResponseStatus = lens _ssmsarsResponseStatus (\ s a -> s{_ssmsarsResponseStatus = a}); 
gen/Network/AWS/SNS/SetSubscriptionAttributes.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Allows a subscription owner to set an attribute of the topic to a new value.+--+-- module Network.AWS.SNS.SetSubscriptionAttributes     (     -- * Creating a Request@@ -43,6 +45,8 @@  -- | Input for SetSubscriptionAttributes action. --+--+-- -- /See:/ 'setSubscriptionAttributes' smart constructor. data SetSubscriptionAttributes = SetSubscriptionAttributes'     { _ssaAttributeValue  :: !(Maybe Text)@@ -54,11 +58,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ssaAttributeValue'+-- * 'ssaAttributeValue' - The new value for the attribute in JSON format. ----- * 'ssaSubscriptionARN'+-- * 'ssaSubscriptionARN' - The ARN of the subscription to modify. ----- * 'ssaAttributeName'+-- * 'ssaAttributeName' - The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: @DeliveryPolicy@ | @RawMessageDelivery@ setSubscriptionAttributes     :: Text -- ^ 'ssaSubscriptionARN'     -> Text -- ^ 'ssaAttributeName'@@ -78,9 +82,7 @@ ssaSubscriptionARN :: Lens' SetSubscriptionAttributes Text ssaSubscriptionARN = lens _ssaSubscriptionARN (\ s a -> s{_ssaSubscriptionARN = a}); --- | The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.------ Valid values: 'DeliveryPolicy' | 'RawMessageDelivery'+-- | The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: @DeliveryPolicy@ | @RawMessageDelivery@ ssaAttributeName :: Lens' SetSubscriptionAttributes Text ssaAttributeName = lens _ssaAttributeName (\ s a -> s{_ssaAttributeName = a}); 
gen/Network/AWS/SNS/SetTopicAttributes.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Allows a topic owner to set an attribute of the topic to a new value.+--+-- module Network.AWS.SNS.SetTopicAttributes     (     -- * Creating a Request@@ -43,6 +45,8 @@  -- | Input for SetTopicAttributes action. --+--+-- -- /See:/ 'setTopicAttributes' smart constructor. data SetTopicAttributes = SetTopicAttributes'     { _staAttributeValue :: !(Maybe Text)@@ -54,11 +58,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'staAttributeValue'+-- * 'staAttributeValue' - The new value for the attribute. ----- * 'staTopicARN'+-- * 'staTopicARN' - The ARN of the topic to modify. ----- * 'staAttributeName'+-- * 'staAttributeName' - The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: @Policy@ | @DisplayName@ | @DeliveryPolicy@ setTopicAttributes     :: Text -- ^ 'staTopicARN'     -> Text -- ^ 'staAttributeName'@@ -78,9 +82,7 @@ staTopicARN :: Lens' SetTopicAttributes Text staTopicARN = lens _staTopicARN (\ s a -> s{_staTopicARN = a}); --- | The name of the attribute you want to set. Only a subset of the topic\'s attributes are mutable.------ Valid values: 'Policy' | 'DisplayName' | 'DeliveryPolicy'+-- | The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: @Policy@ | @DisplayName@ | @DeliveryPolicy@ staAttributeName :: Lens' SetTopicAttributes Text staAttributeName = lens _staAttributeName (\ s a -> s{_staAttributeName = a}); 
gen/Network/AWS/SNS/Subscribe.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Prepares to subscribe an endpoint by sending the endpoint a confirmation message. To actually create a subscription, the endpoint owner must call the 'ConfirmSubscription' action with the token from the confirmation message. Confirmation tokens are valid for three days.+-- Prepares to subscribe an endpoint by sending the endpoint a confirmation message. To actually create a subscription, the endpoint owner must call the @ConfirmSubscription@ action with the token from the confirmation message. Confirmation tokens are valid for three days.+--+-- module Network.AWS.SNS.Subscribe     (     -- * Creating a Request@@ -46,6 +48,8 @@  -- | Input for Subscribe action. --+--+-- -- /See:/ 'subscribe' smart constructor. data Subscribe = Subscribe'     { _subEndpoint :: !(Maybe Text)@@ -57,11 +61,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'subEndpoint'+-- * 'subEndpoint' - The endpoint that you want to receive notifications. Endpoints vary by protocol:     * For the @http@ protocol, the endpoint is an URL beginning with "http://"     * For the @https@ protocol, the endpoint is a URL beginning with "https://"     * For the @email@ protocol, the endpoint is an email address     * For the @email-json@ protocol, the endpoint is an email address     * For the @sms@ protocol, the endpoint is a phone number of an SMS-enabled device     * For the @sqs@ protocol, the endpoint is the ARN of an Amazon SQS queue     * For the @application@ protocol, the endpoint is the EndpointArn of a mobile app and device.     * For the @lambda@ protocol, the endpoint is the ARN of an AWS Lambda function. ----- * 'subTopicARN'+-- * 'subTopicARN' - The ARN of the topic you want to subscribe to. ----- * 'subProtocol'+-- * 'subProtocol' - The protocol you want to use. Supported protocols include:     * @http@ -- delivery of JSON-encoded message via HTTP POST     * @https@ -- delivery of JSON-encoded message via HTTPS POST     * @email@ -- delivery of message via SMTP     * @email-json@ -- delivery of JSON-encoded message via SMTP     * @sms@ -- delivery of message via SMS     * @sqs@ -- delivery of JSON-encoded message to an Amazon SQS queue     * @application@ -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.     * @lambda@ -- delivery of JSON-encoded message to an AWS Lambda function. subscribe     :: Text -- ^ 'subTopicARN'     -> Text -- ^ 'subProtocol'@@ -73,24 +77,7 @@     , _subProtocol = pProtocol_     } --- | The endpoint that you want to receive notifications. Endpoints vary by protocol:------ -   For the 'http' protocol, the endpoint is an URL beginning with \"http:\/\/\"------ -   For the 'https' protocol, the endpoint is a URL beginning with \"https:\/\/\"------ -   For the 'email' protocol, the endpoint is an email address------ -   For the 'email-json' protocol, the endpoint is an email address------ -   For the 'sms' protocol, the endpoint is a phone number of an SMS-enabled device------ -   For the 'sqs' protocol, the endpoint is the ARN of an Amazon SQS queue------ -   For the 'application' protocol, the endpoint is the EndpointArn of a mobile app and device.------ -   For the 'lambda' protocol, the endpoint is the ARN of an AWS Lambda function.---+-- | The endpoint that you want to receive notifications. Endpoints vary by protocol:     * For the @http@ protocol, the endpoint is an URL beginning with "http://"     * For the @https@ protocol, the endpoint is a URL beginning with "https://"     * For the @email@ protocol, the endpoint is an email address     * For the @email-json@ protocol, the endpoint is an email address     * For the @sms@ protocol, the endpoint is a phone number of an SMS-enabled device     * For the @sqs@ protocol, the endpoint is the ARN of an Amazon SQS queue     * For the @application@ protocol, the endpoint is the EndpointArn of a mobile app and device.     * For the @lambda@ protocol, the endpoint is the ARN of an AWS Lambda function. subEndpoint :: Lens' Subscribe (Maybe Text) subEndpoint = lens _subEndpoint (\ s a -> s{_subEndpoint = a}); @@ -98,24 +85,7 @@ subTopicARN :: Lens' Subscribe Text subTopicARN = lens _subTopicARN (\ s a -> s{_subTopicARN = a}); --- | The protocol you want to use. Supported protocols include:------ -   'http' -- delivery of JSON-encoded message via HTTP POST------ -   'https' -- delivery of JSON-encoded message via HTTPS POST------ -   'email' -- delivery of message via SMTP------ -   'email-json' -- delivery of JSON-encoded message via SMTP------ -   'sms' -- delivery of message via SMS------ -   'sqs' -- delivery of JSON-encoded message to an Amazon SQS queue------ -   'application' -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.------ -   'lambda' -- delivery of JSON-encoded message to an AWS Lambda function.---+-- | The protocol you want to use. Supported protocols include:     * @http@ -- delivery of JSON-encoded message via HTTP POST     * @https@ -- delivery of JSON-encoded message via HTTPS POST     * @email@ -- delivery of message via SMTP     * @email-json@ -- delivery of JSON-encoded message via SMTP     * @sms@ -- delivery of message via SMS     * @sqs@ -- delivery of JSON-encoded message to an Amazon SQS queue     * @application@ -- delivery of JSON-encoded message to an EndpointArn for a mobile app and device.     * @lambda@ -- delivery of JSON-encoded message to an AWS Lambda function. subProtocol :: Lens' Subscribe Text subProtocol = lens _subProtocol (\ s a -> s{_subProtocol = a}); @@ -149,6 +119,8 @@  -- | Response for Subscribe action. --+--+-- -- /See:/ 'subscribeResponse' smart constructor. data SubscribeResponse = SubscribeResponse'     { _srsSubscriptionARN :: !(Maybe Text)@@ -159,9 +131,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'srsSubscriptionARN'+-- * 'srsSubscriptionARN' - The ARN of the subscription, if the service was able to create a subscription immediately (without requiring endpoint owner confirmation). ----- * 'srsResponseStatus'+-- * 'srsResponseStatus' - -- | The response status code. subscribeResponse     :: Int -- ^ 'srsResponseStatus'     -> SubscribeResponse@@ -175,7 +147,7 @@ srsSubscriptionARN :: Lens' SubscribeResponse (Maybe Text) srsSubscriptionARN = lens _srsSubscriptionARN (\ s a -> s{_srsSubscriptionARN = a}); --- | The response status code.+-- | -- | The response status code. srsResponseStatus :: Lens' SubscribeResponse Int srsResponseStatus = lens _srsResponseStatus (\ s a -> s{_srsResponseStatus = a}); 
gen/Network/AWS/SNS/Types.hs view
@@ -67,7 +67,7 @@ import           Network.AWS.SNS.Types.Product import           Network.AWS.SNS.Types.Sum --- | API version '2010-03-31' of the Amazon Simple Notification Service SDK configuration.+-- | API version @2010-03-31@ of the Amazon Simple Notification Service SDK configuration. sns :: Service sns =     Service@@ -102,49 +102,69 @@       | otherwise = Nothing  -- | Exception error indicating endpoint disabled.+--+-- _EndpointDisabledException :: AsError a => Getting (First ServiceError) a ServiceError _EndpointDisabledException =     _ServiceError . hasStatus 400 . hasCode "EndpointDisabled"  -- | Indicates that the user has been denied access to the requested resource.+--+-- _AuthorizationErrorException :: AsError a => Getting (First ServiceError) a ServiceError _AuthorizationErrorException =     _ServiceError . hasStatus 403 . hasCode "AuthorizationError"  -- | Indicates that a request parameter does not comply with the associated constraints.+--+-- _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterException =     _ServiceError . hasStatus 400 . hasCode "InvalidParameter"  -- | Indicates that the customer already owns the maximum allowed number of subscriptions.+--+-- _SubscriptionLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _SubscriptionLimitExceededException =     _ServiceError . hasStatus 403 . hasCode "SubscriptionLimitExceeded"  -- | Exception error indicating platform application disabled.+--+-- _PlatformApplicationDisabledException :: AsError a => Getting (First ServiceError) a ServiceError _PlatformApplicationDisabledException =     _ServiceError . hasStatus 400 . hasCode "PlatformApplicationDisabled"  -- | Indicates an internal service error.+--+-- _InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError _InternalErrorException =     _ServiceError . hasStatus 500 . hasCode "InternalError"  -- | Indicates that the rate at which requests have been submitted for this action exceeds the limit for your account.+--+-- _ThrottledException :: AsError a => Getting (First ServiceError) a ServiceError _ThrottledException = _ServiceError . hasStatus 429 . hasCode "Throttled"  -- | Indicates that a request parameter does not comply with the associated constraints.+--+-- _InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterValueException =     _ServiceError . hasStatus 400 . hasCode "ParameterValueInvalid"  -- | Indicates that the requested resource does not exist.+--+-- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _NotFoundException = _ServiceError . hasStatus 404 . hasCode "NotFound"  -- | Indicates that the customer already owns the maximum allowed number of topics.+--+-- _TopicLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _TopicLimitExceededException =     _ServiceError . hasStatus 403 . hasCode "TopicLimitExceeded"
gen/Network/AWS/SNS/Types/Product.hs view
@@ -23,6 +23,8 @@  -- | Endpoint for mobile app and device. --+--+-- -- /See:/ 'endpoint' smart constructor. data Endpoint = Endpoint'     { _eAttributes  :: !(Maybe (Map Text Text))@@ -33,9 +35,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'eAttributes'+-- * 'eAttributes' - Attributes for endpoint. ----- * 'eEndpointARN'+-- * 'eEndpointARN' - EndpointArn for mobile app and device. endpoint     :: Endpoint endpoint =@@ -63,10 +65,12 @@  instance NFData Endpoint --- | 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 <http://docs.aws.amazon.com/sns/latest/api/API_Publish.html Publish>.+-- | 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 <http://docs.aws.amazon.com/sns/latest/api/API_Publish.html 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 <http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html Using Amazon SNS Message Attributes>. --+-- 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 <http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html Using Amazon SNS Message Attributes> .+--+-- -- /See:/ 'messageAttributeValue' smart constructor. data MessageAttributeValue = MessageAttributeValue'     { _mavBinaryValue :: !(Maybe Base64)@@ -78,11 +82,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mavBinaryValue'+-- * 'mavBinaryValue' - 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. ----- * 'mavStringValue'+-- * 'mavStringValue' - Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters> . ----- * 'mavDataType'+-- * 'mavDataType' - Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes Message Attribute Data Types> . messageAttributeValue     :: Text -- ^ 'mavDataType'     -> MessageAttributeValue@@ -93,21 +97,15 @@     , _mavDataType = pDataType_     } --- | Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.------ /Note:/ This 'Lens' automatically encodes and decodes Base64 data,--- despite what the AWS documentation might say.--- The underlying isomorphism will encode to Base64 representation during--- serialisation, and decode from Base64 representation during deserialisation.--- This 'Lens' accepts and returns only raw unencoded data.+-- | 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. mavBinaryValue :: Lens' MessageAttributeValue (Maybe ByteString) mavBinaryValue = lens _mavBinaryValue (\ s a -> s{_mavBinaryValue = a}) . mapping _Base64; --- | Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>.+-- | Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters> . mavStringValue :: Lens' MessageAttributeValue (Maybe Text) mavStringValue = lens _mavStringValue (\ s a -> s{_mavStringValue = a}); --- | Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes Message Attribute Data Types>.+-- | Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see <http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes Message Attribute Data Types> . mavDataType :: Lens' MessageAttributeValue Text mavDataType = lens _mavDataType (\ s a -> s{_mavDataType = a}); @@ -124,6 +122,8 @@  -- | Platform application object. --+--+-- -- /See:/ 'platformApplication' smart constructor. data PlatformApplication = PlatformApplication'     { _paPlatformApplicationARN :: !(Maybe Text)@@ -134,9 +134,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'paPlatformApplicationARN'+-- * 'paPlatformApplicationARN' - PlatformApplicationArn for platform application object. ----- * 'paAttributes'+-- * 'paAttributes' - Attributes for platform application object. platformApplication     :: PlatformApplication platformApplication =@@ -166,6 +166,8 @@  -- | A wrapper type for the attributes of an Amazon SNS subscription. --+--+-- -- /See:/ 'subscription' smart constructor. data Subscription = Subscription'     { _sProtocol        :: !(Maybe Text)@@ -179,15 +181,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sProtocol'+-- * 'sProtocol' - The subscription's protocol. ----- * 'sOwner'+-- * 'sOwner' - The subscription's owner. ----- * 'sTopicARN'+-- * 'sTopicARN' - The ARN of the subscription's topic. ----- * 'sEndpoint'+-- * 'sEndpoint' - The subscription's endpoint (format depends on the protocol). ----- * 'sSubscriptionARN'+-- * 'sSubscriptionARN' - The subscription's ARN. subscription     :: Subscription subscription =@@ -199,23 +201,23 @@     , _sSubscriptionARN = Nothing     } --- | The subscription\'s protocol.+-- | The subscription's protocol. sProtocol :: Lens' Subscription (Maybe Text) sProtocol = lens _sProtocol (\ s a -> s{_sProtocol = a}); --- | The subscription\'s owner.+-- | The subscription's owner. sOwner :: Lens' Subscription (Maybe Text) sOwner = lens _sOwner (\ s a -> s{_sOwner = a}); --- | The ARN of the subscription\'s topic.+-- | The ARN of the subscription's topic. sTopicARN :: Lens' Subscription (Maybe Text) sTopicARN = lens _sTopicARN (\ s a -> s{_sTopicARN = a}); --- | The subscription\'s endpoint (format depends on the protocol).+-- | The subscription's endpoint (format depends on the protocol). sEndpoint :: Lens' Subscription (Maybe Text) sEndpoint = lens _sEndpoint (\ s a -> s{_sEndpoint = a}); --- | The subscription\'s ARN.+-- | The subscription's ARN. sSubscriptionARN :: Lens' Subscription (Maybe Text) sSubscriptionARN = lens _sSubscriptionARN (\ s a -> s{_sSubscriptionARN = a}); @@ -231,8 +233,10 @@  instance NFData Subscription --- | A wrapper type for the topic\'s Amazon Resource Name (ARN). To retrieve a topic\'s attributes, use 'GetTopicAttributes'.+-- | A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes, use @GetTopicAttributes@ . --+--+-- -- /See:/ 'topic' smart constructor. newtype Topic = Topic'     { _tTopicARN :: Maybe Text@@ -242,7 +246,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'tTopicARN'+-- * 'tTopicARN' - The topic's ARN. topic     :: Topic topic =@@ -250,7 +254,7 @@     { _tTopicARN = Nothing     } --- | The topic\'s ARN.+-- | The topic's ARN. tTopicARN :: Lens' Topic (Maybe Text) tTopicARN = lens _tTopicARN (\ s a -> s{_tTopicARN = a}); 
gen/Network/AWS/SNS/Unsubscribe.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic\'s owner can unsubscribe, and an AWS signature is required. If the 'Unsubscribe' call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the 'Unsubscribe' request was unintended.+-- Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic's owner can unsubscribe, and an AWS signature is required. If the @Unsubscribe@ call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the @Unsubscribe@ request was unintended.+--+-- module Network.AWS.SNS.Unsubscribe     (     -- * Creating a Request@@ -41,6 +43,8 @@  -- | Input for Unsubscribe action. --+--+-- -- /See:/ 'unsubscribe' smart constructor. newtype Unsubscribe = Unsubscribe'     { _uSubscriptionARN :: Text@@ -50,7 +54,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uSubscriptionARN'+-- * 'uSubscriptionARN' - The ARN of the subscription to be deleted. unsubscribe     :: Text -- ^ 'uSubscriptionARN'     -> Unsubscribe