Copyright | (c) 2013-2015 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) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- Errors
- Waiters
- Operations
- GetFunctionConfiguration
- UpdateEventSourceMapping
- DeleteEventSourceMapping
- RemovePermission
- Invoke
- GetEventSourceMapping
- CreateFunction
- CreateEventSourceMapping
- GetFunction
- ListEventSourceMappings (Paginated)
- AddPermission
- DeleteFunction
- UpdateFunctionConfiguration
- ListFunctions (Paginated)
- UpdateFunctionCode
- GetPolicy
- Types
AWS Lambda
Overview
This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda, and for information about how the service works, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.
See: AWS API Reference
- lambda :: Service
- _PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
- _RequestTooLargeException :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceException :: AsError a => Getting (First ServiceError) a ServiceError
- _CodeStorageExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- module Network.AWS.Lambda.GetFunctionConfiguration
- module Network.AWS.Lambda.UpdateEventSourceMapping
- module Network.AWS.Lambda.DeleteEventSourceMapping
- module Network.AWS.Lambda.RemovePermission
- module Network.AWS.Lambda.Invoke
- module Network.AWS.Lambda.GetEventSourceMapping
- module Network.AWS.Lambda.CreateFunction
- module Network.AWS.Lambda.CreateEventSourceMapping
- module Network.AWS.Lambda.GetFunction
- module Network.AWS.Lambda.ListEventSourceMappings
- module Network.AWS.Lambda.AddPermission
- module Network.AWS.Lambda.DeleteFunction
- module Network.AWS.Lambda.UpdateFunctionConfiguration
- module Network.AWS.Lambda.ListFunctions
- module Network.AWS.Lambda.UpdateFunctionCode
- module Network.AWS.Lambda.GetPolicy
- data EventSourcePosition
- data InvocationType
- data LogType
- data Runtime
- data EventSourceMappingConfiguration
- eventSourceMappingConfiguration :: EventSourceMappingConfiguration
- esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcUUId :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcLastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcBatchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- esmcStateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcLastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
- data FunctionCode
- functionCode :: FunctionCode
- fcS3ObjectVersion :: Lens' FunctionCode (Maybe Text)
- fcS3Key :: Lens' FunctionCode (Maybe Text)
- fcZipFile :: Lens' FunctionCode (Maybe ByteString)
- fcS3Bucket :: Lens' FunctionCode (Maybe Text)
- data FunctionCodeLocation
- functionCodeLocation :: FunctionCodeLocation
- fclLocation :: Lens' FunctionCodeLocation (Maybe Text)
- fclRepositoryType :: Lens' FunctionCodeLocation (Maybe Text)
- data FunctionConfiguration
- functionConfiguration :: FunctionConfiguration
- fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime)
- fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural)
- fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text)
- fcRole :: Lens' FunctionConfiguration (Maybe Text)
- fcFunctionName :: Lens' FunctionConfiguration (Maybe Text)
- fcCodeSize :: Lens' FunctionConfiguration (Maybe Integer)
- fcHandler :: Lens' FunctionConfiguration (Maybe Text)
- fcTimeout :: Lens' FunctionConfiguration (Maybe Natural)
- fcLastModified :: Lens' FunctionConfiguration (Maybe Text)
- fcDescription :: Lens' FunctionConfiguration (Maybe Text)
Service Configuration
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by Lambda
.
PolicyLengthExceededException
_PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source
Lambda function access policy is limited to 20 KB.
UnsupportedMediaTypeException
_UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError Source
Prism for UnsupportedMediaTypeException' errors.
InvalidRequestContentException
_InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError Source
The request body could not be parsed as JSON.
InvalidParameterValueException
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError Source
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.
RequestTooLargeException
_RequestTooLargeException :: AsError a => Getting (First ServiceError) a ServiceError Source
Prism for RequestTooLargeException' errors.
TooManyRequestsException
_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source
Prism for TooManyRequestsException' errors.
ServiceException
_ServiceException :: AsError a => Getting (First ServiceError) a ServiceError Source
The AWS Lambda service encountered an internal error.
CodeStorageExceededException
_CodeStorageExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source
Prism for CodeStorageExceededException' errors.
ResourceConflictException
_ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source
The resource already exists.
ResourceNotFoundException
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source
The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
GetFunctionConfiguration
UpdateEventSourceMapping
DeleteEventSourceMapping
RemovePermission
Invoke
module Network.AWS.Lambda.Invoke
GetEventSourceMapping
CreateFunction
CreateEventSourceMapping
GetFunction
ListEventSourceMappings (Paginated)
AddPermission
DeleteFunction
UpdateFunctionConfiguration
ListFunctions (Paginated)
UpdateFunctionCode
GetPolicy
module Network.AWS.Lambda.GetPolicy
Types
EventSourcePosition
data EventSourcePosition Source
InvocationType
data InvocationType Source
LogType
Runtime
EventSourceMappingConfiguration
data EventSourceMappingConfiguration Source
Describes mapping between an Amazon Kinesis stream and a Lambda function.
See: eventSourceMappingConfiguration
smart constructor.
eventSourceMappingConfiguration :: EventSourceMappingConfiguration Source
Creates a value of EventSourceMappingConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The Lambda function to invoke when AWS Lambda detects an event on the stream.
esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", "Enabling", "Disabling", "Updating", or "Deleting".
esmcUUId :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The AWS Lambda assigned opaque identifier for the mapping.
esmcLastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The result of the last AWS Lambda invocation of your Lambda function.
esmcBatchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source
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 :: Lens' EventSourceMappingConfiguration (Maybe Text) Source
The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.
esmcLastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime) Source
The UTC time string indicating the last time the event mapping was updated.
FunctionCode
data FunctionCode Source
The code for the Lambda function.
See: functionCode
smart constructor.
functionCode :: FunctionCode Source
Creates a value of FunctionCode
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fcS3ObjectVersion :: Lens' FunctionCode (Maybe Text) Source
The Amazon S3 object (the deployment package) version you want to upload.
fcS3Key :: Lens' FunctionCode (Maybe Text) Source
The Amazon S3 object (the deployment package) key name you want to upload.
fcZipFile :: Lens' FunctionCode (Maybe ByteString) Source
A base64-encoded .zip file containing your deployment package. For more information about creating a .zip file, go to 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.
fcS3Bucket :: Lens' FunctionCode (Maybe Text) Source
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.
FunctionCodeLocation
data FunctionCodeLocation Source
The object for the Lambda function location.
See: functionCodeLocation
smart constructor.
functionCodeLocation :: FunctionCodeLocation Source
Creates a value of FunctionCodeLocation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fclLocation :: Lens' FunctionCodeLocation (Maybe Text) Source
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 :: Lens' FunctionCodeLocation (Maybe Text) Source
The repository from which you can download the function.
FunctionConfiguration
data FunctionConfiguration Source
A complex type that describes function metadata.
See: functionConfiguration
smart constructor.
functionConfiguration :: FunctionConfiguration Source
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:
fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) Source
The runtime environment for the Lambda function.
fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) Source
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text) Source
The Amazon Resource Name (ARN) assigned to the function.
fcRole :: Lens' FunctionConfiguration (Maybe Text) Source
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.
fcFunctionName :: Lens' FunctionConfiguration (Maybe Text) Source
The name of the function.
fcCodeSize :: Lens' FunctionConfiguration (Maybe Integer) Source
The size, in bytes, of the function .zip file you uploaded.
fcHandler :: Lens' FunctionConfiguration (Maybe Text) Source
The function Lambda calls to begin executing your function.
fcTimeout :: Lens' FunctionConfiguration (Maybe Natural) Source
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 :: Lens' FunctionConfiguration (Maybe Text) Source
The timestamp of the last time you updated the function.
fcDescription :: Lens' FunctionConfiguration (Maybe Text) Source
The user-provided description.