amazonka-elb 0.0.7 → 0.0.8
raw patch · 2 files changed
+37/−11 lines, 2 filesdep ~amazonka-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core
API changes (from Hackage documentation)
Files
- amazonka-elb.cabal +2/−2
- gen/Network/AWS/ELB/Types.hs +35/−9
amazonka-elb.cabal view
@@ -1,5 +1,5 @@ name: amazonka-elb-version: 0.0.7+version: 0.0.8 synopsis: Amazon Elastic Load Balancing SDK. homepage: https://github.com/brendanhay/amazonka license: OtherLicense@@ -70,5 +70,5 @@ other-modules: build-depends:- amazonka-core == 0.0.7.*+ amazonka-core == 0.0.8.* , base >= 4.7 && < 5
gen/Network/AWS/ELB/Types.hs view
@@ -7,6 +7,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} @@ -211,7 +212,6 @@ , iInstanceId ) where -import Network.AWS.Error import Network.AWS.Prelude import Network.AWS.Signing import qualified GHC.Exts@@ -223,18 +223,44 @@ type Sg ELB = V4 type Er ELB = RESTError - service = Service- { _svcAbbrev = "ELB"- , _svcPrefix = "elasticloadbalancing"- , _svcVersion = "2012-06-01"- , _svcTargetPrefix = Nothing- , _svcJSONVersion = Nothing- }+ service = service'+ where+ service' :: Service ELB+ service' = Service+ { _svcAbbrev = "ELB"+ , _svcPrefix = "elasticloadbalancing"+ , _svcVersion = "2012-06-01"+ , _svcTargetPrefix = Nothing+ , _svcJSONVersion = Nothing+ , _svcHandle = handle+ , _svcRetry = retry+ } - handle = restError statusSuccess+ handle :: Status+ -> Maybe (LazyByteString -> ServiceError RESTError)+ handle = restError statusSuccess service' + retry :: Retry ELB+ 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://elasticloadbalancing.amazonaws.com/doc/2012-06-01/"+{-# INLINE ns #-} data SourceSecurityGroup = SourceSecurityGroup { _ssgGroupName :: Maybe Text