packages feed

amazonka-ses 0.0.7 → 0.0.8

raw patch · 4 files changed

+71/−11 lines, 4 filesdep ~amazonka-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-core

API changes (from Hackage documentation)

+ Network.AWS.SES.Waiters: identityExists :: Wait GetIdentityVerificationAttributes

Files

amazonka-ses.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-ses-version:               0.0.7+version:               0.0.8 synopsis:              Amazon Simple Email Service SDK. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense@@ -59,9 +59,10 @@         , Network.AWS.SES.VerifyDomainIdentity         , Network.AWS.SES.VerifyEmailAddress         , Network.AWS.SES.VerifyEmailIdentity+        , Network.AWS.SES.Waiters      other-modules:      build-depends:-          amazonka-core == 0.0.7.*+          amazonka-core == 0.0.8.*         , base          >= 4.7     && < 5
gen/Network/AWS/SES.hs view
@@ -38,6 +38,7 @@     , module Network.AWS.SES.VerifyDomainIdentity     , module Network.AWS.SES.VerifyEmailAddress     , module Network.AWS.SES.VerifyEmailIdentity+    , module Network.AWS.SES.Waiters     ) where  import Network.AWS.SES.DeleteIdentity@@ -59,3 +60,4 @@ import Network.AWS.SES.VerifyDomainIdentity import Network.AWS.SES.VerifyEmailAddress import Network.AWS.SES.VerifyEmailIdentity+import Network.AWS.SES.Waiters
gen/Network/AWS/SES/Types.hs view
@@ -7,6 +7,7 @@ {-# LANGUAGE OverloadedStrings           #-} {-# LANGUAGE RecordWildCards             #-} {-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE ViewPatterns                #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-} @@ -101,7 +102,6 @@     , mSubject     ) where -import Network.AWS.Error import Network.AWS.Prelude import Network.AWS.Signing import qualified GHC.Exts@@ -113,18 +113,44 @@     type Sg SES = V4     type Er SES = RESTError -    service = Service-        { _svcAbbrev       = "SES"-        , _svcPrefix       = "email"-        , _svcVersion      = "2010-12-01"-        , _svcTargetPrefix = Nothing-        , _svcJSONVersion  = Nothing-        }+    service = service'+      where+        service' :: Service SES+        service' = Service+            { _svcAbbrev       = "SES"+            , _svcPrefix       = "email"+            , _svcVersion      = "2010-12-01"+            , _svcTargetPrefix = Nothing+            , _svcJSONVersion  = Nothing+            , _svcHandle       = handle+            , _svcRetry        = retry+            } -    handle = restError statusSuccess+        handle :: Status+               -> Maybe (LazyByteString -> ServiceError RESTError)+        handle = restError statusSuccess service' +        retry :: Retry SES+        retry = Exponential+            { _retryBase     = 0.05+            , _retryGrowth   = 2+            , _retryAttempts = 5+            , _retryCheck    = check+            }++        check :: Status+              -> RESTError+              -> Bool+        check (statusCode -> s) (awsErrorCode -> e)+            | s == 400 && "Throttling" == e = True -- Throttling+            | s == 500  = True -- General Server Error+            | s == 509  = True -- Limit Exceeded+            | s == 503  = True -- Service Unavailable+            | otherwise = False+ ns :: Text ns = "http://ses.amazonaws.com/doc/2010-12-01/"+{-# INLINE ns #-}  data Destination = Destination     { _dBccAddresses :: List "member" Text
+ gen/Network/AWS/SES/Waiters.hs view
@@ -0,0 +1,31 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies      #-}++-- Module      : Network.AWS.SES.Waiters+-- 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)+--+-- Derived from AWS service descriptions, licensed under Apache 2.0.++module Network.AWS.SES.Waiters where++import Network.AWS.SES.GetIdentityVerificationAttributes+import Network.AWS.SES.Types+import Network.AWS.Waiters++identityExists :: Wait GetIdentityVerificationAttributes+identityExists = Wait+    { _waitName      = "IdentityExists"+    , _waitAttempts  = 20+    , _waitDelay     = 3+    , _waitAcceptors =+        [ matchAll Success AcceptSuccess+            (givarVerificationAttributes . traverse . ivaVerificationStatus)+        ]+    }