packages feed

amazonka-lambda 0.2.3 → 0.3.0

raw patch · 3 files changed

+18/−22 lines, 3 filesdep ~amazonka-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-core

API changes (from Hackage documentation)

- Network.AWS.Lambda.InvokeAsync: instance Eq InvokeAsync
- Network.AWS.Lambda.InvokeAsync: instance Read InvokeAsync
- Network.AWS.Lambda.InvokeAsync: instance ToJSON InvokeAsync
- Network.AWS.Lambda.UploadFunction: instance Eq UploadFunction
- Network.AWS.Lambda.UploadFunction: instance Read UploadFunction
- Network.AWS.Lambda.UploadFunction: instance ToJSON UploadFunction
+ Network.AWS.Lambda.InvokeAsync: instance ToBody InvokeAsync
+ Network.AWS.Lambda.UploadFunction: instance ToBody UploadFunction
- Network.AWS.Lambda.InvokeAsync: iaInvokeArgs :: Lens' InvokeAsync Base64
+ Network.AWS.Lambda.InvokeAsync: iaInvokeArgs :: Lens' InvokeAsync RqBody
- Network.AWS.Lambda.InvokeAsync: invokeAsync :: Text -> Base64 -> InvokeAsync
+ Network.AWS.Lambda.InvokeAsync: invokeAsync :: Text -> RqBody -> InvokeAsync
- Network.AWS.Lambda.UploadFunction: ufFunctionZip :: Lens' UploadFunction Base64
+ Network.AWS.Lambda.UploadFunction: ufFunctionZip :: Lens' UploadFunction RqBody
- Network.AWS.Lambda.UploadFunction: uploadFunction :: Text -> Base64 -> Runtime -> Text -> Text -> Mode -> UploadFunction
+ Network.AWS.Lambda.UploadFunction: uploadFunction :: Text -> RqBody -> Runtime -> Text -> Text -> Mode -> UploadFunction

Files

amazonka-lambda.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-lambda-version:               0.2.3+version:               0.3.0 synopsis:              Amazon Lambda SDK. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense@@ -59,5 +59,5 @@     other-modules:      build-depends:-          amazonka-core == 0.2.3.*+          amazonka-core == 0.3.0.*         , base          >= 4.7     && < 5
gen/Network/AWS/Lambda/InvokeAsync.hs view
@@ -54,8 +54,8 @@  data InvokeAsync = InvokeAsync     { _iaFunctionName :: Text-    , _iaInvokeArgs   :: Base64-    } deriving (Eq, Read, Show)+    , _iaInvokeArgs   :: RqBody+    } deriving (Show)  -- | 'InvokeAsync' constructor. --@@ -63,10 +63,10 @@ -- -- * 'iaFunctionName' @::@ 'Text' ----- * 'iaInvokeArgs' @::@ 'Base64'+-- * 'iaInvokeArgs' @::@ 'RqBody' -- invokeAsync :: Text -- ^ 'iaFunctionName'-            -> Base64 -- ^ 'iaInvokeArgs'+            -> RqBody -- ^ 'iaInvokeArgs'             -> InvokeAsync invokeAsync p1 p2 = InvokeAsync     { _iaFunctionName = p1@@ -78,7 +78,7 @@ iaFunctionName = lens _iaFunctionName (\s a -> s { _iaFunctionName = a })  -- | JSON that you want to provide to your Lambda function as input.-iaInvokeArgs :: Lens' InvokeAsync Base64+iaInvokeArgs :: Lens' InvokeAsync RqBody iaInvokeArgs = lens _iaInvokeArgs (\s a -> s { _iaInvokeArgs = a })  newtype InvokeAsyncResponse = InvokeAsyncResponse@@ -113,16 +113,14 @@  instance ToHeaders InvokeAsync -instance ToJSON InvokeAsync where-    toJSON InvokeAsync{..} = object-        [ "InvokeArgs" .= _iaInvokeArgs-        ]+instance ToBody InvokeAsync where+    toBody = toBody . _iaInvokeArgs  instance AWSRequest InvokeAsync where     type Sv InvokeAsync = Lambda     type Rs InvokeAsync = InvokeAsyncResponse -    request  = post+    request  = stream POST     response = jsonResponse  instance FromJSON InvokeAsyncResponse where
gen/Network/AWS/Lambda/UploadFunction.hs view
@@ -75,14 +75,14 @@ data UploadFunction = UploadFunction     { _ufDescription  :: Maybe Text     , _ufFunctionName :: Text-    , _ufFunctionZip  :: Base64+    , _ufFunctionZip  :: RqBody     , _ufHandler      :: Text     , _ufMemorySize   :: Maybe Nat     , _ufMode         :: Mode     , _ufRole         :: Text     , _ufRuntime      :: Runtime     , _ufTimeout      :: Maybe Nat-    } deriving (Eq, Read, Show)+    } deriving (Show)  -- | 'UploadFunction' constructor. --@@ -92,7 +92,7 @@ -- -- * 'ufFunctionName' @::@ 'Text' ----- * 'ufFunctionZip' @::@ 'Base64'+-- * 'ufFunctionZip' @::@ 'RqBody' -- -- * 'ufHandler' @::@ 'Text' --@@ -107,7 +107,7 @@ -- * 'ufTimeout' @::@ 'Maybe' 'Natural' -- uploadFunction :: Text -- ^ 'ufFunctionName'-               -> Base64 -- ^ 'ufFunctionZip'+               -> RqBody -- ^ 'ufFunctionZip'                -> Runtime -- ^ 'ufRuntime'                -> Text -- ^ 'ufRole'                -> Text -- ^ 'ufHandler'@@ -140,7 +140,7 @@ -- | A .zip file containing your packaged source code. For more information about -- creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events.html AWS LambdaL How it Works> in the AWS Lambda -- Developer Guide.-ufFunctionZip :: Lens' UploadFunction Base64+ufFunctionZip :: Lens' UploadFunction RqBody ufFunctionZip = lens _ufFunctionZip (\s a -> s { _ufFunctionZip = a })  -- | The function that Lambda calls to begin execution. For Node.js, it is the /module-name/./export/ value in your function.@@ -310,16 +310,14 @@  instance ToHeaders UploadFunction -instance ToJSON UploadFunction where-    toJSON UploadFunction{..} = object-        [ "FunctionZip" .= _ufFunctionZip-        ]+instance ToBody UploadFunction where+    toBody = toBody . _ufFunctionZip  instance AWSRequest UploadFunction where     type Sv UploadFunction = Lambda     type Rs UploadFunction = UploadFunctionResponse -    request  = put+    request  = stream PUT     response = jsonResponse  instance FromJSON UploadFunctionResponse where