amazonka-ses (empty) → 0.0.0
raw patch · 24 files changed
+3271/−0 lines, 24 filesdep +amazonka-coredep +basesetup-changed
Dependencies added: amazonka-core, base
Files
- LICENSE +373/−0
- README.md +26/−0
- Setup.hs +2/−0
- amazonka-ses.cabal +67/−0
- gen/Network/AWS/SES.hs +59/−0
- gen/Network/AWS/SES/DeleteIdentity.hs +90/−0
- gen/Network/AWS/SES/DeleteVerifiedEmailAddress.hs +91/−0
- gen/Network/AWS/SES/GetIdentityDkimAttributes.hs +126/−0
- gen/Network/AWS/SES/GetIdentityNotificationAttributes.hs +117/−0
- gen/Network/AWS/SES/GetIdentityVerificationAttributes.hs +116/−0
- gen/Network/AWS/SES/GetSendQuota.hs +113/−0
- gen/Network/AWS/SES/GetSendStatistics.hs +100/−0
- gen/Network/AWS/SES/ListIdentities.hs +146/−0
- gen/Network/AWS/SES/ListVerifiedEmailAddresses.hs +101/−0
- gen/Network/AWS/SES/SendEmail.hs +174/−0
- gen/Network/AWS/SES/SendRawEmail.hs +157/−0
- gen/Network/AWS/SES/SetIdentityDkimEnabled.hs +110/−0
- gen/Network/AWS/SES/SetIdentityFeedbackForwardingEnabled.hs +112/−0
- gen/Network/AWS/SES/SetIdentityNotificationTopic.hs +119/−0
- gen/Network/AWS/SES/Types.hs +652/−0
- gen/Network/AWS/SES/VerifyDomainDkim.hs +129/−0
- gen/Network/AWS/SES/VerifyDomainIdentity.hs +109/−0
- gen/Network/AWS/SES/VerifyEmailAddress.hs +92/−0
- gen/Network/AWS/SES/VerifyEmailIdentity.hs +90/−0
+ LICENSE view
@@ -0,0 +1,373 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+ means each individual or legal entity that creates, contributes to+ the creation of, or owns Covered Software.++1.2. "Contributor Version"+ means the combination of the Contributions of others (if any) used+ by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+ means Covered Software of a particular Contributor.++1.4. "Covered Software"+ means Source Code Form to which the initial Contributor has attached+ the notice in Exhibit A, the Executable Form of such Source Code+ Form, and Modifications of such Source Code Form, in each case+ including portions thereof.++1.5. "Incompatible With Secondary Licenses"+ means++ (a) that the initial Contributor has attached the notice described+ in Exhibit B to the Covered Software; or++ (b) that the Covered Software was made available under the terms of+ version 1.1 or earlier of the License, but not also under the+ terms of a Secondary License.++1.6. "Executable Form"+ means any form of the work other than Source Code Form.++1.7. "Larger Work"+ means a work that combines Covered Software with other material, in+ a separate file or files, that is not Covered Software.++1.8. "License"+ means this document.++1.9. "Licensable"+ means having the right to grant, to the maximum extent possible,+ whether at the time of the initial grant or subsequently, any and+ all of the rights conveyed by this License.++1.10. "Modifications"+ means any of the following:++ (a) any file in Source Code Form that results from an addition to,+ deletion from, or modification of the contents of Covered+ Software; or++ (b) any new file in Source Code Form that contains any Covered+ Software.++1.11. "Patent Claims" of a Contributor+ means any patent claim(s), including without limitation, method,+ process, and apparatus claims, in any patent Licensable by such+ Contributor that would be infringed, but for the grant of the+ License, by the making, using, selling, offering for sale, having+ made, import, or transfer of either its Contributions or its+ Contributor Version.++1.12. "Secondary License"+ means either the GNU General Public License, Version 2.0, the GNU+ Lesser General Public License, Version 2.1, the GNU Affero General+ Public License, Version 3.0, or any later versions of those+ licenses.++1.13. "Source Code Form"+ means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+ means an individual or a legal entity exercising rights under this+ License. For legal entities, "You" includes any entity that+ controls, is controlled by, or is under common control with You. For+ purposes of this definition, "control" means (a) the power, direct+ or indirect, to cause the direction or management of such entity,+ whether by contract or otherwise, or (b) ownership of more than+ fifty percent (50%) of the outstanding shares or beneficial+ ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+ Licensable by such Contributor to use, reproduce, make available,+ modify, display, perform, distribute, and otherwise exploit its+ Contributions, either on an unmodified basis, with Modifications, or+ as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+ for sale, have made, import, and otherwise transfer either its+ Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+ or++(b) for infringements caused by: (i) Your and any other third party's+ modifications of Covered Software, or (ii) the combination of its+ Contributions with other software (except as part of its Contributor+ Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+ its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+ Form, as described in Section 3.1, and You must inform recipients of+ the Executable Form how they can obtain a copy of such Source Code+ Form by reasonable means in a timely manner, at a charge no more+ than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+ License, or sublicense it under different terms, provided that the+ license for the Executable Form does not attempt to limit or alter+ the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+* *+* 6. Disclaimer of Warranty *+* ------------------------- *+* *+* Covered Software is provided under this License on an "as is" *+* basis, without warranty of any kind, either expressed, implied, or *+* statutory, including, without limitation, warranties that the *+* Covered Software is free of defects, merchantable, fit for a *+* particular purpose or non-infringing. The entire risk as to the *+* quality and performance of the Covered Software is with You. *+* Should any Covered Software prove defective in any respect, You *+* (not any Contributor) assume the cost of any necessary servicing, *+* repair, or correction. This disclaimer of warranty constitutes an *+* essential part of this License. No use of any Covered Software is *+* authorized under this License except under this disclaimer. *+* *+************************************************************************++************************************************************************+* *+* 7. Limitation of Liability *+* -------------------------- *+* *+* Under no circumstances and under no legal theory, whether tort *+* (including negligence), contract, or otherwise, shall any *+* Contributor, or anyone who distributes Covered Software as *+* permitted above, be liable to You for any direct, indirect, *+* special, incidental, or consequential damages of any character *+* including, without limitation, damages for lost profits, loss of *+* goodwill, work stoppage, computer failure or malfunction, or any *+* and all other commercial damages or losses, even if such party *+* shall have been informed of the possibility of such damages. This *+* limitation of liability shall not apply to liability for death or *+* personal injury resulting from such party's negligence to the *+* extent applicable law prohibits such limitation. Some *+* jurisdictions do not allow the exclusion or limitation of *+* incidental or consequential damages, so this exclusion and *+* limitation may not apply to You. *+* *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++ This Source Code Form is subject to the terms of the Mozilla Public+ License, v. 2.0. If a copy of the MPL was not distributed with this+ file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.++Exhibit B - "Incompatible With Secondary Licenses" Notice+---------------------------------------------------------++ This Source Code Form is "Incompatible With Secondary Licenses", as+ defined by the Mozilla Public License, v. 2.0.
+ README.md view
@@ -0,0 +1,26 @@+# Amazon Simple Email Service SDK++> _Warning:_ This is an experimental preview release which is still under heavy development and not intended for public consumption, _caveat emptor_!++* [description](#description)+* [Contribute](#contribute)+* [Licence](#licence)++## Description++Amazon Simple Email Service (Amazon SES) is a cost-effective outbound-only email-sending service built on the reliable and scalable infrastructure that Amazon.com has developed to serve its own customer base. With Amazon SES, you can send transactional email, marketing messages, or any other type of high-quality content and you only pay for what you use. Along with high deliverability, Amazon SES provides easy, real-time access to your sending statistics and built-in notifications for bounces, complaints, and deliveries to help you fine-tune your email-sending strategy.++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-ses)+and [AWS API Reference](http://docs.aws.amazon.com/ses/latest/APIReference/Welcome.html).+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+++## Licence++`amazonka-ses` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ amazonka-ses.cabal view
@@ -0,0 +1,67 @@+name: amazonka-ses+version: 0.0.0+synopsis: Amazon Simple Email Service SDK.+homepage: https://github.com/brendanhay/amazonka+license: OtherLicense+license-file: LICENSE+author: Brendan Hay+maintainer: Brendan Hay <brendan.g.hay@gmail.com>+copyright: Copyright (c) 2013-2014 Brendan Hay+category: Network, AWS, Cloud+build-type: Simple+extra-source-files: README.md+cabal-version: >= 1.10++description:+ Amazon Simple Email Service (Amazon SES) is a cost-effective+ outbound-only email-sending service built on the reliable and scalable+ infrastructure that Amazon.com has developed to serve its own customer+ base. With Amazon SES, you can send transactional email, marketing+ messages, or any other type of high-quality content and you only pay+ for what you use. Along with high deliverability, Amazon SES provides+ easy, real-time access to your sending statistics and built-in+ notifications for bounces, complaints, and deliveries to help you+ fine-tune your email-sending strategy.+ .+ /See:/ <http://docs.aws.amazon.com/ses/latest/APIReference/Welcome.html AWS API Reference>+ .+ /Warning:/ This is an experimental preview release which is still under+ heavy development and not intended for public consumption, caveat emptor!++source-repository head+ type: git+ location: git://github.com/brendanhay/amazonka.git++library+ default-language: Haskell2010+ hs-source-dirs: src gen++ ghc-options: -Wall++ exposed-modules:+ Network.AWS.SES+ , Network.AWS.SES.DeleteIdentity+ , Network.AWS.SES.DeleteVerifiedEmailAddress+ , Network.AWS.SES.GetIdentityDkimAttributes+ , Network.AWS.SES.GetIdentityNotificationAttributes+ , Network.AWS.SES.GetIdentityVerificationAttributes+ , Network.AWS.SES.GetSendQuota+ , Network.AWS.SES.GetSendStatistics+ , Network.AWS.SES.ListIdentities+ , Network.AWS.SES.ListVerifiedEmailAddresses+ , Network.AWS.SES.SendEmail+ , Network.AWS.SES.SendRawEmail+ , Network.AWS.SES.SetIdentityDkimEnabled+ , Network.AWS.SES.SetIdentityFeedbackForwardingEnabled+ , Network.AWS.SES.SetIdentityNotificationTopic+ , Network.AWS.SES.Types+ , Network.AWS.SES.VerifyDomainDkim+ , Network.AWS.SES.VerifyDomainIdentity+ , Network.AWS.SES.VerifyEmailAddress+ , Network.AWS.SES.VerifyEmailIdentity++ other-modules:++ build-depends:+ amazonka-core+ , base >= 4.7 && < 5
+ gen/Network/AWS/SES.hs view
@@ -0,0 +1,59 @@+-- Module : Network.AWS.SES+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Amazon Simple Email Service (Amazon SES) is a cost-effective outbound-only+-- email-sending service built on the reliable and scalable infrastructure+-- that Amazon.com has developed to serve its own customer base. With Amazon+-- SES, you can send transactional email, marketing messages, or any other+-- type of high-quality content and you only pay for what you use. Along with+-- high deliverability, Amazon SES provides easy, real-time access to your+-- sending statistics and built-in notifications for bounces, complaints, and+-- deliveries to help you fine-tune your email-sending strategy.+module Network.AWS.SES+ ( module Network.AWS.SES.DeleteIdentity+ , module Network.AWS.SES.DeleteVerifiedEmailAddress+ , module Network.AWS.SES.GetIdentityDkimAttributes+ , module Network.AWS.SES.GetIdentityNotificationAttributes+ , module Network.AWS.SES.GetIdentityVerificationAttributes+ , module Network.AWS.SES.GetSendQuota+ , module Network.AWS.SES.GetSendStatistics+ , module Network.AWS.SES.ListIdentities+ , module Network.AWS.SES.ListVerifiedEmailAddresses+ , module Network.AWS.SES.SendEmail+ , module Network.AWS.SES.SendRawEmail+ , module Network.AWS.SES.SetIdentityDkimEnabled+ , module Network.AWS.SES.SetIdentityFeedbackForwardingEnabled+ , module Network.AWS.SES.SetIdentityNotificationTopic+ , module Network.AWS.SES.Types+ , module Network.AWS.SES.VerifyDomainDkim+ , module Network.AWS.SES.VerifyDomainIdentity+ , module Network.AWS.SES.VerifyEmailAddress+ , module Network.AWS.SES.VerifyEmailIdentity+ ) where++import Network.AWS.SES.DeleteIdentity+import Network.AWS.SES.DeleteVerifiedEmailAddress+import Network.AWS.SES.GetIdentityDkimAttributes+import Network.AWS.SES.GetIdentityNotificationAttributes+import Network.AWS.SES.GetIdentityVerificationAttributes+import Network.AWS.SES.GetSendQuota+import Network.AWS.SES.GetSendStatistics+import Network.AWS.SES.ListIdentities+import Network.AWS.SES.ListVerifiedEmailAddresses+import Network.AWS.SES.SendEmail+import Network.AWS.SES.SendRawEmail+import Network.AWS.SES.SetIdentityDkimEnabled+import Network.AWS.SES.SetIdentityFeedbackForwardingEnabled+import Network.AWS.SES.SetIdentityNotificationTopic+import Network.AWS.SES.Types+import Network.AWS.SES.VerifyDomainDkim+import Network.AWS.SES.VerifyDomainIdentity+import Network.AWS.SES.VerifyEmailAddress+import Network.AWS.SES.VerifyEmailIdentity
+ gen/Network/AWS/SES/DeleteIdentity.hs view
@@ -0,0 +1,90 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.DeleteIdentity+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Deletes the specified identity (email address or domain) from the list of+-- verified identities. This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_DeleteIdentity.html>+module Network.AWS.SES.DeleteIdentity+ (+ -- * Request+ DeleteIdentity+ -- ** Request constructor+ , deleteIdentity+ -- ** Request lenses+ , diIdentity++ -- * Response+ , DeleteIdentityResponse+ -- ** Response constructor+ , deleteIdentityResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype DeleteIdentity = DeleteIdentity+ { _diIdentity :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'DeleteIdentity' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'diIdentity' @::@ 'Text'+--+deleteIdentity :: Text -- ^ 'diIdentity'+ -> DeleteIdentity+deleteIdentity p1 = DeleteIdentity+ { _diIdentity = p1+ }++-- | The identity to be removed from the list of identities for the AWS+-- Account.+diIdentity :: Lens' DeleteIdentity Text+diIdentity = lens _diIdentity (\s a -> s { _diIdentity = a })++data DeleteIdentityResponse = DeleteIdentityResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'DeleteIdentityResponse' constructor.+deleteIdentityResponse :: DeleteIdentityResponse+deleteIdentityResponse = DeleteIdentityResponse++instance ToPath DeleteIdentity where+ toPath = const "/"++instance ToQuery DeleteIdentity where+ toQuery DeleteIdentity{..} = mconcat+ [ "Identity" =? _diIdentity+ ]++instance ToHeaders DeleteIdentity++instance AWSRequest DeleteIdentity where+ type Sv DeleteIdentity = SES+ type Rs DeleteIdentity = DeleteIdentityResponse++ request = post "DeleteIdentity"+ response = nullResponse DeleteIdentityResponse
+ gen/Network/AWS/SES/DeleteVerifiedEmailAddress.hs view
@@ -0,0 +1,91 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.DeleteVerifiedEmailAddress+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Deletes the specified email address from the list of verified addresses.+-- The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012+-- release of Domain Verification. The DeleteIdentity action is now preferred.+-- This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_DeleteVerifiedEmailAddress.html>+module Network.AWS.SES.DeleteVerifiedEmailAddress+ (+ -- * Request+ DeleteVerifiedEmailAddress+ -- ** Request constructor+ , deleteVerifiedEmailAddress+ -- ** Request lenses+ , dveaEmailAddress++ -- * Response+ , DeleteVerifiedEmailAddressResponse+ -- ** Response constructor+ , deleteVerifiedEmailAddressResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype DeleteVerifiedEmailAddress = DeleteVerifiedEmailAddress+ { _dveaEmailAddress :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'DeleteVerifiedEmailAddress' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dveaEmailAddress' @::@ 'Text'+--+deleteVerifiedEmailAddress :: Text -- ^ 'dveaEmailAddress'+ -> DeleteVerifiedEmailAddress+deleteVerifiedEmailAddress p1 = DeleteVerifiedEmailAddress+ { _dveaEmailAddress = p1+ }++-- | An email address to be removed from the list of verified addresses.+dveaEmailAddress :: Lens' DeleteVerifiedEmailAddress Text+dveaEmailAddress = lens _dveaEmailAddress (\s a -> s { _dveaEmailAddress = a })++data DeleteVerifiedEmailAddressResponse = DeleteVerifiedEmailAddressResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'DeleteVerifiedEmailAddressResponse' constructor.+deleteVerifiedEmailAddressResponse :: DeleteVerifiedEmailAddressResponse+deleteVerifiedEmailAddressResponse = DeleteVerifiedEmailAddressResponse++instance ToPath DeleteVerifiedEmailAddress where+ toPath = const "/"++instance ToQuery DeleteVerifiedEmailAddress where+ toQuery DeleteVerifiedEmailAddress{..} = mconcat+ [ "EmailAddress" =? _dveaEmailAddress+ ]++instance ToHeaders DeleteVerifiedEmailAddress++instance AWSRequest DeleteVerifiedEmailAddress where+ type Sv DeleteVerifiedEmailAddress = SES+ type Rs DeleteVerifiedEmailAddress = DeleteVerifiedEmailAddressResponse++ request = post "DeleteVerifiedEmailAddress"+ response = nullResponse DeleteVerifiedEmailAddressResponse
+ gen/Network/AWS/SES/GetIdentityDkimAttributes.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.GetIdentityDkimAttributes+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the current status of Easy DKIM signing for an entity. For domain+-- name identities, this action also returns the DKIM tokens that are required+-- for Easy DKIM signing, and whether Amazon SES has successfully verified+-- that these tokens have been published. This action takes a list of+-- identities as input and returns the following information for each: Whether+-- Easy DKIM signing is enabled or disabled. A set of DKIM tokens that+-- represent the identity. If the identity is an email address, the tokens+-- represent the domain of that address. Whether Amazon SES has successfully+-- verified the DKIM tokens published in the domain's DNS. This information is+-- only returned for domain name identities, not for email addresses. This+-- action is throttled at one request per second. For more information about+-- creating DNS records using DKIM tokens, go to the Amazon SES Developer+-- Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_GetIdentityDkimAttributes.html>+module Network.AWS.SES.GetIdentityDkimAttributes+ (+ -- * Request+ GetIdentityDkimAttributes+ -- ** Request constructor+ , getIdentityDkimAttributes+ -- ** Request lenses+ , gidaIdentities++ -- * Response+ , GetIdentityDkimAttributesResponse+ -- ** Response constructor+ , getIdentityDkimAttributesResponse+ -- ** Response lenses+ , gidarDkimAttributes+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype GetIdentityDkimAttributes = GetIdentityDkimAttributes+ { _gidaIdentities :: List "Identities" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList GetIdentityDkimAttributes where+ type Item GetIdentityDkimAttributes = Text++ fromList = GetIdentityDkimAttributes . GHC.Exts.fromList+ toList = GHC.Exts.toList . _gidaIdentities++-- | 'GetIdentityDkimAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'gidaIdentities' @::@ ['Text']+--+getIdentityDkimAttributes :: GetIdentityDkimAttributes+getIdentityDkimAttributes = GetIdentityDkimAttributes+ { _gidaIdentities = mempty+ }++-- | A list of one or more verified identities - email addresses, domains, or+-- both.+gidaIdentities :: Lens' GetIdentityDkimAttributes [Text]+gidaIdentities = lens _gidaIdentities (\s a -> s { _gidaIdentities = a }) . _List++newtype GetIdentityDkimAttributesResponse = GetIdentityDkimAttributesResponse+ { _gidarDkimAttributes :: EMap "entry" "key" "value" Text IdentityDkimAttributes+ } deriving (Eq, Show, Monoid, Semigroup)++-- | 'GetIdentityDkimAttributesResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'gidarDkimAttributes' @::@ 'HashMap' 'Text' 'IdentityDkimAttributes'+--+getIdentityDkimAttributesResponse :: GetIdentityDkimAttributesResponse+getIdentityDkimAttributesResponse = GetIdentityDkimAttributesResponse+ { _gidarDkimAttributes = mempty+ }++-- | The DKIM attributes for an email address or a domain.+gidarDkimAttributes :: Lens' GetIdentityDkimAttributesResponse (HashMap Text IdentityDkimAttributes)+gidarDkimAttributes =+ lens _gidarDkimAttributes (\s a -> s { _gidarDkimAttributes = a })+ . _EMap++instance ToPath GetIdentityDkimAttributes where+ toPath = const "/"++instance ToQuery GetIdentityDkimAttributes where+ toQuery GetIdentityDkimAttributes{..} = mconcat+ [ "Identities" =? _gidaIdentities+ ]++instance ToHeaders GetIdentityDkimAttributes++instance AWSRequest GetIdentityDkimAttributes where+ type Sv GetIdentityDkimAttributes = SES+ type Rs GetIdentityDkimAttributes = GetIdentityDkimAttributesResponse++ request = post "GetIdentityDkimAttributes"+ response = xmlResponse++instance FromXML GetIdentityDkimAttributesResponse where+ parseXML = withElement "GetIdentityDkimAttributesResult" $ \x -> GetIdentityDkimAttributesResponse+ <$> x .@ "DkimAttributes"
+ gen/Network/AWS/SES/GetIdentityNotificationAttributes.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.GetIdentityNotificationAttributes+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Given a list of verified identities (email addresses and/or domains),+-- returns a structure describing identity notification attributes. This+-- action is throttled at one request per second. For more information about+-- using notifications with Amazon SES, see the Amazon SES Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_GetIdentityNotificationAttributes.html>+module Network.AWS.SES.GetIdentityNotificationAttributes+ (+ -- * Request+ GetIdentityNotificationAttributes+ -- ** Request constructor+ , getIdentityNotificationAttributes+ -- ** Request lenses+ , ginaIdentities++ -- * Response+ , GetIdentityNotificationAttributesResponse+ -- ** Response constructor+ , getIdentityNotificationAttributesResponse+ -- ** Response lenses+ , ginarNotificationAttributes+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype GetIdentityNotificationAttributes = GetIdentityNotificationAttributes+ { _ginaIdentities :: List "Identities" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList GetIdentityNotificationAttributes where+ type Item GetIdentityNotificationAttributes = Text++ fromList = GetIdentityNotificationAttributes . GHC.Exts.fromList+ toList = GHC.Exts.toList . _ginaIdentities++-- | 'GetIdentityNotificationAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ginaIdentities' @::@ ['Text']+--+getIdentityNotificationAttributes :: GetIdentityNotificationAttributes+getIdentityNotificationAttributes = GetIdentityNotificationAttributes+ { _ginaIdentities = mempty+ }++-- | A list of one or more identities.+ginaIdentities :: Lens' GetIdentityNotificationAttributes [Text]+ginaIdentities = lens _ginaIdentities (\s a -> s { _ginaIdentities = a }) . _List++newtype GetIdentityNotificationAttributesResponse = GetIdentityNotificationAttributesResponse+ { _ginarNotificationAttributes :: EMap "entry" "key" "value" Text IdentityNotificationAttributes+ } deriving (Eq, Show, Monoid, Semigroup)++-- | 'GetIdentityNotificationAttributesResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ginarNotificationAttributes' @::@ 'HashMap' 'Text' 'IdentityNotificationAttributes'+--+getIdentityNotificationAttributesResponse :: GetIdentityNotificationAttributesResponse+getIdentityNotificationAttributesResponse = GetIdentityNotificationAttributesResponse+ { _ginarNotificationAttributes = mempty+ }++-- | A map of Identity to IdentityNotificationAttributes.+ginarNotificationAttributes :: Lens' GetIdentityNotificationAttributesResponse (HashMap Text IdentityNotificationAttributes)+ginarNotificationAttributes =+ lens _ginarNotificationAttributes+ (\s a -> s { _ginarNotificationAttributes = a })+ . _EMap++instance ToPath GetIdentityNotificationAttributes where+ toPath = const "/"++instance ToQuery GetIdentityNotificationAttributes where+ toQuery GetIdentityNotificationAttributes{..} = mconcat+ [ "Identities" =? _ginaIdentities+ ]++instance ToHeaders GetIdentityNotificationAttributes++instance AWSRequest GetIdentityNotificationAttributes where+ type Sv GetIdentityNotificationAttributes = SES+ type Rs GetIdentityNotificationAttributes = GetIdentityNotificationAttributesResponse++ request = post "GetIdentityNotificationAttributes"+ response = xmlResponse++instance FromXML GetIdentityNotificationAttributesResponse where+ parseXML = withElement "GetIdentityNotificationAttributesResult" $ \x -> GetIdentityNotificationAttributesResponse+ <$> x .@ "NotificationAttributes"
+ gen/Network/AWS/SES/GetIdentityVerificationAttributes.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.GetIdentityVerificationAttributes+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Given a list of identities (email addresses and/or domains), returns the+-- verification status and (for domain identities) the verification token for+-- each identity. This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_GetIdentityVerificationAttributes.html>+module Network.AWS.SES.GetIdentityVerificationAttributes+ (+ -- * Request+ GetIdentityVerificationAttributes+ -- ** Request constructor+ , getIdentityVerificationAttributes+ -- ** Request lenses+ , givaIdentities++ -- * Response+ , GetIdentityVerificationAttributesResponse+ -- ** Response constructor+ , getIdentityVerificationAttributesResponse+ -- ** Response lenses+ , givarVerificationAttributes+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype GetIdentityVerificationAttributes = GetIdentityVerificationAttributes+ { _givaIdentities :: List "Identities" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList GetIdentityVerificationAttributes where+ type Item GetIdentityVerificationAttributes = Text++ fromList = GetIdentityVerificationAttributes . GHC.Exts.fromList+ toList = GHC.Exts.toList . _givaIdentities++-- | 'GetIdentityVerificationAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'givaIdentities' @::@ ['Text']+--+getIdentityVerificationAttributes :: GetIdentityVerificationAttributes+getIdentityVerificationAttributes = GetIdentityVerificationAttributes+ { _givaIdentities = mempty+ }++-- | A list of identities.+givaIdentities :: Lens' GetIdentityVerificationAttributes [Text]+givaIdentities = lens _givaIdentities (\s a -> s { _givaIdentities = a }) . _List++newtype GetIdentityVerificationAttributesResponse = GetIdentityVerificationAttributesResponse+ { _givarVerificationAttributes :: EMap "entry" "key" "value" Text IdentityVerificationAttributes+ } deriving (Eq, Show, Monoid, Semigroup)++-- | 'GetIdentityVerificationAttributesResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'givarVerificationAttributes' @::@ 'HashMap' 'Text' 'IdentityVerificationAttributes'+--+getIdentityVerificationAttributesResponse :: GetIdentityVerificationAttributesResponse+getIdentityVerificationAttributesResponse = GetIdentityVerificationAttributesResponse+ { _givarVerificationAttributes = mempty+ }++-- | A map of Identities to IdentityVerificationAttributes objects.+givarVerificationAttributes :: Lens' GetIdentityVerificationAttributesResponse (HashMap Text IdentityVerificationAttributes)+givarVerificationAttributes =+ lens _givarVerificationAttributes+ (\s a -> s { _givarVerificationAttributes = a })+ . _EMap++instance ToPath GetIdentityVerificationAttributes where+ toPath = const "/"++instance ToQuery GetIdentityVerificationAttributes where+ toQuery GetIdentityVerificationAttributes{..} = mconcat+ [ "Identities" =? _givaIdentities+ ]++instance ToHeaders GetIdentityVerificationAttributes++instance AWSRequest GetIdentityVerificationAttributes where+ type Sv GetIdentityVerificationAttributes = SES+ type Rs GetIdentityVerificationAttributes = GetIdentityVerificationAttributesResponse++ request = post "GetIdentityVerificationAttributes"+ response = xmlResponse++instance FromXML GetIdentityVerificationAttributesResponse where+ parseXML = withElement "GetIdentityVerificationAttributesResult" $ \x -> GetIdentityVerificationAttributesResponse+ <$> x .@ "VerificationAttributes"
+ gen/Network/AWS/SES/GetSendQuota.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.GetSendQuota+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the user's current sending limits. This action is throttled at one+-- request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_GetSendQuota.html>+module Network.AWS.SES.GetSendQuota+ (+ -- * Request+ GetSendQuota+ -- ** Request constructor+ , getSendQuota++ -- * Response+ , GetSendQuotaResponse+ -- ** Response constructor+ , getSendQuotaResponse+ -- ** Response lenses+ , gsqrMax24HourSend+ , gsqrMaxSendRate+ , gsqrSentLast24Hours+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data GetSendQuota = GetSendQuota+ deriving (Eq, Ord, Show, Generic)++-- | 'GetSendQuota' constructor.+getSendQuota :: GetSendQuota+getSendQuota = GetSendQuota++data GetSendQuotaResponse = GetSendQuotaResponse+ { _gsqrMax24HourSend :: Maybe Double+ , _gsqrMaxSendRate :: Maybe Double+ , _gsqrSentLast24Hours :: Maybe Double+ } deriving (Eq, Ord, Show)++-- | 'GetSendQuotaResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'gsqrMax24HourSend' @::@ 'Maybe' 'Double'+--+-- * 'gsqrMaxSendRate' @::@ 'Maybe' 'Double'+--+-- * 'gsqrSentLast24Hours' @::@ 'Maybe' 'Double'+--+getSendQuotaResponse :: GetSendQuotaResponse+getSendQuotaResponse = GetSendQuotaResponse+ { _gsqrMax24HourSend = Nothing+ , _gsqrMaxSendRate = Nothing+ , _gsqrSentLast24Hours = Nothing+ }++-- | The maximum number of emails the user is allowed to send in a 24-hour+-- interval.+gsqrMax24HourSend :: Lens' GetSendQuotaResponse (Maybe Double)+gsqrMax24HourSend =+ lens _gsqrMax24HourSend (\s a -> s { _gsqrMax24HourSend = a })++-- | The maximum number of emails the user is allowed to send per second.+gsqrMaxSendRate :: Lens' GetSendQuotaResponse (Maybe Double)+gsqrMaxSendRate = lens _gsqrMaxSendRate (\s a -> s { _gsqrMaxSendRate = a })++-- | The number of emails sent during the previous 24 hours.+gsqrSentLast24Hours :: Lens' GetSendQuotaResponse (Maybe Double)+gsqrSentLast24Hours =+ lens _gsqrSentLast24Hours (\s a -> s { _gsqrSentLast24Hours = a })++instance ToPath GetSendQuota where+ toPath = const "/"++instance ToQuery GetSendQuota where+ toQuery = const mempty++instance ToHeaders GetSendQuota++instance AWSRequest GetSendQuota where+ type Sv GetSendQuota = SES+ type Rs GetSendQuota = GetSendQuotaResponse++ request = post "GetSendQuota"+ response = xmlResponse++instance FromXML GetSendQuotaResponse where+ parseXML = withElement "GetSendQuotaResult" $ \x -> GetSendQuotaResponse+ <$> x .@? "Max24HourSend"+ <*> x .@? "MaxSendRate"+ <*> x .@? "SentLast24Hours"
+ gen/Network/AWS/SES/GetSendStatistics.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.GetSendStatistics+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the user's sending statistics. The result is a list of data points,+-- representing the last two weeks of sending activity. Each data point in the+-- list contains statistics for a 15-minute interval. This action is throttled+-- at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_GetSendStatistics.html>+module Network.AWS.SES.GetSendStatistics+ (+ -- * Request+ GetSendStatistics+ -- ** Request constructor+ , getSendStatistics++ -- * Response+ , GetSendStatisticsResponse+ -- ** Response constructor+ , getSendStatisticsResponse+ -- ** Response lenses+ , gssrSendDataPoints+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data GetSendStatistics = GetSendStatistics+ deriving (Eq, Ord, Show, Generic)++-- | 'GetSendStatistics' constructor.+getSendStatistics :: GetSendStatistics+getSendStatistics = GetSendStatistics++newtype GetSendStatisticsResponse = GetSendStatisticsResponse+ { _gssrSendDataPoints :: List "SendDataPoints" SendDataPoint+ } deriving (Eq, Show, Monoid, Semigroup)++instance GHC.Exts.IsList GetSendStatisticsResponse where+ type Item GetSendStatisticsResponse = SendDataPoint++ fromList = GetSendStatisticsResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _gssrSendDataPoints++-- | 'GetSendStatisticsResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'gssrSendDataPoints' @::@ ['SendDataPoint']+--+getSendStatisticsResponse :: GetSendStatisticsResponse+getSendStatisticsResponse = GetSendStatisticsResponse+ { _gssrSendDataPoints = mempty+ }++-- | A list of data points, each of which represents 15 minutes of activity.+gssrSendDataPoints :: Lens' GetSendStatisticsResponse [SendDataPoint]+gssrSendDataPoints =+ lens _gssrSendDataPoints (\s a -> s { _gssrSendDataPoints = a })+ . _List++instance ToPath GetSendStatistics where+ toPath = const "/"++instance ToQuery GetSendStatistics where+ toQuery = const mempty++instance ToHeaders GetSendStatistics++instance AWSRequest GetSendStatistics where+ type Sv GetSendStatistics = SES+ type Rs GetSendStatistics = GetSendStatisticsResponse++ request = post "GetSendStatistics"+ response = xmlResponse++instance FromXML GetSendStatisticsResponse where+ parseXML = withElement "GetSendStatisticsResult" $ \x -> GetSendStatisticsResponse+ <$> x .@ "SendDataPoints"
+ gen/Network/AWS/SES/ListIdentities.hs view
@@ -0,0 +1,146 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.ListIdentities+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns a list containing all of the identities (email addresses and+-- domains) for a specific AWS Account, regardless of verification status.+-- This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_ListIdentities.html>+module Network.AWS.SES.ListIdentities+ (+ -- * Request+ ListIdentities+ -- ** Request constructor+ , listIdentities+ -- ** Request lenses+ , liIdentityType+ , liMaxItems+ , liNextToken++ -- * Response+ , ListIdentitiesResponse+ -- ** Response constructor+ , listIdentitiesResponse+ -- ** Response lenses+ , lirIdentities+ , lirNextToken+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data ListIdentities = ListIdentities+ { _liIdentityType :: Maybe Text+ , _liMaxItems :: Maybe Int+ , _liNextToken :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'ListIdentities' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'liIdentityType' @::@ 'Maybe' 'Text'+--+-- * 'liMaxItems' @::@ 'Maybe' 'Int'+--+-- * 'liNextToken' @::@ 'Maybe' 'Text'+--+listIdentities :: ListIdentities+listIdentities = ListIdentities+ { _liIdentityType = Nothing+ , _liNextToken = Nothing+ , _liMaxItems = Nothing+ }++-- | The type of the identities to list. Possible values are "EmailAddress"+-- and "Domain". If this parameter is omitted, then all identities will be+-- listed.+liIdentityType :: Lens' ListIdentities (Maybe Text)+liIdentityType = lens _liIdentityType (\s a -> s { _liIdentityType = a })++-- | The maximum number of identities per page. Possible values are 1-100+-- inclusive.+liMaxItems :: Lens' ListIdentities (Maybe Int)+liMaxItems = lens _liMaxItems (\s a -> s { _liMaxItems = a })++-- | The token to use for pagination.+liNextToken :: Lens' ListIdentities (Maybe Text)+liNextToken = lens _liNextToken (\s a -> s { _liNextToken = a })++data ListIdentitiesResponse = ListIdentitiesResponse+ { _lirIdentities :: List "Identities" Text+ , _lirNextToken :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'ListIdentitiesResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'lirIdentities' @::@ ['Text']+--+-- * 'lirNextToken' @::@ 'Maybe' 'Text'+--+listIdentitiesResponse :: ListIdentitiesResponse+listIdentitiesResponse = ListIdentitiesResponse+ { _lirIdentities = mempty+ , _lirNextToken = Nothing+ }++-- | A list of identities.+lirIdentities :: Lens' ListIdentitiesResponse [Text]+lirIdentities = lens _lirIdentities (\s a -> s { _lirIdentities = a }) . _List++-- | The token used for pagination.+lirNextToken :: Lens' ListIdentitiesResponse (Maybe Text)+lirNextToken = lens _lirNextToken (\s a -> s { _lirNextToken = a })++instance ToPath ListIdentities where+ toPath = const "/"++instance ToQuery ListIdentities where+ toQuery ListIdentities{..} = mconcat+ [ "IdentityType" =? _liIdentityType+ , "MaxItems" =? _liMaxItems+ , "NextToken" =? _liNextToken+ ]++instance ToHeaders ListIdentities++instance AWSRequest ListIdentities where+ type Sv ListIdentities = SES+ type Rs ListIdentities = ListIdentitiesResponse++ request = post "ListIdentities"+ response = xmlResponse++instance FromXML ListIdentitiesResponse where+ parseXML = withElement "ListIdentitiesResult" $ \x -> ListIdentitiesResponse+ <$> x .@ "Identities"+ <*> x .@? "NextToken"++instance AWSPager ListIdentities where+ page rq rs+ | stop (rq ^. liNextToken) = Nothing+ | otherwise = (\x -> rq & liNextToken ?~ x)+ <$> (rs ^. lirNextToken)
+ gen/Network/AWS/SES/ListVerifiedEmailAddresses.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.ListVerifiedEmailAddresses+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns a list containing all of the email addresses that have been+-- verified. The ListVerifiedEmailAddresses action is deprecated as of the May+-- 15, 2012 release of Domain Verification. The ListIdentities action is now+-- preferred. This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_ListVerifiedEmailAddresses.html>+module Network.AWS.SES.ListVerifiedEmailAddresses+ (+ -- * Request+ ListVerifiedEmailAddresses+ -- ** Request constructor+ , listVerifiedEmailAddresses++ -- * Response+ , ListVerifiedEmailAddressesResponse+ -- ** Response constructor+ , listVerifiedEmailAddressesResponse+ -- ** Response lenses+ , lvearVerifiedEmailAddresses+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data ListVerifiedEmailAddresses = ListVerifiedEmailAddresses+ deriving (Eq, Ord, Show, Generic)++-- | 'ListVerifiedEmailAddresses' constructor.+listVerifiedEmailAddresses :: ListVerifiedEmailAddresses+listVerifiedEmailAddresses = ListVerifiedEmailAddresses++newtype ListVerifiedEmailAddressesResponse = ListVerifiedEmailAddressesResponse+ { _lvearVerifiedEmailAddresses :: List "ToAddresses" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList ListVerifiedEmailAddressesResponse where+ type Item ListVerifiedEmailAddressesResponse = Text++ fromList = ListVerifiedEmailAddressesResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _lvearVerifiedEmailAddresses++-- | 'ListVerifiedEmailAddressesResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'lvearVerifiedEmailAddresses' @::@ ['Text']+--+listVerifiedEmailAddressesResponse :: ListVerifiedEmailAddressesResponse+listVerifiedEmailAddressesResponse = ListVerifiedEmailAddressesResponse+ { _lvearVerifiedEmailAddresses = mempty+ }++-- | A list of email addresses that have been verified.+lvearVerifiedEmailAddresses :: Lens' ListVerifiedEmailAddressesResponse [Text]+lvearVerifiedEmailAddresses =+ lens _lvearVerifiedEmailAddresses+ (\s a -> s { _lvearVerifiedEmailAddresses = a })+ . _List++instance ToPath ListVerifiedEmailAddresses where+ toPath = const "/"++instance ToQuery ListVerifiedEmailAddresses where+ toQuery = const mempty++instance ToHeaders ListVerifiedEmailAddresses++instance AWSRequest ListVerifiedEmailAddresses where+ type Sv ListVerifiedEmailAddresses = SES+ type Rs ListVerifiedEmailAddresses = ListVerifiedEmailAddressesResponse++ request = post "ListVerifiedEmailAddresses"+ response = xmlResponse++instance FromXML ListVerifiedEmailAddressesResponse where+ parseXML = withElement "ListVerifiedEmailAddressesResult" $ \x -> ListVerifiedEmailAddressesResponse+ <$> x .@ "VerifiedEmailAddresses"
+ gen/Network/AWS/SES/SendEmail.hs view
@@ -0,0 +1,174 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.SendEmail+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Composes an email message based on input data, and then immediately queues+-- the message for sending. You can only send email from verified email+-- addresses and domains. If you have not requested production access to+-- Amazon SES, you must also verify every recipient email address except for+-- the recipients provided by the Amazon SES mailbox simulator. For more+-- information, go to the Amazon SES Developer Guide. The total size of the+-- message cannot exceed 10 MB. Amazon SES has a limit on the total number of+-- recipients per message: The combined number of To:, CC: and BCC: email+-- addresses cannot exceed 50. If you need to send an email message to a+-- larger audience, you can divide your recipient list into groups of 50 or+-- fewer, and then call Amazon SES repeatedly to send the message to each+-- group. For every message that you send, the total number of recipients+-- (To:, CC: and BCC:) is counted against your sending quota - the maximum+-- number of emails you can send in a 24-hour period. For information about+-- your sending quota, go to the Amazon SES Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_SendEmail.html>+module Network.AWS.SES.SendEmail+ (+ -- * Request+ SendEmail+ -- ** Request constructor+ , sendEmail+ -- ** Request lenses+ , seDestination+ , seMessage+ , seReplyToAddresses+ , seReturnPath+ , seSource++ -- * Response+ , SendEmailResponse+ -- ** Response constructor+ , sendEmailResponse+ -- ** Response lenses+ , serMessageId+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data SendEmail = SendEmail+ { _seDestination :: Destination+ , _seMessage :: Message+ , _seReplyToAddresses :: List "ToAddresses" Text+ , _seReturnPath :: Maybe Text+ , _seSource :: Text+ } deriving (Eq, Show)++-- | 'SendEmail' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'seDestination' @::@ 'Destination'+--+-- * 'seMessage' @::@ 'Message'+--+-- * 'seReplyToAddresses' @::@ ['Text']+--+-- * 'seReturnPath' @::@ 'Maybe' 'Text'+--+-- * 'seSource' @::@ 'Text'+--+sendEmail :: Text -- ^ 'seSource'+ -> Destination -- ^ 'seDestination'+ -> Message -- ^ 'seMessage'+ -> SendEmail+sendEmail p1 p2 p3 = SendEmail+ { _seSource = p1+ , _seDestination = p2+ , _seMessage = p3+ , _seReplyToAddresses = mempty+ , _seReturnPath = Nothing+ }++-- | The destination for this email, composed of To:, CC:, and BCC: fields.+seDestination :: Lens' SendEmail Destination+seDestination = lens _seDestination (\s a -> s { _seDestination = a })++-- | The message to be sent.+seMessage :: Lens' SendEmail Message+seMessage = lens _seMessage (\s a -> s { _seMessage = a })++-- | The reply-to email address(es) for the message. If the recipient replies+-- to the message, each reply-to address will receive the reply.+seReplyToAddresses :: Lens' SendEmail [Text]+seReplyToAddresses =+ lens _seReplyToAddresses (\s a -> s { _seReplyToAddresses = a })+ . _List++-- | The email address to which bounces and complaints are to be forwarded+-- when feedback forwarding is enabled. If the message cannot be delivered+-- to the recipient, then an error message will be returned from the+-- recipient's ISP; this message will then be forwarded to the email address+-- specified by the ReturnPath parameter.+seReturnPath :: Lens' SendEmail (Maybe Text)+seReturnPath = lens _seReturnPath (\s a -> s { _seReturnPath = a })++-- | The identity's email address. By default, the string must be 7-bit ASCII.+-- If the text must contain any other characters, then you must use MIME+-- encoded-word syntax (RFC 2047) instead of a literal string. MIME+-- encoded-word syntax uses the following form:+-- =?charset?encoding?encoded-text?=. For more information, see RFC 2047.+seSource :: Lens' SendEmail Text+seSource = lens _seSource (\s a -> s { _seSource = a })++newtype SendEmailResponse = SendEmailResponse+ { _serMessageId :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'SendEmailResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'serMessageId' @::@ 'Text'+--+sendEmailResponse :: Text -- ^ 'serMessageId'+ -> SendEmailResponse+sendEmailResponse p1 = SendEmailResponse+ { _serMessageId = p1+ }++-- | The unique message identifier returned from the SendEmail action.+serMessageId :: Lens' SendEmailResponse Text+serMessageId = lens _serMessageId (\s a -> s { _serMessageId = a })++instance ToPath SendEmail where+ toPath = const "/"++instance ToQuery SendEmail where+ toQuery SendEmail{..} = mconcat+ [ "Destination" =? _seDestination+ , "Message" =? _seMessage+ , "ReplyToAddresses" =? _seReplyToAddresses+ , "ReturnPath" =? _seReturnPath+ , "Source" =? _seSource+ ]++instance ToHeaders SendEmail++instance AWSRequest SendEmail where+ type Sv SendEmail = SES+ type Rs SendEmail = SendEmailResponse++ request = post "SendEmail"+ response = xmlResponse++instance FromXML SendEmailResponse where+ parseXML = withElement "SendEmailResult" $ \x -> SendEmailResponse+ <$> x .@ "MessageId"
+ gen/Network/AWS/SES/SendRawEmail.hs view
@@ -0,0 +1,157 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.SendRawEmail+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Sends an email message, with header and content specified by the client.+-- The SendRawEmail action is useful for sending multipart MIME emails. The+-- raw text of the message must comply with Internet email standards;+-- otherwise, the message cannot be sent. You can only send email from+-- verified email addresses and domains. If you have not requested production+-- access to Amazon SES, you must also verify every recipient email address+-- except for the recipients provided by the Amazon SES mailbox simulator. For+-- more information, go to the Amazon SES Developer Guide. The total size of+-- the message cannot exceed 10 MB. This includes any attachments that are+-- part of the message. Amazon SES has a limit on the total number of+-- recipients per message: The combined number of To:, CC: and BCC: email+-- addresses cannot exceed 50. If you need to send an email message to a+-- larger audience, you can divide your recipient list into groups of 50 or+-- fewer, and then call Amazon SES repeatedly to send the message to each+-- group. The To:, CC:, and BCC: headers in the raw message can contain a+-- group list. Note that each recipient in a group list counts towards the+-- 50-recipient limit. For every message that you send, the total number of+-- recipients (To:, CC: and BCC:) is counted against your sending quota - the+-- maximum number of emails you can send in a 24-hour period. For information+-- about your sending quota, go to the Amazon SES Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_SendRawEmail.html>+module Network.AWS.SES.SendRawEmail+ (+ -- * Request+ SendRawEmail+ -- ** Request constructor+ , sendRawEmail+ -- ** Request lenses+ , sreDestinations+ , sreRawMessage+ , sreSource++ -- * Response+ , SendRawEmailResponse+ -- ** Response constructor+ , sendRawEmailResponse+ -- ** Response lenses+ , srerMessageId+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data SendRawEmail = SendRawEmail+ { _sreDestinations :: List "ToAddresses" Text+ , _sreRawMessage :: RawMessage+ , _sreSource :: Maybe Text+ } deriving (Eq, Show)++-- | 'SendRawEmail' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'sreDestinations' @::@ ['Text']+--+-- * 'sreRawMessage' @::@ 'RawMessage'+--+-- * 'sreSource' @::@ 'Maybe' 'Text'+--+sendRawEmail :: RawMessage -- ^ 'sreRawMessage'+ -> SendRawEmail+sendRawEmail p1 = SendRawEmail+ { _sreRawMessage = p1+ , _sreSource = Nothing+ , _sreDestinations = mempty+ }++-- | A list of destinations for the message, consisting of To:, CC:, and BCC:+-- addresses.+sreDestinations :: Lens' SendRawEmail [Text]+sreDestinations = lens _sreDestinations (\s a -> s { _sreDestinations = a }) . _List++-- | The raw text of the message. The client is responsible for ensuring the+-- following: Message must contain a header and a body, separated by a blank+-- line. All required header fields must be present. Each part of a+-- multipart MIME message must be formatted properly. MIME content types+-- must be among those supported by Amazon SES. For more information, go to+-- the Amazon SES Developer Guide. Content must be base64-encoded, if MIME+-- requires it.+sreRawMessage :: Lens' SendRawEmail RawMessage+sreRawMessage = lens _sreRawMessage (\s a -> s { _sreRawMessage = a })++-- | The identity's email address. By default, the string must be 7-bit ASCII.+-- If the text must contain any other characters, then you must use MIME+-- encoded-word syntax (RFC 2047) instead of a literal string. MIME+-- encoded-word syntax uses the following form:+-- =?charset?encoding?encoded-text?=. For more information, see RFC 2047.+sreSource :: Lens' SendRawEmail (Maybe Text)+sreSource = lens _sreSource (\s a -> s { _sreSource = a })++newtype SendRawEmailResponse = SendRawEmailResponse+ { _srerMessageId :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'SendRawEmailResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'srerMessageId' @::@ 'Text'+--+sendRawEmailResponse :: Text -- ^ 'srerMessageId'+ -> SendRawEmailResponse+sendRawEmailResponse p1 = SendRawEmailResponse+ { _srerMessageId = p1+ }++-- | The unique message identifier returned from the SendRawEmail action.+srerMessageId :: Lens' SendRawEmailResponse Text+srerMessageId = lens _srerMessageId (\s a -> s { _srerMessageId = a })++instance ToPath SendRawEmail where+ toPath = const "/"++instance ToQuery SendRawEmail where+ toQuery SendRawEmail{..} = mconcat+ [ "Destinations" =? _sreDestinations+ , "RawMessage" =? _sreRawMessage+ , "Source" =? _sreSource+ ]++instance ToHeaders SendRawEmail++instance AWSRequest SendRawEmail where+ type Sv SendRawEmail = SES+ type Rs SendRawEmail = SendRawEmailResponse++ request = post "SendRawEmail"+ response = xmlResponse++instance FromXML SendRawEmailResponse where+ parseXML = withElement "SendRawEmailResult" $ \x -> SendRawEmailResponse+ <$> x .@ "MessageId"
+ gen/Network/AWS/SES/SetIdentityDkimEnabled.hs view
@@ -0,0 +1,110 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.SetIdentityDkimEnabled+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Enables or disables Easy DKIM signing of email sent from an identity: If+-- Easy DKIM signing is enabled for a domain name identity (e.g.,+-- example.com), then Amazon SES will DKIM-sign all email sent by addresses+-- under that domain name (e.g., user@example.com). If Easy DKIM signing is+-- enabled for an email address, then Amazon SES will DKIM-sign all email sent+-- by that email address. For email addresses (e.g., user@example.com), you+-- can only enable Easy DKIM signing if the corresponding domain (e.g.,+-- example.com) has been set up for Easy DKIM using the AWS Console or the+-- VerifyDomainDkim action. This action is throttled at one request per+-- second. For more information about Easy DKIM signing, go to the Amazon SES+-- Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_SetIdentityDkimEnabled.html>+module Network.AWS.SES.SetIdentityDkimEnabled+ (+ -- * Request+ SetIdentityDkimEnabled+ -- ** Request constructor+ , setIdentityDkimEnabled+ -- ** Request lenses+ , sideDkimEnabled+ , sideIdentity++ -- * Response+ , SetIdentityDkimEnabledResponse+ -- ** Response constructor+ , setIdentityDkimEnabledResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data SetIdentityDkimEnabled = SetIdentityDkimEnabled+ { _sideDkimEnabled :: Bool+ , _sideIdentity :: Text+ } deriving (Eq, Ord, Show)++-- | 'SetIdentityDkimEnabled' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'sideDkimEnabled' @::@ 'Bool'+--+-- * 'sideIdentity' @::@ 'Text'+--+setIdentityDkimEnabled :: Text -- ^ 'sideIdentity'+ -> Bool -- ^ 'sideDkimEnabled'+ -> SetIdentityDkimEnabled+setIdentityDkimEnabled p1 p2 = SetIdentityDkimEnabled+ { _sideIdentity = p1+ , _sideDkimEnabled = p2+ }++-- | Sets whether DKIM signing is enabled for an identity. Set to true to+-- enable DKIM signing for this identity; false to disable it.+sideDkimEnabled :: Lens' SetIdentityDkimEnabled Bool+sideDkimEnabled = lens _sideDkimEnabled (\s a -> s { _sideDkimEnabled = a })++-- | The identity for which DKIM signing should be enabled or disabled.+sideIdentity :: Lens' SetIdentityDkimEnabled Text+sideIdentity = lens _sideIdentity (\s a -> s { _sideIdentity = a })++data SetIdentityDkimEnabledResponse = SetIdentityDkimEnabledResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'SetIdentityDkimEnabledResponse' constructor.+setIdentityDkimEnabledResponse :: SetIdentityDkimEnabledResponse+setIdentityDkimEnabledResponse = SetIdentityDkimEnabledResponse++instance ToPath SetIdentityDkimEnabled where+ toPath = const "/"++instance ToQuery SetIdentityDkimEnabled where+ toQuery SetIdentityDkimEnabled{..} = mconcat+ [ "DkimEnabled" =? _sideDkimEnabled+ , "Identity" =? _sideIdentity+ ]++instance ToHeaders SetIdentityDkimEnabled++instance AWSRequest SetIdentityDkimEnabled where+ type Sv SetIdentityDkimEnabled = SES+ type Rs SetIdentityDkimEnabled = SetIdentityDkimEnabledResponse++ request = post "SetIdentityDkimEnabled"+ response = nullResponse SetIdentityDkimEnabledResponse
+ gen/Network/AWS/SES/SetIdentityFeedbackForwardingEnabled.hs view
@@ -0,0 +1,112 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.SetIdentityFeedbackForwardingEnabled+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Given an identity (email address or domain), enables or disables whether+-- Amazon SES forwards bounce and complaint notifications as email. Feedback+-- forwarding can only be disabled when Amazon Simple Notification Service+-- (Amazon SNS) topics are specified for both bounces and complaints. This+-- action is throttled at one request per second. For more information about+-- using notifications with Amazon SES, see the Amazon SES Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_SetIdentityFeedbackForwardingEnabled.html>+module Network.AWS.SES.SetIdentityFeedbackForwardingEnabled+ (+ -- * Request+ SetIdentityFeedbackForwardingEnabled+ -- ** Request constructor+ , setIdentityFeedbackForwardingEnabled+ -- ** Request lenses+ , siffeForwardingEnabled+ , siffeIdentity++ -- * Response+ , SetIdentityFeedbackForwardingEnabledResponse+ -- ** Response constructor+ , setIdentityFeedbackForwardingEnabledResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data SetIdentityFeedbackForwardingEnabled = SetIdentityFeedbackForwardingEnabled+ { _siffeForwardingEnabled :: Bool+ , _siffeIdentity :: Text+ } deriving (Eq, Ord, Show)++-- | 'SetIdentityFeedbackForwardingEnabled' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'siffeForwardingEnabled' @::@ 'Bool'+--+-- * 'siffeIdentity' @::@ 'Text'+--+setIdentityFeedbackForwardingEnabled :: Text -- ^ 'siffeIdentity'+ -> Bool -- ^ 'siffeForwardingEnabled'+ -> SetIdentityFeedbackForwardingEnabled+setIdentityFeedbackForwardingEnabled p1 p2 = SetIdentityFeedbackForwardingEnabled+ { _siffeIdentity = p1+ , _siffeForwardingEnabled = p2+ }++-- | Sets whether Amazon SES will forward bounce and complaint notifications+-- as email. true specifies that Amazon SES will forward bounce and+-- complaint notifications as email, in addition to any Amazon SNS topic+-- publishing otherwise specified. false specifies that Amazon SES will+-- publish bounce and complaint notifications only through Amazon SNS. This+-- value can only be set to false when Amazon SNS topics are set for both+-- Bounce and Complaint notification types.+siffeForwardingEnabled :: Lens' SetIdentityFeedbackForwardingEnabled Bool+siffeForwardingEnabled =+ lens _siffeForwardingEnabled (\s a -> s { _siffeForwardingEnabled = a })++-- | The identity for which to set bounce and complaint notification+-- forwarding. Examples: user@example.com, example.com.+siffeIdentity :: Lens' SetIdentityFeedbackForwardingEnabled Text+siffeIdentity = lens _siffeIdentity (\s a -> s { _siffeIdentity = a })++data SetIdentityFeedbackForwardingEnabledResponse = SetIdentityFeedbackForwardingEnabledResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'SetIdentityFeedbackForwardingEnabledResponse' constructor.+setIdentityFeedbackForwardingEnabledResponse :: SetIdentityFeedbackForwardingEnabledResponse+setIdentityFeedbackForwardingEnabledResponse = SetIdentityFeedbackForwardingEnabledResponse++instance ToPath SetIdentityFeedbackForwardingEnabled where+ toPath = const "/"++instance ToQuery SetIdentityFeedbackForwardingEnabled where+ toQuery SetIdentityFeedbackForwardingEnabled{..} = mconcat+ [ "ForwardingEnabled" =? _siffeForwardingEnabled+ , "Identity" =? _siffeIdentity+ ]++instance ToHeaders SetIdentityFeedbackForwardingEnabled++instance AWSRequest SetIdentityFeedbackForwardingEnabled where+ type Sv SetIdentityFeedbackForwardingEnabled = SES+ type Rs SetIdentityFeedbackForwardingEnabled = SetIdentityFeedbackForwardingEnabledResponse++ request = post "SetIdentityFeedbackForwardingEnabled"+ response = nullResponse SetIdentityFeedbackForwardingEnabledResponse
+ gen/Network/AWS/SES/SetIdentityNotificationTopic.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.SetIdentityNotificationTopic+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Given an identity (email address or domain), sets the Amazon Simple+-- Notification Service (Amazon SNS) topic to which Amazon SES will publish+-- bounce, complaint, and/or delivery notifications for emails sent with that+-- identity as the Source. This action is throttled at one request per second.+-- For more information about feedback notification, see the Amazon SES+-- Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_SetIdentityNotificationTopic.html>+module Network.AWS.SES.SetIdentityNotificationTopic+ (+ -- * Request+ SetIdentityNotificationTopic+ -- ** Request constructor+ , setIdentityNotificationTopic+ -- ** Request lenses+ , sintIdentity+ , sintNotificationType+ , sintSnsTopic++ -- * Response+ , SetIdentityNotificationTopicResponse+ -- ** Response constructor+ , setIdentityNotificationTopicResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++data SetIdentityNotificationTopic = SetIdentityNotificationTopic+ { _sintIdentity :: Text+ , _sintNotificationType :: Text+ , _sintSnsTopic :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'SetIdentityNotificationTopic' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'sintIdentity' @::@ 'Text'+--+-- * 'sintNotificationType' @::@ 'Text'+--+-- * 'sintSnsTopic' @::@ 'Maybe' 'Text'+--+setIdentityNotificationTopic :: Text -- ^ 'sintIdentity'+ -> Text -- ^ 'sintNotificationType'+ -> SetIdentityNotificationTopic+setIdentityNotificationTopic p1 p2 = SetIdentityNotificationTopic+ { _sintIdentity = p1+ , _sintNotificationType = p2+ , _sintSnsTopic = Nothing+ }++-- | The identity for which the Amazon SNS topic will be set. Examples:+-- user@example.com, example.com.+sintIdentity :: Lens' SetIdentityNotificationTopic Text+sintIdentity = lens _sintIdentity (\s a -> s { _sintIdentity = a })++-- | The type of notifications that will be published to the specified Amazon+-- SNS topic.+sintNotificationType :: Lens' SetIdentityNotificationTopic Text+sintNotificationType =+ lens _sintNotificationType (\s a -> s { _sintNotificationType = a })++-- | The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter+-- is omitted from the request or a null value is passed, SnsTopic is+-- cleared and publishing is disabled.+sintSnsTopic :: Lens' SetIdentityNotificationTopic (Maybe Text)+sintSnsTopic = lens _sintSnsTopic (\s a -> s { _sintSnsTopic = a })++data SetIdentityNotificationTopicResponse = SetIdentityNotificationTopicResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'SetIdentityNotificationTopicResponse' constructor.+setIdentityNotificationTopicResponse :: SetIdentityNotificationTopicResponse+setIdentityNotificationTopicResponse = SetIdentityNotificationTopicResponse++instance ToPath SetIdentityNotificationTopic where+ toPath = const "/"++instance ToQuery SetIdentityNotificationTopic where+ toQuery SetIdentityNotificationTopic{..} = mconcat+ [ "Identity" =? _sintIdentity+ , "NotificationType" =? _sintNotificationType+ , "SnsTopic" =? _sintSnsTopic+ ]++instance ToHeaders SetIdentityNotificationTopic++instance AWSRequest SetIdentityNotificationTopic where+ type Sv SetIdentityNotificationTopic = SES+ type Rs SetIdentityNotificationTopic = SetIdentityNotificationTopicResponse++ request = post "SetIdentityNotificationTopic"+ response = nullResponse SetIdentityNotificationTopicResponse
+ gen/Network/AWS/SES/Types.hs view
@@ -0,0 +1,652 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.Types+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++module Network.AWS.SES.Types+ (+ -- * Service+ SES+ -- ** Error+ , RESTError+ -- ** XML+ , ns++ -- * Destination+ , Destination+ , destination+ , dBccAddresses+ , dCcAddresses+ , dToAddresses++ -- * IdentityDkimAttributes+ , IdentityDkimAttributes+ , identityDkimAttributes+ , idaDkimEnabled+ , idaDkimTokens+ , idaDkimVerificationStatus++ -- * Body+ , Body+ , body+ , bHtml+ , bText++ -- * IdentityVerificationAttributes+ , IdentityVerificationAttributes+ , identityVerificationAttributes+ , ivaVerificationStatus+ , ivaVerificationToken++ -- * SendDataPoint+ , SendDataPoint+ , sendDataPoint+ , sdpBounces+ , sdpComplaints+ , sdpDeliveryAttempts+ , sdpRejects+ , sdpTimestamp++ -- * IdentityType+ , IdentityType (..)++ -- * Content+ , Content+ , content+ , cCharset+ , cData++ -- * IdentityNotificationAttributes+ , IdentityNotificationAttributes+ , identityNotificationAttributes+ , inaBounceTopic+ , inaComplaintTopic+ , inaDeliveryTopic+ , inaForwardingEnabled++ -- * RawMessage+ , RawMessage+ , rawMessage+ , rmData++ -- * NotificationType+ , NotificationType (..)++ -- * VerificationStatus+ , VerificationStatus (..)++ -- * Message+ , Message+ , message+ , mBody+ , mSubject+ ) where++import Network.AWS.Error+import Network.AWS.Prelude+import Network.AWS.Signing.V4+import qualified GHC.Exts++-- | Version @2010-12-01@ of the Amazon Simple Email Service service.+data SES++instance AWSService SES where+ type Sg SES = V4+ type Er SES = RESTError++ service = Service+ { _svcEndpoint = regional+ , _svcAbbrev = "SES"+ , _svcPrefix = "email"+ , _svcVersion = "2010-12-01"+ , _svcTargetPrefix = Nothing+ , _svcJSONVersion = Nothing+ }++ handle = restError statusSuccess++ns :: Text+ns = "http://ses.amazonaws.com/doc/2010-12-01/"++data Destination = Destination+ { _dBccAddresses :: List "ToAddresses" Text+ , _dCcAddresses :: List "ToAddresses" Text+ , _dToAddresses :: List "ToAddresses" Text+ } deriving (Eq, Ord, Show)++-- | 'Destination' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dBccAddresses' @::@ ['Text']+--+-- * 'dCcAddresses' @::@ ['Text']+--+-- * 'dToAddresses' @::@ ['Text']+--+destination :: Destination+destination = Destination+ { _dToAddresses = mempty+ , _dCcAddresses = mempty+ , _dBccAddresses = mempty+ }++-- | The BCC: field(s) of the message.+dBccAddresses :: Lens' Destination [Text]+dBccAddresses = lens _dBccAddresses (\s a -> s { _dBccAddresses = a }) . _List++-- | The CC: field(s) of the message.+dCcAddresses :: Lens' Destination [Text]+dCcAddresses = lens _dCcAddresses (\s a -> s { _dCcAddresses = a }) . _List++-- | The To: field(s) of the message.+dToAddresses :: Lens' Destination [Text]+dToAddresses = lens _dToAddresses (\s a -> s { _dToAddresses = a }) . _List++instance FromXML Destination where+ parseXML x = Destination+ <$> x .@ "BccAddresses"+ <*> x .@ "CcAddresses"+ <*> x .@ "ToAddresses"++instance ToQuery Destination where+ toQuery Destination{..} = mconcat+ [ "BccAddresses" =? _dBccAddresses+ , "CcAddresses" =? _dCcAddresses+ , "ToAddresses" =? _dToAddresses+ ]++data IdentityDkimAttributes = IdentityDkimAttributes+ { _idaDkimEnabled :: Bool+ , _idaDkimTokens :: List "DkimTokens" Text+ , _idaDkimVerificationStatus :: Text+ } deriving (Eq, Ord, Show)++-- | 'IdentityDkimAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'idaDkimEnabled' @::@ 'Bool'+--+-- * 'idaDkimTokens' @::@ ['Text']+--+-- * 'idaDkimVerificationStatus' @::@ 'Text'+--+identityDkimAttributes :: Bool -- ^ 'idaDkimEnabled'+ -> Text -- ^ 'idaDkimVerificationStatus'+ -> IdentityDkimAttributes+identityDkimAttributes p1 p2 = IdentityDkimAttributes+ { _idaDkimEnabled = p1+ , _idaDkimVerificationStatus = p2+ , _idaDkimTokens = mempty+ }++-- | True if DKIM signing is enabled for email sent from the identity; false+-- otherwise.+idaDkimEnabled :: Lens' IdentityDkimAttributes Bool+idaDkimEnabled = lens _idaDkimEnabled (\s a -> s { _idaDkimEnabled = a })++-- | A set of character strings that represent the domain's identity. Using+-- these tokens, you will need to create DNS CNAME records that point to+-- DKIM public keys hosted by Amazon SES. Amazon Web Services will+-- eventually detect that you have updated your DNS records; this detection+-- process may take up to 72 hours. Upon successful detection, Amazon SES+-- will be able to DKIM-sign email originating from that domain. (This only+-- applies to domain identities, not email address identities.) For more+-- information about creating DNS records using DKIM tokens, go to the+-- Amazon SES Developer Guide.+idaDkimTokens :: Lens' IdentityDkimAttributes [Text]+idaDkimTokens = lens _idaDkimTokens (\s a -> s { _idaDkimTokens = a }) . _List++-- | Describes whether Amazon SES has successfully verified the DKIM DNS+-- records (tokens) published in the domain name's DNS. (This only applies+-- to domain identities, not email address identities.).+idaDkimVerificationStatus :: Lens' IdentityDkimAttributes Text+idaDkimVerificationStatus =+ lens _idaDkimVerificationStatus+ (\s a -> s { _idaDkimVerificationStatus = a })++instance FromXML IdentityDkimAttributes where+ parseXML x = IdentityDkimAttributes+ <$> x .@ "DkimEnabled"+ <*> x .@ "DkimTokens"+ <*> x .@ "DkimVerificationStatus"++instance ToQuery IdentityDkimAttributes where+ toQuery IdentityDkimAttributes{..} = mconcat+ [ "DkimEnabled" =? _idaDkimEnabled+ , "DkimTokens" =? _idaDkimTokens+ , "DkimVerificationStatus" =? _idaDkimVerificationStatus+ ]++data Body = Body+ { _bHtml :: Maybe Content+ , _bText :: Maybe Content+ } deriving (Eq, Show)++-- | 'Body' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'bHtml' @::@ 'Maybe' 'Content'+--+-- * 'bText' @::@ 'Maybe' 'Content'+--+body :: Body+body = Body+ { _bText = Nothing+ , _bHtml = Nothing+ }++-- | The content of the message, in HTML format. Use this for email clients+-- that can process HTML. You can include clickable links, formatted text,+-- and much more in an HTML message.+bHtml :: Lens' Body (Maybe Content)+bHtml = lens _bHtml (\s a -> s { _bHtml = a })++-- | The content of the message, in text format. Use this for text-based email+-- clients, or clients on high-latency networks (such as mobile devices).+bText :: Lens' Body (Maybe Content)+bText = lens _bText (\s a -> s { _bText = a })++instance FromXML Body where+ parseXML x = Body+ <$> x .@? "Html"+ <*> x .@? "Text"++instance ToQuery Body where+ toQuery Body{..} = mconcat+ [ "Html" =? _bHtml+ , "Text" =? _bText+ ]++data IdentityVerificationAttributes = IdentityVerificationAttributes+ { _ivaVerificationStatus :: Text+ , _ivaVerificationToken :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'IdentityVerificationAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ivaVerificationStatus' @::@ 'Text'+--+-- * 'ivaVerificationToken' @::@ 'Maybe' 'Text'+--+identityVerificationAttributes :: Text -- ^ 'ivaVerificationStatus'+ -> IdentityVerificationAttributes+identityVerificationAttributes p1 = IdentityVerificationAttributes+ { _ivaVerificationStatus = p1+ , _ivaVerificationToken = Nothing+ }++-- | The verification status of the identity: "Pending", "Success", "Failed",+-- or "TemporaryFailure".+ivaVerificationStatus :: Lens' IdentityVerificationAttributes Text+ivaVerificationStatus =+ lens _ivaVerificationStatus (\s a -> s { _ivaVerificationStatus = a })++-- | The verification token for a domain identity. Null for email address+-- identities.+ivaVerificationToken :: Lens' IdentityVerificationAttributes (Maybe Text)+ivaVerificationToken =+ lens _ivaVerificationToken (\s a -> s { _ivaVerificationToken = a })++instance FromXML IdentityVerificationAttributes where+ parseXML x = IdentityVerificationAttributes+ <$> x .@ "VerificationStatus"+ <*> x .@? "VerificationToken"++instance ToQuery IdentityVerificationAttributes where+ toQuery IdentityVerificationAttributes{..} = mconcat+ [ "VerificationStatus" =? _ivaVerificationStatus+ , "VerificationToken" =? _ivaVerificationToken+ ]++data SendDataPoint = SendDataPoint+ { _sdpBounces :: Maybe Integer+ , _sdpComplaints :: Maybe Integer+ , _sdpDeliveryAttempts :: Maybe Integer+ , _sdpRejects :: Maybe Integer+ , _sdpTimestamp :: Maybe RFC822+ } deriving (Eq, Ord, Show)++-- | 'SendDataPoint' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'sdpBounces' @::@ 'Maybe' 'Integer'+--+-- * 'sdpComplaints' @::@ 'Maybe' 'Integer'+--+-- * 'sdpDeliveryAttempts' @::@ 'Maybe' 'Integer'+--+-- * 'sdpRejects' @::@ 'Maybe' 'Integer'+--+-- * 'sdpTimestamp' @::@ 'Maybe' 'UTCTime'+--+sendDataPoint :: SendDataPoint+sendDataPoint = SendDataPoint+ { _sdpTimestamp = Nothing+ , _sdpDeliveryAttempts = Nothing+ , _sdpBounces = Nothing+ , _sdpComplaints = Nothing+ , _sdpRejects = Nothing+ }++-- | Number of emails that have bounced.+sdpBounces :: Lens' SendDataPoint (Maybe Integer)+sdpBounces = lens _sdpBounces (\s a -> s { _sdpBounces = a })++-- | Number of unwanted emails that were rejected by recipients.+sdpComplaints :: Lens' SendDataPoint (Maybe Integer)+sdpComplaints = lens _sdpComplaints (\s a -> s { _sdpComplaints = a })++-- | Number of emails that have been enqueued for sending.+sdpDeliveryAttempts :: Lens' SendDataPoint (Maybe Integer)+sdpDeliveryAttempts =+ lens _sdpDeliveryAttempts (\s a -> s { _sdpDeliveryAttempts = a })++-- | Number of emails rejected by Amazon SES.+sdpRejects :: Lens' SendDataPoint (Maybe Integer)+sdpRejects = lens _sdpRejects (\s a -> s { _sdpRejects = a })++-- | Time of the data point.+sdpTimestamp :: Lens' SendDataPoint (Maybe UTCTime)+sdpTimestamp = lens _sdpTimestamp (\s a -> s { _sdpTimestamp = a }) . mapping _Time++instance FromXML SendDataPoint where+ parseXML x = SendDataPoint+ <$> x .@? "Bounces"+ <*> x .@? "Complaints"+ <*> x .@? "DeliveryAttempts"+ <*> x .@? "Rejects"+ <*> x .@? "Timestamp"++instance ToQuery SendDataPoint where+ toQuery SendDataPoint{..} = mconcat+ [ "Bounces" =? _sdpBounces+ , "Complaints" =? _sdpComplaints+ , "DeliveryAttempts" =? _sdpDeliveryAttempts+ , "Rejects" =? _sdpRejects+ , "Timestamp" =? _sdpTimestamp+ ]++data IdentityType+ = ITDomain -- ^ Domain+ | ITEmailAddress -- ^ EmailAddress+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable IdentityType++instance FromText IdentityType where+ parser = match "Domain" ITDomain+ <|> match "EmailAddress" ITEmailAddress++instance ToText IdentityType where+ toText = \case+ ITDomain -> "Domain"+ ITEmailAddress -> "EmailAddress"++instance FromXML IdentityType where+ parseXML = parseXMLText "IdentityType"++instance ToQuery IdentityType where+ toQuery = toQuery . toText++data Content = Content+ { _cCharset :: Maybe Text+ , _cData :: Text+ } deriving (Eq, Ord, Show)++-- | 'Content' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'cCharset' @::@ 'Maybe' 'Text'+--+-- * 'cData' @::@ 'Text'+--+content :: Text -- ^ 'cData'+ -> Content+content p1 = Content+ { _cData = p1+ , _cCharset = Nothing+ }++-- | The character set of the content.+cCharset :: Lens' Content (Maybe Text)+cCharset = lens _cCharset (\s a -> s { _cCharset = a })++-- | The textual data of the content.+cData :: Lens' Content Text+cData = lens _cData (\s a -> s { _cData = a })++instance FromXML Content where+ parseXML x = Content+ <$> x .@? "Charset"+ <*> x .@ "Data"++instance ToQuery Content where+ toQuery Content{..} = mconcat+ [ "Charset" =? _cCharset+ , "Data" =? _cData+ ]++data IdentityNotificationAttributes = IdentityNotificationAttributes+ { _inaBounceTopic :: Text+ , _inaComplaintTopic :: Text+ , _inaDeliveryTopic :: Text+ , _inaForwardingEnabled :: Bool+ } deriving (Eq, Ord, Show)++-- | 'IdentityNotificationAttributes' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'inaBounceTopic' @::@ 'Text'+--+-- * 'inaComplaintTopic' @::@ 'Text'+--+-- * 'inaDeliveryTopic' @::@ 'Text'+--+-- * 'inaForwardingEnabled' @::@ 'Bool'+--+identityNotificationAttributes :: Text -- ^ 'inaBounceTopic'+ -> Text -- ^ 'inaComplaintTopic'+ -> Text -- ^ 'inaDeliveryTopic'+ -> Bool -- ^ 'inaForwardingEnabled'+ -> IdentityNotificationAttributes+identityNotificationAttributes p1 p2 p3 p4 = IdentityNotificationAttributes+ { _inaBounceTopic = p1+ , _inaComplaintTopic = p2+ , _inaDeliveryTopic = p3+ , _inaForwardingEnabled = p4+ }++-- | The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES+-- will publish bounce notifications.+inaBounceTopic :: Lens' IdentityNotificationAttributes Text+inaBounceTopic = lens _inaBounceTopic (\s a -> s { _inaBounceTopic = a })++-- | The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES+-- will publish complaint notifications.+inaComplaintTopic :: Lens' IdentityNotificationAttributes Text+inaComplaintTopic =+ lens _inaComplaintTopic (\s a -> s { _inaComplaintTopic = a })++-- | The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES+-- will publish delivery notifications.+inaDeliveryTopic :: Lens' IdentityNotificationAttributes Text+inaDeliveryTopic = lens _inaDeliveryTopic (\s a -> s { _inaDeliveryTopic = a })++-- | Describes whether Amazon SES will forward bounce and complaint+-- notifications as email. true indicates that Amazon SES will forward+-- bounce and complaint notifications as email, while false indicates that+-- bounce and complaint notifications will be published only to the+-- specified bounce and complaint Amazon SNS topics.+inaForwardingEnabled :: Lens' IdentityNotificationAttributes Bool+inaForwardingEnabled =+ lens _inaForwardingEnabled (\s a -> s { _inaForwardingEnabled = a })++instance FromXML IdentityNotificationAttributes where+ parseXML x = IdentityNotificationAttributes+ <$> x .@ "BounceTopic"+ <*> x .@ "ComplaintTopic"+ <*> x .@ "DeliveryTopic"+ <*> x .@ "ForwardingEnabled"++instance ToQuery IdentityNotificationAttributes where+ toQuery IdentityNotificationAttributes{..} = mconcat+ [ "BounceTopic" =? _inaBounceTopic+ , "ComplaintTopic" =? _inaComplaintTopic+ , "DeliveryTopic" =? _inaDeliveryTopic+ , "ForwardingEnabled" =? _inaForwardingEnabled+ ]++newtype RawMessage = RawMessage+ { _rmData :: Base64+ } deriving (Eq, Show)++-- | 'RawMessage' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'rmData' @::@ 'Base64'+--+rawMessage :: Base64 -- ^ 'rmData'+ -> RawMessage+rawMessage p1 = RawMessage+ { _rmData = p1+ }++-- | The raw data of the message. The client must ensure that the message+-- format complies with Internet email standards regarding email header+-- fields, MIME types, MIME encoding, and base64 encoding (if necessary).+-- The To:, CC:, and BCC: headers in the raw message can contain a group+-- list. For more information, go to the Amazon SES Developer Guide.+rmData :: Lens' RawMessage Base64+rmData = lens _rmData (\s a -> s { _rmData = a })++instance FromXML RawMessage where+ parseXML x = RawMessage+ <$> x .@ "Data"++instance ToQuery RawMessage where+ toQuery RawMessage{..} = mconcat+ [ "Data" =? _rmData+ ]++data NotificationType+ = Bounce -- ^ Bounce+ | Complaint -- ^ Complaint+ | Delivery -- ^ Delivery+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable NotificationType++instance FromText NotificationType where+ parser = match "Bounce" Bounce+ <|> match "Complaint" Complaint+ <|> match "Delivery" Delivery++instance ToText NotificationType where+ toText = \case+ Bounce -> "Bounce"+ Complaint -> "Complaint"+ Delivery -> "Delivery"++instance FromXML NotificationType where+ parseXML = parseXMLText "NotificationType"++instance ToQuery NotificationType where+ toQuery = toQuery . toText++data VerificationStatus+ = Failed -- ^ Failed+ | NotStarted -- ^ NotStarted+ | Pending -- ^ Pending+ | Success -- ^ Success+ | TemporaryFailure -- ^ TemporaryFailure+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable VerificationStatus++instance FromText VerificationStatus where+ parser = match "Failed" Failed+ <|> match "NotStarted" NotStarted+ <|> match "Pending" Pending+ <|> match "Success" Success+ <|> match "TemporaryFailure" TemporaryFailure++instance ToText VerificationStatus where+ toText = \case+ Failed -> "Failed"+ NotStarted -> "NotStarted"+ Pending -> "Pending"+ Success -> "Success"+ TemporaryFailure -> "TemporaryFailure"++instance FromXML VerificationStatus where+ parseXML = parseXMLText "VerificationStatus"++instance ToQuery VerificationStatus where+ toQuery = toQuery . toText++data Message = Message+ { _mBody :: Body+ , _mSubject :: Content+ } deriving (Eq, Show)++-- | 'Message' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'mBody' @::@ 'Body'+--+-- * 'mSubject' @::@ 'Content'+--+message :: Content -- ^ 'mSubject'+ -> Body -- ^ 'mBody'+ -> Message+message p1 p2 = Message+ { _mSubject = p1+ , _mBody = p2+ }++-- | The message body.+mBody :: Lens' Message Body+mBody = lens _mBody (\s a -> s { _mBody = a })++-- | The subject of the message: A short summary of the content, which will+-- appear in the recipient's inbox.+mSubject :: Lens' Message Content+mSubject = lens _mSubject (\s a -> s { _mSubject = a })++instance FromXML Message where+ parseXML x = Message+ <$> x .@ "Body"+ <*> x .@ "Subject"++instance ToQuery Message where+ toQuery Message{..} = mconcat+ [ "Body" =? _mBody+ , "Subject" =? _mSubject+ ]
+ gen/Network/AWS/SES/VerifyDomainDkim.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.VerifyDomainDkim+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns a set of DKIM tokens for a domain. DKIM tokens are character+-- strings that represent your domain's identity. Using these tokens, you will+-- need to create DNS CNAME records that point to DKIM public keys hosted by+-- Amazon SES. Amazon Web Services will eventually detect that you have+-- updated your DNS records; this detection process may take up to 72 hours.+-- Upon successful detection, Amazon SES will be able to DKIM-sign email+-- originating from that domain. This action is throttled at one request per+-- second. To enable or disable Easy DKIM signing for a domain, use the+-- SetIdentityDkimEnabled action. For more information about creating DNS+-- records using DKIM tokens, go to the Amazon SES Developer Guide.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyDomainDkim.html>+module Network.AWS.SES.VerifyDomainDkim+ (+ -- * Request+ VerifyDomainDkim+ -- ** Request constructor+ , verifyDomainDkim+ -- ** Request lenses+ , vddDomain++ -- * Response+ , VerifyDomainDkimResponse+ -- ** Response constructor+ , verifyDomainDkimResponse+ -- ** Response lenses+ , vddrDkimTokens+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype VerifyDomainDkim = VerifyDomainDkim+ { _vddDomain :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'VerifyDomainDkim' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'vddDomain' @::@ 'Text'+--+verifyDomainDkim :: Text -- ^ 'vddDomain'+ -> VerifyDomainDkim+verifyDomainDkim p1 = VerifyDomainDkim+ { _vddDomain = p1+ }++-- | The name of the domain to be verified for Easy DKIM signing.+vddDomain :: Lens' VerifyDomainDkim Text+vddDomain = lens _vddDomain (\s a -> s { _vddDomain = a })++newtype VerifyDomainDkimResponse = VerifyDomainDkimResponse+ { _vddrDkimTokens :: List "DkimTokens" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList VerifyDomainDkimResponse where+ type Item VerifyDomainDkimResponse = Text++ fromList = VerifyDomainDkimResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _vddrDkimTokens++-- | 'VerifyDomainDkimResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'vddrDkimTokens' @::@ ['Text']+--+verifyDomainDkimResponse :: VerifyDomainDkimResponse+verifyDomainDkimResponse = VerifyDomainDkimResponse+ { _vddrDkimTokens = mempty+ }++-- | A set of character strings that represent the domain's identity. If the+-- identity is an email address, the tokens represent the domain of that+-- address. Using these tokens, you will need to create DNS CNAME records+-- that point to DKIM public keys hosted by Amazon SES. Amazon Web Services+-- will eventually detect that you have updated your DNS records; this+-- detection process may take up to 72 hours. Upon successful detection,+-- Amazon SES will be able to DKIM-sign emails originating from that domain.+-- For more information about creating DNS records using DKIM tokens, go to+-- the Amazon SES Developer Guide.+vddrDkimTokens :: Lens' VerifyDomainDkimResponse [Text]+vddrDkimTokens = lens _vddrDkimTokens (\s a -> s { _vddrDkimTokens = a }) . _List++instance ToPath VerifyDomainDkim where+ toPath = const "/"++instance ToQuery VerifyDomainDkim where+ toQuery VerifyDomainDkim{..} = mconcat+ [ "Domain" =? _vddDomain+ ]++instance ToHeaders VerifyDomainDkim++instance AWSRequest VerifyDomainDkim where+ type Sv VerifyDomainDkim = SES+ type Rs VerifyDomainDkim = VerifyDomainDkimResponse++ request = post "VerifyDomainDkim"+ response = xmlResponse++instance FromXML VerifyDomainDkimResponse where+ parseXML = withElement "VerifyDomainDkimResult" $ \x -> VerifyDomainDkimResponse+ <$> x .@ "DkimTokens"
+ gen/Network/AWS/SES/VerifyDomainIdentity.hs view
@@ -0,0 +1,109 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.VerifyDomainIdentity+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Verifies a domain. This action is throttled at one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyDomainIdentity.html>+module Network.AWS.SES.VerifyDomainIdentity+ (+ -- * Request+ VerifyDomainIdentity+ -- ** Request constructor+ , verifyDomainIdentity+ -- ** Request lenses+ , vdiDomain++ -- * Response+ , VerifyDomainIdentityResponse+ -- ** Response constructor+ , verifyDomainIdentityResponse+ -- ** Response lenses+ , vdirVerificationToken+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype VerifyDomainIdentity = VerifyDomainIdentity+ { _vdiDomain :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'VerifyDomainIdentity' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'vdiDomain' @::@ 'Text'+--+verifyDomainIdentity :: Text -- ^ 'vdiDomain'+ -> VerifyDomainIdentity+verifyDomainIdentity p1 = VerifyDomainIdentity+ { _vdiDomain = p1+ }++-- | The domain to be verified.+vdiDomain :: Lens' VerifyDomainIdentity Text+vdiDomain = lens _vdiDomain (\s a -> s { _vdiDomain = a })++newtype VerifyDomainIdentityResponse = VerifyDomainIdentityResponse+ { _vdirVerificationToken :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'VerifyDomainIdentityResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'vdirVerificationToken' @::@ 'Text'+--+verifyDomainIdentityResponse :: Text -- ^ 'vdirVerificationToken'+ -> VerifyDomainIdentityResponse+verifyDomainIdentityResponse p1 = VerifyDomainIdentityResponse+ { _vdirVerificationToken = p1+ }++-- | A TXT record that must be placed in the DNS settings for the domain, in+-- order to complete domain verification.+vdirVerificationToken :: Lens' VerifyDomainIdentityResponse Text+vdirVerificationToken =+ lens _vdirVerificationToken (\s a -> s { _vdirVerificationToken = a })++instance ToPath VerifyDomainIdentity where+ toPath = const "/"++instance ToQuery VerifyDomainIdentity where+ toQuery VerifyDomainIdentity{..} = mconcat+ [ "Domain" =? _vdiDomain+ ]++instance ToHeaders VerifyDomainIdentity++instance AWSRequest VerifyDomainIdentity where+ type Sv VerifyDomainIdentity = SES+ type Rs VerifyDomainIdentity = VerifyDomainIdentityResponse++ request = post "VerifyDomainIdentity"+ response = xmlResponse++instance FromXML VerifyDomainIdentityResponse where+ parseXML = withElement "VerifyDomainIdentityResult" $ \x -> VerifyDomainIdentityResponse+ <$> x .@ "VerificationToken"
+ gen/Network/AWS/SES/VerifyEmailAddress.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.VerifyEmailAddress+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Verifies an email address. This action causes a confirmation email message+-- to be sent to the specified address. The VerifyEmailAddress action is+-- deprecated as of the May 15, 2012 release of Domain Verification. The+-- VerifyEmailIdentity action is now preferred. This action is throttled at+-- one request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyEmailAddress.html>+module Network.AWS.SES.VerifyEmailAddress+ (+ -- * Request+ VerifyEmailAddress+ -- ** Request constructor+ , verifyEmailAddress+ -- ** Request lenses+ , veaEmailAddress++ -- * Response+ , VerifyEmailAddressResponse+ -- ** Response constructor+ , verifyEmailAddressResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype VerifyEmailAddress = VerifyEmailAddress+ { _veaEmailAddress :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'VerifyEmailAddress' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'veaEmailAddress' @::@ 'Text'+--+verifyEmailAddress :: Text -- ^ 'veaEmailAddress'+ -> VerifyEmailAddress+verifyEmailAddress p1 = VerifyEmailAddress+ { _veaEmailAddress = p1+ }++-- | The email address to be verified.+veaEmailAddress :: Lens' VerifyEmailAddress Text+veaEmailAddress = lens _veaEmailAddress (\s a -> s { _veaEmailAddress = a })++data VerifyEmailAddressResponse = VerifyEmailAddressResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'VerifyEmailAddressResponse' constructor.+verifyEmailAddressResponse :: VerifyEmailAddressResponse+verifyEmailAddressResponse = VerifyEmailAddressResponse++instance ToPath VerifyEmailAddress where+ toPath = const "/"++instance ToQuery VerifyEmailAddress where+ toQuery VerifyEmailAddress{..} = mconcat+ [ "EmailAddress" =? _veaEmailAddress+ ]++instance ToHeaders VerifyEmailAddress++instance AWSRequest VerifyEmailAddress where+ type Sv VerifyEmailAddress = SES+ type Rs VerifyEmailAddress = VerifyEmailAddressResponse++ request = post "VerifyEmailAddress"+ response = nullResponse VerifyEmailAddressResponse
+ gen/Network/AWS/SES/VerifyEmailIdentity.hs view
@@ -0,0 +1,90 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.SES.VerifyEmailIdentity+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Verifies an email address. This action causes a confirmation email message+-- to be sent to the specified address. This action is throttled at one+-- request per second.+--+-- <http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyEmailIdentity.html>+module Network.AWS.SES.VerifyEmailIdentity+ (+ -- * Request+ VerifyEmailIdentity+ -- ** Request constructor+ , verifyEmailIdentity+ -- ** Request lenses+ , veiEmailAddress++ -- * Response+ , VerifyEmailIdentityResponse+ -- ** Response constructor+ , verifyEmailIdentityResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.Query+import Network.AWS.SES.Types+import qualified GHC.Exts++newtype VerifyEmailIdentity = VerifyEmailIdentity+ { _veiEmailAddress :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'VerifyEmailIdentity' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'veiEmailAddress' @::@ 'Text'+--+verifyEmailIdentity :: Text -- ^ 'veiEmailAddress'+ -> VerifyEmailIdentity+verifyEmailIdentity p1 = VerifyEmailIdentity+ { _veiEmailAddress = p1+ }++-- | The email address to be verified.+veiEmailAddress :: Lens' VerifyEmailIdentity Text+veiEmailAddress = lens _veiEmailAddress (\s a -> s { _veiEmailAddress = a })++data VerifyEmailIdentityResponse = VerifyEmailIdentityResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'VerifyEmailIdentityResponse' constructor.+verifyEmailIdentityResponse :: VerifyEmailIdentityResponse+verifyEmailIdentityResponse = VerifyEmailIdentityResponse++instance ToPath VerifyEmailIdentity where+ toPath = const "/"++instance ToQuery VerifyEmailIdentity where+ toQuery VerifyEmailIdentity{..} = mconcat+ [ "EmailAddress" =? _veiEmailAddress+ ]++instance ToHeaders VerifyEmailIdentity++instance AWSRequest VerifyEmailIdentity where+ type Sv VerifyEmailIdentity = SES+ type Rs VerifyEmailIdentity = VerifyEmailIdentityResponse++ request = post "VerifyEmailIdentity"+ response = nullResponse VerifyEmailIdentityResponse