amazonka-lambda 0.0.1 → 0.0.2
raw patch · 15 files changed
+231/−227 lines, 15 filesdep ~amazonka-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core
API changes (from Hackage documentation)
Files
- README.md +11/−1
- amazonka-lambda.cabal +13/−14
- gen/Network/AWS/Lambda.hs +11/−11
- gen/Network/AWS/Lambda/AddEventSource.hs +37/−39
- gen/Network/AWS/Lambda/DeleteFunction.hs +3/−2
- gen/Network/AWS/Lambda/GetEventSource.hs +15/−18
- gen/Network/AWS/Lambda/GetFunction.hs +7/−6
- gen/Network/AWS/Lambda/GetFunctionConfiguration.hs +14/−14
- gen/Network/AWS/Lambda/InvokeAsync.hs +3/−3
- gen/Network/AWS/Lambda/ListEventSources.hs +9/−9
- gen/Network/AWS/Lambda/ListFunctions.hs +5/−6
- gen/Network/AWS/Lambda/RemoveEventSource.hs +4/−3
- gen/Network/AWS/Lambda/Types.hs +32/−30
- gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs +30/−31
- gen/Network/AWS/Lambda/UploadFunction.hs +37/−40
README.md view
@@ -8,7 +8,17 @@ ## Description -AWS Lambda is a compute service that runs your code in response to events and automatically manages the compute resources for you, making it easy to build applications that respond quickly to new information. AWS Lambda starts running your code within milliseconds of an event such as an image upload, in-app activity, website click, or output from a connected device. You can also use AWS Lambda to create new back-end services where compute resources are automatically triggered based on custom requests. With AWS Lambda you pay only for the requests served and the compute time required to run your code. Billing is metered in increments of 100 milliseconds, making it cost-effective and easy to scale automatically from a few requests per day to thousands per second.+ AWS Lambda is a compute service that runs your code in response to events and+ automatically manages the compute resources for you, making it easy to build+ applications that respond quickly to new information. AWS Lambda starts+ running your code within milliseconds of an event such as an image upload,+ in-app activity, website click, or output from a connected device. You can+ also use AWS Lambda to create new back-end services where compute resources+ are automatically triggered based on custom requests. With AWS Lambda you pay+ only for the requests served and the compute time required to run your code.+ Billing is metered in increments of 100 milliseconds, making it+ cost-effective and easy to scale automatically from a few requests per day to+ thousands per second. Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-lambda) and [AWS API Reference](http://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html).
amazonka-lambda.cabal view
@@ -1,5 +1,5 @@ name: amazonka-lambda-version: 0.0.1+version: 0.0.2 synopsis: Amazon Lambda SDK. homepage: https://github.com/brendanhay/amazonka license: OtherLicense@@ -13,18 +13,17 @@ cabal-version: >= 1.10 description:- AWS Lambda is a compute service that runs your code in response to- events and automatically manages the compute resources for you, making- it easy to build applications that respond quickly to new information.- AWS Lambda starts running your code within milliseconds of an event- such as an image upload, in-app activity, website click, or output from- a connected device. You can also use AWS Lambda to create new back-end- services where compute resources are automatically triggered based on- custom requests. With AWS Lambda you pay only for the requests served- and the compute time required to run your code. Billing is metered in- increments of 100 milliseconds, making it cost-effective and easy to- scale automatically from a few requests per day to thousands per- second.+ AWS Lambda is a compute service that runs your code in response to events and+ automatically manages the compute resources for you, making it easy to build+ applications that respond quickly to new information. AWS Lambda starts+ running your code within milliseconds of an event such as an image upload,+ in-app activity, website click, or output from a connected device. You can+ also use AWS Lambda to create new back-end services where compute resources+ are automatically triggered based on custom requests. With AWS Lambda you pay+ only for the requests served and the compute time required to run your code.+ Billing is metered in increments of 100 milliseconds, making it+ cost-effective and easy to scale automatically from a few requests per day to+ thousands per second. . /See:/ <http://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html AWS API Reference> .@@ -59,5 +58,5 @@ other-modules: build-depends:- amazonka-core == 0.0.1.*+ amazonka-core == 0.0.2.* , base >= 4.7 && < 5
gen/Network/AWS/Lambda.hs view
@@ -8,17 +8,17 @@ -- Stability : experimental -- Portability : non-portable (GHC extensions) --- | AWS Lambda is a compute service that runs your code in response to events--- and automatically manages the compute resources for you, making it easy to--- build applications that respond quickly to new information. AWS Lambda--- starts running your code within milliseconds of an event such as an image--- upload, in-app activity, website click, or output from a connected device.--- You can also use AWS Lambda to create new back-end services where compute--- resources are automatically triggered based on custom requests. With AWS--- Lambda you pay only for the requests served and the compute time required--- to run your code. Billing is metered in increments of 100 milliseconds,--- making it cost-effective and easy to scale automatically from a few--- requests per day to thousands per second.+-- | AWS Lambda is a compute service that runs your code in response to events and+-- automatically manages the compute resources for you, making it easy to build+-- applications that respond quickly to new information. AWS Lambda starts+-- running your code within milliseconds of an event such as an image upload,+-- in-app activity, website click, or output from a connected device. You can+-- also use AWS Lambda to create new back-end services where compute resources+-- are automatically triggered based on custom requests. With AWS Lambda you pay+-- only for the requests served and the compute time required to run your code.+-- Billing is metered in increments of 100 milliseconds, making it+-- cost-effective and easy to scale automatically from a few requests per day to+-- thousands per second. module Network.AWS.Lambda ( module Network.AWS.Lambda.AddEventSource , module Network.AWS.Lambda.DeleteFunction
gen/Network/AWS/Lambda/AddEventSource.hs view
@@ -22,16 +22,19 @@ -- | 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. This is the pull model, where AWS Lambda invokes the--- function. For more information, go to AWS LambdaL 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. This operation requires permission for the iam:PassRole--- action for the IAM role. It also requires permission for the--- lambda:AddEventSource action.+-- 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.+--+-- 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.+--+-- This operation requires permission for the 'iam:PassRole' action for the IAM+-- role. It also requires permission for the 'lambda:AddEventSource' action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_AddEventSource.html> module Network.AWS.Lambda.AddEventSource (@@ -101,33 +104,31 @@ , _aesParameters = mempty } --- | The largest number of records that AWS Lambda will give to your function--- in a single event. The default is 100 records.+-- | The largest number of records that AWS Lambda will give to your function in a+-- single event. The default is 100 records. aesBatchSize :: Lens' AddEventSource (Maybe Int) aesBatchSize = lens _aesBatchSize (\s a -> s { _aesBatchSize = a }) --- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the--- event source. Any record added to this stream causes AWS Lambda to invoke--- your Lambda function. AWS Lambda POSTs the Amazon Kinesis event,--- containing records, to your Lambda function as JSON.+-- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the event+-- source. Any record added to this stream causes AWS Lambda to invoke your+-- Lambda function. AWS Lambda POSTs the Amazon Kinesis event, containing+-- records, to your Lambda function as JSON. aesEventSource :: Lens' AddEventSource Text aesEventSource = lens _aesEventSource (\s a -> s { _aesEventSource = a }) --- | The Lambda function to invoke when AWS Lambda detects an event on the--- stream.+-- | The Lambda function to invoke when AWS Lambda detects an event on the stream. aesFunctionName :: Lens' AddEventSource Text aesFunctionName = lens _aesFunctionName (\s a -> s { _aesFunctionName = a }) --- | A map (key-value pairs) defining the configuration for AWS Lambda to use--- when reading the event source. Currently, AWS Lambda supports only the--- InitialPositionInStream key. The valid values are: "TRIM_HORIZON" and--- "LATEST". The default value is "TRIM_HORIZON". For more information, go--- to ShardIteratorType in the Amazon Kinesis Service API Reference.+-- | A map (key-value pairs) defining the configuration for AWS Lambda to use when+-- reading the event source. Currently, AWS Lambda supports only the 'InitialPositionInStream' key. The valid values are: "TRIM_HORIZON" and "LATEST". The default value is+-- "TRIM_HORIZON". For more information, go to <http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType ShardIteratorType> in the Amazon+-- Kinesis Service API Reference. aesParameters :: Lens' AddEventSource (HashMap Text Text) aesParameters = lens _aesParameters (\s a -> s { _aesParameters = a }) . _Map --- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to--- read from the stream and invoke the function.+-- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to read+-- from the stream and invoke the function. aesRole :: Lens' AddEventSource Text aesRole = lens _aesRole (\s a -> s { _aesRole = a }) @@ -136,7 +137,7 @@ , _aesrEventSource :: Maybe Text , _aesrFunctionName :: Maybe Text , _aesrIsActive :: Maybe Bool- , _aesrLastModified :: Maybe RFC822+ , _aesrLastModified :: Maybe ISO8601 , _aesrParameters :: Map Text Text , _aesrRole :: Maybe Text , _aesrStatus :: Maybe Text@@ -188,35 +189,32 @@ aesrEventSource :: Lens' AddEventSourceResponse (Maybe Text) aesrEventSource = lens _aesrEventSource (\s a -> s { _aesrEventSource = a }) --- | The Lambda function to invoke when AWS Lambda detects an event on the--- stream.+-- | The Lambda function to invoke when AWS Lambda detects an event on the stream. aesrFunctionName :: Lens' AddEventSourceResponse (Maybe Text) aesrFunctionName = lens _aesrFunctionName (\s a -> s { _aesrFunctionName = a }) --- | Indicates whether the event source mapping is currently honored. Events--- are only processes if IsActive is true.+-- | Indicates whether the event source mapping is currently honored. Events are+-- only processes if IsActive is true. aesrIsActive :: Lens' AddEventSourceResponse (Maybe Bool) aesrIsActive = lens _aesrIsActive (\s a -> s { _aesrIsActive = a }) --- | The UTC time string indicating the last time the event mapping was--- updated.+-- | 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 --- | The map (key-value pairs) defining the configuration for AWS Lambda to--- use when reading the event source.+-- | The map (key-value pairs) defining the configuration for AWS Lambda to use+-- when reading the event source. aesrParameters :: Lens' AddEventSourceResponse (HashMap Text Text) aesrParameters = lens _aesrParameters (\s a -> s { _aesrParameters = a }) . _Map --- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to--- read from the stream and invoke the function.+-- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to read+-- from the stream and invoke the function. aesrRole :: Lens' AddEventSourceResponse (Maybe Text) aesrRole = lens _aesrRole (\s a -> s { _aesrRole = a }) --- | The description of the health of the event source mapping. Valid values--- are: "PENDING", "OK", and "PROBLEM:message". Initially this staus is--- "PENDING". When AWS Lambda begins processing events, it changes the--- status to "OK".+-- | The description of the health of the event source mapping. Valid values are:+-- "PENDING", "OK", and "PROBLEM:/message/". Initially this staus is "PENDING".+-- When AWS Lambda begins processing events, it changes the status to "OK". aesrStatus :: Lens' AddEventSourceResponse (Maybe Text) aesrStatus = lens _aesrStatus (\s a -> s { _aesrStatus = a })
gen/Network/AWS/Lambda/DeleteFunction.hs view
@@ -20,8 +20,9 @@ -- Stability : experimental -- Portability : non-portable (GHC extensions) --- | Deletes the specified Lambda function code and configuration. This--- operation requires permission for the lambda:DeleteFunction action.+-- | Deletes the specified Lambda function code and configuration.+--+-- This operation requires permission for the 'lambda:DeleteFunction' action. -- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunction.html> module Network.AWS.Lambda.DeleteFunction
gen/Network/AWS/Lambda/GetEventSource.hs view
@@ -20,10 +20,10 @@ -- Stability : experimental -- Portability : non-portable (GHC extensions) --- | Returns configuration information for the specified event source mapping--- (see AddEventSource). This operation requires permission for the--- lambda:GetEventSource action.+-- | Returns configuration information for the specified event source mapping (see 'AddEventSource'). --+-- This operation requires permission for the 'lambda:GetEventSource' action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_GetEventSource.html> module Network.AWS.Lambda.GetEventSource (@@ -80,7 +80,7 @@ , _gesrEventSource :: Maybe Text , _gesrFunctionName :: Maybe Text , _gesrIsActive :: Maybe Bool- , _gesrLastModified :: Maybe RFC822+ , _gesrLastModified :: Maybe ISO8601 , _gesrParameters :: Map Text Text , _gesrRole :: Maybe Text , _gesrStatus :: Maybe Text@@ -132,35 +132,32 @@ gesrEventSource :: Lens' GetEventSourceResponse (Maybe Text) gesrEventSource = lens _gesrEventSource (\s a -> s { _gesrEventSource = a }) --- | The Lambda function to invoke when AWS Lambda detects an event on the--- stream.+-- | The Lambda function to invoke when AWS Lambda detects an event on the stream. gesrFunctionName :: Lens' GetEventSourceResponse (Maybe Text) gesrFunctionName = lens _gesrFunctionName (\s a -> s { _gesrFunctionName = a }) --- | Indicates whether the event source mapping is currently honored. Events--- are only processes if IsActive is true.+-- | Indicates whether the event source mapping is currently honored. Events are+-- only processes if IsActive is true. gesrIsActive :: Lens' GetEventSourceResponse (Maybe Bool) gesrIsActive = lens _gesrIsActive (\s a -> s { _gesrIsActive = a }) --- | The UTC time string indicating the last time the event mapping was--- updated.+-- | 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 --- | The map (key-value pairs) defining the configuration for AWS Lambda to--- use when reading the event source.+-- | The map (key-value pairs) defining the configuration for AWS Lambda to use+-- when reading the event source. gesrParameters :: Lens' GetEventSourceResponse (HashMap Text Text) gesrParameters = lens _gesrParameters (\s a -> s { _gesrParameters = a }) . _Map --- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to--- read from the stream and invoke the function.+-- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to read+-- from the stream and invoke the function. gesrRole :: Lens' GetEventSourceResponse (Maybe Text) gesrRole = lens _gesrRole (\s a -> s { _gesrRole = a }) --- | The description of the health of the event source mapping. Valid values--- are: "PENDING", "OK", and "PROBLEM:message". Initially this staus is--- "PENDING". When AWS Lambda begins processing events, it changes the--- status to "OK".+-- | The description of the health of the event source mapping. Valid values are:+-- "PENDING", "OK", and "PROBLEM:/message/". Initially this staus is "PENDING".+-- When AWS Lambda begins processing events, it changes the status to "OK". gesrStatus :: Lens' GetEventSourceResponse (Maybe Text) gesrStatus = lens _gesrStatus (\s a -> s { _gesrStatus = a })
gen/Network/AWS/Lambda/GetFunction.hs view
@@ -20,12 +20,13 @@ -- Stability : experimental -- Portability : non-portable (GHC extensions) --- | Returns the configuration information of the Lambda function and a--- presigned URL link to the .zip file you uploaded with UploadFunction so you--- can download the .zip file. Note that the URL is valid for up to 10--- minutes. The configuration information is the same information you provided--- as parameters when uploading the function. This operation requires--- permission for the lambda:GetFunction action.+-- | Returns the configuration information of the Lambda function and a presigned+-- URL link to the .zip file you uploaded with 'UploadFunction' so you can+-- download the .zip file. Note that the URL is valid for up to 10 minutes. The+-- configuration information is the same information you provided as parameters+-- when uploading the function.+--+-- This operation requires permission for the 'lambda:GetFunction' action. -- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_GetFunction.html> module Network.AWS.Lambda.GetFunction
gen/Network/AWS/Lambda/GetFunctionConfiguration.hs view
@@ -21,10 +21,11 @@ -- Portability : non-portable (GHC extensions) -- | Returns the configuration information of the Lambda function. This the same--- information you provided as parameters when uploading the function by using--- UploadFunction. This operation requires permission for the--- lambda:GetFunctionConfiguration operation.+-- information you provided as parameters when uploading the function by using 'UploadFunction'. --+-- This operation requires permission for the 'lambda:GetFunctionConfiguration'+-- operation.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html> module Network.AWS.Lambda.GetFunctionConfiguration (@@ -87,7 +88,7 @@ , _gfcrFunctionARN :: Maybe Text , _gfcrFunctionName :: Maybe Text , _gfcrHandler :: Maybe Text- , _gfcrLastModified :: Maybe RFC822+ , _gfcrLastModified :: Maybe ISO8601 , _gfcrMemorySize :: Maybe Nat , _gfcrMode :: Maybe Mode , _gfcrRole :: Maybe Text@@ -143,8 +144,8 @@ gfcrCodeSize :: Lens' GetFunctionConfigurationResponse (Maybe Integer) gfcrCodeSize = lens _gfcrCodeSize (\s a -> s { _gfcrCodeSize = a }) --- | A Lambda-assigned unique identifier for the current function code and--- related configuration.+-- | A Lambda-assigned unique identifier for the current function code and related+-- configuration. gfcrConfigurationId :: Lens' GetFunctionConfigurationResponse (Maybe Text) gfcrConfigurationId = lens _gfcrConfigurationId (\s a -> s { _gfcrConfigurationId = a })@@ -169,8 +170,8 @@ gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe UTCTime) gfcrLastModified = lens _gfcrLastModified (\s a -> s { _gfcrLastModified = a }) . mapping _Time --- | The memory size, in MB, you configured for the function. Must be a--- multiple of 64 MB.+-- | The memory size, in MB, you configured for the function. Must be a multiple+-- of 64 MB. gfcrMemorySize :: Lens' GetFunctionConfigurationResponse (Maybe Natural) gfcrMemorySize = lens _gfcrMemorySize (\s a -> s { _gfcrMemorySize = a }) . mapping _Nat @@ -178,8 +179,8 @@ gfcrMode :: Lens' GetFunctionConfigurationResponse (Maybe Mode) gfcrMode = lens _gfcrMode (\s a -> s { _gfcrMode = a }) --- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when--- it executes your function to access any other Amazon Web Services (AWS)+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it+-- executes your function to access any other Amazon Web Services (AWS) -- resources. gfcrRole :: Lens' GetFunctionConfigurationResponse (Maybe Text) gfcrRole = lens _gfcrRole (\s a -> s { _gfcrRole = a })@@ -188,10 +189,9 @@ gfcrRuntime :: Lens' GetFunctionConfigurationResponse (Maybe Runtime) gfcrRuntime = lens _gfcrRuntime (\s a -> s { _gfcrRuntime = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. gfcrTimeout :: Lens' GetFunctionConfigurationResponse (Maybe Natural) gfcrTimeout = lens _gfcrTimeout (\s a -> s { _gfcrTimeout = a }) . mapping _Nat
gen/Network/AWS/Lambda/InvokeAsync.hs view
@@ -22,9 +22,9 @@ -- | Submits an invocation request to AWS Lambda. Upon receiving the request, -- Lambda executes the specified function asynchronously. To see the logs--- generated by the Lambda function execution, see the CloudWatch logs--- console. This operation requires permission for the lambda:InvokeAsync--- action.+-- generated by the Lambda function execution, see the CloudWatch logs console.+--+-- This operation requires permission for the 'lambda:InvokeAsync' action. -- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_InvokeAsync.html> module Network.AWS.Lambda.InvokeAsync
gen/Network/AWS/Lambda/ListEventSources.hs view
@@ -21,10 +21,11 @@ -- Portability : non-portable (GHC extensions) -- | 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. This operation requires--- permission for the lambda:ListEventSources action.+-- configuration information (see 'AddEventSource'). You can optionally specify+-- filters to retrieve specific event source mappings. --+-- This operation requires permission for the 'lambda:ListEventSources' action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_ListEventSources.html> module Network.AWS.Lambda.ListEventSources (@@ -88,14 +89,13 @@ lesFunctionName :: Lens' ListEventSources (Maybe Text) lesFunctionName = lens _lesFunctionName (\s a -> s { _lesFunctionName = a }) --- | Optional string. An opaque pagination token returned from a previous--- ListEventSources operation. If present, specifies to continue the list--- from where the returning call left off.+-- | Optional string. An opaque pagination token returned from a previous 'ListEventSources' operation. If present, specifies to continue the list from where the+-- returning call left off. lesMarker :: Lens' ListEventSources (Maybe Text) lesMarker = lens _lesMarker (\s a -> s { _lesMarker = a }) --- | Optional integer. Specifies the maximum number of event sources to return--- in response. This value must be greater than 0.+-- | Optional integer. Specifies the maximum number of event sources to return in+-- response. This value must be greater than 0. lesMaxItems :: Lens' ListEventSources (Maybe Natural) lesMaxItems = lens _lesMaxItems (\s a -> s { _lesMaxItems = a }) . mapping _Nat @@ -118,7 +118,7 @@ , _lesrEventSources = mempty } --- | An arrary of EventSourceConfiguration objects.+-- | An arrary of 'EventSourceConfiguration' objects. lesrEventSources :: Lens' ListEventSourcesResponse [EventSourceConfiguration] lesrEventSources = lens _lesrEventSources (\s a -> s { _lesrEventSources = a }) . _List
gen/Network/AWS/Lambda/ListFunctions.hs view
@@ -21,10 +21,11 @@ -- Portability : non-portable (GHC extensions) -- | Returns a list of your Lambda functions. For each function, the response--- includes the function configuration information. You must use GetFunction--- to retrieve the code for your function. This operation requires permission--- for the lambda:ListFunctions action.+-- includes the function configuration information. You must use 'GetFunction' to+-- retrieve the code for your function. --+-- This operation requires permission for the 'lambda:ListFunctions' action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_ListFunctions.html> module Network.AWS.Lambda.ListFunctions (@@ -69,9 +70,7 @@ , _lfMaxItems = Nothing } --- | Optional string. An opaque pagination token returned from a previous--- ListFunctions operation. If present, indicates where to continue the--- listing.+-- | Optional string. An opaque pagination token returned from a previous 'ListFunctions' operation. If present, indicates where to continue the listing. lfMarker :: Lens' ListFunctions (Maybe Text) lfMarker = lens _lfMarker (\s a -> s { _lfMarker = a })
gen/Network/AWS/Lambda/RemoveEventSource.hs view
@@ -20,9 +20,10 @@ -- Stability : experimental -- Portability : non-portable (GHC extensions) --- | Removes an event source mapping. This means AWS Lambda will no longer--- invoke the function for events in the associated source. This operation--- requires permission for the lambda:RemoveEventSource action.+-- | Removes an event source mapping. This means AWS Lambda will no longer invoke+-- the function for events in the associated source.+--+-- This operation requires permission for the 'lambda:RemoveEventSource' action. -- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_RemoveEventSource.html> module Network.AWS.Lambda.RemoveEventSource
gen/Network/AWS/Lambda/Types.hs view
@@ -100,7 +100,10 @@ instance Hashable Runtime instance FromText Runtime where- parser = match "nodejs" Nodejs+ parser = takeText >>= \case+ "nodejs" -> pure Nodejs+ e -> fail $+ "Failure parsing Runtime from " ++ show e instance ToText Runtime where toText Nodejs = "nodejs"@@ -122,7 +125,10 @@ instance Hashable Mode instance FromText Mode where- parser = match "event" Event+ parser = takeText >>= \case+ "event" -> pure Event+ e -> fail $+ "Failure parsing Mode from " ++ show e instance ToText Mode where toText Event = "event"@@ -156,8 +162,8 @@ , _fclLocation = Nothing } --- | The presigned URL you can use to download the function's .zip file that--- you previously uploaded. The URL is valid for up to 10 minutes.+-- | The presigned URL you can use to download the function's .zip file that you+-- previously uploaded. The URL is valid for up to 10 minutes. fclLocation :: Lens' FunctionCodeLocation (Maybe Text) fclLocation = lens _fclLocation (\s a -> s { _fclLocation = a }) @@ -184,7 +190,7 @@ , _fcFunctionARN :: Maybe Text , _fcFunctionName :: Maybe Text , _fcHandler :: Maybe Text- , _fcLastModified :: Maybe RFC822+ , _fcLastModified :: Maybe ISO8601 , _fcMemorySize :: Maybe Nat , _fcMode :: Maybe Mode , _fcRole :: Maybe Text@@ -240,8 +246,8 @@ fcCodeSize :: Lens' FunctionConfiguration (Maybe Integer) fcCodeSize = lens _fcCodeSize (\s a -> s { _fcCodeSize = a }) --- | A Lambda-assigned unique identifier for the current function code and--- related configuration.+-- | A Lambda-assigned unique identifier for the current function code and related+-- configuration. fcConfigurationId :: Lens' FunctionConfiguration (Maybe Text) fcConfigurationId = lens _fcConfigurationId (\s a -> s { _fcConfigurationId = a })@@ -266,8 +272,8 @@ fcLastModified :: Lens' FunctionConfiguration (Maybe UTCTime) fcLastModified = lens _fcLastModified (\s a -> s { _fcLastModified = a }) . mapping _Time --- | The memory size, in MB, you configured for the function. Must be a--- multiple of 64 MB.+-- | The memory size, in MB, you configured for the function. Must be a multiple+-- of 64 MB. fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) fcMemorySize = lens _fcMemorySize (\s a -> s { _fcMemorySize = a }) . mapping _Nat @@ -275,8 +281,8 @@ fcMode :: Lens' FunctionConfiguration (Maybe Mode) fcMode = lens _fcMode (\s a -> s { _fcMode = a }) --- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when--- it executes your function to access any other Amazon Web Services (AWS)+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it+-- executes your function to access any other Amazon Web Services (AWS) -- resources. fcRole :: Lens' FunctionConfiguration (Maybe Text) fcRole = lens _fcRole (\s a -> s { _fcRole = a })@@ -285,10 +291,9 @@ fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) fcRuntime = lens _fcRuntime (\s a -> s { _fcRuntime = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. fcTimeout :: Lens' FunctionConfiguration (Maybe Natural) fcTimeout = lens _fcTimeout (\s a -> s { _fcTimeout = a }) . mapping _Nat @@ -328,7 +333,7 @@ , _escEventSource :: Maybe Text , _escFunctionName :: Maybe Text , _escIsActive :: Maybe Bool- , _escLastModified :: Maybe RFC822+ , _escLastModified :: Maybe ISO8601 , _escParameters :: Map Text Text , _escRole :: Maybe Text , _escStatus :: Maybe Text@@ -380,35 +385,32 @@ escEventSource :: Lens' EventSourceConfiguration (Maybe Text) escEventSource = lens _escEventSource (\s a -> s { _escEventSource = a }) --- | The Lambda function to invoke when AWS Lambda detects an event on the--- stream.+-- | The Lambda function to invoke when AWS Lambda detects an event on the stream. escFunctionName :: Lens' EventSourceConfiguration (Maybe Text) escFunctionName = lens _escFunctionName (\s a -> s { _escFunctionName = a }) --- | Indicates whether the event source mapping is currently honored. Events--- are only processes if IsActive is true.+-- | Indicates whether the event source mapping is currently honored. Events are+-- only processes if IsActive is true. escIsActive :: Lens' EventSourceConfiguration (Maybe Bool) escIsActive = lens _escIsActive (\s a -> s { _escIsActive = a }) --- | The UTC time string indicating the last time the event mapping was--- updated.+-- | 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 --- | The map (key-value pairs) defining the configuration for AWS Lambda to--- use when reading the event source.+-- | The map (key-value pairs) defining the configuration for AWS Lambda to use+-- when reading the event source. escParameters :: Lens' EventSourceConfiguration (HashMap Text Text) escParameters = lens _escParameters (\s a -> s { _escParameters = a }) . _Map --- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to--- read from the stream and invoke the function.+-- | The ARN of the IAM role (invocation role) that AWS Lambda can assume to read+-- from the stream and invoke the function. escRole :: Lens' EventSourceConfiguration (Maybe Text) escRole = lens _escRole (\s a -> s { _escRole = a }) --- | The description of the health of the event source mapping. Valid values--- are: "PENDING", "OK", and "PROBLEM:message". Initially this staus is--- "PENDING". When AWS Lambda begins processing events, it changes the--- status to "OK".+-- | The description of the health of the event source mapping. Valid values are:+-- "PENDING", "OK", and "PROBLEM:/message/". Initially this staus is "PENDING".+-- When AWS Lambda begins processing events, it changes the status to "OK". escStatus :: Lens' EventSourceConfiguration (Maybe Text) escStatus = lens _escStatus (\s a -> s { _escStatus = a })
gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs view
@@ -21,11 +21,13 @@ -- Portability : non-portable (GHC extensions) -- | Updates the configuration parameters for the specified Lambda function by--- using the values provided in the request. You provide only the parameters--- you want to change. This operation must only be used on an existing Lambda--- function and cannot be used to update the function's code. This operation--- requires permission for the lambda:UpdateFunctionConfiguration action.+-- using the values provided in the request. You provide only the parameters you+-- want to change. This operation must only be used on an existing Lambda+-- function and cannot be used to update the function's code. --+-- This operation requires permission for the 'lambda:UpdateFunctionConfiguration'+-- action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionConfiguration.html> module Network.AWS.Lambda.UpdateFunctionConfiguration (@@ -101,8 +103,8 @@ , _ufcMemorySize = Nothing } --- | A short user-defined function description. Lambda does not use this--- value. Assign a meaningful description as you see fit.+-- | A short user-defined function description. Lambda does not use this value.+-- Assign a meaningful description as you see fit. ufcDescription :: Lens' UpdateFunctionConfiguration (Maybe Text) ufcDescription = lens _ufcDescription (\s a -> s { _ufcDescription = a }) @@ -110,29 +112,27 @@ ufcFunctionName :: Lens' UpdateFunctionConfiguration Text ufcFunctionName = lens _ufcFunctionName (\s a -> s { _ufcFunctionName = a }) --- | The function that Lambda calls to begin executing your function. For--- Node.js, it is the module-name.export value in your function.+-- | The function that Lambda calls to begin executing your function. For Node.js,+-- it is the /module-name.export/ value in your function. ufcHandler :: Lens' UpdateFunctionConfiguration (Maybe Text) ufcHandler = lens _ufcHandler (\s a -> s { _ufcHandler = a }) --- | The amount of memory, in MB, your Lambda function is given. Lambda uses--- this memory size to infer the amount of CPU allocated to your function.--- Your function use-case determines your CPU and memory requirements. For--- example, a database operation might need less memory compared to an image--- processing function. The default value is 128 MB. The value must be a--- multiple of 64 MB.+-- | The amount of memory, in MB, your Lambda function is given. Lambda uses this+-- memory size to infer the amount of CPU allocated to your function. Your+-- function use-case determines your CPU and memory requirements. For example, a+-- database operation might need less memory compared to an image processing+-- function. The default value is 128 MB. The value must be a multiple of 64 MB. ufcMemorySize :: Lens' UpdateFunctionConfiguration (Maybe Natural) ufcMemorySize = lens _ufcMemorySize (\s a -> s { _ufcMemorySize = a }) . mapping _Nat --- | The Amazon Resource Name (ARN) of the IAM role that Lambda will assume--- when it executes your function.+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when+-- it executes your function. ufcRole :: Lens' UpdateFunctionConfiguration (Maybe Text) ufcRole = lens _ufcRole (\s a -> s { _ufcRole = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. ufcTimeout :: Lens' UpdateFunctionConfiguration (Maybe Natural) ufcTimeout = lens _ufcTimeout (\s a -> s { _ufcTimeout = a }) . mapping _Nat @@ -143,7 +143,7 @@ , _ufcrFunctionARN :: Maybe Text , _ufcrFunctionName :: Maybe Text , _ufcrHandler :: Maybe Text- , _ufcrLastModified :: Maybe RFC822+ , _ufcrLastModified :: Maybe ISO8601 , _ufcrMemorySize :: Maybe Nat , _ufcrMode :: Maybe Mode , _ufcrRole :: Maybe Text@@ -199,8 +199,8 @@ ufcrCodeSize :: Lens' UpdateFunctionConfigurationResponse (Maybe Integer) ufcrCodeSize = lens _ufcrCodeSize (\s a -> s { _ufcrCodeSize = a }) --- | A Lambda-assigned unique identifier for the current function code and--- related configuration.+-- | A Lambda-assigned unique identifier for the current function code and related+-- configuration. ufcrConfigurationId :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) ufcrConfigurationId = lens _ufcrConfigurationId (\s a -> s { _ufcrConfigurationId = a })@@ -225,8 +225,8 @@ ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe UTCTime) ufcrLastModified = lens _ufcrLastModified (\s a -> s { _ufcrLastModified = a }) . mapping _Time --- | The memory size, in MB, you configured for the function. Must be a--- multiple of 64 MB.+-- | The memory size, in MB, you configured for the function. Must be a multiple+-- of 64 MB. ufcrMemorySize :: Lens' UpdateFunctionConfigurationResponse (Maybe Natural) ufcrMemorySize = lens _ufcrMemorySize (\s a -> s { _ufcrMemorySize = a }) . mapping _Nat @@ -234,8 +234,8 @@ ufcrMode :: Lens' UpdateFunctionConfigurationResponse (Maybe Mode) ufcrMode = lens _ufcrMode (\s a -> s { _ufcrMode = a }) --- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when--- it executes your function to access any other Amazon Web Services (AWS)+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it+-- executes your function to access any other Amazon Web Services (AWS) -- resources. ufcrRole :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) ufcrRole = lens _ufcrRole (\s a -> s { _ufcrRole = a })@@ -244,10 +244,9 @@ ufcrRuntime :: Lens' UpdateFunctionConfigurationResponse (Maybe Runtime) ufcrRuntime = lens _ufcrRuntime (\s a -> s { _ufcrRuntime = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. ufcrTimeout :: Lens' UpdateFunctionConfigurationResponse (Maybe Natural) ufcrTimeout = lens _ufcrTimeout (\s a -> s { _ufcrTimeout = a }) . mapping _Nat
gen/Network/AWS/Lambda/UploadFunction.hs view
@@ -22,11 +22,12 @@ -- | Creates a new Lambda function or updates an existing function. The function -- metadata is created from the request parameters, and the code for the--- function is provided by a .zip file in the request body. If the function--- name already exists, the existing Lambda function is updated with the new--- code and metadata. This operation requires permission for the--- lambda:UploadFunction action.+-- function is provided by a .zip file in the request body. If the function name+-- already exists, the existing Lambda function is updated with the new code and+-- metadata. --+-- This operation requires permission for the 'lambda:UploadFunction' action.+-- -- <http://docs.aws.amazon.com/lambda/latest/dg/API_UploadFunction.html> module Network.AWS.Lambda.UploadFunction (@@ -122,35 +123,33 @@ , _ufMemorySize = Nothing } --- | A short, user-defined function description. Lambda does not use this--- value. Assign a meaningful description as you see fit.+-- | A short, user-defined function description. Lambda does not use this value.+-- Assign a meaningful description as you see fit. ufDescription :: Lens' UploadFunction (Maybe Text) ufDescription = lens _ufDescription (\s a -> s { _ufDescription = a }) --- | The name you want to assign to the function you are uploading. The--- function names appear in the console and are returned in the--- ListFunctions API. Function names are used to specify functions to other--- AWS Lambda APIs, such as InvokeAsync.+-- | The name you want to assign to the function you are uploading. The function+-- names appear in the console and are returned in the 'ListFunctions' API.+-- Function names are used to specify functions to other AWS Lambda APIs, such+-- as 'InvokeAsync'. ufFunctionName :: Lens' UploadFunction Text ufFunctionName = lens _ufFunctionName (\s a -> s { _ufFunctionName = a }) --- | A .zip file containing your packaged source code. For more information--- about creating a .zip file, go to AWS LambdaL How it Works in the AWS--- Lambda Developer Guide.+-- | 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 _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.+-- | The function that Lambda calls to begin execution. For Node.js, it is the /module-name/./export/ value in your function. ufHandler :: Lens' UploadFunction Text ufHandler = lens _ufHandler (\s a -> s { _ufHandler = a }) --- | The amount of memory, in MB, your Lambda function is given. Lambda uses--- this memory size to infer the amount of CPU allocated to your function.--- Your function use-case determines your CPU and memory requirements. For--- example, database operation might need less memory compared to image--- processing function. The default value is 128 MB. The value must be a--- multiple of 64 MB.+-- | The amount of memory, in MB, your Lambda function is given. Lambda uses this+-- memory size to infer the amount of CPU allocated to your function. Your+-- function use-case determines your CPU and memory requirements. For example,+-- database operation might need less memory compared to image processing+-- function. The default value is 128 MB. The value must be a multiple of 64 MB. ufMemorySize :: Lens' UploadFunction (Maybe Natural) ufMemorySize = lens _ufMemorySize (\s a -> s { _ufMemorySize = a }) . mapping _Nat @@ -159,21 +158,20 @@ ufMode :: Lens' UploadFunction Mode ufMode = lens _ufMode (\s a -> s { _ufMode = a }) --- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when--- it executes your function to access any other Amazon Web Services (AWS)+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it+-- executes your function to access any other Amazon Web Services (AWS) -- resources. ufRole :: Lens' UploadFunction Text ufRole = lens _ufRole (\s a -> s { _ufRole = a }) --- | The runtime environment for the Lambda function you are uploading.--- Currently, Lambda supports only "nodejs" as the runtime.+-- | The runtime environment for the Lambda function you are uploading. Currently,+-- Lambda supports only "nodejs" as the runtime. ufRuntime :: Lens' UploadFunction Runtime ufRuntime = lens _ufRuntime (\s a -> s { _ufRuntime = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. ufTimeout :: Lens' UploadFunction (Maybe Natural) ufTimeout = lens _ufTimeout (\s a -> s { _ufTimeout = a }) . mapping _Nat @@ -184,7 +182,7 @@ , _ufrFunctionARN :: Maybe Text , _ufrFunctionName :: Maybe Text , _ufrHandler :: Maybe Text- , _ufrLastModified :: Maybe RFC822+ , _ufrLastModified :: Maybe ISO8601 , _ufrMemorySize :: Maybe Nat , _ufrMode :: Maybe Mode , _ufrRole :: Maybe Text@@ -240,8 +238,8 @@ ufrCodeSize :: Lens' UploadFunctionResponse (Maybe Integer) ufrCodeSize = lens _ufrCodeSize (\s a -> s { _ufrCodeSize = a }) --- | A Lambda-assigned unique identifier for the current function code and--- related configuration.+-- | A Lambda-assigned unique identifier for the current function code and related+-- configuration. ufrConfigurationId :: Lens' UploadFunctionResponse (Maybe Text) ufrConfigurationId = lens _ufrConfigurationId (\s a -> s { _ufrConfigurationId = a })@@ -266,8 +264,8 @@ ufrLastModified :: Lens' UploadFunctionResponse (Maybe UTCTime) ufrLastModified = lens _ufrLastModified (\s a -> s { _ufrLastModified = a }) . mapping _Time --- | The memory size, in MB, you configured for the function. Must be a--- multiple of 64 MB.+-- | The memory size, in MB, you configured for the function. Must be a multiple+-- of 64 MB. ufrMemorySize :: Lens' UploadFunctionResponse (Maybe Natural) ufrMemorySize = lens _ufrMemorySize (\s a -> s { _ufrMemorySize = a }) . mapping _Nat @@ -275,8 +273,8 @@ ufrMode :: Lens' UploadFunctionResponse (Maybe Mode) ufrMode = lens _ufrMode (\s a -> s { _ufrMode = a }) --- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when--- it executes your function to access any other Amazon Web Services (AWS)+-- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it+-- executes your function to access any other Amazon Web Services (AWS) -- resources. ufrRole :: Lens' UploadFunctionResponse (Maybe Text) ufrRole = lens _ufrRole (\s a -> s { _ufrRole = a })@@ -285,10 +283,9 @@ ufrRuntime :: Lens' UploadFunctionResponse (Maybe Runtime) ufrRuntime = lens _ufrRuntime (\s a -> s { _ufrRuntime = a }) --- | The function execution time at which Lambda should terminate the--- function. Because the execution time has cost implications, we recommend--- you set this value based on your expected execution time. The default is--- 3 seconds.+-- | The function execution time at which Lambda should terminate the function.+-- Because the execution time has cost implications, we recommend you set this+-- value based on your expected execution time. The default is 3 seconds. ufrTimeout :: Lens' UploadFunctionResponse (Maybe Natural) ufrTimeout = lens _ufrTimeout (\s a -> s { _ufrTimeout = a }) . mapping _Nat