Safe Haskell | None |
---|---|
Language | Haskell2010 |
Aws.Lambda
Synopsis
- data ApiGatewayRequest body = ApiGatewayRequest {
- apiGatewayRequestResource :: !Text
- apiGatewayRequestPath :: !Text
- apiGatewayRequestHttpMethod :: !Text
- apiGatewayRequestHeaders :: !(HashMap Text Text)
- apiGatewayRequestQueryStringParameters :: !(Maybe [(Text, Maybe Text)])
- apiGatewayRequestPathParameters :: !(Maybe (HashMap Text Text))
- apiGatewayRequestStageVariables :: !(Maybe (HashMap Text Text))
- apiGatewayRequestIsBase64Encoded :: !Bool
- apiGatewayRequestRequestContext :: !ApiGatewayRequestContext
- apiGatewayRequestBody :: !(Maybe body)
- data ApiGatewayRequestContext = ApiGatewayRequestContext {
- apiGatewayRequestContextResourceId :: !Text
- apiGatewayRequestContextResourcePath :: !Text
- apiGatewayRequestContextHttpMethod :: !Text
- apiGatewayRequestContextExtendedRequestId :: !Text
- apiGatewayRequestContextRequestTime :: !Text
- apiGatewayRequestContextPath :: !Text
- apiGatewayRequestContextAccountId :: !Text
- apiGatewayRequestContextProtocol :: !Text
- apiGatewayRequestContextStage :: !Text
- apiGatewayRequestContextDomainPrefix :: !Text
- apiGatewayRequestContextRequestId :: !Text
- apiGatewayRequestContextDomainName :: !Text
- apiGatewayRequestContextApiId :: !Text
- apiGatewayRequestContextIdentity :: !ApiGatewayRequestContextIdentity
- data ApiGatewayRequestContextIdentity = ApiGatewayRequestContextIdentity {
- apiGatewayRequestContextIdentityCognitoIdentityPoolId :: !(Maybe Text)
- apiGatewayRequestContextIdentityAccountId :: !(Maybe Text)
- apiGatewayRequestContextIdentityCognitoIdentityId :: !(Maybe Text)
- apiGatewayRequestContextIdentityCaller :: !(Maybe Text)
- apiGatewayRequestContextIdentitySourceIp :: !(Maybe Text)
- apiGatewayRequestContextIdentityPrincipalOrgId :: !(Maybe Text)
- apiGatewayRequestContextIdentityAccesskey :: !(Maybe Text)
- apiGatewayRequestContextIdentityCognitoAuthenticationType :: !(Maybe Text)
- apiGatewayRequestContextIdentityCognitoAuthenticationProvider :: !(Maybe Value)
- apiGatewayRequestContextIdentityUserArn :: !(Maybe Text)
- apiGatewayRequestContextIdentityUserAgent :: !(Maybe Text)
- apiGatewayRequestContextIdentityUser :: !(Maybe Text)
- data ApiGatewayResponse body = ApiGatewayResponse {}
- mkApiGatewayResponse :: Int -> payload -> ApiGatewayResponse payload
- data Context = Context {
- memoryLimitInMb :: !Int
- functionName :: !String
- functionVersion :: !String
- invokedFunctionArn :: !String
- awsRequestId :: !String
- xrayTraceId :: !String
- logStreamName :: !String
- logGroupName :: !String
- deadline :: !Int
- initialize :: Throws Parsing => Throws EnvironmentVariableNotSet => Event -> IO Context
- module Aws.Lambda.Runtime
- data LambdaOptions = LambdaOptions {
- eventObject :: !String
- contextObject :: !String
- functionHandler :: !String
- executionUuid :: !String
- generateLambdaDispatcher :: DispatcherStrategy -> DispatcherOptions -> DecsQ
- decodeObj :: forall a. (FromJSON a, Typeable a) => String -> Either Parsing a
- encodeObj :: ToJSON a => a -> String
Documentation
data ApiGatewayRequest body Source #
Constructors
Instances
Show body => Show (ApiGatewayRequest body) Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods showsPrec :: Int -> ApiGatewayRequest body -> ShowS # show :: ApiGatewayRequest body -> String # showList :: [ApiGatewayRequest body] -> ShowS # | |
FromJSON body => FromJSON (ApiGatewayRequest body) Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods parseJSON :: Value -> Parser (ApiGatewayRequest body) # parseJSONList :: Value -> Parser [ApiGatewayRequest body] # |
data ApiGatewayRequestContext Source #
Constructors
Instances
Show ApiGatewayRequestContext Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods showsPrec :: Int -> ApiGatewayRequestContext -> ShowS # show :: ApiGatewayRequestContext -> String # showList :: [ApiGatewayRequestContext] -> ShowS # | |
FromJSON ApiGatewayRequestContext Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods parseJSON :: Value -> Parser ApiGatewayRequestContext # parseJSONList :: Value -> Parser [ApiGatewayRequestContext] # |
data ApiGatewayRequestContextIdentity Source #
Constructors
Instances
Show ApiGatewayRequestContextIdentity Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods showsPrec :: Int -> ApiGatewayRequestContextIdentity -> ShowS # | |
FromJSON ApiGatewayRequestContextIdentity Source # | |
Defined in Aws.Lambda.Runtime.ApiGatewayInfo Methods parseJSON :: Value -> Parser ApiGatewayRequestContextIdentity # parseJSONList :: Value -> Parser [ApiGatewayRequestContextIdentity] # |
data ApiGatewayResponse body Source #
Constructors
ApiGatewayResponse | |
Fields |
Instances
mkApiGatewayResponse :: Int -> payload -> ApiGatewayResponse payload Source #
Context that is passed to all the handlers
Constructors
Context | |
Fields
|
Instances
initialize :: Throws Parsing => Throws EnvironmentVariableNotSet => Event -> IO Context Source #
Initializes the context out of the environment
module Aws.Lambda.Runtime
data LambdaOptions Source #
Options that the generated main expects
Constructors
LambdaOptions | |
Fields
|
Instances
Generic LambdaOptions Source # | |
Defined in Aws.Lambda.Runtime.Common Associated Types type Rep LambdaOptions :: Type -> Type # | |
type Rep LambdaOptions Source # | |
Defined in Aws.Lambda.Runtime.Common type Rep LambdaOptions = D1 (MetaData "LambdaOptions" "Aws.Lambda.Runtime.Common" "aws-lambda-haskell-runtime-2.0.6-bDxQ9mM82RCeUFMK27qT8" False) (C1 (MetaCons "LambdaOptions" PrefixI True) ((S1 (MetaSel (Just "eventObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String) :*: S1 (MetaSel (Just "contextObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String)) :*: (S1 (MetaSel (Just "functionHandler") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String) :*: S1 (MetaSel (Just "executionUuid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String)))) |
generateLambdaDispatcher :: DispatcherStrategy -> DispatcherOptions -> DecsQ Source #
Generates a main
function that acts as a dispatcher