amazonka-lambda 0.2.2 → 0.2.3
raw patch · 8 files changed
+45/−37 lines, 8 filesdep ~amazonka-corePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: amazonka-core
API changes (from Hackage documentation)
- Network.AWS.Lambda.AddEventSource: aesrLastModified :: Lens' AddEventSourceResponse (Maybe UTCTime)
+ Network.AWS.Lambda.AddEventSource: aesrLastModified :: Lens' AddEventSourceResponse (Maybe Text)
- Network.AWS.Lambda.GetEventSource: gesrLastModified :: Lens' GetEventSourceResponse (Maybe UTCTime)
+ Network.AWS.Lambda.GetEventSource: gesrLastModified :: Lens' GetEventSourceResponse (Maybe Text)
- Network.AWS.Lambda.GetFunctionConfiguration: gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe UTCTime)
+ Network.AWS.Lambda.GetFunctionConfiguration: gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe Text)
- Network.AWS.Lambda.Types: escLastModified :: Lens' EventSourceConfiguration (Maybe UTCTime)
+ Network.AWS.Lambda.Types: escLastModified :: Lens' EventSourceConfiguration (Maybe Text)
- Network.AWS.Lambda.Types: fcLastModified :: Lens' FunctionConfiguration (Maybe UTCTime)
+ Network.AWS.Lambda.Types: fcLastModified :: Lens' FunctionConfiguration (Maybe Text)
- Network.AWS.Lambda.UpdateFunctionConfiguration: ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe UTCTime)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe Text)
- Network.AWS.Lambda.UploadFunction: ufrLastModified :: Lens' UploadFunctionResponse (Maybe UTCTime)
+ Network.AWS.Lambda.UploadFunction: ufrLastModified :: Lens' UploadFunctionResponse (Maybe Text)
Files
- amazonka-lambda.cabal +2/−2
- gen/Network/AWS/Lambda/AddEventSource.hs +13/−8
- gen/Network/AWS/Lambda/GetEventSource.hs +4/−4
- gen/Network/AWS/Lambda/GetFunctionConfiguration.hs +4/−4
- gen/Network/AWS/Lambda/ListEventSources.hs +6/−3
- gen/Network/AWS/Lambda/Types.hs +8/−8
- gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs +4/−4
- gen/Network/AWS/Lambda/UploadFunction.hs +4/−4
amazonka-lambda.cabal view
@@ -1,5 +1,5 @@ name: amazonka-lambda-version: 0.2.2+version: 0.2.3 synopsis: Amazon Lambda SDK. homepage: https://github.com/brendanhay/amazonka license: OtherLicense@@ -59,5 +59,5 @@ other-modules: build-depends:- amazonka-core == 0.2.2.*+ amazonka-core == 0.2.3.* , base >= 4.7 && < 5
gen/Network/AWS/Lambda/AddEventSource.hs view
@@ -22,18 +22,23 @@ -- -- Derived from AWS service descriptions, licensed under Apache 2.0. --- | Identifies an Amazon Kinesis stream as the event source for an AWS Lambda--- function. AWS Lambda invokes the specified function when records are posted--- to the stream.+-- | Identifies a stream as an event source for an AWS Lambda function. It can be+-- either an Amazon Kinesis stream or a Amazon DynamoDB stream. AWS Lambda+-- invokes the specified function when records are posted to the stream. -- -- This is the pull model, where AWS Lambda invokes the function. For more--- information, go to <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS LambdaL How it Works> in the AWS Lambda Developer Guide.+-- information, go to <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> in the AWS Lambda Developer Guide. -- -- This association between an Amazon Kinesis stream and an AWS Lambda function -- is called the event source mapping. You provide the configuration information -- (for example, which stream to read from and which AWS Lambda function to -- invoke) for the event source mapping in the request body. --+-- Each event source, such as a Kinesis stream, can only be associated with+-- one AWS Lambda function. If you call 'AddEventSource' for an event source that+-- is already mapped to another AWS Lambda function, the existing mapping is+-- updated to call the new function instead of the old one.+-- -- This operation requires permission for the 'iam:PassRole' action for the IAM -- role. It also requires permission for the 'lambda:AddEventSource' action. --@@ -139,7 +144,7 @@ , _aesrEventSource :: Maybe Text , _aesrFunctionName :: Maybe Text , _aesrIsActive :: Maybe Bool- , _aesrLastModified :: Maybe POSIX+ , _aesrLastModified :: Maybe Text , _aesrParameters :: Map Text Text , _aesrRole :: Maybe Text , _aesrStatus :: Maybe Text@@ -158,7 +163,7 @@ -- -- * 'aesrIsActive' @::@ 'Maybe' 'Bool' ----- * 'aesrLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'aesrLastModified' @::@ 'Maybe' 'Text' -- -- * 'aesrParameters' @::@ 'HashMap' 'Text' 'Text' --@@ -201,8 +206,8 @@ aesrIsActive = lens _aesrIsActive (\s a -> s { _aesrIsActive = a }) -- | The UTC time string indicating the last time the event mapping was updated.-aesrLastModified :: Lens' AddEventSourceResponse (Maybe UTCTime)-aesrLastModified = lens _aesrLastModified (\s a -> s { _aesrLastModified = a }) . mapping _Time+aesrLastModified :: Lens' AddEventSourceResponse (Maybe Text)+aesrLastModified = lens _aesrLastModified (\s a -> s { _aesrLastModified = a }) -- | The map (key-value pairs) defining the configuration for AWS Lambda to use -- when reading the event source.
gen/Network/AWS/Lambda/GetEventSource.hs view
@@ -82,7 +82,7 @@ , _gesrEventSource :: Maybe Text , _gesrFunctionName :: Maybe Text , _gesrIsActive :: Maybe Bool- , _gesrLastModified :: Maybe POSIX+ , _gesrLastModified :: Maybe Text , _gesrParameters :: Map Text Text , _gesrRole :: Maybe Text , _gesrStatus :: Maybe Text@@ -101,7 +101,7 @@ -- -- * 'gesrIsActive' @::@ 'Maybe' 'Bool' ----- * 'gesrLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'gesrLastModified' @::@ 'Maybe' 'Text' -- -- * 'gesrParameters' @::@ 'HashMap' 'Text' 'Text' --@@ -144,8 +144,8 @@ gesrIsActive = lens _gesrIsActive (\s a -> s { _gesrIsActive = a }) -- | The UTC time string indicating the last time the event mapping was updated.-gesrLastModified :: Lens' GetEventSourceResponse (Maybe UTCTime)-gesrLastModified = lens _gesrLastModified (\s a -> s { _gesrLastModified = a }) . mapping _Time+gesrLastModified :: Lens' GetEventSourceResponse (Maybe Text)+gesrLastModified = lens _gesrLastModified (\s a -> s { _gesrLastModified = a }) -- | The map (key-value pairs) defining the configuration for AWS Lambda to use -- when reading the event source.
gen/Network/AWS/Lambda/GetFunctionConfiguration.hs view
@@ -90,7 +90,7 @@ , _gfcrFunctionARN :: Maybe Text , _gfcrFunctionName :: Maybe Text , _gfcrHandler :: Maybe Text- , _gfcrLastModified :: Maybe POSIX+ , _gfcrLastModified :: Maybe Text , _gfcrMemorySize :: Maybe Nat , _gfcrMode :: Maybe Mode , _gfcrRole :: Maybe Text@@ -114,7 +114,7 @@ -- -- * 'gfcrHandler' @::@ 'Maybe' 'Text' ----- * 'gfcrLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'gfcrLastModified' @::@ 'Maybe' 'Text' -- -- * 'gfcrMemorySize' @::@ 'Maybe' 'Natural' --@@ -169,8 +169,8 @@ gfcrHandler = lens _gfcrHandler (\s a -> s { _gfcrHandler = a }) -- | The timestamp of the last time you updated the function.-gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe UTCTime)-gfcrLastModified = lens _gfcrLastModified (\s a -> s { _gfcrLastModified = a }) . mapping _Time+gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe Text)+gfcrLastModified = lens _gfcrLastModified (\s a -> s { _gfcrLastModified = a }) -- | The memory size, in MB, you configured for the function. Must be a multiple -- of 64 MB.
gen/Network/AWS/Lambda/ListEventSources.hs view
@@ -22,9 +22,12 @@ -- -- Derived from AWS service descriptions, licensed under Apache 2.0. --- | Returns a list of event source mappings. For each mapping, the API returns--- configuration information (see 'AddEventSource'). You can optionally specify--- filters to retrieve specific event source mappings.+-- | Returns a list of event source mappings you created using the 'AddEventSource'+-- (see 'AddEventSource'), where you identify a stream as event source. This list+-- does not include Amazon S3 event sources.+--+-- For each mapping, the API returns configuration information. You can+-- optionally specify filters to retrieve specific event source mappings. -- -- This operation requires permission for the 'lambda:ListEventSources' action. --
gen/Network/AWS/Lambda/Types.hs view
@@ -214,7 +214,7 @@ , _fcFunctionARN :: Maybe Text , _fcFunctionName :: Maybe Text , _fcHandler :: Maybe Text- , _fcLastModified :: Maybe POSIX+ , _fcLastModified :: Maybe Text , _fcMemorySize :: Maybe Nat , _fcMode :: Maybe Mode , _fcRole :: Maybe Text@@ -238,7 +238,7 @@ -- -- * 'fcHandler' @::@ 'Maybe' 'Text' ----- * 'fcLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'fcLastModified' @::@ 'Maybe' 'Text' -- -- * 'fcMemorySize' @::@ 'Maybe' 'Natural' --@@ -293,8 +293,8 @@ fcHandler = lens _fcHandler (\s a -> s { _fcHandler = a }) -- | The timestamp of the last time you updated the function.-fcLastModified :: Lens' FunctionConfiguration (Maybe UTCTime)-fcLastModified = lens _fcLastModified (\s a -> s { _fcLastModified = a }) . mapping _Time+fcLastModified :: Lens' FunctionConfiguration (Maybe Text)+fcLastModified = lens _fcLastModified (\s a -> s { _fcLastModified = a }) -- | The memory size, in MB, you configured for the function. Must be a multiple -- of 64 MB.@@ -357,7 +357,7 @@ , _escEventSource :: Maybe Text , _escFunctionName :: Maybe Text , _escIsActive :: Maybe Bool- , _escLastModified :: Maybe POSIX+ , _escLastModified :: Maybe Text , _escParameters :: Map Text Text , _escRole :: Maybe Text , _escStatus :: Maybe Text@@ -376,7 +376,7 @@ -- -- * 'escIsActive' @::@ 'Maybe' 'Bool' ----- * 'escLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'escLastModified' @::@ 'Maybe' 'Text' -- -- * 'escParameters' @::@ 'HashMap' 'Text' 'Text' --@@ -419,8 +419,8 @@ escIsActive = lens _escIsActive (\s a -> s { _escIsActive = a }) -- | The UTC time string indicating the last time the event mapping was updated.-escLastModified :: Lens' EventSourceConfiguration (Maybe UTCTime)-escLastModified = lens _escLastModified (\s a -> s { _escLastModified = a }) . mapping _Time+escLastModified :: Lens' EventSourceConfiguration (Maybe Text)+escLastModified = lens _escLastModified (\s a -> s { _escLastModified = a }) -- | The map (key-value pairs) defining the configuration for AWS Lambda to use -- when reading the event source.
gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs view
@@ -145,7 +145,7 @@ , _ufcrFunctionARN :: Maybe Text , _ufcrFunctionName :: Maybe Text , _ufcrHandler :: Maybe Text- , _ufcrLastModified :: Maybe POSIX+ , _ufcrLastModified :: Maybe Text , _ufcrMemorySize :: Maybe Nat , _ufcrMode :: Maybe Mode , _ufcrRole :: Maybe Text@@ -169,7 +169,7 @@ -- -- * 'ufcrHandler' @::@ 'Maybe' 'Text' ----- * 'ufcrLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'ufcrLastModified' @::@ 'Maybe' 'Text' -- -- * 'ufcrMemorySize' @::@ 'Maybe' 'Natural' --@@ -224,8 +224,8 @@ ufcrHandler = lens _ufcrHandler (\s a -> s { _ufcrHandler = a }) -- | The timestamp of the last time you updated the function.-ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe UTCTime)-ufcrLastModified = lens _ufcrLastModified (\s a -> s { _ufcrLastModified = a }) . mapping _Time+ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe Text)+ufcrLastModified = lens _ufcrLastModified (\s a -> s { _ufcrLastModified = a }) -- | The memory size, in MB, you configured for the function. Must be a multiple -- of 64 MB.
gen/Network/AWS/Lambda/UploadFunction.hs view
@@ -184,7 +184,7 @@ , _ufrFunctionARN :: Maybe Text , _ufrFunctionName :: Maybe Text , _ufrHandler :: Maybe Text- , _ufrLastModified :: Maybe POSIX+ , _ufrLastModified :: Maybe Text , _ufrMemorySize :: Maybe Nat , _ufrMode :: Maybe Mode , _ufrRole :: Maybe Text@@ -208,7 +208,7 @@ -- -- * 'ufrHandler' @::@ 'Maybe' 'Text' ----- * 'ufrLastModified' @::@ 'Maybe' 'UTCTime'+-- * 'ufrLastModified' @::@ 'Maybe' 'Text' -- -- * 'ufrMemorySize' @::@ 'Maybe' 'Natural' --@@ -263,8 +263,8 @@ ufrHandler = lens _ufrHandler (\s a -> s { _ufrHandler = a }) -- | The timestamp of the last time you updated the function.-ufrLastModified :: Lens' UploadFunctionResponse (Maybe UTCTime)-ufrLastModified = lens _ufrLastModified (\s a -> s { _ufrLastModified = a }) . mapping _Time+ufrLastModified :: Lens' UploadFunctionResponse (Maybe Text)+ufrLastModified = lens _ufrLastModified (\s a -> s { _ufrLastModified = a }) -- | The memory size, in MB, you configured for the function. Must be a multiple -- of 64 MB.