-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Amazon Lambda SDK. -- -- AWS Lambda is a compute service that runs your code in response to -- events and automatically manages the compute resources for you, making -- it easy to build applications that respond quickly to new information. -- AWS Lambda starts running your code within milliseconds of an event -- such as an image upload, in-app activity, website click, or output -- from a connected device. You can also use AWS Lambda to create new -- back-end services where compute resources are automatically triggered -- based on custom requests. With AWS Lambda you pay only for the -- requests served and the compute time required to run your code. -- Billing is metered in increments of 100 milliseconds, making it -- cost-effective and easy to scale automatically from a few requests per -- day to thousands per second. -- -- See: AWS API Reference -- -- Warning: This is an experimental preview release which is still -- under heavy development and not intended for public consumption, -- caveat emptor! @package amazonka-lambda @version 0.2.1 module Network.AWS.Lambda.Types -- | Version 2014-11-11 of the Amazon Lambda service. data Lambda data JSONError :: * data Runtime -- | nodejs Nodejs :: Runtime data Mode -- | event Event :: Mode data FunctionCodeLocation -- | FunctionCodeLocation constructor. -- -- The fields accessible through corresponding lenses are: -- -- functionCodeLocation :: FunctionCodeLocation -- | 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) -- | The repository from which you can download the function. fclRepositoryType :: Lens' FunctionCodeLocation (Maybe Text) data FunctionConfiguration -- | FunctionConfiguration constructor. -- -- The fields accessible through corresponding lenses are: -- -- functionConfiguration :: FunctionConfiguration -- | The size, in bytes, of the function .zip file you uploaded. fcCodeSize :: Lens' FunctionConfiguration (Maybe Integer) -- | A Lambda-assigned unique identifier for the current function code and -- related configuration. fcConfigurationId :: Lens' FunctionConfiguration (Maybe Text) -- | The user-provided description. fcDescription :: Lens' FunctionConfiguration (Maybe Text) -- | The Amazon Resource Name (ARN) assigned to the function. fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text) -- | The name of the function. fcFunctionName :: Lens' FunctionConfiguration (Maybe Text) -- | The function Lambda calls to begin executing your function. fcHandler :: Lens' FunctionConfiguration (Maybe Text) -- | The timestamp of the last time you updated the function. fcLastModified :: Lens' FunctionConfiguration (Maybe UTCTime) -- | The memory size, in MB, you configured for the function. Must be a -- multiple of 64 MB. fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) -- | The type of the Lambda function you uploaded. fcMode :: Lens' FunctionConfiguration (Maybe Mode) -- | 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) -- | The runtime environment for the Lambda function. fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. fcTimeout :: Lens' FunctionConfiguration (Maybe Natural) data EventSourceConfiguration -- | EventSourceConfiguration constructor. -- -- The fields accessible through corresponding lenses are: -- -- eventSourceConfiguration :: EventSourceConfiguration -- | The largest number of records that AWS Lambda will POST in the -- invocation request to your function. escBatchSize :: Lens' EventSourceConfiguration (Maybe Int) -- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is -- the source of events. escEventSource :: Lens' EventSourceConfiguration (Maybe Text) -- | The Lambda function to invoke when AWS Lambda detects an event on the -- stream. escFunctionName :: Lens' EventSourceConfiguration (Maybe Text) -- | Indicates whether the event source mapping is currently honored. -- Events are only processes if IsActive is true. escIsActive :: Lens' EventSourceConfiguration (Maybe Bool) -- | The UTC time string indicating the last time the event mapping was -- updated. escLastModified :: Lens' EventSourceConfiguration (Maybe UTCTime) -- | The map (key-value pairs) defining the configuration for AWS Lambda to -- use when reading the event source. escParameters :: Lens' EventSourceConfiguration (HashMap Text Text) -- | The ARN of the IAM role (invocation role) that AWS Lambda can assume -- to read from the stream and invoke the function. escRole :: Lens' EventSourceConfiguration (Maybe Text) -- | The description of the health of the event source mapping. Valid -- values are: PENDING, OK, and "PROBLEM:message". -- Initially this staus is PENDING. When AWS Lambda begins -- processing events, it changes the status to OK. escStatus :: Lens' EventSourceConfiguration (Maybe Text) -- | The AWS Lambda assigned opaque identifier for the mapping. escUUID :: Lens' EventSourceConfiguration (Maybe Text) instance Eq Runtime instance Ord Runtime instance Show Runtime instance Generic Runtime instance Enum Runtime instance Eq Mode instance Ord Mode instance Show Mode instance Generic Mode instance Enum Mode instance Eq FunctionCodeLocation instance Ord FunctionCodeLocation instance Show FunctionCodeLocation instance Eq FunctionConfiguration instance Show FunctionConfiguration instance Eq EventSourceConfiguration instance Show EventSourceConfiguration instance Datatype D1Runtime instance Constructor C1_0Runtime instance Datatype D1Mode instance Constructor C1_0Mode instance ToJSON EventSourceConfiguration instance FromJSON EventSourceConfiguration instance ToJSON FunctionConfiguration instance FromJSON FunctionConfiguration instance ToJSON FunctionCodeLocation instance FromJSON FunctionCodeLocation instance ToJSON Mode instance FromJSON Mode instance ToQuery Mode instance ToHeader Mode instance ToByteString Mode instance ToText Mode instance FromText Mode instance Hashable Mode instance ToJSON Runtime instance FromJSON Runtime instance ToQuery Runtime instance ToHeader Runtime instance ToByteString Runtime instance ToText Runtime instance FromText Runtime instance Hashable Runtime instance AWSService Lambda -- | Updates the configuration parameters for the specified Lambda function -- by using the values provided in the request. You provide only the -- parameters you want to change. This operation must only be used on an -- existing Lambda function and cannot be used to update the function's -- code. -- -- This operation requires permission for the -- 'lambda:UpdateFunctionConfiguration' action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionConfiguration.html module Network.AWS.Lambda.UpdateFunctionConfiguration data UpdateFunctionConfiguration -- | UpdateFunctionConfiguration constructor. -- -- The fields accessible through corresponding lenses are: -- -- updateFunctionConfiguration :: Text -> UpdateFunctionConfiguration -- | A short user-defined function description. Lambda does not use this -- value. Assign a meaningful description as you see fit. ufcDescription :: Lens' UpdateFunctionConfiguration (Maybe Text) -- | The name of the Lambda function. ufcFunctionName :: Lens' UpdateFunctionConfiguration Text -- | 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) -- | The amount of memory, in MB, your Lambda function is given. Lambda -- uses this memory size to infer the amount of CPU allocated to your -- function. Your function use-case determines your CPU and memory -- requirements. For example, a database operation might need less memory -- compared to an image processing function. The default value is 128 MB. -- The value must be a multiple of 64 MB. ufcMemorySize :: Lens' UpdateFunctionConfiguration (Maybe Natural) -- | The Amazon Resource Name (ARN) of the IAM role that Lambda will assume -- when it executes your function. ufcRole :: Lens' UpdateFunctionConfiguration (Maybe Text) -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. ufcTimeout :: Lens' UpdateFunctionConfiguration (Maybe Natural) data UpdateFunctionConfigurationResponse -- | UpdateFunctionConfigurationResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- updateFunctionConfigurationResponse :: UpdateFunctionConfigurationResponse -- | The size, in bytes, of the function .zip file you uploaded. ufcrCodeSize :: Lens' UpdateFunctionConfigurationResponse (Maybe Integer) -- | A Lambda-assigned unique identifier for the current function code and -- related configuration. ufcrConfigurationId :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The user-provided description. ufcrDescription :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The Amazon Resource Name (ARN) assigned to the function. ufcrFunctionARN :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The name of the function. ufcrFunctionName :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The function Lambda calls to begin executing your function. ufcrHandler :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The timestamp of the last time you updated the function. ufcrLastModified :: Lens' UpdateFunctionConfigurationResponse (Maybe UTCTime) -- | The memory size, in MB, you configured for the function. Must be a -- multiple of 64 MB. ufcrMemorySize :: Lens' UpdateFunctionConfigurationResponse (Maybe Natural) -- | The type of the Lambda function you uploaded. ufcrMode :: Lens' UpdateFunctionConfigurationResponse (Maybe Mode) -- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes -- when it executes your function to access any other Amazon Web Services -- (AWS) resources. ufcrRole :: Lens' UpdateFunctionConfigurationResponse (Maybe Text) -- | The runtime environment for the Lambda function. ufcrRuntime :: Lens' UpdateFunctionConfigurationResponse (Maybe Runtime) -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. ufcrTimeout :: Lens' UpdateFunctionConfigurationResponse (Maybe Natural) instance Eq UpdateFunctionConfiguration instance Ord UpdateFunctionConfiguration instance Show UpdateFunctionConfiguration instance Eq UpdateFunctionConfigurationResponse instance Show UpdateFunctionConfigurationResponse instance FromJSON UpdateFunctionConfigurationResponse instance AWSRequest UpdateFunctionConfiguration instance ToJSON UpdateFunctionConfiguration instance ToHeaders UpdateFunctionConfiguration instance ToQuery UpdateFunctionConfiguration instance ToPath UpdateFunctionConfiguration -- | Creates a new Lambda function or updates an existing function. The -- function metadata is created from the request parameters, and the code -- for the function is provided by a .zip file in the request body. If -- the function name already exists, the existing Lambda function is -- updated with the new code and metadata. -- -- This operation requires permission for the 'lambda:UploadFunction' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_UploadFunction.html module Network.AWS.Lambda.UploadFunction data UploadFunction -- | UploadFunction constructor. -- -- The fields accessible through corresponding lenses are: -- -- uploadFunction :: Text -> Base64 -> Runtime -> Text -> Text -> Mode -> UploadFunction -- | A short, user-defined function description. Lambda does not use this -- value. Assign a meaningful description as you see fit. ufDescription :: Lens' UploadFunction (Maybe Text) -- | The name you want to assign to the function you are uploading. The -- function names appear in the console and are returned in the -- ListFunctions API. Function names are used to specify -- functions to other AWS Lambda APIs, such as InvokeAsync. ufFunctionName :: Lens' UploadFunction Text -- | A .zip file containing your packaged source code. For more information -- about creating a .zip file, go to AWS LambdaL How it Works in -- the AWS Lambda Developer Guide. ufFunctionZip :: Lens' UploadFunction Base64 -- | The function that Lambda calls to begin execution. For Node.js, it is -- the module-name.export value in your function. ufHandler :: Lens' UploadFunction Text -- | The amount of memory, in MB, your Lambda function is given. Lambda -- uses this memory size to infer the amount of CPU allocated to your -- function. Your function use-case determines your CPU and memory -- requirements. For example, database operation might need less memory -- compared to image processing function. The default value is 128 MB. -- The value must be a multiple of 64 MB. ufMemorySize :: Lens' UploadFunction (Maybe Natural) -- | How the Lambda function will be invoked. Lambda supports only the -- "event" mode. ufMode :: Lens' UploadFunction Mode -- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes -- when it executes your function to access any other Amazon Web Services -- (AWS) resources. ufRole :: Lens' UploadFunction Text -- | The runtime environment for the Lambda function you are uploading. -- Currently, Lambda supports only "nodejs" as the runtime. ufRuntime :: Lens' UploadFunction Runtime -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. ufTimeout :: Lens' UploadFunction (Maybe Natural) data UploadFunctionResponse -- | UploadFunctionResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- uploadFunctionResponse :: UploadFunctionResponse -- | The size, in bytes, of the function .zip file you uploaded. ufrCodeSize :: Lens' UploadFunctionResponse (Maybe Integer) -- | A Lambda-assigned unique identifier for the current function code and -- related configuration. ufrConfigurationId :: Lens' UploadFunctionResponse (Maybe Text) -- | The user-provided description. ufrDescription :: Lens' UploadFunctionResponse (Maybe Text) -- | The Amazon Resource Name (ARN) assigned to the function. ufrFunctionARN :: Lens' UploadFunctionResponse (Maybe Text) -- | The name of the function. ufrFunctionName :: Lens' UploadFunctionResponse (Maybe Text) -- | The function Lambda calls to begin executing your function. ufrHandler :: Lens' UploadFunctionResponse (Maybe Text) -- | The timestamp of the last time you updated the function. ufrLastModified :: Lens' UploadFunctionResponse (Maybe UTCTime) -- | The memory size, in MB, you configured for the function. Must be a -- multiple of 64 MB. ufrMemorySize :: Lens' UploadFunctionResponse (Maybe Natural) -- | The type of the Lambda function you uploaded. ufrMode :: Lens' UploadFunctionResponse (Maybe Mode) -- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes -- when it executes your function to access any other Amazon Web Services -- (AWS) resources. ufrRole :: Lens' UploadFunctionResponse (Maybe Text) -- | The runtime environment for the Lambda function. ufrRuntime :: Lens' UploadFunctionResponse (Maybe Runtime) -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. ufrTimeout :: Lens' UploadFunctionResponse (Maybe Natural) instance Eq UploadFunction instance Show UploadFunction instance Eq UploadFunctionResponse instance Show UploadFunctionResponse instance FromJSON UploadFunctionResponse instance AWSRequest UploadFunction instance ToJSON UploadFunction instance ToHeaders UploadFunction instance ToQuery UploadFunction instance ToPath UploadFunction -- | Removes an event source mapping. This means AWS Lambda will no longer -- invoke the function for events in the associated source. -- -- This operation requires permission for the 'lambda:RemoveEventSource' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_RemoveEventSource.html module Network.AWS.Lambda.RemoveEventSource data RemoveEventSource -- | RemoveEventSource constructor. -- -- The fields accessible through corresponding lenses are: -- -- removeEventSource :: Text -> RemoveEventSource -- | The event source mapping ID. resUUID :: Lens' RemoveEventSource Text data RemoveEventSourceResponse -- | RemoveEventSourceResponse constructor. removeEventSourceResponse :: RemoveEventSourceResponse instance Eq RemoveEventSource instance Ord RemoveEventSource instance Show RemoveEventSource instance Monoid RemoveEventSource instance IsString RemoveEventSource instance Eq RemoveEventSourceResponse instance Ord RemoveEventSourceResponse instance Show RemoveEventSourceResponse instance Generic RemoveEventSourceResponse instance Datatype D1RemoveEventSourceResponse instance Constructor C1_0RemoveEventSourceResponse instance AWSRequest RemoveEventSource instance ToJSON RemoveEventSource instance ToHeaders RemoveEventSource instance ToQuery RemoveEventSource instance ToPath RemoveEventSource -- | 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. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_ListFunctions.html module Network.AWS.Lambda.ListFunctions data ListFunctions -- | ListFunctions constructor. -- -- The fields accessible through corresponding lenses are: -- -- listFunctions :: ListFunctions -- | 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) -- | Optional integer. Specifies the maximum number of AWS Lambda functions -- to return in response. This parameter value must be greater than 0. lfMaxItems :: Lens' ListFunctions (Maybe Natural) data ListFunctionsResponse -- | ListFunctionsResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- listFunctionsResponse :: ListFunctionsResponse -- | A list of Lambda functions. lfrFunctions :: Lens' ListFunctionsResponse [FunctionConfiguration] -- | A string, present if there are more functions. lfrNextMarker :: Lens' ListFunctionsResponse (Maybe Text) instance Eq ListFunctions instance Ord ListFunctions instance Show ListFunctions instance Eq ListFunctionsResponse instance Show ListFunctionsResponse instance FromJSON ListFunctionsResponse instance AWSRequest ListFunctions instance ToJSON ListFunctions instance ToHeaders ListFunctions instance ToQuery ListFunctions instance ToPath ListFunctions -- | Returns a list of event source mappings. For each mapping, the API -- returns configuration information (see AddEventSource). You -- can optionally specify filters to retrieve specific event source -- mappings. -- -- This operation requires permission for the 'lambda:ListEventSources' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_ListEventSources.html module Network.AWS.Lambda.ListEventSources data ListEventSources -- | ListEventSources constructor. -- -- The fields accessible through corresponding lenses are: -- -- listEventSources :: ListEventSources -- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream. lesEventSourceArn :: Lens' ListEventSources (Maybe Text) -- | The name of the AWS Lambda function. lesFunctionName :: Lens' ListEventSources (Maybe Text) -- | Optional string. An opaque pagination token returned from a previous -- ListEventSources operation. If present, specifies to continue -- the list from where the returning call left off. lesMarker :: Lens' ListEventSources (Maybe Text) -- | Optional integer. Specifies the maximum number of event sources to -- return in response. This value must be greater than 0. lesMaxItems :: Lens' ListEventSources (Maybe Natural) data ListEventSourcesResponse -- | ListEventSourcesResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- listEventSourcesResponse :: ListEventSourcesResponse -- | An arrary of EventSourceConfiguration objects. lesrEventSources :: Lens' ListEventSourcesResponse [EventSourceConfiguration] -- | A string, present if there are more event source mappings. lesrNextMarker :: Lens' ListEventSourcesResponse (Maybe Text) instance Eq ListEventSources instance Ord ListEventSources instance Show ListEventSources instance Eq ListEventSourcesResponse instance Show ListEventSourcesResponse instance FromJSON ListEventSourcesResponse instance AWSRequest ListEventSources instance ToJSON ListEventSources instance ToHeaders ListEventSources instance ToQuery ListEventSources instance ToPath ListEventSources -- | Submits an invocation request to AWS Lambda. Upon receiving the -- request, Lambda executes the specified function asynchronously. To see -- the logs generated by the Lambda function execution, see the -- CloudWatch logs console. -- -- This operation requires permission for the 'lambda:InvokeAsync' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_InvokeAsync.html module Network.AWS.Lambda.InvokeAsync data InvokeAsync -- | InvokeAsync constructor. -- -- The fields accessible through corresponding lenses are: -- -- invokeAsync :: Text -> Base64 -> InvokeAsync -- | The Lambda function name. iaFunctionName :: Lens' InvokeAsync Text -- | JSON that you want to provide to your Lambda function as input. iaInvokeArgs :: Lens' InvokeAsync Base64 data InvokeAsyncResponse -- | InvokeAsyncResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- invokeAsyncResponse :: Int -> InvokeAsyncResponse -- | It will be 202 upon success. iarStatus :: Lens' InvokeAsyncResponse Int instance Eq InvokeAsync instance Show InvokeAsync instance Eq InvokeAsyncResponse instance Ord InvokeAsyncResponse instance Show InvokeAsyncResponse instance Enum InvokeAsyncResponse instance Num InvokeAsyncResponse instance Integral InvokeAsyncResponse instance Real InvokeAsyncResponse instance FromJSON InvokeAsyncResponse instance AWSRequest InvokeAsync instance ToJSON InvokeAsync instance ToHeaders InvokeAsync instance ToQuery InvokeAsync instance ToPath InvokeAsync -- | Returns the configuration information of the Lambda function. This the -- same information you provided as parameters when uploading the -- function by using UploadFunction. -- -- This operation requires permission for the -- 'lambda:GetFunctionConfiguration' operation. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html module Network.AWS.Lambda.GetFunctionConfiguration data GetFunctionConfiguration -- | GetFunctionConfiguration constructor. -- -- The fields accessible through corresponding lenses are: -- -- getFunctionConfiguration :: Text -> GetFunctionConfiguration -- | The name of the Lambda function for which you want to retrieve the -- configuration information. gfcFunctionName :: Lens' GetFunctionConfiguration Text data GetFunctionConfigurationResponse -- | GetFunctionConfigurationResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- getFunctionConfigurationResponse :: GetFunctionConfigurationResponse -- | The size, in bytes, of the function .zip file you uploaded. gfcrCodeSize :: Lens' GetFunctionConfigurationResponse (Maybe Integer) -- | A Lambda-assigned unique identifier for the current function code and -- related configuration. gfcrConfigurationId :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The user-provided description. gfcrDescription :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The Amazon Resource Name (ARN) assigned to the function. gfcrFunctionARN :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The name of the function. gfcrFunctionName :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The function Lambda calls to begin executing your function. gfcrHandler :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The timestamp of the last time you updated the function. gfcrLastModified :: Lens' GetFunctionConfigurationResponse (Maybe UTCTime) -- | The memory size, in MB, you configured for the function. Must be a -- multiple of 64 MB. gfcrMemorySize :: Lens' GetFunctionConfigurationResponse (Maybe Natural) -- | The type of the Lambda function you uploaded. gfcrMode :: Lens' GetFunctionConfigurationResponse (Maybe Mode) -- | The Amazon Resource Name (ARN) of the IAM role that Lambda assumes -- when it executes your function to access any other Amazon Web Services -- (AWS) resources. gfcrRole :: Lens' GetFunctionConfigurationResponse (Maybe Text) -- | The runtime environment for the Lambda function. gfcrRuntime :: Lens' GetFunctionConfigurationResponse (Maybe Runtime) -- | The function execution time at which Lambda should terminate the -- function. Because the execution time has cost implications, we -- recommend you set this value based on your expected execution time. -- The default is 3 seconds. gfcrTimeout :: Lens' GetFunctionConfigurationResponse (Maybe Natural) instance Eq GetFunctionConfiguration instance Ord GetFunctionConfiguration instance Show GetFunctionConfiguration instance Monoid GetFunctionConfiguration instance IsString GetFunctionConfiguration instance Eq GetFunctionConfigurationResponse instance Show GetFunctionConfigurationResponse instance FromJSON GetFunctionConfigurationResponse instance AWSRequest GetFunctionConfiguration instance ToJSON GetFunctionConfiguration instance ToHeaders GetFunctionConfiguration instance ToQuery GetFunctionConfiguration instance ToPath GetFunctionConfiguration -- | Returns the configuration information of the Lambda function and a -- presigned URL link to the .zip file you uploaded with -- UploadFunction so you can download the .zip file. Note that -- the URL is valid for up to 10 minutes. The configuration information -- is the same information you provided as parameters when uploading the -- function. -- -- This operation requires permission for the 'lambda:GetFunction' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_GetFunction.html module Network.AWS.Lambda.GetFunction data GetFunction -- | GetFunction constructor. -- -- The fields accessible through corresponding lenses are: -- -- getFunction :: Text -> GetFunction -- | The Lambda function name. gfFunctionName :: Lens' GetFunction Text data GetFunctionResponse -- | GetFunctionResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- getFunctionResponse :: GetFunctionResponse gfrCode :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation) gfrConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) instance Eq GetFunction instance Ord GetFunction instance Show GetFunction instance Monoid GetFunction instance IsString GetFunction instance Eq GetFunctionResponse instance Show GetFunctionResponse instance FromJSON GetFunctionResponse instance AWSRequest GetFunction instance ToJSON GetFunction instance ToHeaders GetFunction instance ToQuery GetFunction instance ToPath GetFunction -- | Returns configuration information for the specified event source -- mapping (see AddEventSource). -- -- This operation requires permission for the 'lambda:GetEventSource' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_GetEventSource.html module Network.AWS.Lambda.GetEventSource data GetEventSource -- | GetEventSource constructor. -- -- The fields accessible through corresponding lenses are: -- -- getEventSource :: Text -> GetEventSource -- | The AWS Lambda assigned ID of the event source mapping. gesUUID :: Lens' GetEventSource Text data GetEventSourceResponse -- | GetEventSourceResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- getEventSourceResponse :: GetEventSourceResponse -- | The largest number of records that AWS Lambda will POST in the -- invocation request to your function. gesrBatchSize :: Lens' GetEventSourceResponse (Maybe Int) -- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is -- the source of events. gesrEventSource :: Lens' GetEventSourceResponse (Maybe Text) -- | The Lambda function to invoke when AWS Lambda detects an event on the -- stream. gesrFunctionName :: Lens' GetEventSourceResponse (Maybe Text) -- | Indicates whether the event source mapping is currently honored. -- Events are only processes if IsActive is true. gesrIsActive :: Lens' GetEventSourceResponse (Maybe Bool) -- | The UTC time string indicating the last time the event mapping was -- updated. gesrLastModified :: Lens' GetEventSourceResponse (Maybe UTCTime) -- | The map (key-value pairs) defining the configuration for AWS Lambda to -- use when reading the event source. gesrParameters :: Lens' GetEventSourceResponse (HashMap Text Text) -- | The ARN of the IAM role (invocation role) that AWS Lambda can assume -- to read from the stream and invoke the function. gesrRole :: Lens' GetEventSourceResponse (Maybe Text) -- | The description of the health of the event source mapping. Valid -- values are: PENDING, OK, and "PROBLEM:message". -- Initially this staus is PENDING. When AWS Lambda begins -- processing events, it changes the status to OK. gesrStatus :: Lens' GetEventSourceResponse (Maybe Text) -- | The AWS Lambda assigned opaque identifier for the mapping. gesrUUID :: Lens' GetEventSourceResponse (Maybe Text) instance Eq GetEventSource instance Ord GetEventSource instance Show GetEventSource instance Monoid GetEventSource instance IsString GetEventSource instance Eq GetEventSourceResponse instance Show GetEventSourceResponse instance FromJSON GetEventSourceResponse instance AWSRequest GetEventSource instance ToJSON GetEventSource instance ToHeaders GetEventSource instance ToQuery GetEventSource instance ToPath GetEventSource -- | Deletes the specified Lambda function code and configuration. -- -- This operation requires permission for the 'lambda:DeleteFunction' -- action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunction.html module Network.AWS.Lambda.DeleteFunction data DeleteFunction -- | DeleteFunction constructor. -- -- The fields accessible through corresponding lenses are: -- -- deleteFunction :: Text -> DeleteFunction -- | The Lambda function to delete. dfFunctionName :: Lens' DeleteFunction Text data DeleteFunctionResponse -- | DeleteFunctionResponse constructor. deleteFunctionResponse :: DeleteFunctionResponse instance Eq DeleteFunction instance Ord DeleteFunction instance Show DeleteFunction instance Monoid DeleteFunction instance IsString DeleteFunction instance Eq DeleteFunctionResponse instance Ord DeleteFunctionResponse instance Show DeleteFunctionResponse instance Generic DeleteFunctionResponse instance Datatype D1DeleteFunctionResponse instance Constructor C1_0DeleteFunctionResponse instance AWSRequest DeleteFunction instance ToJSON DeleteFunction instance ToHeaders DeleteFunction instance ToQuery DeleteFunction instance ToPath DeleteFunction -- | Identifies an Amazon Kinesis stream as the event source for an AWS -- Lambda function. AWS Lambda invokes the specified function when -- records are posted to the stream. -- -- This is the pull model, where AWS Lambda invokes the function. For -- more information, go to AWS LambdaL How it Works in the AWS -- Lambda Developer Guide. -- -- This association between an Amazon Kinesis stream and an AWS Lambda -- function is called the event source mapping. You provide the -- configuration information (for example, which stream to read from and -- which AWS Lambda function to invoke) for the event source mapping in -- the request body. -- -- This operation requires permission for the 'iam:PassRole' action for -- the IAM role. It also requires permission for the -- 'lambda:AddEventSource' action. -- -- -- http://docs.aws.amazon.com/lambda/latest/dg/API_AddEventSource.html module Network.AWS.Lambda.AddEventSource data AddEventSource -- | AddEventSource constructor. -- -- The fields accessible through corresponding lenses are: -- -- addEventSource :: Text -> Text -> Text -> AddEventSource -- | The largest number of records that AWS Lambda will give to your -- function in a single event. The default is 100 records. aesBatchSize :: Lens' AddEventSource (Maybe Int) -- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is -- the event source. Any record added to this stream causes AWS Lambda to -- invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis -- event, containing records, to your Lambda function as JSON. aesEventSource :: Lens' AddEventSource Text -- | The Lambda function to invoke when AWS Lambda detects an event on the -- stream. aesFunctionName :: Lens' AddEventSource Text -- | A map (key-value pairs) defining the configuration for AWS Lambda to -- use when reading the event source. Currently, AWS Lambda supports only -- the InitialPositionInStream key. The valid values are: -- TRIM_HORIZON and LATEST. The default value is -- TRIM_HORIZON. For more information, go to -- ShardIteratorType in the Amazon Kinesis Service API Reference. aesParameters :: Lens' AddEventSource (HashMap Text Text) -- | The ARN of the IAM role (invocation role) that AWS Lambda can assume -- to read from the stream and invoke the function. aesRole :: Lens' AddEventSource Text data AddEventSourceResponse -- | AddEventSourceResponse constructor. -- -- The fields accessible through corresponding lenses are: -- -- addEventSourceResponse :: AddEventSourceResponse -- | The largest number of records that AWS Lambda will POST in the -- invocation request to your function. aesrBatchSize :: Lens' AddEventSourceResponse (Maybe Int) -- | The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is -- the source of events. aesrEventSource :: Lens' AddEventSourceResponse (Maybe Text) -- | The Lambda function to invoke when AWS Lambda detects an event on the -- stream. aesrFunctionName :: Lens' AddEventSourceResponse (Maybe Text) -- | Indicates whether the event source mapping is currently honored. -- Events are only processes if IsActive is true. aesrIsActive :: Lens' AddEventSourceResponse (Maybe Bool) -- | The UTC time string indicating the last time the event mapping was -- updated. aesrLastModified :: Lens' AddEventSourceResponse (Maybe UTCTime) -- | The map (key-value pairs) defining the configuration for AWS Lambda to -- use when reading the event source. aesrParameters :: Lens' AddEventSourceResponse (HashMap Text Text) -- | The ARN of the IAM role (invocation role) that AWS Lambda can assume -- to read from the stream and invoke the function. aesrRole :: Lens' AddEventSourceResponse (Maybe Text) -- | The description of the health of the event source mapping. Valid -- values are: PENDING, OK, and "PROBLEM:message". -- Initially this staus is PENDING. When AWS Lambda begins -- processing events, it changes the status to OK. aesrStatus :: Lens' AddEventSourceResponse (Maybe Text) -- | The AWS Lambda assigned opaque identifier for the mapping. aesrUUID :: Lens' AddEventSourceResponse (Maybe Text) instance Eq AddEventSource instance Show AddEventSource instance Eq AddEventSourceResponse instance Show AddEventSourceResponse instance FromJSON AddEventSourceResponse instance AWSRequest AddEventSource instance ToJSON AddEventSource instance ToHeaders AddEventSource instance ToQuery AddEventSource instance ToPath AddEventSource -- | AWS Lambda is a compute service that runs your code in response to -- events and automatically manages the compute resources for you, making -- it easy to build applications that respond quickly to new information. -- AWS Lambda starts running your code within milliseconds of an event -- such as an image upload, in-app activity, website click, or output -- from a connected device. You can also use AWS Lambda to create new -- back-end services where compute resources are automatically triggered -- based on custom requests. With AWS Lambda you pay only for the -- requests served and the compute time required to run your code. -- Billing is metered in increments of 100 milliseconds, making it -- cost-effective and easy to scale automatically from a few requests per -- day to thousands per second. module Network.AWS.Lambda