packages feed

amazonka-lambda 1.4.4 → 1.4.5

raw patch · 33 files changed

+1134/−415 lines, 33 filesdep ~amazonka-coredep ~amazonka-lambdadep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-core, amazonka-lambda, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.Lambda.AddPermission: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.AddPermission.AddPermission
- Network.AWS.Lambda.CreateAlias: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.CreateAlias.CreateAlias
- Network.AWS.Lambda.CreateEventSourceMapping: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.CreateEventSourceMapping.CreateEventSourceMapping
- Network.AWS.Lambda.CreateFunction: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.CreateFunction.CreateFunction
- Network.AWS.Lambda.PublishVersion: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.PublishVersion.PublishVersion
- Network.AWS.Lambda.UpdateAlias: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.UpdateAlias.UpdateAlias
- Network.AWS.Lambda.UpdateEventSourceMapping: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.UpdateEventSourceMapping.UpdateEventSourceMapping
- Network.AWS.Lambda.UpdateFunctionCode: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.UpdateFunctionCode.UpdateFunctionCode
- Network.AWS.Lambda.UpdateFunctionConfiguration: instance Data.Aeson.Types.Class.ToJSON Network.AWS.Lambda.UpdateFunctionConfiguration.UpdateFunctionConfiguration
+ Network.AWS.Lambda: AtTimestamp :: EventSourcePosition
+ Network.AWS.Lambda: DOTNETCORE1_0 :: Runtime
+ Network.AWS.Lambda: NODEJS4_3Edge :: Runtime
+ Network.AWS.Lambda: _KMSAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda: _KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda: _KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda: _KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda: accountLimit :: AccountLimit
+ Network.AWS.Lambda: accountUsage :: AccountUsage
+ Network.AWS.Lambda: alCodeSizeUnzipped :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda: alCodeSizeZipped :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda: alConcurrentExecutions :: Lens' AccountLimit (Maybe Int)
+ Network.AWS.Lambda: alTotalCodeSize :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda: auFunctionCount :: Lens' AccountUsage (Maybe Integer)
+ Network.AWS.Lambda: auTotalCodeSize :: Lens' AccountUsage (Maybe Integer)
+ Network.AWS.Lambda: data AccountLimit
+ Network.AWS.Lambda: data AccountUsage
+ Network.AWS.Lambda: data DeadLetterConfig
+ Network.AWS.Lambda: data Environment
+ Network.AWS.Lambda: data EnvironmentError
+ Network.AWS.Lambda: data EnvironmentResponse
+ Network.AWS.Lambda: deadLetterConfig :: DeadLetterConfig
+ Network.AWS.Lambda: dlcTargetARN :: Lens' DeadLetterConfig (Maybe Text)
+ Network.AWS.Lambda: eVariables :: Lens' Environment (Maybe (HashMap Text Text))
+ Network.AWS.Lambda: eeErrorCode :: Lens' EnvironmentError (Maybe Text)
+ Network.AWS.Lambda: eeMessage :: Lens' EnvironmentError (Maybe Text)
+ Network.AWS.Lambda: envError :: Lens' EnvironmentResponse (Maybe EnvironmentError)
+ Network.AWS.Lambda: envVariables :: Lens' EnvironmentResponse (Maybe (HashMap Text Text))
+ Network.AWS.Lambda: environment :: Environment
+ Network.AWS.Lambda: environmentError :: EnvironmentError
+ Network.AWS.Lambda: environmentResponse :: EnvironmentResponse
+ Network.AWS.Lambda: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.AddPermission: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.AddPermission.AddPermission
+ Network.AWS.Lambda.CreateAlias: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.CreateAlias.CreateAlias
+ Network.AWS.Lambda.CreateEventSourceMapping: cesmStartingPositionTimestamp :: Lens' CreateEventSourceMapping (Maybe UTCTime)
+ Network.AWS.Lambda.CreateEventSourceMapping: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.CreateEventSourceMapping.CreateEventSourceMapping
+ Network.AWS.Lambda.CreateFunction: cfDeadLetterConfig :: Lens' CreateFunction (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.CreateFunction: cfEnvironment :: Lens' CreateFunction (Maybe Environment)
+ Network.AWS.Lambda.CreateFunction: cfKMSKeyARN :: Lens' CreateFunction (Maybe Text)
+ Network.AWS.Lambda.CreateFunction: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.CreateFunction: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.CreateFunction: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.CreateFunction: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.CreateFunction.CreateFunction
+ Network.AWS.Lambda.GetAccountSettings: data GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: data GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: gasrsAccountLimit :: Lens' GetAccountSettingsResponse (Maybe AccountLimit)
+ Network.AWS.Lambda.GetAccountSettings: gasrsAccountUsage :: Lens' GetAccountSettingsResponse (Maybe AccountUsage)
+ Network.AWS.Lambda.GetAccountSettings: gasrsResponseStatus :: Lens' GetAccountSettingsResponse Int
+ Network.AWS.Lambda.GetAccountSettings: getAccountSettings :: GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: getAccountSettingsResponse :: Int -> GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance Control.DeepSeq.NFData Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance Control.DeepSeq.NFData Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance Data.Data.Data Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance Data.Data.Data Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance Data.Hashable.Class.Hashable Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Classes.Eq Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Classes.Eq Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Generics.Generic Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Generics.Generic Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Read.Read Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Read.Read Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Show.Show Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance GHC.Show.Show Network.AWS.Lambda.GetAccountSettings.GetAccountSettingsResponse
+ Network.AWS.Lambda.GetAccountSettings: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance Network.AWS.Data.Path.ToPath Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance Network.AWS.Data.Query.ToQuery Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetAccountSettings: instance Network.AWS.Types.AWSRequest Network.AWS.Lambda.GetAccountSettings.GetAccountSettings
+ Network.AWS.Lambda.GetFunctionConfiguration: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.GetFunctionConfiguration: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.GetFunctionConfiguration: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.PublishVersion: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.PublishVersion: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.PublishVersion: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.PublishVersion: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.PublishVersion.PublishVersion
+ Network.AWS.Lambda.Types: AtTimestamp :: EventSourcePosition
+ Network.AWS.Lambda.Types: DOTNETCORE1_0 :: Runtime
+ Network.AWS.Lambda.Types: NODEJS4_3Edge :: Runtime
+ Network.AWS.Lambda.Types: _KMSAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda.Types: _KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda.Types: _KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda.Types: _KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.Lambda.Types: accountLimit :: AccountLimit
+ Network.AWS.Lambda.Types: accountUsage :: AccountUsage
+ Network.AWS.Lambda.Types: alCodeSizeUnzipped :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda.Types: alCodeSizeZipped :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda.Types: alConcurrentExecutions :: Lens' AccountLimit (Maybe Int)
+ Network.AWS.Lambda.Types: alTotalCodeSize :: Lens' AccountLimit (Maybe Integer)
+ Network.AWS.Lambda.Types: auFunctionCount :: Lens' AccountUsage (Maybe Integer)
+ Network.AWS.Lambda.Types: auTotalCodeSize :: Lens' AccountUsage (Maybe Integer)
+ Network.AWS.Lambda.Types: data AccountLimit
+ Network.AWS.Lambda.Types: data AccountUsage
+ Network.AWS.Lambda.Types: data DeadLetterConfig
+ Network.AWS.Lambda.Types: data Environment
+ Network.AWS.Lambda.Types: data EnvironmentError
+ Network.AWS.Lambda.Types: data EnvironmentResponse
+ Network.AWS.Lambda.Types: deadLetterConfig :: DeadLetterConfig
+ Network.AWS.Lambda.Types: dlcTargetARN :: Lens' DeadLetterConfig (Maybe Text)
+ Network.AWS.Lambda.Types: eVariables :: Lens' Environment (Maybe (HashMap Text Text))
+ Network.AWS.Lambda.Types: eeErrorCode :: Lens' EnvironmentError (Maybe Text)
+ Network.AWS.Lambda.Types: eeMessage :: Lens' EnvironmentError (Maybe Text)
+ Network.AWS.Lambda.Types: envError :: Lens' EnvironmentResponse (Maybe EnvironmentError)
+ Network.AWS.Lambda.Types: envVariables :: Lens' EnvironmentResponse (Maybe (HashMap Text Text))
+ Network.AWS.Lambda.Types: environment :: Environment
+ Network.AWS.Lambda.Types: environmentError :: EnvironmentError
+ Network.AWS.Lambda.Types: environmentResponse :: EnvironmentResponse
+ Network.AWS.Lambda.Types: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.Types: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.Types: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.UpdateAlias: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.UpdateAlias.UpdateAlias
+ Network.AWS.Lambda.UpdateEventSourceMapping: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.UpdateEventSourceMapping.UpdateEventSourceMapping
+ Network.AWS.Lambda.UpdateFunctionCode: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.UpdateFunctionCode: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.UpdateFunctionCode: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.UpdateFunctionCode: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.UpdateFunctionCode.UpdateFunctionCode
+ Network.AWS.Lambda.UpdateFunctionConfiguration: fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Lambda.UpdateFunctionConfiguration.UpdateFunctionConfiguration
+ Network.AWS.Lambda.UpdateFunctionConfiguration: ufcDeadLetterConfig :: Lens' UpdateFunctionConfiguration (Maybe DeadLetterConfig)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: ufcEnvironment :: Lens' UpdateFunctionConfiguration (Maybe Environment)
+ Network.AWS.Lambda.UpdateFunctionConfiguration: ufcKMSKeyARN :: Lens' UpdateFunctionConfiguration (Maybe Text)

Files

README.md view
@@ -8,28 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -AWS Lambda--__Overview__--This is the /AWS Lambda API Reference/. The AWS Lambda Developer Guide provides additional information. For the service overview, go to <http://docs.aws.amazon.com/lambda/latest/dg/welcome.html What is AWS Lambda>, and for information about how the service works, go to <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> in the /AWS Lambda Developer Guide/.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-lambda) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.Lambda](http://hackage.haskell.org/package/amazonka-lambda/docs/Network-AWS-Lambda.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-lambda.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-lambda-version:               1.4.4+version:               1.4.5 synopsis:              Amazon Lambda SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,24 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    AWS Lambda--    __Overview__--    This is the /AWS Lambda API Reference/. The AWS Lambda Developer Guide provides additional information. For the service overview, go to <http://docs.aws.amazon.com/lambda/latest/dg/welcome.html What is AWS Lambda>, and for information about how the service works, go to <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> in the /AWS Lambda Developer Guide/.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding     de/serialisation into more palatable Haskell values.     The provided lenses should be compatible with any of the major lens libraries     such as <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.Lambda" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.Lambda" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -52,6 +47,7 @@         , Network.AWS.Lambda.DeleteAlias         , Network.AWS.Lambda.DeleteEventSourceMapping         , Network.AWS.Lambda.DeleteFunction+        , Network.AWS.Lambda.GetAccountSettings         , Network.AWS.Lambda.GetAlias         , Network.AWS.Lambda.GetEventSourceMapping         , Network.AWS.Lambda.GetFunction@@ -76,7 +72,7 @@         , Network.AWS.Lambda.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-lambda-test@@ -96,9 +92,9 @@         , Test.AWS.Lambda.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-lambda == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-lambda == 1.4.5.*         , base         , bytestring         , tasty
+ fixture/GetAccountSettings.yaml view
+ fixture/GetAccountSettingsResponse.proto view
gen/Network/AWS/Lambda.hs view
@@ -11,11 +11,12 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- AWS Lambda+-- __AWS Lambda__ -- -- __Overview__ ----- This is the /AWS Lambda API Reference/. The AWS Lambda Developer Guide provides additional information. For the service overview, go to <http://docs.aws.amazon.com/lambda/latest/dg/welcome.html What is AWS Lambda>, and for information about how the service works, 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 is the /AWS Lambda API Reference/ . The AWS Lambda Developer Guide provides additional information. For the service overview, go to <http://docs.aws.amazon.com/lambda/latest/dg/welcome.html What is AWS Lambda> , and for information about how the service works, go to <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> in the /AWS Lambda Developer Guide/ .+-- module Network.AWS.Lambda     (     -- * Service Configuration@@ -24,6 +25,9 @@     -- * Errors     -- $errors +    -- ** KMSInvalidStateException+    , _KMSInvalidStateException+     -- ** EC2ThrottledException     , _EC2ThrottledException @@ -42,6 +46,9 @@     -- ** InvalidRequestContentException     , _InvalidRequestContentException +    -- ** KMSNotFoundException+    , _KMSNotFoundException+     -- ** ENILimitReachedException     , _ENILimitReachedException @@ -57,6 +64,9 @@     -- ** InvalidSecurityGroupIdException     , _InvalidSecurityGroupIdException +    -- ** KMSDisabledException+    , _KMSDisabledException+     -- ** SubnetIPAddressLimitReachedException     , _SubnetIPAddressLimitReachedException @@ -78,6 +88,9 @@     -- ** ResourceNotFoundException     , _ResourceNotFoundException +    -- ** KMSAccessDeniedException+    , _KMSAccessDeniedException+     -- * Waiters     -- $waiters @@ -132,6 +145,9 @@     -- ** UpdateAlias     , module Network.AWS.Lambda.UpdateAlias +    -- ** GetAccountSettings+    , module Network.AWS.Lambda.GetAccountSettings+     -- ** AddPermission     , module Network.AWS.Lambda.AddPermission @@ -167,6 +183,20 @@     -- ** Runtime     , Runtime (..) +    -- ** AccountLimit+    , AccountLimit+    , accountLimit+    , alConcurrentExecutions+    , alTotalCodeSize+    , alCodeSizeUnzipped+    , alCodeSizeZipped++    -- ** AccountUsage+    , AccountUsage+    , accountUsage+    , auTotalCodeSize+    , auFunctionCount+     -- ** AliasConfiguration     , AliasConfiguration     , aliasConfiguration@@ -175,6 +205,28 @@     , acAliasARN     , acDescription +    -- ** DeadLetterConfig+    , DeadLetterConfig+    , deadLetterConfig+    , dlcTargetARN++    -- ** Environment+    , Environment+    , environment+    , eVariables++    -- ** EnvironmentError+    , EnvironmentError+    , environmentError+    , eeErrorCode+    , eeMessage++    -- ** EnvironmentResponse+    , EnvironmentResponse+    , environmentResponse+    , envVariables+    , envError+     -- ** EventSourceMappingConfiguration     , EventSourceMappingConfiguration     , eventSourceMappingConfiguration@@ -207,6 +259,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -239,6 +294,7 @@ import           Network.AWS.Lambda.DeleteAlias import           Network.AWS.Lambda.DeleteEventSourceMapping import           Network.AWS.Lambda.DeleteFunction+import           Network.AWS.Lambda.GetAccountSettings import           Network.AWS.Lambda.GetAlias import           Network.AWS.Lambda.GetEventSourceMapping import           Network.AWS.Lambda.GetFunction
gen/Network/AWS/Lambda/AddPermission.hs view
@@ -20,11 +20,13 @@ -- -- Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use /push/ model. In a /push/ model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function. ----- For information about the push model, see <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works>. ----- If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the 'AddPermission' request via the 'Qualifier' parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- For information about the push model, see <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> . ----- This operation requires permission for the 'lambda:AddPermission' action.+-- If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the @AddPermission@ request via the @Qualifier@ parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:AddPermission@ action.+-- module Network.AWS.Lambda.AddPermission     (     -- * Creating a Request@@ -57,6 +59,8 @@  -- | --+--+-- -- /See:/ 'addPermission' smart constructor. data AddPermission = AddPermission'     { _apSourceAccount    :: !(Maybe Text)@@ -73,21 +77,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'apSourceAccount'+-- * 'apSourceAccount' - This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules only. The AWS account ID (without a hyphen) of the source owner. For example, if the @SourceArn@ identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the @SourceArn@ ) owned by a specific account. ----- * 'apEventSourceToken'+-- * 'apEventSourceToken' - A unique token that must be supplied by the principal invoking the function. This is currently only used for Alexa Smart Home functions. ----- * 'apSourceARN'+-- * 'apSourceARN' - This is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified source can invoke the function. /Important:/ If you add a permission for the Amazon S3 principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function from Amazon S3. ----- * 'apQualifier'+-- * 'apQualifier' - You can use this optional query parameter to describe a qualified ARN using a function version or an alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN: @arn:aws:lambda:aws-region:acct-id:function:function-name:2@  If you specify an alias name, for example @PROD@ , then the permission is valid only for requests made using the alias ARN: @arn:aws:lambda:aws-region:acct-id:function:function-name:PROD@  If the qualifier is not specified, the permission is valid only when requests is made using unqualified function ARN. @arn:aws:lambda:aws-region:acct-id:function:function-name@ ----- * 'apFunctionName'+-- * 'apFunctionName' - Name of the Lambda function whose resource policy you are updating by adding a new permission. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. ----- * 'apStatementId'+-- * 'apStatementId' - A unique statement identifier. ----- * 'apAction'+-- * 'apAction' - The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with @lambda:@ followed by the API name . For example, @lambda:CreateFunction@ . You can use wildcard (@lambda:*@ ) to grant permission for all AWS Lambda actions. ----- * 'apPrincipal'+-- * 'apPrincipal' - The principal who is getting this permission. It can be Amazon S3 service Principal (@s3.amazonaws.com@ ) if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as @sns.amazonaws.com@ . For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function. addPermission     :: Text -- ^ 'apFunctionName'     -> Text -- ^ 'apStatementId'@@ -106,7 +110,7 @@     , _apPrincipal = pPrincipal_     } --- | This parameter is used for S3 and SES only. The AWS account ID (without a hyphen) of the source owner. For example, if the 'SourceArn' identifies a bucket, then this is the bucket owner\'s account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don\'t specify the 'SourceArn') owned by a specific account.+-- | This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules only. The AWS account ID (without a hyphen) of the source owner. For example, if the @SourceArn@ identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the @SourceArn@ ) owned by a specific account. apSourceAccount :: Lens' AddPermission (Maybe Text) apSourceAccount = lens _apSourceAccount (\ s a -> s{_apSourceAccount = a}); @@ -114,29 +118,15 @@ apEventSourceToken :: Lens' AddPermission (Maybe Text) apEventSourceToken = lens _apEventSourceToken (\ s a -> s{_apEventSourceToken = a}); --- | This is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified source can invoke the function.------ If you add a permission for the Amazon S3 principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function from Amazon S3.+-- | This is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified source can invoke the function. /Important:/ If you add a permission for the Amazon S3 principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function from Amazon S3. apSourceARN :: Lens' AddPermission (Maybe Text) apSourceARN = lens _apSourceARN (\ s a -> s{_apSourceARN = a}); --- | You can use this optional query parameter to describe a qualified ARN using a function version or an alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN:------ 'arn:aws:lambda:aws-region:acct-id:function:function-name:2'------ If you specify an alias name, for example 'PROD', then the permission is valid only for requests made using the alias ARN:------ 'arn:aws:lambda:aws-region:acct-id:function:function-name:PROD'------ If the qualifier is not specified, the permission is valid only when requests is made using unqualified function ARN.------ 'arn:aws:lambda:aws-region:acct-id:function:function-name'+-- | You can use this optional query parameter to describe a qualified ARN using a function version or an alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN: @arn:aws:lambda:aws-region:acct-id:function:function-name:2@  If you specify an alias name, for example @PROD@ , then the permission is valid only for requests made using the alias ARN: @arn:aws:lambda:aws-region:acct-id:function:function-name:PROD@  If the qualifier is not specified, the permission is valid only when requests is made using unqualified function ARN. @arn:aws:lambda:aws-region:acct-id:function:function-name@ apQualifier :: Lens' AddPermission (Maybe Text) apQualifier = lens _apQualifier (\ s a -> s{_apQualifier = a}); --- | Name of the Lambda function whose resource policy you are updating by adding a new permission.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | Name of the Lambda function whose resource policy you are updating by adding a new permission. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. apFunctionName :: Lens' AddPermission Text apFunctionName = lens _apFunctionName (\ s a -> s{_apFunctionName = a}); @@ -144,11 +134,11 @@ apStatementId :: Lens' AddPermission Text apStatementId = lens _apStatementId (\ s a -> s{_apStatementId = a}); --- | The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with 'lambda:' followed by the API name . For example, 'lambda:CreateFunction'. You can use wildcard ('lambda:*') to grant permission for all AWS Lambda actions.+-- | The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with @lambda:@ followed by the API name . For example, @lambda:CreateFunction@ . You can use wildcard (@lambda:*@ ) to grant permission for all AWS Lambda actions. apAction :: Lens' AddPermission Text apAction = lens _apAction (\ s a -> s{_apAction = a}); --- | The principal who is getting this permission. It can be Amazon S3 service Principal ('s3.amazonaws.com') if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as 'sns.amazonaws.com'. For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function.+-- | The principal who is getting this permission. It can be Amazon S3 service Principal (@s3.amazonaws.com@ ) if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as @sns.amazonaws.com@ . For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function. apPrincipal :: Lens' AddPermission Text apPrincipal = lens _apPrincipal (\ s a -> s{_apPrincipal = a}); @@ -191,6 +181,8 @@  -- | --+--+-- -- /See:/ 'addPermissionResponse' smart constructor. data AddPermissionResponse = AddPermissionResponse'     { _aprsStatement      :: !(Maybe Text)@@ -201,9 +193,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'aprsStatement'+-- * 'aprsStatement' - The permission statement you specified in the request. The response returns the same as a string using a backslash ("\") as an escape character in the JSON. ----- * 'aprsResponseStatus'+-- * 'aprsResponseStatus' - -- | The response status code. addPermissionResponse     :: Int -- ^ 'aprsResponseStatus'     -> AddPermissionResponse@@ -213,11 +205,11 @@     , _aprsResponseStatus = pResponseStatus_     } --- | The permission statement you specified in the request. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.+-- | The permission statement you specified in the request. The response returns the same as a string using a backslash ("\") as an escape character in the JSON. aprsStatement :: Lens' AddPermissionResponse (Maybe Text) aprsStatement = lens _aprsStatement (\ s a -> s{_aprsStatement = a}); --- | The response status code.+-- | -- | The response status code. aprsResponseStatus :: Lens' AddPermissionResponse Int aprsResponseStatus = lens _aprsResponseStatus (\ s a -> s{_aprsResponseStatus = a}); 
gen/Network/AWS/Lambda/CreateAlias.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates an alias that points to the specified Lambda function version. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases>.+-- Creates an alias that points to the specified Lambda function version. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases> . --+-- -- Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.+-- module Network.AWS.Lambda.CreateAlias     (     -- * Creating a Request@@ -61,13 +63,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'caDescription'+-- * 'caDescription' - Description of the alias. ----- * 'caFunctionName'+-- * 'caFunctionName' - Name of the Lambda function for which you want to create an alias. ----- * 'caName'+-- * 'caName' - Name for the alias you are creating. ----- * 'caFunctionVersion'+-- * 'caFunctionVersion' - Lambda function version for which you are creating the alias. createAlias     :: Text -- ^ 'caFunctionName'     -> Text -- ^ 'caName'
gen/Network/AWS/Lambda/CreateEventSourceMapping.hs view
@@ -20,23 +20,26 @@ -- -- Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream. --+-- -- This association between a stream source and a Lambda function is called the event source mapping. ----- This event source mapping is relevant only in the AWS Lambda 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 Lambda: How it Works> in the /AWS Lambda Developer Guide/.+-- /Important:/ This event source mapping is relevant only in the AWS Lambda 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 Lambda: How it Works> in the /AWS Lambda Developer Guide/ . -- -- You provide mapping information (for example, which stream to read from and which Lambda function to invoke) in the request body. -- -- Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources. ----- If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> . ----- This operation requires permission for the 'lambda:CreateEventSourceMapping' action.+-- This operation requires permission for the @lambda:CreateEventSourceMapping@ action.+-- module Network.AWS.Lambda.CreateEventSourceMapping     (     -- * Creating a Request       createEventSourceMapping     , CreateEventSourceMapping     -- * Request Lenses+    , cesmStartingPositionTimestamp     , cesmEnabled     , cesmBatchSize     , cesmEventSourceARN@@ -66,28 +69,33 @@  -- | --+--+-- -- /See:/ 'createEventSourceMapping' smart constructor. data CreateEventSourceMapping = CreateEventSourceMapping'-    { _cesmEnabled          :: !(Maybe Bool)-    , _cesmBatchSize        :: !(Maybe Nat)-    , _cesmEventSourceARN   :: !Text-    , _cesmFunctionName     :: !Text-    , _cesmStartingPosition :: !EventSourcePosition+    { _cesmStartingPositionTimestamp :: !(Maybe POSIX)+    , _cesmEnabled                   :: !(Maybe Bool)+    , _cesmBatchSize                 :: !(Maybe Nat)+    , _cesmEventSourceARN            :: !Text+    , _cesmFunctionName              :: !Text+    , _cesmStartingPosition          :: !EventSourcePosition     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'CreateEventSourceMapping' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cesmEnabled'+-- * 'cesmStartingPositionTimestamp' - The timestamp of the data record from which to start reading. Used with <http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType shard iterator type> AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams. ----- * 'cesmBatchSize'+-- * 'cesmEnabled' - Indicates whether AWS Lambda should begin polling the event source. By default, @Enabled@ is true. ----- * 'cesmEventSourceARN'+-- * 'cesmBatchSize' - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default is 100 records. ----- * 'cesmFunctionName'+-- * 'cesmEventSourceARN' - The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the @BatchSize@ . AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON. ----- * 'cesmStartingPosition'+-- * 'cesmFunctionName' - The Lambda function to invoke when AWS Lambda detects an event on the stream. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ).  If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>  AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ).  Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+--+-- * 'cesmStartingPosition' - The position in the stream where AWS Lambda should start reading. Valid only for Kinesis streams. 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 API Reference/ . createEventSourceMapping     :: Text -- ^ 'cesmEventSourceARN'     -> Text -- ^ 'cesmFunctionName'@@ -95,14 +103,19 @@     -> CreateEventSourceMapping createEventSourceMapping pEventSourceARN_ pFunctionName_ pStartingPosition_ =     CreateEventSourceMapping'-    { _cesmEnabled = Nothing+    { _cesmStartingPositionTimestamp = Nothing+    , _cesmEnabled = Nothing     , _cesmBatchSize = Nothing     , _cesmEventSourceARN = pEventSourceARN_     , _cesmFunctionName = pFunctionName_     , _cesmStartingPosition = pStartingPosition_     } --- | Indicates whether AWS Lambda should begin polling the event source. By default, 'Enabled' is true.+-- | The timestamp of the data record from which to start reading. Used with <http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType shard iterator type> AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.+cesmStartingPositionTimestamp :: Lens' CreateEventSourceMapping (Maybe UTCTime)+cesmStartingPositionTimestamp = lens _cesmStartingPositionTimestamp (\ s a -> s{_cesmStartingPositionTimestamp = a}) . mapping _Time;++-- | Indicates whether AWS Lambda should begin polling the event source. By default, @Enabled@ is true. cesmEnabled :: Lens' CreateEventSourceMapping (Maybe Bool) cesmEnabled = lens _cesmEnabled (\ s a -> s{_cesmEnabled = a}); @@ -110,23 +123,15 @@ cesmBatchSize :: Lens' CreateEventSourceMapping (Maybe Natural) cesmBatchSize = lens _cesmBatchSize (\ s a -> s{_cesmBatchSize = a}) . mapping _Nat; --- | The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the 'BatchSize'. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.+-- | The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the @BatchSize@ . AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON. cesmEventSourceARN :: Lens' CreateEventSourceMapping Text cesmEventSourceARN = lens _cesmEventSourceARN (\ s a -> s{_cesmEventSourceARN = a}); --- | The Lambda function to invoke when AWS Lambda detects an event on the stream.------ You can specify the function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail').------ If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>------ AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, 'account-id:Thumbnail').------ Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function to invoke when AWS Lambda detects an event on the stream. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ).  If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>  AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ).  Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. cesmFunctionName :: Lens' CreateEventSourceMapping Text cesmFunctionName = lens _cesmFunctionName (\ s a -> s{_cesmFunctionName = a}); --- | The position in the stream where AWS Lambda should start reading. 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 API Reference/.+-- | The position in the stream where AWS Lambda should start reading. Valid only for Kinesis streams. 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 API Reference/ . cesmStartingPosition :: Lens' CreateEventSourceMapping EventSourcePosition cesmStartingPosition = lens _cesmStartingPosition (\ s a -> s{_cesmStartingPosition = a}); @@ -147,7 +152,9 @@         toJSON CreateEventSourceMapping'{..}           = object               (catMaybes-                 [("Enabled" .=) <$> _cesmEnabled,+                 [("StartingPositionTimestamp" .=) <$>+                    _cesmStartingPositionTimestamp,+                  ("Enabled" .=) <$> _cesmEnabled,                   ("BatchSize" .=) <$> _cesmBatchSize,                   Just ("EventSourceArn" .= _cesmEventSourceARN),                   Just ("FunctionName" .= _cesmFunctionName),
gen/Network/AWS/Lambda/CreateFunction.hs view
@@ -20,9 +20,11 @@ -- -- Creates a new Lambda 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 operation will fail. Note that the function name is case-sensitive. ----- If you are using versioning, you can also publish a version of the Lambda function you are creating using the 'Publish' parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:CreateFunction' action.+-- If you are using versioning, you can also publish a version of the Lambda function you are creating using the @Publish@ parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:CreateFunction@ action.+-- module Network.AWS.Lambda.CreateFunction     (     -- * Creating a Request@@ -30,6 +32,9 @@     , CreateFunction     -- * Request Lenses     , cfMemorySize+    , cfKMSKeyARN+    , cfEnvironment+    , cfDeadLetterConfig     , cfVPCConfig     , cfTimeout     , cfDescription@@ -47,6 +52,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -68,43 +76,54 @@  -- | --+--+-- -- /See:/ 'createFunction' smart constructor. data CreateFunction = CreateFunction'-    { _cfMemorySize   :: !(Maybe Nat)-    , _cfVPCConfig    :: !(Maybe VPCConfig)-    , _cfTimeout      :: !(Maybe Nat)-    , _cfDescription  :: !(Maybe Text)-    , _cfPublish      :: !(Maybe Bool)-    , _cfFunctionName :: !Text-    , _cfRuntime      :: !Runtime-    , _cfRole         :: !Text-    , _cfHandler      :: !Text-    , _cfCode         :: !FunctionCode+    { _cfMemorySize       :: !(Maybe Nat)+    , _cfKMSKeyARN        :: !(Maybe Text)+    , _cfEnvironment      :: !(Maybe Environment)+    , _cfDeadLetterConfig :: !(Maybe DeadLetterConfig)+    , _cfVPCConfig        :: !(Maybe VPCConfig)+    , _cfTimeout          :: !(Maybe Nat)+    , _cfDescription      :: !(Maybe Text)+    , _cfPublish          :: !(Maybe Bool)+    , _cfFunctionName     :: !Text+    , _cfRuntime          :: !Runtime+    , _cfRole             :: !Text+    , _cfHandler          :: !Text+    , _cfCode             :: !FunctionCode     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'CreateFunction' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cfMemorySize'+-- * 'cfMemorySize' - The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory 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. ----- * 'cfVPCConfig'+-- * 'cfKMSKeyARN' - The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key. ----- * 'cfTimeout'+-- * 'cfEnvironment' - Undocumented member. ----- * 'cfDescription'+-- * 'cfDeadLetterConfig' - The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. ----- * 'cfPublish'+-- * 'cfVPCConfig' - If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID. ----- * 'cfFunctionName'+-- * 'cfTimeout' - 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. ----- * 'cfRuntime'+-- * 'cfDescription' - A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit. ----- * 'cfRole'+-- * 'cfPublish' - This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation. ----- * 'cfHandler'+-- * 'cfFunctionName' - 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 'Invoke' . ----- * 'cfCode'+-- * 'cfRuntime' - The runtime environment for the Lambda function you are uploading. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs".+--+-- * 'cfRole' - 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. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> .+--+-- * 'cfHandler' - The function within your code that Lambda calls to begin execution. For Node.js, it is the /module-name/ ./export/ value in your function. For Java, it can be @package.class-name::handler@ or @package.class-name@ . For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html Lambda Function Handler (Java)> .+--+-- * 'cfCode' - The code for the Lambda function. createFunction     :: Text -- ^ 'cfFunctionName'     -> Runtime -- ^ 'cfRuntime'@@ -115,6 +134,9 @@ createFunction pFunctionName_ pRuntime_ pRole_ pHandler_ pCode_ =     CreateFunction'     { _cfMemorySize = Nothing+    , _cfKMSKeyARN = Nothing+    , _cfEnvironment = Nothing+    , _cfDeadLetterConfig = Nothing     , _cfVPCConfig = Nothing     , _cfTimeout = Nothing     , _cfDescription = Nothing@@ -130,6 +152,18 @@ cfMemorySize :: Lens' CreateFunction (Maybe Natural) cfMemorySize = lens _cfMemorySize (\ s a -> s{_cfMemorySize = a}) . mapping _Nat; +-- | The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key.+cfKMSKeyARN :: Lens' CreateFunction (Maybe Text)+cfKMSKeyARN = lens _cfKMSKeyARN (\ s a -> s{_cfKMSKeyARN = a});++-- | Undocumented member.+cfEnvironment :: Lens' CreateFunction (Maybe Environment)+cfEnvironment = lens _cfEnvironment (\ s a -> s{_cfEnvironment = a});++-- | The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.+cfDeadLetterConfig :: Lens' CreateFunction (Maybe DeadLetterConfig)+cfDeadLetterConfig = lens _cfDeadLetterConfig (\ s a -> s{_cfDeadLetterConfig = a});+ -- | If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID. cfVPCConfig :: Lens' CreateFunction (Maybe VPCConfig) cfVPCConfig = lens _cfVPCConfig (\ s a -> s{_cfVPCConfig = a});@@ -146,21 +180,19 @@ cfPublish :: Lens' CreateFunction (Maybe Bool) cfPublish = lens _cfPublish (\ s a -> s{_cfPublish = 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 < Invoke>.+-- | 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 'Invoke' . cfFunctionName :: Lens' CreateFunction Text cfFunctionName = lens _cfFunctionName (\ s a -> s{_cfFunctionName = a}); --- | The runtime environment for the Lambda function you are uploading.------ To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".+-- | The runtime environment for the Lambda function you are uploading. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs". cfRuntime :: Lens' CreateFunction Runtime cfRuntime = lens _cfRuntime (\ s a -> s{_cfRuntime = 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) resources. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works>.+-- | 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. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html AWS Lambda: How it Works> . cfRole :: Lens' CreateFunction Text cfRole = lens _cfRole (\ s a -> s{_cfRole = a}); --- | The function within your code that Lambda calls to begin execution. For Node.js, it is the /module-name/./export/ value in your function. For Java, it can be 'package.class-name::handler' or 'package.class-name'. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html Lambda Function Handler (Java)>.+-- | The function within your code that Lambda calls to begin execution. For Node.js, it is the /module-name/ ./export/ value in your function. For Java, it can be @package.class-name::handler@ or @package.class-name@ . For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html Lambda Function Handler (Java)> . cfHandler :: Lens' CreateFunction Text cfHandler = lens _cfHandler (\ s a -> s{_cfHandler = a}); @@ -185,6 +217,9 @@           = object               (catMaybes                  [("MemorySize" .=) <$> _cfMemorySize,+                  ("KMSKeyArn" .=) <$> _cfKMSKeyARN,+                  ("Environment" .=) <$> _cfEnvironment,+                  ("DeadLetterConfig" .=) <$> _cfDeadLetterConfig,                   ("VpcConfig" .=) <$> _cfVPCConfig,                   ("Timeout" .=) <$> _cfTimeout,                   ("Description" .=) <$> _cfDescription,
gen/Network/AWS/Lambda/DeleteAlias.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the specified Lambda function alias. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases>.+-- Deletes the specified Lambda function alias. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases> . --+-- -- This requires permission for the lambda:DeleteAlias action.+-- module Network.AWS.Lambda.DeleteAlias     (     -- * Creating a Request@@ -52,9 +54,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'daFunctionName'+-- * 'daFunctionName' - The Lambda function name for which the alias is created. Deleting an alias does not delete the function version to which it is pointing. ----- * 'daName'+-- * 'daName' - Name of the alias to delete. deleteAlias     :: Text -- ^ 'daFunctionName'     -> Text -- ^ 'daName'
gen/Network/AWS/Lambda/DeleteEventSourceMapping.hs view
@@ -20,7 +20,9 @@ -- -- 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:DeleteEventSourceMapping' action.+--+-- This operation requires permission for the @lambda:DeleteEventSourceMapping@ action.+-- module Network.AWS.Lambda.DeleteEventSourceMapping     (     -- * Creating a Request@@ -52,6 +54,8 @@  -- | --+--+-- -- /See:/ 'deleteEventSourceMapping' smart constructor. newtype DeleteEventSourceMapping = DeleteEventSourceMapping'     { _desmUUId :: Text@@ -61,7 +65,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'desmUUId'+-- * 'desmUUId' - The event source mapping ID. deleteEventSourceMapping     :: Text -- ^ 'desmUUId'     -> DeleteEventSourceMapping
gen/Network/AWS/Lambda/DeleteFunction.hs view
@@ -20,11 +20,13 @@ -- -- Deletes the specified Lambda function code and configuration. ----- If you are using the versioning feature and you don\'t specify a function version in your 'DeleteFunction' request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the 'Qualifier' parameter. For information about function versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. --+-- If you are using the versioning feature and you don't specify a function version in your @DeleteFunction@ request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the @Qualifier@ parameter. For information about function versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+-- -- When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly. ----- This operation requires permission for the 'lambda:DeleteFunction' action.+-- This operation requires permission for the @lambda:DeleteFunction@ action.+-- module Network.AWS.Lambda.DeleteFunction     (     -- * Creating a Request@@ -56,9 +58,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dfQualifier'+-- * 'dfQualifier' - Using this optional parameter you can specify a function version (but not the @> LATEST@ version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the @> LATEST@ , that is, you cannot specify @> LATEST@ as the value of this parameter. The @> LATEST@ version can be deleted only when you want to delete all the function versions and aliases. You can only specify a function version, not an alias name, using this parameter. You cannot delete a function version using its alias. If you don't specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases. ----- * 'dfFunctionName'+-- * 'dfFunctionName' - The Lambda function to delete. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. deleteFunction     :: Text -- ^ 'dfFunctionName'     -> DeleteFunction@@ -68,17 +70,11 @@     , _dfFunctionName = pFunctionName_     } --- | Using this optional parameter you can specify a function version (but not the '>LATEST' version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the '>LATEST', that is, you cannot specify '>LATEST' as the value of this parameter. The '>LATEST' version can be deleted only when you want to delete all the function versions and aliases.------ You can only specify a function version, not an alias name, using this parameter. You cannot delete a function version using its alias.------ If you don\'t specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases.+-- | Using this optional parameter you can specify a function version (but not the @> LATEST@ version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the @> LATEST@ , that is, you cannot specify @> LATEST@ as the value of this parameter. The @> LATEST@ version can be deleted only when you want to delete all the function versions and aliases. You can only specify a function version, not an alias name, using this parameter. You cannot delete a function version using its alias. If you don't specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases. dfQualifier :: Lens' DeleteFunction (Maybe Text) dfQualifier = lens _dfQualifier (\ s a -> s{_dfQualifier = a}); --- | The Lambda function to delete.------ You can specify the function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function to delete. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. dfFunctionName :: Lens' DeleteFunction Text dfFunctionName = lens _dfFunctionName (\ s a -> s{_dfFunctionName = a}); 
+ gen/Network/AWS/Lambda/GetAccountSettings.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.Lambda.GetAccountSettings+-- Copyright   : (c) 2013-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a customer's account settings.+--+--+-- You can use this operation to retrieve Lambda limit information such as code size and concurrency limits. For more information on limits, see <http://docs.aws.amazon.com/lambda/latest/dg/limits.html AWS Lambda Limits> . You can also retrieve resource usage statistics such as code storage usage and function count.+--+module Network.AWS.Lambda.GetAccountSettings+    (+    -- * Creating a Request+      getAccountSettings+    , GetAccountSettings++    -- * Destructuring the Response+    , getAccountSettingsResponse+    , GetAccountSettingsResponse+    -- * Response Lenses+    , gasrsAccountLimit+    , gasrsAccountUsage+    , gasrsResponseStatus+    ) where++import           Network.AWS.Lambda.Types+import           Network.AWS.Lambda.Types.Product+import           Network.AWS.Lens+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response++-- | /See:/ 'getAccountSettings' smart constructor.+data GetAccountSettings =+    GetAccountSettings'+    deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'GetAccountSettings' with the minimum fields required to make a request.+--+getAccountSettings+    :: GetAccountSettings+getAccountSettings = GetAccountSettings'++instance AWSRequest GetAccountSettings where+        type Rs GetAccountSettings =+             GetAccountSettingsResponse+        request = get lambda+        response+          = receiveJSON+              (\ s h x ->+                 GetAccountSettingsResponse' <$>+                   (x .?> "AccountLimit") <*> (x .?> "AccountUsage") <*>+                     (pure (fromEnum s)))++instance Hashable GetAccountSettings++instance NFData GetAccountSettings++instance ToHeaders GetAccountSettings where+        toHeaders = const mempty++instance ToPath GetAccountSettings where+        toPath = const "/2016-08-19/account-settings/"++instance ToQuery GetAccountSettings where+        toQuery = const mempty++-- | /See:/ 'getAccountSettingsResponse' smart constructor.+data GetAccountSettingsResponse = GetAccountSettingsResponse'+    { _gasrsAccountLimit   :: !(Maybe AccountLimit)+    , _gasrsAccountUsage   :: !(Maybe AccountUsage)+    , _gasrsResponseStatus :: !Int+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'GetAccountSettingsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gasrsAccountLimit' - Undocumented member.+--+-- * 'gasrsAccountUsage' - Undocumented member.+--+-- * 'gasrsResponseStatus' - -- | The response status code.+getAccountSettingsResponse+    :: Int -- ^ 'gasrsResponseStatus'+    -> GetAccountSettingsResponse+getAccountSettingsResponse pResponseStatus_ =+    GetAccountSettingsResponse'+    { _gasrsAccountLimit = Nothing+    , _gasrsAccountUsage = Nothing+    , _gasrsResponseStatus = pResponseStatus_+    }++-- | Undocumented member.+gasrsAccountLimit :: Lens' GetAccountSettingsResponse (Maybe AccountLimit)+gasrsAccountLimit = lens _gasrsAccountLimit (\ s a -> s{_gasrsAccountLimit = a});++-- | Undocumented member.+gasrsAccountUsage :: Lens' GetAccountSettingsResponse (Maybe AccountUsage)+gasrsAccountUsage = lens _gasrsAccountUsage (\ s a -> s{_gasrsAccountUsage = a});++-- | -- | The response status code.+gasrsResponseStatus :: Lens' GetAccountSettingsResponse Int+gasrsResponseStatus = lens _gasrsResponseStatus (\ s a -> s{_gasrsResponseStatus = a});++instance NFData GetAccountSettingsResponse
gen/Network/AWS/Lambda/GetAlias.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases>.+-- Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases> . ----- This requires permission for the 'lambda:GetAlias' action.+--+-- This requires permission for the @lambda:GetAlias@ action.+-- module Network.AWS.Lambda.GetAlias     (     -- * Creating a Request@@ -57,9 +59,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gaFunctionName'+-- * 'gaFunctionName' - Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name. ----- * 'gaName'+-- * 'gaName' - Name of the alias for which you want to retrieve information. getAlias     :: Text -- ^ 'gaFunctionName'     -> Text -- ^ 'gaName'
gen/Network/AWS/Lambda/GetEventSourceMapping.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns configuration information for the specified event source mapping (see < CreateEventSourceMapping>).+-- Returns configuration information for the specified event source mapping (see 'CreateEventSourceMapping' ). ----- This operation requires permission for the 'lambda:GetEventSourceMapping' action.+--+-- This operation requires permission for the @lambda:GetEventSourceMapping@ action.+-- module Network.AWS.Lambda.GetEventSourceMapping     (     -- * Creating a Request@@ -52,6 +54,8 @@  -- | --+--+-- -- /See:/ 'getEventSourceMapping' smart constructor. newtype GetEventSourceMapping = GetEventSourceMapping'     { _gesmUUId :: Text@@ -61,7 +65,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gesmUUId'+-- * 'gesmUUId' - The AWS Lambda assigned ID of the event source mapping. getEventSourceMapping     :: Text -- ^ 'gesmUUId'     -> GetEventSourceMapping
gen/Network/AWS/Lambda/GetFunction.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- 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 < CreateFunction> 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.+-- Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with 'CreateFunction' 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. ----- Using the optional 'Qualifier' parameter, you can specify a specific function version for which you want this information. If you don\'t specify this parameter, the API uses unqualified function ARN which return information about the '>LATEST' version of the Lambda function. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:GetFunction' action.+-- Using the optional @Qualifier@ parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the @> LATEST@ version of the Lambda function. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:GetFunction@ action.+-- module Network.AWS.Lambda.GetFunction     (     -- * Creating a Request@@ -50,6 +52,8 @@  -- | --+--+-- -- /See:/ 'getFunction' smart constructor. data GetFunction = GetFunction'     { _gfQualifier    :: !(Maybe Text)@@ -60,9 +64,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gfQualifier'+-- * 'gfQualifier' - Using this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the @> LATEST@ version of the Lambda function. ----- * 'gfFunctionName'+-- * 'gfFunctionName' - The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. getFunction     :: Text -- ^ 'gfFunctionName'     -> GetFunction@@ -72,13 +76,11 @@     , _gfFunctionName = pFunctionName_     } --- | Using this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don\'t provide this parameter, the API uses unqualified function ARN and returns information about the '>LATEST' version of the Lambda function.+-- | Using this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the @> LATEST@ version of the Lambda function. gfQualifier :: Lens' GetFunction (Maybe Text) gfQualifier = lens _gfQualifier (\ s a -> s{_gfQualifier = a}); --- | The Lambda function name.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. gfFunctionName :: Lens' GetFunction Text gfFunctionName = lens _gfFunctionName (\ s a -> s{_gfFunctionName = a}); @@ -108,8 +110,10 @@         toQuery GetFunction'{..}           = mconcat ["Qualifier" =: _gfQualifier] --- | This response contains the object for the Lambda function location (see .+-- | This response contains the object for the Lambda function location (see 'FunctionCodeLocation' . --+--+-- -- /See:/ 'getFunctionResponse' smart constructor. data GetFunctionResponse = GetFunctionResponse'     { _gfrsCode           :: !(Maybe FunctionCodeLocation)@@ -121,11 +125,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gfrsCode'+-- * 'gfrsCode' - Undocumented member. ----- * 'gfrsConfiguration'+-- * 'gfrsConfiguration' - Undocumented member. ----- * 'gfrsResponseStatus'+-- * 'gfrsResponseStatus' - -- | The response status code. getFunctionResponse     :: Int -- ^ 'gfrsResponseStatus'     -> GetFunctionResponse@@ -144,7 +148,7 @@ gfrsConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) gfrsConfiguration = lens _gfrsConfiguration (\ s a -> s{_gfrsConfiguration = a}); --- | The response status code.+-- | -- | The response status code. gfrsResponseStatus :: Lens' GetFunctionResponse Int gfrsResponseStatus = lens _gfrsResponseStatus (\ s a -> s{_gfrsResponseStatus = a}); 
gen/Network/AWS/Lambda/GetFunctionConfiguration.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- 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 < CreateFunction>.+-- Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using 'CreateFunction' . ----- If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional 'Qualifier' parameter and specifying the function version or alias that points to it. If you don\'t provide it, the API returns information about the >LATEST version of the function. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:GetFunctionConfiguration' operation.+-- If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional @Qualifier@ parameter and specifying the function version or alias that points to it. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:GetFunctionConfiguration@ operation.+-- module Network.AWS.Lambda.GetFunctionConfiguration     (     -- * Creating a Request@@ -39,6 +41,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -60,6 +65,8 @@  -- | --+--+-- -- /See:/ 'getFunctionConfiguration' smart constructor. data GetFunctionConfiguration = GetFunctionConfiguration'     { _gfcQualifier    :: !(Maybe Text)@@ -70,9 +77,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gfcQualifier'+-- * 'gfcQualifier' - Using this optional parameter you can specify a function version or an alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the @> LATEST@ function version. ----- * 'gfcFunctionName'+-- * 'gfcFunctionName' - The name of the Lambda function for which you want to retrieve the configuration information. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. getFunctionConfiguration     :: Text -- ^ 'gfcFunctionName'     -> GetFunctionConfiguration@@ -82,15 +89,11 @@     , _gfcFunctionName = pFunctionName_     } --- | Using this optional parameter you can specify a function version or an alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points.------ If you don\'t specify this parameter, the API uses unqualified function ARN, and returns information about the '>LATEST' function version.+-- | Using this optional parameter you can specify a function version or an alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the @> LATEST@ function version. gfcQualifier :: Lens' GetFunctionConfiguration (Maybe Text) gfcQualifier = lens _gfcQualifier (\ s a -> s{_gfcQualifier = a}); --- | The name of the Lambda function for which you want to retrieve the configuration information.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The name of the Lambda function for which you want to retrieve the configuration information. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. gfcFunctionName :: Lens' GetFunctionConfiguration Text gfcFunctionName = lens _gfcFunctionName (\ s a -> s{_gfcFunctionName = a}); 
gen/Network/AWS/Lambda/GetPolicy.hs view
@@ -20,11 +20,13 @@ -- -- Returns the resource policy associated with the specified Lambda function. ----- If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the 'Qualifier' parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- For information about adding permissions, see < AddPermission>.+-- If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the @Qualifier@ parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> . ----- You need permission for the 'lambda:GetPolicy action.'+-- For information about adding permissions, see 'AddPermission' .+--+-- You need permission for the @lambda:GetPolicy action.@+-- module Network.AWS.Lambda.GetPolicy     (     -- * Creating a Request@@ -51,6 +53,8 @@  -- | --+--+-- -- /See:/ 'getPolicy' smart constructor. data GetPolicy = GetPolicy'     { _gpQualifier    :: !(Maybe Text)@@ -61,9 +65,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gpQualifier'+-- * 'gpQualifier' - You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN. ----- * 'gpFunctionName'+-- * 'gpFunctionName' - Function name whose resource policy you want to retrieve. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. getPolicy     :: Text -- ^ 'gpFunctionName'     -> GetPolicy@@ -73,13 +77,11 @@     , _gpFunctionName = pFunctionName_     } --- | You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don\'t provide this parameter, the API will return permissions that apply to the unqualified function ARN.+-- | You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN. gpQualifier :: Lens' GetPolicy (Maybe Text) gpQualifier = lens _gpQualifier (\ s a -> s{_gpQualifier = a}); --- | Function name whose resource policy you want to retrieve.------ You can specify the function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | Function name whose resource policy you want to retrieve. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. gpFunctionName :: Lens' GetPolicy Text gpFunctionName = lens _gpFunctionName (\ s a -> s{_gpFunctionName = a}); @@ -111,6 +113,8 @@  -- | --+--+-- -- /See:/ 'getPolicyResponse' smart constructor. data GetPolicyResponse = GetPolicyResponse'     { _gprsPolicy         :: !(Maybe Text)@@ -121,9 +125,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gprsPolicy'+-- * 'gprsPolicy' - The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON. ----- * 'gprsResponseStatus'+-- * 'gprsResponseStatus' - -- | The response status code. getPolicyResponse     :: Int -- ^ 'gprsResponseStatus'     -> GetPolicyResponse@@ -133,11 +137,11 @@     , _gprsResponseStatus = pResponseStatus_     } --- | The resource policy associated with the specified function. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.+-- | The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON. gprsPolicy :: Lens' GetPolicyResponse (Maybe Text) gprsPolicy = lens _gprsPolicy (\ s a -> s{_gprsPolicy = a}); --- | The response status code.+-- | -- | The response status code. gprsResponseStatus :: Lens' GetPolicyResponse Int gprsResponseStatus = lens _gprsResponseStatus (\ s a -> s{_gprsResponseStatus = a}); 
gen/Network/AWS/Lambda/Invoke.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Invokes a specific Lambda function.+-- Invokes a specific Lambda function. For an example, see <http://docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually Create the Lambda Function and Test It Manually> . ----- If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the 'Qualifier' parameter in the request. If you don\'t provide the 'Qualifier' parameter, the '>LATEST' version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:InvokeFunction' action.+-- If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the @Qualifier@ parameter in the request. If you don't provide the @Qualifier@ parameter, the @> LATEST@ version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:InvokeFunction@ action.+-- module Network.AWS.Lambda.Invoke     (     -- * Creating a Request@@ -55,6 +57,8 @@  -- | --+--+-- -- /See:/ 'invoke' smart constructor. data Invoke = Invoke'     { _iInvocationType :: !(Maybe InvocationType)@@ -69,17 +73,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'iInvocationType'+-- * 'iInvocationType' - By default, the @Invoke@ API assumes @RequestResponse@ invocation type. You can optionally request asynchronous execution by specifying @Event@ as the @InvocationType@ . You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying @DryRun@ as the @InvocationType@ . This is useful in a cross-account scenario when you want to verify access to a function without running it. ----- * 'iLogType'+-- * 'iLogType' - You can set this optional parameter to @Tail@ in the request only if you specify the @InvocationType@ parameter with value @RequestResponse@ . In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the @x-amz-log-result@ header. ----- * 'iQualifier'+-- * 'iQualifier' - You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points. If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the @> LATEST@ version. ----- * 'iClientContext'+-- * 'iClientContext' - Using the @ClientContext@ you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a @ClientContext@ JSON, see <http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html PutEvents> in the /Amazon Mobile Analytics API Reference and User Guide/ . The ClientContext JSON must be base64-encoded. ----- * 'iFunctionName'+-- * 'iFunctionName' - The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. ----- * 'iPayload'+-- * 'iPayload' - JSON that you want to provide to your Lambda function as input. invoke     :: Text -- ^ 'iFunctionName'     -> HashMap Text Value -- ^ 'iPayload'@@ -94,29 +98,23 @@     , _iPayload = pPayload_     } --- | By default, the 'Invoke' API assumes 'RequestResponse' invocation type. You can optionally request asynchronous execution by specifying 'Event' as the 'InvocationType'. You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying 'DryRun' as the 'InvocationType'. This is useful in a cross-account scenario when you want to verify access to a function without running it.+-- | By default, the @Invoke@ API assumes @RequestResponse@ invocation type. You can optionally request asynchronous execution by specifying @Event@ as the @InvocationType@ . You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying @DryRun@ as the @InvocationType@ . This is useful in a cross-account scenario when you want to verify access to a function without running it. iInvocationType :: Lens' Invoke (Maybe InvocationType) iInvocationType = lens _iInvocationType (\ s a -> s{_iInvocationType = a}); --- | You can set this optional parameter to 'Tail' in the request only if you specify the 'InvocationType' parameter with value 'RequestResponse'. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the 'x-amz-log-result' header.+-- | You can set this optional parameter to @Tail@ in the request only if you specify the @InvocationType@ parameter with value @RequestResponse@ . In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the @x-amz-log-result@ header. iLogType :: Lens' Invoke (Maybe LogType) iLogType = lens _iLogType (\ s a -> s{_iLogType = a}); --- | You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.------ If you don\'t provide this parameter, then the API uses unqualified function ARN which results in invocation of the '>LATEST' version.+-- | You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points. If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the @> LATEST@ version. iQualifier :: Lens' Invoke (Maybe Text) iQualifier = lens _iQualifier (\ s a -> s{_iQualifier = a}); --- | Using the 'ClientContext' you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a 'ClientContext' JSON, see <http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html PutEvents> in the /Amazon Mobile Analytics API Reference and User Guide/.------ The ClientContext JSON must be base64-encoded.+-- | Using the @ClientContext@ you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a @ClientContext@ JSON, see <http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html PutEvents> in the /Amazon Mobile Analytics API Reference and User Guide/ . The ClientContext JSON must be base64-encoded. iClientContext :: Lens' Invoke (Maybe Text) iClientContext = lens _iClientContext (\ s a -> s{_iClientContext = a}); --- | The Lambda function name.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. iFunctionName :: Lens' Invoke Text iFunctionName = lens _iFunctionName (\ s a -> s{_iFunctionName = a}); @@ -162,6 +160,8 @@  -- | Upon success, returns an empty response. Otherwise, throws an exception. --+--+-- -- /See:/ 'invokeResponse' smart constructor. data InvokeResponse = InvokeResponse'     { _irsFunctionError :: !(Maybe Text)@@ -174,13 +174,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'irsFunctionError'+-- * 'irsFunctionError' - Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; @Handled@ or @Unhandled@ . @Handled@ errors are errors that are reported by the function while the @Unhandled@ errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an @Handled@ error, see <http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html Programming Model> . ----- * 'irsLogResult'+-- * 'irsLogResult' - It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is @RequestResponse@ and the logs were requested. ----- * 'irsPayload'+-- * 'irsPayload' - It is the JSON representation of the object returned by the Lambda function. This is present only if the invocation type is @RequestResponse@ .  In the event of a function error this field contains a message describing the error. For the @Handled@ errors the Lambda function will report this message. For @Unhandled@ errors AWS Lambda reports the message. ----- * 'irsStatusCode'+-- * 'irsStatusCode' - The HTTP status code will be in the 200 range for successful request. For the @RequestResonse@ invocation type this status code will be 200. For the @Event@ invocation type this status code will be 202. For the @DryRun@ invocation type the status code will be 204. invokeResponse     :: Int -- ^ 'irsStatusCode'     -> InvokeResponse@@ -192,21 +192,19 @@     , _irsStatusCode = pStatusCode_     } --- | Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; 'Handled' or 'Unhandled'. 'Handled' errors are errors that are reported by the function while the 'Unhandled' errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an 'Handled' error, see <http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html Programming Model>.+-- | Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; @Handled@ or @Unhandled@ . @Handled@ errors are errors that are reported by the function while the @Unhandled@ errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an @Handled@ error, see <http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html Programming Model> . irsFunctionError :: Lens' InvokeResponse (Maybe Text) irsFunctionError = lens _irsFunctionError (\ s a -> s{_irsFunctionError = a}); --- | It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is 'RequestResponse' and the logs were requested.+-- | It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is @RequestResponse@ and the logs were requested. irsLogResult :: Lens' InvokeResponse (Maybe Text) irsLogResult = lens _irsLogResult (\ s a -> s{_irsLogResult = a}); --- | It is the JSON representation of the object returned by the Lambda function. In This is present only if the invocation type is 'RequestResponse'.------ In the event of a function error this field contains a message describing the error. For the 'Handled' errors the Lambda function will report this message. For 'Unhandled' errors AWS Lambda reports the message.+-- | It is the JSON representation of the object returned by the Lambda function. This is present only if the invocation type is @RequestResponse@ .  In the event of a function error this field contains a message describing the error. For the @Handled@ errors the Lambda function will report this message. For @Unhandled@ errors AWS Lambda reports the message. irsPayload :: Lens' InvokeResponse (Maybe (HashMap Text Value)) irsPayload = lens _irsPayload (\ s a -> s{_irsPayload = a}); --- | The HTTP status code will be in the 200 range for successful request. For the 'RequestResonse' invocation type this status code will be 200. For the 'Event' invocation type this status code will be 202. For the 'DryRun' invocation type the status code will be 204.+-- | The HTTP status code will be in the 200 range for successful request. For the @RequestResonse@ invocation type this status code will be 200. For the @Event@ invocation type this status code will be 202. For the @DryRun@ invocation type the status code will be 204. irsStatusCode :: Lens' InvokeResponse Int irsStatusCode = lens _irsStatusCode (\ s a -> s{_irsStatusCode = a}); 
gen/Network/AWS/Lambda/ListAliases.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases>.+-- Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases> . --+-- -- This requires permission for the lambda:ListAliases action.+-- module Network.AWS.Lambda.ListAliases     (     -- * Creating a Request@@ -60,13 +62,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'laMarker'+-- * 'laMarker' - Optional string. An opaque pagination token returned from a previous @ListAliases@ operation. If present, indicates where to continue the listing. ----- * 'laMaxItems'+-- * 'laMaxItems' - Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0. ----- * 'laFunctionVersion'+-- * 'laFunctionVersion' - If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function. ----- * 'laFunctionName'+-- * 'laFunctionName' - Lambda function name for which the alias is created. listAliases     :: Text -- ^ 'laFunctionName'     -> ListAliases@@ -78,7 +80,7 @@     , _laFunctionName = pFunctionName_     } --- | Optional string. An opaque pagination token returned from a previous 'ListAliases' operation. If present, indicates where to continue the listing.+-- | Optional string. An opaque pagination token returned from a previous @ListAliases@ operation. If present, indicates where to continue the listing. laMarker :: Lens' ListAliases (Maybe Text) laMarker = lens _laMarker (\ s a -> s{_laMarker = a}); @@ -134,11 +136,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'larsAliases'+-- * 'larsAliases' - A list of aliases. ----- * 'larsNextMarker'+-- * 'larsNextMarker' - A string, present if there are more aliases. ----- * 'larsResponseStatus'+-- * 'larsResponseStatus' - -- | The response status code. listAliasesResponse     :: Int -- ^ 'larsResponseStatus'     -> ListAliasesResponse@@ -157,7 +159,7 @@ larsNextMarker :: Lens' ListAliasesResponse (Maybe Text) larsNextMarker = lens _larsNextMarker (\ s a -> s{_larsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. larsResponseStatus :: Lens' ListAliasesResponse Int larsResponseStatus = lens _larsResponseStatus (\ s a -> s{_larsResponseStatus = a}); 
gen/Network/AWS/Lambda/ListEventSourceMappings.hs view
@@ -18,14 +18,16 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of event source mappings you created using the 'CreateEventSourceMapping' (see < CreateEventSourceMapping>).+-- Returns a list of event source mappings you created using the @CreateEventSourceMapping@ (see 'CreateEventSourceMapping' ). --+-- -- For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings. ----- If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the 'FunctionName' parameter. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the @FunctionName@ parameter. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> . ----- This operation requires permission for the 'lambda:ListEventSourceMappings' action.+-- This operation requires permission for the @lambda:ListEventSourceMappings@ action. --+-- -- This operation returns paginated results. module Network.AWS.Lambda.ListEventSourceMappings     (@@ -57,6 +59,8 @@  -- | --+--+-- -- /See:/ 'listEventSourceMappings' smart constructor. data ListEventSourceMappings = ListEventSourceMappings'     { _lesmEventSourceARN :: !(Maybe Text)@@ -69,13 +73,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lesmEventSourceARN'+-- * 'lesmEventSourceARN' - The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (This parameter is optional.) ----- * 'lesmMarker'+-- * 'lesmMarker' - Optional string. An opaque pagination token returned from a previous @ListEventSourceMappings@ operation. If present, specifies to continue the list from where the returning call left off. ----- * 'lesmMaxItems'+-- * 'lesmMaxItems' - Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0. ----- * 'lesmFunctionName'+-- * 'lesmFunctionName' - The name of the Lambda function. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. listEventSourceMappings     :: ListEventSourceMappings listEventSourceMappings =@@ -90,7 +94,7 @@ lesmEventSourceARN :: Lens' ListEventSourceMappings (Maybe Text) lesmEventSourceARN = lens _lesmEventSourceARN (\ s a -> s{_lesmEventSourceARN = a}); --- | Optional string. An opaque pagination token returned from a previous 'ListEventSourceMappings' 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 @ListEventSourceMappings@ operation. If present, specifies to continue the list from where the returning call left off. lesmMarker :: Lens' ListEventSourceMappings (Maybe Text) lesmMarker = lens _lesmMarker (\ s a -> s{_lesmMarker = a}); @@ -98,9 +102,7 @@ lesmMaxItems :: Lens' ListEventSourceMappings (Maybe Natural) lesmMaxItems = lens _lesmMaxItems (\ s a -> s{_lesmMaxItems = a}) . mapping _Nat; --- | The name of the Lambda function.------ You can specify the function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The name of the Lambda function. You can specify the function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. lesmFunctionName :: Lens' ListEventSourceMappings (Maybe Text) lesmFunctionName = lens _lesmFunctionName (\ s a -> s{_lesmFunctionName = a}); @@ -140,8 +142,10 @@                "Marker" =: _lesmMarker, "MaxItems" =: _lesmMaxItems,                "FunctionName" =: _lesmFunctionName] --- | Contains a list of event sources (see )+-- | Contains a list of event sources (see 'EventSourceMappingConfiguration' ) --+--+-- -- /See:/ 'listEventSourceMappingsResponse' smart constructor. data ListEventSourceMappingsResponse = ListEventSourceMappingsResponse'     { _lesmrsEventSourceMappings :: !(Maybe [EventSourceMappingConfiguration])@@ -153,11 +157,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lesmrsEventSourceMappings'+-- * 'lesmrsEventSourceMappings' - An array of @EventSourceMappingConfiguration@ objects. ----- * 'lesmrsNextMarker'+-- * 'lesmrsNextMarker' - A string, present if there are more event source mappings. ----- * 'lesmrsResponseStatus'+-- * 'lesmrsResponseStatus' - -- | The response status code. listEventSourceMappingsResponse     :: Int -- ^ 'lesmrsResponseStatus'     -> ListEventSourceMappingsResponse@@ -168,7 +172,7 @@     , _lesmrsResponseStatus = pResponseStatus_     } --- | An array of 'EventSourceMappingConfiguration' objects.+-- | An array of @EventSourceMappingConfiguration@ objects. lesmrsEventSourceMappings :: Lens' ListEventSourceMappingsResponse [EventSourceMappingConfiguration] lesmrsEventSourceMappings = lens _lesmrsEventSourceMappings (\ s a -> s{_lesmrsEventSourceMappings = a}) . _Default . _Coerce; @@ -176,7 +180,7 @@ lesmrsNextMarker :: Lens' ListEventSourceMappingsResponse (Maybe Text) lesmrsNextMarker = lens _lesmrsNextMarker (\ s a -> s{_lesmrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lesmrsResponseStatus :: Lens' ListEventSourceMappingsResponse Int lesmrsResponseStatus = lens _lesmrsResponseStatus (\ s a -> s{_lesmrsResponseStatus = a}); 
gen/Network/AWS/Lambda/ListFunctions.hs view
@@ -18,12 +18,14 @@ -- Stability   : auto-generated -- 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.+-- 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. ----- If you are using versioning feature, the response returns list of >LATEST versions of your functions. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- This operation requires permission for the @lambda:ListFunctions@ action. --+-- If you are using versioning feature, the response returns list of $LATEST versions of your functions. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- -- This operation returns paginated results. module Network.AWS.Lambda.ListFunctions     (@@ -53,6 +55,8 @@  -- | --+--+-- -- /See:/ 'listFunctions' smart constructor. data ListFunctions = ListFunctions'     { _lfMarker   :: !(Maybe Text)@@ -63,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lfMarker'+-- * 'lfMarker' - Optional string. An opaque pagination token returned from a previous @ListFunctions@ operation. If present, indicates where to continue the listing. ----- * 'lfMaxItems'+-- * 'lfMaxItems' - Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0. listFunctions     :: ListFunctions listFunctions =@@ -74,7 +78,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}); @@ -115,8 +119,10 @@           = mconcat               ["Marker" =: _lfMarker, "MaxItems" =: _lfMaxItems] --- | Contains a list of AWS Lambda function configurations (see < FunctionConfiguration>.+-- | Contains a list of AWS Lambda function configurations (see 'FunctionConfiguration' . --+--+-- -- /See:/ 'listFunctionsResponse' smart constructor. data ListFunctionsResponse = ListFunctionsResponse'     { _lfrsNextMarker     :: !(Maybe Text)@@ -128,11 +134,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lfrsNextMarker'+-- * 'lfrsNextMarker' - A string, present if there are more functions. ----- * 'lfrsFunctions'+-- * 'lfrsFunctions' - A list of Lambda functions. ----- * 'lfrsResponseStatus'+-- * 'lfrsResponseStatus' - -- | The response status code. listFunctionsResponse     :: Int -- ^ 'lfrsResponseStatus'     -> ListFunctionsResponse@@ -151,7 +157,7 @@ lfrsFunctions :: Lens' ListFunctionsResponse [FunctionConfiguration] lfrsFunctions = lens _lfrsFunctions (\ s a -> s{_lfrsFunctions = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lfrsResponseStatus :: Lens' ListFunctionsResponse Int lfrsResponseStatus = lens _lfrsResponseStatus (\ s a -> s{_lfrsResponseStatus = a}); 
gen/Network/AWS/Lambda/ListVersionsByFunction.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- List all versions of a function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- List all versions of a function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- module Network.AWS.Lambda.ListVersionsByFunction     (     -- * Creating a Request@@ -47,6 +49,8 @@  -- | --+--+-- -- /See:/ 'listVersionsByFunction' smart constructor. data ListVersionsByFunction = ListVersionsByFunction'     { _lvbfMarker       :: !(Maybe Text)@@ -58,11 +62,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lvbfMarker'+-- * 'lvbfMarker' - Optional string. An opaque pagination token returned from a previous @ListVersionsByFunction@ operation. If present, indicates where to continue the listing. ----- * 'lvbfMaxItems'+-- * 'lvbfMaxItems' - Optional integer. Specifies the maximum number of AWS Lambda function versions to return in response. This parameter value must be greater than 0. ----- * 'lvbfFunctionName'+-- * 'lvbfFunctionName' - Function name whose versions to list. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. listVersionsByFunction     :: Text -- ^ 'lvbfFunctionName'     -> ListVersionsByFunction@@ -73,7 +77,7 @@     , _lvbfFunctionName = pFunctionName_     } --- | Optional string. An opaque pagination token returned from a previous 'ListVersionsByFunction' operation. If present, indicates where to continue the listing.+-- | Optional string. An opaque pagination token returned from a previous @ListVersionsByFunction@ operation. If present, indicates where to continue the listing. lvbfMarker :: Lens' ListVersionsByFunction (Maybe Text) lvbfMarker = lens _lvbfMarker (\ s a -> s{_lvbfMarker = a}); @@ -81,7 +85,7 @@ lvbfMaxItems :: Lens' ListVersionsByFunction (Maybe Natural) lvbfMaxItems = lens _lvbfMaxItems (\ s a -> s{_lvbfMaxItems = a}) . mapping _Nat; --- | Function name whose versions to list. You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | Function name whose versions to list. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. lvbfFunctionName :: Lens' ListVersionsByFunction Text lvbfFunctionName = lens _lvbfFunctionName (\ s a -> s{_lvbfFunctionName = a}); @@ -118,6 +122,8 @@  -- | --+--+-- -- /See:/ 'listVersionsByFunctionResponse' smart constructor. data ListVersionsByFunctionResponse = ListVersionsByFunctionResponse'     { _lvbfrsVersions       :: !(Maybe [FunctionConfiguration])@@ -129,11 +135,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lvbfrsVersions'+-- * 'lvbfrsVersions' - A list of Lambda function versions. ----- * 'lvbfrsNextMarker'+-- * 'lvbfrsNextMarker' - A string, present if there are more function versions. ----- * 'lvbfrsResponseStatus'+-- * 'lvbfrsResponseStatus' - -- | The response status code. listVersionsByFunctionResponse     :: Int -- ^ 'lvbfrsResponseStatus'     -> ListVersionsByFunctionResponse@@ -152,7 +158,7 @@ lvbfrsNextMarker :: Lens' ListVersionsByFunctionResponse (Maybe Text) lvbfrsNextMarker = lens _lvbfrsNextMarker (\ s a -> s{_lvbfrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lvbfrsResponseStatus :: Lens' ListVersionsByFunctionResponse Int lvbfrsResponseStatus = lens _lvbfrsResponseStatus (\ s a -> s{_lvbfrsResponseStatus = a}); 
gen/Network/AWS/Lambda/PublishVersion.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Publishes a version of your function from the current snapshot of >LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from >LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>.+-- Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- module Network.AWS.Lambda.PublishVersion     (     -- * Creating a Request@@ -36,6 +38,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -57,6 +62,8 @@  -- | --+--+-- -- /See:/ 'publishVersion' smart constructor. data PublishVersion = PublishVersion'     { _pvCodeSha256   :: !(Maybe Text)@@ -68,11 +75,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pvCodeSha256'+-- * 'pvCodeSha256' - The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the $LATEST version for the publication to succeed. ----- * 'pvDescription'+-- * 'pvDescription' - The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version. ----- * 'pvFunctionName'+-- * 'pvFunctionName' - The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. publishVersion     :: Text -- ^ 'pvFunctionName'     -> PublishVersion@@ -83,15 +90,15 @@     , _pvFunctionName = pFunctionName_     } --- | The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the >LATEST version for the publication to succeed.+-- | The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the $LATEST version for the publication to succeed. pvCodeSha256 :: Lens' PublishVersion (Maybe Text) pvCodeSha256 = lens _pvCodeSha256 (\ s a -> s{_pvCodeSha256 = a}); --- | The description for the version you are publishing. If not provided, AWS Lambda copies the description from the >LATEST version.+-- | The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version. pvDescription :: Lens' PublishVersion (Maybe Text) pvDescription = lens _pvDescription (\ s a -> s{_pvDescription = a}); --- | The Lambda function name. You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function name. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. pvFunctionName :: Lens' PublishVersion Text pvFunctionName = lens _pvFunctionName (\ s a -> s{_pvFunctionName = a}); 
gen/Network/AWS/Lambda/RemovePermission.hs view
@@ -20,11 +20,13 @@ -- -- You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission. ----- If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you specify in the 'AddPermission' request via the 'Qualifier' parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. --+-- If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you specify in the @AddPermission@ request via the @Qualifier@ parameter. For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+-- -- Note that removal of a permission will cause an active event source to lose permission to the function. ----- You need permission for the 'lambda:RemovePermission' action.+-- You need permission for the @lambda:RemovePermission@ action.+-- module Network.AWS.Lambda.RemovePermission     (     -- * Creating a Request@@ -49,6 +51,8 @@  -- | --+--+-- -- /See:/ 'removePermission' smart constructor. data RemovePermission = RemovePermission'     { _rpQualifier    :: !(Maybe Text)@@ -60,11 +64,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rpQualifier'+-- * 'rpQualifier' - You can specify this optional parameter to remove permission associated with a specific function version or function alias. If you don't specify this parameter, the API removes permission associated with the unqualified function ARN. ----- * 'rpFunctionName'+-- * 'rpFunctionName' - Lambda function whose resource policy you want to remove a permission from. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. ----- * 'rpStatementId'+-- * 'rpStatementId' - Statement ID of the permission to remove. removePermission     :: Text -- ^ 'rpFunctionName'     -> Text -- ^ 'rpStatementId'@@ -76,13 +80,11 @@     , _rpStatementId = pStatementId_     } --- | You can specify this optional parameter to remove permission associated with a specific function version or function alias. If you don\'t specify this parameter, the API removes permission associated with the unqualified function ARN.+-- | You can specify this optional parameter to remove permission associated with a specific function version or function alias. If you don't specify this parameter, the API removes permission associated with the unqualified function ARN. rpQualifier :: Lens' RemovePermission (Maybe Text) rpQualifier = lens _rpQualifier (\ s a -> s{_rpQualifier = a}); --- | Lambda function whose resource policy you want to remove a permission from.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | Lambda function whose resource policy you want to remove a permission from. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. rpFunctionName :: Lens' RemovePermission Text rpFunctionName = lens _rpFunctionName (\ s a -> s{_rpFunctionName = a}); 
gen/Network/AWS/Lambda/Types.hs view
@@ -16,17 +16,20 @@       lambda      -- * Errors+    , _KMSInvalidStateException     , _EC2ThrottledException     , _PolicyLengthExceededException     , _EC2AccessDeniedException     , _InvalidSubnetIdException     , _UnsupportedMediaTypeException     , _InvalidRequestContentException+    , _KMSNotFoundException     , _ENILimitReachedException     , _InvalidParameterValueException     , _RequestTooLargeException     , _TooManyRequestsException     , _InvalidSecurityGroupIdException+    , _KMSDisabledException     , _SubnetIPAddressLimitReachedException     , _ServiceException     , _CodeStorageExceededException@@ -34,6 +37,7 @@     , _ResourceConflictException     , _EC2UnexpectedException     , _ResourceNotFoundException+    , _KMSAccessDeniedException      -- * EventSourcePosition     , EventSourcePosition (..)@@ -47,6 +51,20 @@     -- * Runtime     , Runtime (..) +    -- * AccountLimit+    , AccountLimit+    , accountLimit+    , alConcurrentExecutions+    , alTotalCodeSize+    , alCodeSizeUnzipped+    , alCodeSizeZipped++    -- * AccountUsage+    , AccountUsage+    , accountUsage+    , auTotalCodeSize+    , auFunctionCount+     -- * AliasConfiguration     , AliasConfiguration     , aliasConfiguration@@ -55,6 +73,28 @@     , acAliasARN     , acDescription +    -- * DeadLetterConfig+    , DeadLetterConfig+    , deadLetterConfig+    , dlcTargetARN++    -- * Environment+    , Environment+    , environment+    , eVariables++    -- * EnvironmentError+    , EnvironmentError+    , environmentError+    , eeErrorCode+    , eeMessage++    -- * EnvironmentResponse+    , EnvironmentResponse+    , environmentResponse+    , envVariables+    , envError+     -- * EventSourceMappingConfiguration     , EventSourceMappingConfiguration     , eventSourceMappingConfiguration@@ -87,6 +127,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -118,7 +161,7 @@ import           Network.AWS.Prelude import           Network.AWS.Sign.V4 --- | API version '2015-03-31' of the Amazon Lambda SDK configuration.+-- | API version @2015-03-31@ of the Amazon Lambda SDK configuration. lambda :: Service lambda =     Service@@ -152,92 +195,156 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing +-- | Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Please check the function's KMS key settings.+--+--+_KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError+_KMSInvalidStateException =+    _ServiceError . hasStatus 502 . hasCode "KMSInvalidStateException"+ -- | AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.+--+-- _EC2ThrottledException :: AsError a => Getting (First ServiceError) a ServiceError _EC2ThrottledException =     _ServiceError . hasStatus 502 . hasCode "EC2ThrottledException"  -- | Lambda function access policy is limited to 20 KB.+--+-- _PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError _PolicyLengthExceededException =     _ServiceError . hasStatus 400 . hasCode "PolicyLengthExceededException"  -- |+--+-- _EC2AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError _EC2AccessDeniedException =     _ServiceError . hasStatus 502 . hasCode "EC2AccessDeniedException"  -- | The Subnet ID provided in the Lambda function VPC configuration is invalid.+--+-- _InvalidSubnetIdException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidSubnetIdException =     _ServiceError . hasStatus 502 . hasCode "InvalidSubnetIDException" --- | The content type of the 'Invoke' request body is not JSON.+-- | The content type of the @Invoke@ request body is not JSON.+--+-- _UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError _UnsupportedMediaTypeException =     _ServiceError . hasStatus 415 . hasCode "UnsupportedMediaTypeException"  -- | The request body could not be parsed as JSON.+--+-- _InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidRequestContentException =     _ServiceError . hasStatus 400 . hasCode "InvalidRequestContentException" +-- | Lambda was unable to decrypt the environment variables because the KMS key was not found. Please check the function's KMS key settings.+--+--+_KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_KMSNotFoundException =+    _ServiceError . hasStatus 502 . hasCode "KMSNotFoundException"+ -- | AWS Lambda was not able to create an Elastic Network Interface (ENI) in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.+--+-- _ENILimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError _ENILimitReachedException =     _ServiceError . hasStatus 502 . hasCode "ENILimitReachedException" --- | One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the 'CreateFunction' or the 'UpdateFunctionConfiguration' API, that AWS Lambda is unable to assume you will get this exception.+-- | One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the @CreateFunction@ or the @UpdateFunctionConfiguration@ API, that AWS Lambda is unable to assume you will get this exception.+--+-- _InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterValueException =     _ServiceError . hasStatus 400 . hasCode "InvalidParameterValueException" --- | The request payload exceeded the 'Invoke' request body JSON input limit. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/limits.html Limits>.+-- | The request payload exceeded the @Invoke@ request body JSON input limit. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/limits.html Limits> .+--+-- _RequestTooLargeException :: AsError a => Getting (First ServiceError) a ServiceError _RequestTooLargeException =     _ServiceError . hasStatus 413 . hasCode "RequestTooLargeException"  -- |+--+-- _TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError _TooManyRequestsException =     _ServiceError . hasStatus 429 . hasCode "TooManyRequestsException"  -- | The Security Group ID provided in the Lambda function VPC configuration is invalid.+--+-- _InvalidSecurityGroupIdException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidSecurityGroupIdException =     _ServiceError . hasStatus 502 . hasCode "InvalidSecurityGroupIDException" +-- | Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Please check the Lambda function's KMS key settings.+--+--+_KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError+_KMSDisabledException =+    _ServiceError . hasStatus 502 . hasCode "KMSDisabledException"+ -- | AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.+--+-- _SubnetIPAddressLimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError _SubnetIPAddressLimitReachedException =     _ServiceError .     hasStatus 502 . hasCode "SubnetIPAddressLimitReachedException"  -- | The AWS Lambda service encountered an internal error.+--+-- _ServiceException :: AsError a => Getting (First ServiceError) a ServiceError _ServiceException = _ServiceError . hasStatus 500 . hasCode "ServiceException"  -- | You have exceeded your maximum total code size per account. <http://docs.aws.amazon.com/lambda/latest/dg/limits.html Limits>+--+-- _CodeStorageExceededException :: AsError a => Getting (First ServiceError) a ServiceError _CodeStorageExceededException =     _ServiceError . hasStatus 400 . hasCode "CodeStorageExceededException"  -- | AWS Lambda could not unzip the function zip file.+--+-- _InvalidZipFileException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidZipFileException =     _ServiceError . hasStatus 502 . hasCode "InvalidZipFileException"  -- | The resource already exists.+--+-- _ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceConflictException =     _ServiceError . hasStatus 409 . hasCode "ResourceConflictException"  -- | AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.+--+-- _EC2UnexpectedException :: AsError a => Getting (First ServiceError) a ServiceError _EC2UnexpectedException =     _ServiceError . hasStatus 502 . hasCode "EC2UnexpectedException"  -- | The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.+--+-- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceNotFoundException =     _ServiceError . hasStatus 404 . hasCode "ResourceNotFoundException"++-- | Lambda was unable to decrypt the environment variables because KMS access was denied. Please check the Lambda function's KMS permissions.+--+--+_KMSAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError+_KMSAccessDeniedException =+    _ServiceError . hasStatus 502 . hasCode "KMSAccessDeniedException"
gen/Network/AWS/Lambda/Types/Product.hs view
@@ -21,8 +21,117 @@ import           Network.AWS.Lens import           Network.AWS.Prelude +-- | Provides limits of code size and concurrency associated with the current account and region.+--+--+--+-- /See:/ 'accountLimit' smart constructor.+data AccountLimit = AccountLimit'+    { _alConcurrentExecutions :: !(Maybe Int)+    , _alTotalCodeSize        :: !(Maybe Integer)+    , _alCodeSizeUnzipped     :: !(Maybe Integer)+    , _alCodeSizeZipped       :: !(Maybe Integer)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'AccountLimit' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'alConcurrentExecutions' - Number of simultaneous executions of your function per region. For more information or to request a limit increase for concurrent executions, see <http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html Lambda Function Concurrent Executions> . The default limit is 100.+--+-- * 'alTotalCodeSize' - Maximum size, in megabytes, of a code package you can upload per region. The default size is 75 GB.+--+-- * 'alCodeSizeUnzipped' - Size, in bytes, of code/dependencies that you can zip into a deployment package (uncompressed zip/jar size) for uploading. The default limit is 250 MB.+--+-- * 'alCodeSizeZipped' - Size, in bytes, of a single zipped code/dependencies package you can upload for your Lambda function(.zip/.jar file). Try using AWS S3 for uploading larger files. Default limit is 50 MB.+accountLimit+    :: AccountLimit+accountLimit =+    AccountLimit'+    { _alConcurrentExecutions = Nothing+    , _alTotalCodeSize = Nothing+    , _alCodeSizeUnzipped = Nothing+    , _alCodeSizeZipped = Nothing+    }++-- | Number of simultaneous executions of your function per region. For more information or to request a limit increase for concurrent executions, see <http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html Lambda Function Concurrent Executions> . The default limit is 100.+alConcurrentExecutions :: Lens' AccountLimit (Maybe Int)+alConcurrentExecutions = lens _alConcurrentExecutions (\ s a -> s{_alConcurrentExecutions = a});++-- | Maximum size, in megabytes, of a code package you can upload per region. The default size is 75 GB.+alTotalCodeSize :: Lens' AccountLimit (Maybe Integer)+alTotalCodeSize = lens _alTotalCodeSize (\ s a -> s{_alTotalCodeSize = a});++-- | Size, in bytes, of code/dependencies that you can zip into a deployment package (uncompressed zip/jar size) for uploading. The default limit is 250 MB.+alCodeSizeUnzipped :: Lens' AccountLimit (Maybe Integer)+alCodeSizeUnzipped = lens _alCodeSizeUnzipped (\ s a -> s{_alCodeSizeUnzipped = a});++-- | Size, in bytes, of a single zipped code/dependencies package you can upload for your Lambda function(.zip/.jar file). Try using AWS S3 for uploading larger files. Default limit is 50 MB.+alCodeSizeZipped :: Lens' AccountLimit (Maybe Integer)+alCodeSizeZipped = lens _alCodeSizeZipped (\ s a -> s{_alCodeSizeZipped = a});++instance FromJSON AccountLimit where+        parseJSON+          = withObject "AccountLimit"+              (\ x ->+                 AccountLimit' <$>+                   (x .:? "ConcurrentExecutions") <*>+                     (x .:? "TotalCodeSize")+                     <*> (x .:? "CodeSizeUnzipped")+                     <*> (x .:? "CodeSizeZipped"))++instance Hashable AccountLimit++instance NFData AccountLimit++-- | Provides code size usage and function count associated with the current account and region.+--+--+--+-- /See:/ 'accountUsage' smart constructor.+data AccountUsage = AccountUsage'+    { _auTotalCodeSize :: !(Maybe Integer)+    , _auFunctionCount :: !(Maybe Integer)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'AccountUsage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'auTotalCodeSize' - Total size, in megabytes, of the account's deployment packages per region.+--+-- * 'auFunctionCount' - The number of your account's existing functions per region.+accountUsage+    :: AccountUsage+accountUsage =+    AccountUsage'+    { _auTotalCodeSize = Nothing+    , _auFunctionCount = Nothing+    }++-- | Total size, in megabytes, of the account's deployment packages per region.+auTotalCodeSize :: Lens' AccountUsage (Maybe Integer)+auTotalCodeSize = lens _auTotalCodeSize (\ s a -> s{_auTotalCodeSize = a});++-- | The number of your account's existing functions per region.+auFunctionCount :: Lens' AccountUsage (Maybe Integer)+auFunctionCount = lens _auFunctionCount (\ s a -> s{_auFunctionCount = a});++instance FromJSON AccountUsage where+        parseJSON+          = withObject "AccountUsage"+              (\ x ->+                 AccountUsage' <$>+                   (x .:? "TotalCodeSize") <*> (x .:? "FunctionCount"))++instance Hashable AccountUsage++instance NFData AccountUsage+ -- | Provides configuration information about a Lambda function version alias. --+--+-- -- /See:/ 'aliasConfiguration' smart constructor. data AliasConfiguration = AliasConfiguration'     { _acName            :: !(Maybe Text)@@ -35,13 +144,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'acName'+-- * 'acName' - Alias name. ----- * 'acFunctionVersion'+-- * 'acFunctionVersion' - Function version to which the alias points. ----- * 'acAliasARN'+-- * 'acAliasARN' - Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called @BETA@ that points to a helloworld function version, the ARN is @arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA@ . ----- * 'acDescription'+-- * 'acDescription' - Alias description. aliasConfiguration     :: AliasConfiguration aliasConfiguration =@@ -60,7 +169,7 @@ acFunctionVersion :: Lens' AliasConfiguration (Maybe Text) acFunctionVersion = lens _acFunctionVersion (\ s a -> s{_acFunctionVersion = a}); --- | Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called 'BETA' that points to a helloworld function version, the ARN is 'arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA'.+-- | Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called @BETA@ that points to a helloworld function version, the ARN is @arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA@ . acAliasARN :: Lens' AliasConfiguration (Maybe Text) acAliasARN = lens _acAliasARN (\ s a -> s{_acAliasARN = a}); @@ -81,8 +190,171 @@  instance NFData AliasConfiguration +-- | The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.+--+--+--+-- /See:/ 'deadLetterConfig' smart constructor.+newtype DeadLetterConfig = DeadLetterConfig'+    { _dlcTargetARN :: Maybe Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DeadLetterConfig' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dlcTargetARN' - The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ).+deadLetterConfig+    :: DeadLetterConfig+deadLetterConfig =+    DeadLetterConfig'+    { _dlcTargetARN = Nothing+    }++-- | The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ).+dlcTargetARN :: Lens' DeadLetterConfig (Maybe Text)+dlcTargetARN = lens _dlcTargetARN (\ s a -> s{_dlcTargetARN = a});++instance FromJSON DeadLetterConfig where+        parseJSON+          = withObject "DeadLetterConfig"+              (\ x -> DeadLetterConfig' <$> (x .:? "TargetArn"))++instance Hashable DeadLetterConfig++instance NFData DeadLetterConfig++instance ToJSON DeadLetterConfig where+        toJSON DeadLetterConfig'{..}+          = object+              (catMaybes [("TargetArn" .=) <$> _dlcTargetARN])++-- | The parent object that contains your environment's configuration settings.+--+--+--+-- /See:/ 'environment' smart constructor.+newtype Environment = Environment'+    { _eVariables :: Maybe (Sensitive (Map Text (Sensitive Text)))+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Environment' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eVariables' - The key-value pairs that represent your environment's configuration settings. The value you specify cannot contain a ",".+environment+    :: Environment+environment =+    Environment'+    { _eVariables = Nothing+    }++-- | The key-value pairs that represent your environment's configuration settings. The value you specify cannot contain a ",".+eVariables :: Lens' Environment (Maybe (HashMap Text Text))+eVariables = lens _eVariables (\ s a -> s{_eVariables = a}) . mapping (_Sensitive . _Map);++instance Hashable Environment++instance NFData Environment++instance ToJSON Environment where+        toJSON Environment'{..}+          = object+              (catMaybes [("Variables" .=) <$> _eVariables])++-- | The parent object that contains error information associated with your configuration settings.+--+--+--+-- /See:/ 'environmentError' smart constructor.+data EnvironmentError = EnvironmentError'+    { _eeErrorCode :: !(Maybe Text)+    , _eeMessage   :: !(Maybe (Sensitive Text))+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EnvironmentError' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eeErrorCode' - The error code returned by the environment error object.+--+-- * 'eeMessage' - The message returned by the environment error object.+environmentError+    :: EnvironmentError+environmentError =+    EnvironmentError'+    { _eeErrorCode = Nothing+    , _eeMessage = Nothing+    }++-- | The error code returned by the environment error object.+eeErrorCode :: Lens' EnvironmentError (Maybe Text)+eeErrorCode = lens _eeErrorCode (\ s a -> s{_eeErrorCode = a});++-- | The message returned by the environment error object.+eeMessage :: Lens' EnvironmentError (Maybe Text)+eeMessage = lens _eeMessage (\ s a -> s{_eeMessage = a}) . mapping _Sensitive;++instance FromJSON EnvironmentError where+        parseJSON+          = withObject "EnvironmentError"+              (\ x ->+                 EnvironmentError' <$>+                   (x .:? "ErrorCode") <*> (x .:? "Message"))++instance Hashable EnvironmentError++instance NFData EnvironmentError++-- | The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings.+--+--+--+-- /See:/ 'environmentResponse' smart constructor.+data EnvironmentResponse = EnvironmentResponse'+    { _envVariables :: !(Maybe (Sensitive (Map Text (Sensitive Text))))+    , _envError     :: !(Maybe EnvironmentError)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EnvironmentResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'envVariables' - The key-value pairs returned that represent your environment's configuration settings or error information.+--+-- * 'envError' - Undocumented member.+environmentResponse+    :: EnvironmentResponse+environmentResponse =+    EnvironmentResponse'+    { _envVariables = Nothing+    , _envError = Nothing+    }++-- | The key-value pairs returned that represent your environment's configuration settings or error information.+envVariables :: Lens' EnvironmentResponse (Maybe (HashMap Text Text))+envVariables = lens _envVariables (\ s a -> s{_envVariables = a}) . mapping (_Sensitive . _Map);++-- | Undocumented member.+envError :: Lens' EnvironmentResponse (Maybe EnvironmentError)+envError = lens _envError (\ s a -> s{_envError = a});++instance FromJSON EnvironmentResponse where+        parseJSON+          = withObject "EnvironmentResponse"+              (\ x ->+                 EnvironmentResponse' <$>+                   (x .:? "Variables" .!= mempty) <*> (x .:? "Error"))++instance Hashable EnvironmentResponse++instance NFData EnvironmentResponse+ -- | Describes mapping between an Amazon Kinesis stream and a Lambda function. --+--+-- -- /See:/ 'eventSourceMappingConfiguration' smart constructor. data EventSourceMappingConfiguration = EventSourceMappingConfiguration'     { _esmcEventSourceARN        :: !(Maybe Text)@@ -99,21 +371,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'esmcEventSourceARN'+-- * 'esmcEventSourceARN' - The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events. ----- * 'esmcState'+-- * 'esmcState' - The state of the event source mapping. It can be @Creating@ , @Enabled@ , @Disabled@ , @Enabling@ , @Disabling@ , @Updating@ , or @Deleting@ . ----- * 'esmcFunctionARN'+-- * 'esmcFunctionARN' - The Lambda function to invoke when AWS Lambda detects an event on the stream. ----- * 'esmcUUId'+-- * 'esmcUUId' - The AWS Lambda assigned opaque identifier for the mapping. ----- * 'esmcLastProcessingResult'+-- * 'esmcLastProcessingResult' - The result of the last AWS Lambda invocation of your Lambda function. ----- * 'esmcBatchSize'+-- * 'esmcBatchSize' - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. ----- * 'esmcStateTransitionReason'+-- * 'esmcStateTransitionReason' - The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition. ----- * 'esmcLastModified'+-- * 'esmcLastModified' - The UTC time string indicating the last time the event mapping was updated. eventSourceMappingConfiguration     :: EventSourceMappingConfiguration eventSourceMappingConfiguration =@@ -132,7 +404,7 @@ esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text) esmcEventSourceARN = lens _esmcEventSourceARN (\ s a -> s{_esmcEventSourceARN = a}); --- | The state of the event source mapping. It can be 'Creating', 'Enabled', 'Disabled', 'Enabling', 'Disabling', 'Updating', or 'Deleting'.+-- | The state of the event source mapping. It can be @Creating@ , @Enabled@ , @Disabled@ , @Enabling@ , @Disabling@ , @Updating@ , or @Deleting@ . esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text) esmcState = lens _esmcState (\ s a -> s{_esmcState = a}); @@ -180,11 +452,13 @@  -- | The code for the Lambda function. --+--+-- -- /See:/ 'functionCode' smart constructor. data FunctionCode = FunctionCode'     { _fcS3ObjectVersion :: !(Maybe Text)     , _fcS3Key           :: !(Maybe Text)-    , _fcZipFile         :: !(Maybe Base64)+    , _fcZipFile         :: !(Maybe (Sensitive Base64))     , _fcS3Bucket        :: !(Maybe Text)     } deriving (Eq,Read,Show,Data,Typeable,Generic) @@ -192,13 +466,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fcS3ObjectVersion'+-- * 'fcS3ObjectVersion' - The Amazon S3 object (the deployment package) version you want to upload. ----- * 'fcS3Key'+-- * 'fcS3Key' - The Amazon S3 object (the deployment package) key name you want to upload. ----- * 'fcZipFile'+-- * 'fcZipFile' - The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/ . -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. ----- * 'fcS3Bucket'+-- * 'fcS3Bucket' - Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function. functionCode     :: FunctionCode functionCode =@@ -217,15 +491,9 @@ fcS3Key :: Lens' FunctionCode (Maybe Text) fcS3Key = lens _fcS3Key (\ s a -> s{_fcS3Key = a}); --- | The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/.------ /Note:/ This 'Lens' automatically encodes and decodes Base64 data,--- despite what the AWS documentation might say.--- The underlying isomorphism will encode to Base64 representation during--- serialisation, and decode from Base64 representation during deserialisation.--- This 'Lens' accepts and returns only raw unencoded data.+-- | The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/ . -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. fcZipFile :: Lens' FunctionCode (Maybe ByteString)-fcZipFile = lens _fcZipFile (\ s a -> s{_fcZipFile = a}) . mapping _Base64;+fcZipFile = lens _fcZipFile (\ s a -> s{_fcZipFile = a}) . mapping (_Sensitive . _Base64);  -- | Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function. fcS3Bucket :: Lens' FunctionCode (Maybe Text)@@ -246,6 +514,8 @@  -- | The object for the Lambda function location. --+--+-- -- /See:/ 'functionCodeLocation' smart constructor. data FunctionCodeLocation = FunctionCodeLocation'     { _fclLocation       :: !(Maybe Text)@@ -256,9 +526,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fclLocation'+-- * 'fclLocation' - 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. ----- * 'fclRepositoryType'+-- * 'fclRepositoryType' - The repository from which you can download the function. functionCodeLocation     :: FunctionCodeLocation functionCodeLocation =@@ -267,7 +537,7 @@     , _fclRepositoryType = 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}); @@ -288,52 +558,63 @@  -- | A complex type that describes function metadata. --+--+-- -- /See:/ 'functionConfiguration' smart constructor. data FunctionConfiguration = FunctionConfiguration'-    { _fcMemorySize   :: !(Maybe Nat)-    , _fcRuntime      :: !(Maybe Runtime)-    , _fcFunctionARN  :: !(Maybe Text)-    , _fcRole         :: !(Maybe Text)-    , _fcVPCConfig    :: !(Maybe VPCConfigResponse)-    , _fcVersion      :: !(Maybe Text)-    , _fcFunctionName :: !(Maybe Text)-    , _fcCodeSize     :: !(Maybe Integer)-    , _fcHandler      :: !(Maybe Text)-    , _fcTimeout      :: !(Maybe Nat)-    , _fcLastModified :: !(Maybe Text)-    , _fcCodeSha256   :: !(Maybe Text)-    , _fcDescription  :: !(Maybe Text)+    { _fcMemorySize       :: !(Maybe Nat)+    , _fcRuntime          :: !(Maybe Runtime)+    , _fcFunctionARN      :: !(Maybe Text)+    , _fcKMSKeyARN        :: !(Maybe Text)+    , _fcEnvironment      :: !(Maybe EnvironmentResponse)+    , _fcDeadLetterConfig :: !(Maybe DeadLetterConfig)+    , _fcRole             :: !(Maybe Text)+    , _fcVPCConfig        :: !(Maybe VPCConfigResponse)+    , _fcVersion          :: !(Maybe Text)+    , _fcFunctionName     :: !(Maybe Text)+    , _fcCodeSize         :: !(Maybe Integer)+    , _fcHandler          :: !(Maybe Text)+    , _fcTimeout          :: !(Maybe Nat)+    , _fcLastModified     :: !(Maybe Text)+    , _fcCodeSha256       :: !(Maybe Text)+    , _fcDescription      :: !(Maybe Text)     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'FunctionConfiguration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fcMemorySize'+-- * 'fcMemorySize' - The memory size, in MB, you configured for the function. Must be a multiple of 64 MB. ----- * 'fcRuntime'+-- * 'fcRuntime' - The runtime environment for the Lambda function. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs". ----- * 'fcFunctionARN'+-- * 'fcFunctionARN' - The Amazon Resource Name (ARN) assigned to the function. ----- * 'fcRole'+-- * 'fcKMSKeyARN' - The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it means you are using the AWS Lambda default service key. ----- * 'fcVPCConfig'+-- * 'fcEnvironment' - The parent object that contains your environment's configuration settings. ----- * 'fcVersion'+-- * 'fcDeadLetterConfig' - The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. ----- * 'fcFunctionName'+-- * 'fcRole' - 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. ----- * 'fcCodeSize'+-- * 'fcVPCConfig' - VPC configuration associated with your Lambda function. ----- * 'fcHandler'+-- * 'fcVersion' - The version of the Lambda function. ----- * 'fcTimeout'+-- * 'fcFunctionName' - The name of the function. ----- * 'fcLastModified'+-- * 'fcCodeSize' - The size, in bytes, of the function .zip file you uploaded. ----- * 'fcCodeSha256'+-- * 'fcHandler' - The function Lambda calls to begin executing your function. ----- * 'fcDescription'+-- * 'fcTimeout' - 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.+--+-- * 'fcLastModified' - The time stamp of the last time you updated the function.+--+-- * 'fcCodeSha256' - It is the SHA256 hash of your function deployment package.+--+-- * 'fcDescription' - The user-provided description. functionConfiguration     :: FunctionConfiguration functionConfiguration =@@ -341,6 +622,9 @@     { _fcMemorySize = Nothing     , _fcRuntime = Nothing     , _fcFunctionARN = Nothing+    , _fcKMSKeyARN = Nothing+    , _fcEnvironment = Nothing+    , _fcDeadLetterConfig = Nothing     , _fcRole = Nothing     , _fcVPCConfig = Nothing     , _fcVersion = Nothing@@ -357,9 +641,7 @@ fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) fcMemorySize = lens _fcMemorySize (\ s a -> s{_fcMemorySize = a}) . mapping _Nat; --- | The runtime environment for the Lambda function.------ To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".+-- | The runtime environment for the Lambda function. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs". fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) fcRuntime = lens _fcRuntime (\ s a -> s{_fcRuntime = a}); @@ -367,6 +649,18 @@ fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text) fcFunctionARN = lens _fcFunctionARN (\ s a -> s{_fcFunctionARN = a}); +-- | The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it means you are using the AWS Lambda default service key.+fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)+fcKMSKeyARN = lens _fcKMSKeyARN (\ s a -> s{_fcKMSKeyARN = a});++-- | The parent object that contains your environment's configuration settings.+fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)+fcEnvironment = lens _fcEnvironment (\ s a -> s{_fcEnvironment = a});++-- | The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.+fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)+fcDeadLetterConfig = lens _fcDeadLetterConfig (\ s a -> s{_fcDeadLetterConfig = 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) resources. fcRole :: Lens' FunctionConfiguration (Maybe Text) fcRole = lens _fcRole (\ s a -> s{_fcRole = a});@@ -414,6 +708,9 @@                  FunctionConfiguration' <$>                    (x .:? "MemorySize") <*> (x .:? "Runtime") <*>                      (x .:? "FunctionArn")+                     <*> (x .:? "KMSKeyArn")+                     <*> (x .:? "Environment")+                     <*> (x .:? "DeadLetterConfig")                      <*> (x .:? "Role")                      <*> (x .:? "VpcConfig")                      <*> (x .:? "Version")@@ -431,6 +728,8 @@  -- | If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID. --+--+-- -- /See:/ 'vpcConfig' smart constructor. data VPCConfig = VPCConfig'     { _vpccSecurityGroupIds :: !(Maybe [Text])@@ -441,9 +740,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'vpccSecurityGroupIds'+-- * 'vpccSecurityGroupIds' - A list of one or more security groups IDs in your VPC. ----- * 'vpccSubnetIds'+-- * 'vpccSubnetIds' - A list of one or more subnet IDs in your VPC. vpcConfig     :: VPCConfig vpcConfig =@@ -473,6 +772,8 @@  -- | VPC configuration associated with your Lambda function. --+--+-- -- /See:/ 'vpcConfigResponse' smart constructor. data VPCConfigResponse = VPCConfigResponse'     { _vcSecurityGroupIds :: !(Maybe [Text])@@ -484,11 +785,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'vcSecurityGroupIds'+-- * 'vcSecurityGroupIds' - A list of security group IDs associated with the Lambda function. ----- * 'vcSubnetIds'+-- * 'vcSubnetIds' - A list of subnet IDs associated with the Lambda function. ----- * 'vcVPCId'+-- * 'vcVPCId' - The VPC ID associated with you Lambda function. vpcConfigResponse     :: VPCConfigResponse vpcConfigResponse =
gen/Network/AWS/Lambda/Types/Sum.hs view
@@ -20,19 +20,22 @@ import           Network.AWS.Prelude  data EventSourcePosition-    = Latest+    = AtTimestamp+    | Latest     | TrimHorizon     deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)  instance FromText EventSourcePosition where     parser = takeLowerText >>= \case+        "at_timestamp" -> pure AtTimestamp         "latest" -> pure Latest         "trim_horizon" -> pure TrimHorizon         e -> fromTextError $ "Failure parsing EventSourcePosition from value: '" <> e-           <> "'. Accepted values: latest, trim_horizon"+           <> "'. Accepted values: at_timestamp, latest, trim_horizon"  instance ToText EventSourcePosition where     toText = \case+        AtTimestamp -> "AT_TIMESTAMP"         Latest -> "LATEST"         TrimHorizon -> "TRIM_HORIZON" @@ -101,25 +104,31 @@     toJSON = toJSONText  data Runtime-    = JAVA8+    = DOTNETCORE1_0+    | JAVA8     | NODEJS4_3+    | NODEJS4_3Edge     | Nodejs     | PYTHON2_7     deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)  instance FromText Runtime where     parser = takeLowerText >>= \case+        "dotnetcore1.0" -> pure DOTNETCORE1_0         "java8" -> pure JAVA8         "nodejs4.3" -> pure NODEJS4_3+        "nodejs4.3-edge" -> pure NODEJS4_3Edge         "nodejs" -> pure Nodejs         "python2.7" -> pure PYTHON2_7         e -> fromTextError $ "Failure parsing Runtime from value: '" <> e-           <> "'. Accepted values: java8, nodejs4.3, nodejs, python2.7"+           <> "'. Accepted values: dotnetcore1.0, java8, nodejs4.3, nodejs4.3-edge, nodejs, python2.7"  instance ToText Runtime where     toText = \case+        DOTNETCORE1_0 -> "dotnetcore1.0"         JAVA8 -> "java8"         NODEJS4_3 -> "nodejs4.3"+        NODEJS4_3Edge -> "nodejs4.3-edge"         Nodejs -> "nodejs"         PYTHON2_7 -> "python2.7" 
gen/Network/AWS/Lambda/UpdateAlias.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Using this API you can update the function version to which the alias points and the alias description. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases>.+-- Using this API you can update the function version to which the alias points and the alias description. For more information, see <http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html Introduction to AWS Lambda Aliases> . --+-- -- This requires permission for the lambda:UpdateAlias action.+-- module Network.AWS.Lambda.UpdateAlias     (     -- * Creating a Request@@ -61,13 +63,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uaFunctionVersion'+-- * 'uaFunctionVersion' - Using this parameter you can change the Lambda function version to which the alias points. ----- * 'uaDescription'+-- * 'uaDescription' - You can change the description of the alias using this parameter. ----- * 'uaFunctionName'+-- * 'uaFunctionName' - The function name for which the alias is created. ----- * 'uaName'+-- * 'uaName' - The alias name. updateAlias     :: Text -- ^ 'uaFunctionName'     -> Text -- ^ 'uaName'
gen/Network/AWS/Lambda/UpdateEventSourceMapping.hs view
@@ -20,11 +20,13 @@ -- -- You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping. ----- If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the 'FunctionName' parameter. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don\'t lose processing of any records. However, if you delete event source mapping and create it again, it will reset.+-- If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the @FunctionName@ parameter. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> . ----- This operation requires permission for the 'lambda:UpdateEventSourceMapping' action.+-- If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.+--+-- This operation requires permission for the @lambda:UpdateEventSourceMapping@ action.+-- module Network.AWS.Lambda.UpdateEventSourceMapping     (     -- * Creating a Request@@ -59,6 +61,8 @@  -- | --+--+-- -- /See:/ 'updateEventSourceMapping' smart constructor. data UpdateEventSourceMapping = UpdateEventSourceMapping'     { _uesmEnabled      :: !(Maybe Bool)@@ -71,13 +75,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uesmEnabled'+-- * 'uesmEnabled' - Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream. ----- * 'uesmBatchSize'+-- * 'uesmBatchSize' - The maximum number of stream records that can be sent to your Lambda function for a single invocation. ----- * 'uesmFunctionName'+-- * 'uesmFunctionName' - The Lambda function to which you want the stream records sent. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ).  If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>  Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. ----- * 'uesmUUId'+-- * 'uesmUUId' - The event source mapping identifier. updateEventSourceMapping     :: Text -- ^ 'uesmUUId'     -> UpdateEventSourceMapping@@ -97,13 +101,7 @@ uesmBatchSize :: Lens' UpdateEventSourceMapping (Maybe Natural) uesmBatchSize = lens _uesmBatchSize (\ s a -> s{_uesmBatchSize = a}) . mapping _Nat; --- | The Lambda function to which you want the stream records sent.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail').------ If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>------ Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The Lambda function to which you want the stream records sent. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ).  If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>  Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. uesmFunctionName :: Lens' UpdateEventSourceMapping (Maybe Text) uesmFunctionName = lens _uesmFunctionName (\ s a -> s{_uesmFunctionName = a}); 
gen/Network/AWS/Lambda/UpdateFunctionCode.hs view
@@ -20,9 +20,11 @@ -- -- Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration. ----- If you are using the versioning feature, note this API will always update the >LATEST version of your Lambda function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:UpdateFunctionCode' action.+-- If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:UpdateFunctionCode@ action.+-- module Network.AWS.Lambda.UpdateFunctionCode     (     -- * Creating a Request@@ -43,6 +45,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -64,11 +69,13 @@  -- | --+--+-- -- /See:/ 'updateFunctionCode' smart constructor. data UpdateFunctionCode = UpdateFunctionCode'     { _uS3ObjectVersion :: !(Maybe Text)     , _uS3Key           :: !(Maybe Text)-    , _uZipFile         :: !(Maybe Base64)+    , _uZipFile         :: !(Maybe (Sensitive Base64))     , _uS3Bucket        :: !(Maybe Text)     , _uPublish         :: !(Maybe Bool)     , _uFunctionName    :: !Text@@ -78,17 +85,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uS3ObjectVersion'+-- * 'uS3ObjectVersion' - The Amazon S3 object (the deployment package) version you want to upload. ----- * 'uS3Key'+-- * 'uS3Key' - The Amazon S3 object (the deployment package) key name you want to upload. ----- * 'uZipFile'+-- * 'uZipFile' - The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/ . -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. ----- * 'uS3Bucket'+-- * 'uS3Bucket' - Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function. ----- * 'uPublish'+-- * 'uPublish' - This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation. ----- * 'uFunctionName'+-- * 'uFunctionName' - The existing Lambda function name whose code you want to replace. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. updateFunctionCode     :: Text -- ^ 'uFunctionName'     -> UpdateFunctionCode@@ -110,15 +117,9 @@ uS3Key :: Lens' UpdateFunctionCode (Maybe Text) uS3Key = lens _uS3Key (\ s a -> s{_uS3Key = a}); --- | The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/.------ /Note:/ This 'Lens' automatically encodes and decodes Base64 data,--- despite what the AWS documentation might say.--- The underlying isomorphism will encode to Base64 representation during--- serialisation, and decode from Base64 representation during deserialisation.--- This 'Lens' accepts and returns only raw unencoded data.+-- | The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to <http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html Execution Permissions> in the /AWS Lambda Developer Guide/ . -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. uZipFile :: Lens' UpdateFunctionCode (Maybe ByteString)-uZipFile = lens _uZipFile (\ s a -> s{_uZipFile = a}) . mapping _Base64;+uZipFile = lens _uZipFile (\ s a -> s{_uZipFile = a}) . mapping (_Sensitive . _Base64);  -- | Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function. uS3Bucket :: Lens' UpdateFunctionCode (Maybe Text)@@ -128,9 +129,7 @@ uPublish :: Lens' UpdateFunctionCode (Maybe Bool) uPublish = lens _uPublish (\ s a -> s{_uPublish = a}); --- | The existing Lambda function name whose code you want to replace.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The existing Lambda function name whose code you want to replace. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. uFunctionName :: Lens' UpdateFunctionCode Text uFunctionName = lens _uFunctionName (\ s a -> s{_uFunctionName = a}); 
gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- 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.+-- 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. ----- If you are using the versioning feature, note this API will always update the >LATEST version of your Lambda function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases>. ----- This operation requires permission for the 'lambda:UpdateFunctionConfiguration' action.+-- If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see <http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html AWS Lambda Function Versioning and Aliases> .+--+-- This operation requires permission for the @lambda:UpdateFunctionConfiguration@ action.+-- module Network.AWS.Lambda.UpdateFunctionConfiguration     (     -- * Creating a Request@@ -31,6 +33,9 @@     -- * Request Lenses     , ufcMemorySize     , ufcRuntime+    , ufcKMSKeyARN+    , ufcEnvironment+    , ufcDeadLetterConfig     , ufcRole     , ufcVPCConfig     , ufcHandler@@ -45,6 +50,9 @@     , fcMemorySize     , fcRuntime     , fcFunctionARN+    , fcKMSKeyARN+    , fcEnvironment+    , fcDeadLetterConfig     , fcRole     , fcVPCConfig     , fcVersion@@ -66,37 +74,48 @@  -- | --+--+-- -- /See:/ 'updateFunctionConfiguration' smart constructor. data UpdateFunctionConfiguration = UpdateFunctionConfiguration'-    { _ufcMemorySize   :: !(Maybe Nat)-    , _ufcRuntime      :: !(Maybe Runtime)-    , _ufcRole         :: !(Maybe Text)-    , _ufcVPCConfig    :: !(Maybe VPCConfig)-    , _ufcHandler      :: !(Maybe Text)-    , _ufcTimeout      :: !(Maybe Nat)-    , _ufcDescription  :: !(Maybe Text)-    , _ufcFunctionName :: !Text+    { _ufcMemorySize       :: !(Maybe Nat)+    , _ufcRuntime          :: !(Maybe Runtime)+    , _ufcKMSKeyARN        :: !(Maybe Text)+    , _ufcEnvironment      :: !(Maybe Environment)+    , _ufcDeadLetterConfig :: !(Maybe DeadLetterConfig)+    , _ufcRole             :: !(Maybe Text)+    , _ufcVPCConfig        :: !(Maybe VPCConfig)+    , _ufcHandler          :: !(Maybe Text)+    , _ufcTimeout          :: !(Maybe Nat)+    , _ufcDescription      :: !(Maybe Text)+    , _ufcFunctionName     :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'UpdateFunctionConfiguration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ufcMemorySize'+-- * 'ufcMemorySize' - The amount of memory, in MB, your Lambda function is given. AWS 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. ----- * 'ufcRuntime'+-- * 'ufcRuntime' - The runtime environment for the Lambda function. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs". ----- * 'ufcRole'+-- * 'ufcKMSKeyARN' - The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter. ----- * 'ufcVPCConfig'+-- * 'ufcEnvironment' - The parent object that contains your environment's configuration settings. ----- * 'ufcHandler'+-- * 'ufcDeadLetterConfig' - The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. ----- * 'ufcTimeout'+-- * 'ufcRole' - The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function. ----- * 'ufcDescription'+-- * 'ufcVPCConfig' - Undocumented member. ----- * 'ufcFunctionName'+-- * 'ufcHandler' - The function that Lambda calls to begin executing your function. For Node.js, it is the @module-name.export@ value in your function.+--+-- * 'ufcTimeout' - The function execution time at which AWS 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.+--+-- * 'ufcDescription' - A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.+--+-- * 'ufcFunctionName' - The name of the Lambda function. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. updateFunctionConfiguration     :: Text -- ^ 'ufcFunctionName'     -> UpdateFunctionConfiguration@@ -104,6 +123,9 @@     UpdateFunctionConfiguration'     { _ufcMemorySize = Nothing     , _ufcRuntime = Nothing+    , _ufcKMSKeyARN = Nothing+    , _ufcEnvironment = Nothing+    , _ufcDeadLetterConfig = Nothing     , _ufcRole = Nothing     , _ufcVPCConfig = Nothing     , _ufcHandler = Nothing@@ -116,12 +138,22 @@ ufcMemorySize :: Lens' UpdateFunctionConfiguration (Maybe Natural) ufcMemorySize = lens _ufcMemorySize (\ s a -> s{_ufcMemorySize = a}) . mapping _Nat; --- | The runtime environment for the Lambda function.------ To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".+-- | The runtime environment for the Lambda function. To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs". ufcRuntime :: Lens' UpdateFunctionConfiguration (Maybe Runtime) ufcRuntime = lens _ufcRuntime (\ s a -> s{_ufcRuntime = a}); +-- | The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.+ufcKMSKeyARN :: Lens' UpdateFunctionConfiguration (Maybe Text)+ufcKMSKeyARN = lens _ufcKMSKeyARN (\ s a -> s{_ufcKMSKeyARN = a});++-- | The parent object that contains your environment's configuration settings.+ufcEnvironment :: Lens' UpdateFunctionConfiguration (Maybe Environment)+ufcEnvironment = lens _ufcEnvironment (\ s a -> s{_ufcEnvironment = a});++-- | The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.+ufcDeadLetterConfig :: Lens' UpdateFunctionConfiguration (Maybe DeadLetterConfig)+ufcDeadLetterConfig = lens _ufcDeadLetterConfig (\ s a -> s{_ufcDeadLetterConfig = a});+ -- | 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});@@ -130,7 +162,7 @@ ufcVPCConfig :: Lens' UpdateFunctionConfiguration (Maybe VPCConfig) ufcVPCConfig = lens _ufcVPCConfig (\ s a -> s{_ufcVPCConfig = 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}); @@ -142,9 +174,7 @@ ufcDescription :: Lens' UpdateFunctionConfiguration (Maybe Text) ufcDescription = lens _ufcDescription (\ s a -> s{_ufcDescription = a}); --- | The name of the Lambda function.------ You can specify a function name (for example, 'Thumbnail') or you can specify Amazon Resource Name (ARN) of the function (for example, 'arn:aws:lambda:us-west-2:account-id:function:ThumbNail'). AWS Lambda also allows you to specify a partial ARN (for example, 'account-id:Thumbnail'). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.+-- | The name of the Lambda function. You can specify a function name (for example, @Thumbnail@ ) or you can specify Amazon Resource Name (ARN) of the function (for example, @arn:aws:lambda:us-west-2:account-id:function:ThumbNail@ ). AWS Lambda also allows you to specify a partial ARN (for example, @account-id:Thumbnail@ ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. ufcFunctionName :: Lens' UpdateFunctionConfiguration Text ufcFunctionName = lens _ufcFunctionName (\ s a -> s{_ufcFunctionName = a}); @@ -167,6 +197,9 @@               (catMaybes                  [("MemorySize" .=) <$> _ufcMemorySize,                   ("Runtime" .=) <$> _ufcRuntime,+                  ("KMSKeyArn" .=) <$> _ufcKMSKeyARN,+                  ("Environment" .=) <$> _ufcEnvironment,+                  ("DeadLetterConfig" .=) <$> _ufcDeadLetterConfig,                   ("Role" .=) <$> _ufcRole,                   ("VpcConfig" .=) <$> _ufcVPCConfig,                   ("Handler" .=) <$> _ufcHandler,
test/Test/AWS/Gen/Lambda.hs view
@@ -76,6 +76,9 @@ --         , requestUpdateAlias $ --             updateAlias --+--         , requestGetAccountSettings $+--             getAccountSettings+-- --         , requestAddPermission $ --             addPermission --@@ -148,6 +151,9 @@ --         , responseUpdateAlias $ --             aliasConfiguration --+--         , responseGetAccountSettings $+--             getAccountSettingsResponse+-- --         , responseAddPermission $ --             addPermissionResponse --@@ -254,6 +260,11 @@     "UpdateAlias"     "fixture/UpdateAlias.yaml" +requestGetAccountSettings :: GetAccountSettings -> TestTree+requestGetAccountSettings = req+    "GetAccountSettings"+    "fixture/GetAccountSettings.yaml"+ requestAddPermission :: AddPermission -> TestTree requestAddPermission = req     "AddPermission"@@ -402,6 +413,13 @@     "fixture/UpdateAliasResponse.proto"     lambda     (Proxy :: Proxy UpdateAlias)++responseGetAccountSettings :: GetAccountSettingsResponse -> TestTree+responseGetAccountSettings = res+    "GetAccountSettingsResponse"+    "fixture/GetAccountSettingsResponse.proto"+    lambda+    (Proxy :: Proxy GetAccountSettings)  responseAddPermission :: AddPermissionResponse -> TestTree responseAddPermission = res