packages feed

amazonka-lambda 1.4.0 → 1.4.1

raw patch · 28 files changed

+125/−14 lines, 28 filesdep ~amazonka-coredep ~amazonka-lambdadep ~amazonka-test

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

Files

README.md view
@@ -8,7 +8,7 @@  ## Version -`1.4.0`+`1.4.1`   ## Description
amazonka-lambda.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-lambda-version:               1.4.0+version:               1.4.1 synopsis:              Amazon Lambda SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -81,7 +81,7 @@         , Network.AWS.Lambda.Types.Sum      build-depends:-          amazonka-core == 1.4.0.*+          amazonka-core == 1.4.1.*         , base          >= 4.7     && < 5  test-suite amazonka-lambda-test@@ -101,9 +101,9 @@         , Test.AWS.Lambda.Internal      build-depends:-          amazonka-core == 1.4.0.*-        , amazonka-test == 1.4.0.*-        , amazonka-lambda == 1.4.0.*+          amazonka-core == 1.4.1.*+        , amazonka-test == 1.4.1.*+        , amazonka-lambda == 1.4.1.*         , base         , bytestring         , tasty
gen/Network/AWS/Lambda/AddPermission.hs view
@@ -43,6 +43,7 @@     , AddPermission     -- * Request Lenses     , apSourceAccount+    , apEventSourceToken     , apSourceARN     , apQualifier     , apFunctionName@@ -67,13 +68,14 @@  -- | /See:/ 'addPermission' smart constructor. data AddPermission = AddPermission'-    { _apSourceAccount :: !(Maybe Text)-    , _apSourceARN     :: !(Maybe Text)-    , _apQualifier     :: !(Maybe Text)-    , _apFunctionName  :: !Text-    , _apStatementId   :: !Text-    , _apAction        :: !Text-    , _apPrincipal     :: !Text+    { _apSourceAccount    :: !(Maybe Text)+    , _apEventSourceToken :: !(Maybe Text)+    , _apSourceARN        :: !(Maybe Text)+    , _apQualifier        :: !(Maybe Text)+    , _apFunctionName     :: !Text+    , _apStatementId      :: !Text+    , _apAction           :: !Text+    , _apPrincipal        :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'AddPermission' with the minimum fields required to make a request.@@ -82,6 +84,8 @@ -- -- * 'apSourceAccount' --+-- * 'apEventSourceToken'+-- -- * 'apSourceARN' -- -- * 'apQualifier'@@ -102,6 +106,7 @@ addPermission pFunctionName_ pStatementId_ pAction_ pPrincipal_ =     AddPermission'     { _apSourceAccount = Nothing+    , _apEventSourceToken = Nothing     , _apSourceARN = Nothing     , _apQualifier = Nothing     , _apFunctionName = pFunctionName_@@ -120,6 +125,10 @@ apSourceAccount :: Lens' AddPermission (Maybe Text) apSourceAccount = lens _apSourceAccount (\ s a -> s{_apSourceAccount = a}); +-- | Undocumented member.+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 bucket Amazon -- Resource Name (ARN) as its value. This ensures that only events@@ -196,6 +205,8 @@  instance Hashable AddPermission +instance NFData AddPermission+ instance ToHeaders AddPermission where         toHeaders = const mempty @@ -204,6 +215,7 @@           = object               (catMaybes                  [("SourceAccount" .=) <$> _apSourceAccount,+                  ("EventSourceToken" .=) <$> _apEventSourceToken,                   ("SourceArn" .=) <$> _apSourceARN,                   Just ("StatementId" .= _apStatementId),                   Just ("Action" .= _apAction),@@ -250,3 +262,5 @@ -- | The response status code. aprsResponseStatus :: Lens' AddPermissionResponse Int aprsResponseStatus = lens _aprsResponseStatus (\ s a -> s{_aprsResponseStatus = a});++instance NFData AddPermissionResponse
gen/Network/AWS/Lambda/CreateAlias.hs view
@@ -108,6 +108,8 @@  instance Hashable CreateAlias +instance NFData CreateAlias+ instance ToHeaders CreateAlias where         toHeaders = const mempty 
gen/Network/AWS/Lambda/CreateEventSourceMapping.hs view
@@ -168,6 +168,8 @@  instance Hashable CreateEventSourceMapping +instance NFData CreateEventSourceMapping+ instance ToHeaders CreateEventSourceMapping where         toHeaders = const mempty 
gen/Network/AWS/Lambda/CreateFunction.hs view
@@ -201,6 +201,8 @@  instance Hashable CreateFunction +instance NFData CreateFunction+ instance ToHeaders CreateFunction where         toHeaders = const mempty 
gen/Network/AWS/Lambda/DeleteAlias.hs view
@@ -82,6 +82,8 @@  instance Hashable DeleteAlias +instance NFData DeleteAlias+ instance ToHeaders DeleteAlias where         toHeaders = const mempty @@ -104,3 +106,5 @@ deleteAliasResponse     :: DeleteAliasResponse deleteAliasResponse = DeleteAliasResponse'++instance NFData DeleteAliasResponse
gen/Network/AWS/Lambda/DeleteEventSourceMapping.hs view
@@ -82,6 +82,8 @@  instance Hashable DeleteEventSourceMapping +instance NFData DeleteEventSourceMapping+ instance ToHeaders DeleteEventSourceMapping where         toHeaders = const mempty 
gen/Network/AWS/Lambda/DeleteFunction.hs view
@@ -114,6 +114,8 @@  instance Hashable DeleteFunction +instance NFData DeleteFunction+ instance ToHeaders DeleteFunction where         toHeaders = const mempty @@ -136,3 +138,5 @@ deleteFunctionResponse     :: DeleteFunctionResponse deleteFunctionResponse = DeleteFunctionResponse'++instance NFData DeleteFunctionResponse
gen/Network/AWS/Lambda/GetAlias.hs view
@@ -90,6 +90,8 @@  instance Hashable GetAlias +instance NFData GetAlias+ instance ToHeaders GetAlias where         toHeaders = const mempty 
gen/Network/AWS/Lambda/GetEventSourceMapping.hs view
@@ -82,6 +82,8 @@  instance Hashable GetEventSourceMapping +instance NFData GetEventSourceMapping+ instance ToHeaders GetEventSourceMapping where         toHeaders = const mempty 
gen/Network/AWS/Lambda/GetFunction.hs view
@@ -114,6 +114,8 @@  instance Hashable GetFunction +instance NFData GetFunction+ instance ToHeaders GetFunction where         toHeaders = const mempty @@ -166,3 +168,5 @@ -- | The response status code. gfrsResponseStatus :: Lens' GetFunctionResponse Int gfrsResponseStatus = lens _gfrsResponseStatus (\ s a -> s{_gfrsResponseStatus = a});++instance NFData GetFunctionResponse
gen/Network/AWS/Lambda/GetFunctionConfiguration.hs view
@@ -122,6 +122,8 @@  instance Hashable GetFunctionConfiguration +instance NFData GetFunctionConfiguration+ instance ToHeaders GetFunctionConfiguration where         toHeaders = const mempty 
gen/Network/AWS/Lambda/GetPolicy.hs view
@@ -109,6 +109,8 @@  instance Hashable GetPolicy +instance NFData GetPolicy+ instance ToHeaders GetPolicy where         toHeaders = const mempty @@ -153,3 +155,5 @@ -- | The response status code. gprsResponseStatus :: Lens' GetPolicyResponse Int gprsResponseStatus = lens _gprsResponseStatus (\ s a -> s{_gprsResponseStatus = a});++instance NFData GetPolicyResponse
gen/Network/AWS/Lambda/Invoke.hs view
@@ -169,6 +169,8 @@  instance Hashable Invoke +instance NFData Invoke+ instance ToBody Invoke where         toBody = toBody . _iPayload @@ -254,3 +256,5 @@ -- 'DryRun' invocation type the status code will be 204. irsStatusCode :: Lens' InvokeResponse Int irsStatusCode = lens _irsStatusCode (\ s a -> s{_irsStatusCode = a});++instance NFData InvokeResponse
gen/Network/AWS/Lambda/ListAliases.hs view
@@ -115,6 +115,8 @@  instance Hashable ListAliases +instance NFData ListAliases+ instance ToHeaders ListAliases where         toHeaders = const mempty @@ -167,3 +169,5 @@ -- | The response status code. larsResponseStatus :: Lens' ListAliasesResponse Int larsResponseStatus = lens _larsResponseStatus (\ s a -> s{_larsResponseStatus = a});++instance NFData ListAliasesResponse
gen/Network/AWS/Lambda/ListEventSourceMappings.hs view
@@ -141,6 +141,8 @@  instance Hashable ListEventSourceMappings +instance NFData ListEventSourceMappings+ instance ToHeaders ListEventSourceMappings where         toHeaders = const mempty @@ -194,3 +196,5 @@ -- | The response status code. lesmrsResponseStatus :: Lens' ListEventSourceMappingsResponse Int lesmrsResponseStatus = lens _lesmrsResponseStatus (\ s a -> s{_lesmrsResponseStatus = a});++instance NFData ListEventSourceMappingsResponse
gen/Network/AWS/Lambda/ListFunctions.hs view
@@ -109,6 +109,8 @@  instance Hashable ListFunctions +instance NFData ListFunctions+ instance ToHeaders ListFunctions where         toHeaders = const mempty @@ -160,3 +162,5 @@ -- | The response status code. lfrsResponseStatus :: Lens' ListFunctionsResponse Int lfrsResponseStatus = lens _lfrsResponseStatus (\ s a -> s{_lfrsResponseStatus = a});++instance NFData ListFunctionsResponse
gen/Network/AWS/Lambda/ListVersionsByFunction.hs view
@@ -110,6 +110,8 @@  instance Hashable ListVersionsByFunction +instance NFData ListVersionsByFunction+ instance ToHeaders ListVersionsByFunction where         toHeaders = const mempty @@ -162,3 +164,5 @@ -- | The response status code. lvbfrsResponseStatus :: Lens' ListVersionsByFunctionResponse Int lvbfrsResponseStatus = lens _lvbfrsResponseStatus (\ s a -> s{_lvbfrsResponseStatus = a});++instance NFData ListVersionsByFunctionResponse
gen/Network/AWS/Lambda/PublishVersion.hs view
@@ -116,6 +116,8 @@  instance Hashable PublishVersion +instance NFData PublishVersion+ instance ToHeaders PublishVersion where         toHeaders = const mempty 
gen/Network/AWS/Lambda/RemovePermission.hs view
@@ -112,6 +112,8 @@  instance Hashable RemovePermission +instance NFData RemovePermission+ instance ToHeaders RemovePermission where         toHeaders = const mempty @@ -135,3 +137,5 @@ removePermissionResponse     :: RemovePermissionResponse removePermissionResponse = RemovePermissionResponse'++instance NFData RemovePermissionResponse
gen/Network/AWS/Lambda/Types.hs view
@@ -144,6 +144,8 @@       | has (hasCode "ThrottlingException" . hasStatus 400) e =           Just "throttling_exception"       | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+      | has (hasStatus 504) e = Just "gateway_timeout"+      | has (hasStatus 502) e = Just "bad_gateway"       | has (hasStatus 503) e = Just "service_unavailable"       | has (hasStatus 500) e = Just "general_server_error"       | has (hasStatus 509) e = Just "limit_exceeded"
gen/Network/AWS/Lambda/Types/Product.hs view
@@ -83,6 +83,8 @@  instance Hashable AliasConfiguration +instance NFData AliasConfiguration+ -- | Describes mapping between an Amazon Kinesis stream and a Lambda -- function. --@@ -186,6 +188,8 @@  instance Hashable EventSourceMappingConfiguration +instance NFData EventSourceMappingConfiguration+ -- | The code for the Lambda function. -- -- /See:/ 'functionCode' smart constructor.@@ -250,6 +254,8 @@  instance Hashable FunctionCode +instance NFData FunctionCode+ instance ToJSON FunctionCode where         toJSON FunctionCode'{..}           = object@@ -300,6 +306,8 @@  instance Hashable FunctionCodeLocation +instance NFData FunctionCodeLocation+ -- | A complex type that describes function metadata. -- -- /See:/ 'functionConfiguration' smart constructor.@@ -445,6 +453,8 @@  instance Hashable FunctionConfiguration +instance NFData FunctionConfiguration+ -- | 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@@ -481,6 +491,8 @@  instance Hashable VPCConfig +instance NFData VPCConfig+ instance ToJSON VPCConfig where         toJSON VPCConfig'{..}           = object@@ -537,3 +549,5 @@                      <*> (x .:? "VpcId"))  instance Hashable VPCConfigResponse++instance NFData VPCConfigResponse
gen/Network/AWS/Lambda/Types/Sum.hs view
@@ -37,6 +37,7 @@         TrimHorizon -> "TRIM_HORIZON"  instance Hashable     EventSourcePosition+instance NFData       EventSourcePosition instance ToByteString EventSourcePosition instance ToQuery      EventSourcePosition instance ToHeader     EventSourcePosition@@ -65,6 +66,7 @@         RequestResponse -> "RequestResponse"  instance Hashable     InvocationType+instance NFData       InvocationType instance ToByteString InvocationType instance ToQuery      InvocationType instance ToHeader     InvocationType@@ -90,6 +92,7 @@         Tail -> "Tail"  instance Hashable     LogType+instance NFData       LogType instance ToByteString LogType instance ToQuery      LogType instance ToHeader     LogType@@ -99,6 +102,7 @@  data Runtime     = JAVA8+    | NODEJS4_3     | Nodejs     | PYTHON2_7     deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)@@ -106,18 +110,21 @@ instance FromText Runtime where     parser = takeLowerText >>= \case         "java8" -> pure JAVA8+        "nodejs4.3" -> pure NODEJS4_3         "nodejs" -> pure Nodejs         "python2.7" -> pure PYTHON2_7         e -> fromTextError $ "Failure parsing Runtime from value: '" <> e-           <> "'. Accepted values: java8, nodejs, python2.7"+           <> "'. Accepted values: java8, nodejs4.3, nodejs, python2.7"  instance ToText Runtime where     toText = \case         JAVA8 -> "java8"+        NODEJS4_3 -> "nodejs4.3"         Nodejs -> "nodejs"         PYTHON2_7 -> "python2.7"  instance Hashable     Runtime+instance NFData       Runtime instance ToByteString Runtime instance ToQuery      Runtime instance ToHeader     Runtime
gen/Network/AWS/Lambda/UpdateAlias.hs view
@@ -106,6 +106,8 @@  instance Hashable UpdateAlias +instance NFData UpdateAlias+ instance ToHeaders UpdateAlias where         toHeaders = const mempty 
gen/Network/AWS/Lambda/UpdateEventSourceMapping.hs view
@@ -139,6 +139,8 @@  instance Hashable UpdateEventSourceMapping +instance NFData UpdateEventSourceMapping+ instance ToHeaders UpdateEventSourceMapping where         toHeaders = const mempty 
gen/Network/AWS/Lambda/UpdateFunctionCode.hs view
@@ -156,6 +156,8 @@  instance Hashable UpdateFunctionCode +instance NFData UpdateFunctionCode+ instance ToHeaders UpdateFunctionCode where         toHeaders = const mempty 
gen/Network/AWS/Lambda/UpdateFunctionConfiguration.hs view
@@ -38,6 +38,7 @@     , UpdateFunctionConfiguration     -- * Request Lenses     , ufcMemorySize+    , ufcRuntime     , ufcRole     , ufcVPCConfig     , ufcHandler@@ -74,6 +75,7 @@ -- | /See:/ 'updateFunctionConfiguration' smart constructor. data UpdateFunctionConfiguration = UpdateFunctionConfiguration'     { _ufcMemorySize   :: !(Maybe Nat)+    , _ufcRuntime      :: !(Maybe Runtime)     , _ufcRole         :: !(Maybe Text)     , _ufcVPCConfig    :: !(Maybe VPCConfig)     , _ufcHandler      :: !(Maybe Text)@@ -88,6 +90,8 @@ -- -- * 'ufcMemorySize' --+-- * 'ufcRuntime'+-- -- * 'ufcRole' -- -- * 'ufcVPCConfig'@@ -105,6 +109,7 @@ updateFunctionConfiguration pFunctionName_ =     UpdateFunctionConfiguration'     { _ufcMemorySize = Nothing+    , _ufcRuntime = Nothing     , _ufcRole = Nothing     , _ufcVPCConfig = Nothing     , _ufcHandler = Nothing@@ -122,6 +127,10 @@ ufcMemorySize :: Lens' UpdateFunctionConfiguration (Maybe Natural) ufcMemorySize = lens _ufcMemorySize (\ s a -> s{_ufcMemorySize = a}) . mapping _Nat; +-- | Undocumented member.+ufcRuntime :: Lens' UpdateFunctionConfiguration (Maybe Runtime)+ufcRuntime = lens _ufcRuntime (\ s a -> s{_ufcRuntime = a});+ -- | The Amazon Resource Name (ARN) of the IAM role that Lambda will assume -- when it executes your function. ufcRole :: Lens' UpdateFunctionConfiguration (Maybe Text)@@ -168,6 +177,8 @@  instance Hashable UpdateFunctionConfiguration +instance NFData UpdateFunctionConfiguration+ instance ToHeaders UpdateFunctionConfiguration where         toHeaders = const mempty @@ -176,6 +187,7 @@           = object               (catMaybes                  [("MemorySize" .=) <$> _ufcMemorySize,+                  ("Runtime" .=) <$> _ufcRuntime,                   ("Role" .=) <$> _ufcRole,                   ("VpcConfig" .=) <$> _ufcVPCConfig,                   ("Handler" .=) <$> _ufcHandler,