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) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- Errors
- KMSInvalidStateException
- EC2ThrottledException
- PolicyLengthExceededException
- EC2AccessDeniedException
- InvalidSubnetIdException
- UnsupportedMediaTypeException
- InvalidRequestContentException
- KMSNotFoundException
- ENILimitReachedException
- InvalidParameterValueException
- RequestTooLargeException
- TooManyRequestsException
- InvalidSecurityGroupIdException
- KMSDisabledException
- SubnetIPAddressLimitReachedException
- ServiceException
- CodeStorageExceededException
- InvalidZipFileException
- ResourceConflictException
- EC2UnexpectedException
- ResourceNotFoundException
- KMSAccessDeniedException
- Waiters
- Operations
- GetFunctionConfiguration
- DeleteEventSourceMapping
- UpdateEventSourceMapping
- CreateAlias
- ListVersionsByFunction
- ListAliases
- RemovePermission
- Invoke
- GetAlias
- GetEventSourceMapping
- CreateFunction
- CreateEventSourceMapping
- GetFunction
- ListEventSourceMappings (Paginated)
- DeleteAlias
- UpdateAlias
- GetAccountSettings
- AddPermission
- PublishVersion
- 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 .
- lambda :: Service
- _KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError
- _EC2ThrottledException :: AsError a => Getting (First ServiceError) a ServiceError
- _PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _EC2AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidSubnetIdException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError
- _KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _ENILimitReachedException :: 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
- _InvalidSecurityGroupIdException :: AsError a => Getting (First ServiceError) a ServiceError
- _KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
- _SubnetIPAddressLimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceException :: AsError a => Getting (First ServiceError) a ServiceError
- _CodeStorageExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidZipFileException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _EC2UnexpectedException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _KMSAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
- module Network.AWS.Lambda.GetFunctionConfiguration
- module Network.AWS.Lambda.DeleteEventSourceMapping
- module Network.AWS.Lambda.UpdateEventSourceMapping
- module Network.AWS.Lambda.CreateAlias
- module Network.AWS.Lambda.ListVersionsByFunction
- module Network.AWS.Lambda.ListAliases
- module Network.AWS.Lambda.RemovePermission
- module Network.AWS.Lambda.Invoke
- module Network.AWS.Lambda.GetAlias
- 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.DeleteAlias
- module Network.AWS.Lambda.UpdateAlias
- module Network.AWS.Lambda.GetAccountSettings
- module Network.AWS.Lambda.AddPermission
- module Network.AWS.Lambda.PublishVersion
- 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 AccountLimit
- accountLimit :: AccountLimit
- alConcurrentExecutions :: Lens' AccountLimit (Maybe Int)
- alTotalCodeSize :: Lens' AccountLimit (Maybe Integer)
- alCodeSizeUnzipped :: Lens' AccountLimit (Maybe Integer)
- alCodeSizeZipped :: Lens' AccountLimit (Maybe Integer)
- data AccountUsage
- accountUsage :: AccountUsage
- auTotalCodeSize :: Lens' AccountUsage (Maybe Integer)
- auFunctionCount :: Lens' AccountUsage (Maybe Integer)
- data AliasConfiguration
- aliasConfiguration :: AliasConfiguration
- acName :: Lens' AliasConfiguration (Maybe Text)
- acFunctionVersion :: Lens' AliasConfiguration (Maybe Text)
- acAliasARN :: Lens' AliasConfiguration (Maybe Text)
- acDescription :: Lens' AliasConfiguration (Maybe Text)
- data DeadLetterConfig
- deadLetterConfig :: DeadLetterConfig
- dlcTargetARN :: Lens' DeadLetterConfig (Maybe Text)
- data Environment
- environment :: Environment
- eVariables :: Lens' Environment (Maybe (HashMap Text Text))
- data EnvironmentError
- environmentError :: EnvironmentError
- eeErrorCode :: Lens' EnvironmentError (Maybe Text)
- eeMessage :: Lens' EnvironmentError (Maybe Text)
- data EnvironmentResponse
- environmentResponse :: EnvironmentResponse
- envVariables :: Lens' EnvironmentResponse (Maybe (HashMap Text Text))
- envError :: Lens' EnvironmentResponse (Maybe EnvironmentError)
- data EventSourceMappingConfiguration
- eventSourceMappingConfiguration :: EventSourceMappingConfiguration
- esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcFunctionARN :: 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
- fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural)
- fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime)
- fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text)
- fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text)
- fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse)
- fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig)
- fcRole :: Lens' FunctionConfiguration (Maybe Text)
- fcVPCConfig :: Lens' FunctionConfiguration (Maybe VPCConfigResponse)
- fcVersion :: 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)
- fcCodeSha256 :: Lens' FunctionConfiguration (Maybe Text)
- fcDescription :: Lens' FunctionConfiguration (Maybe Text)
- data VPCConfig
- vpcConfig :: VPCConfig
- vpccSecurityGroupIds :: Lens' VPCConfig [Text]
- vpccSubnetIds :: Lens' VPCConfig [Text]
- data VPCConfigResponse
- vpcConfigResponse :: VPCConfigResponse
- vcSecurityGroupIds :: Lens' VPCConfigResponse [Text]
- vcSubnetIds :: Lens' VPCConfigResponse [Text]
- vcVPCId :: Lens' VPCConfigResponse (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
.
KMSInvalidStateException
_KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
EC2ThrottledException
_EC2ThrottledException :: AsError a => Getting (First ServiceError) a ServiceError Source #
AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.
PolicyLengthExceededException
_PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Lambda function access policy is limited to 20 KB.
EC2AccessDeniedException
_EC2AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
InvalidSubnetIdException
_InvalidSubnetIdException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The Subnet ID provided in the Lambda function VPC configuration is invalid.
UnsupportedMediaTypeException
_UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The content type of the Invoke
request body is not JSON.
InvalidRequestContentException
_InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request body could not be parsed as JSON.
KMSNotFoundException
_KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Lambda was unable to decrypt the environment variables because the KMS key was not found. Please check the function's KMS key settings.
ENILimitReachedException
_ENILimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
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 #
The request payload exceeded the Invoke
request body JSON input limit. For more information, see Limits .
TooManyRequestsException
_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source #
InvalidSecurityGroupIdException
_InvalidSecurityGroupIdException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The Security Group ID provided in the Lambda function VPC configuration is invalid.
KMSDisabledException
_KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Please check the Lambda function's KMS key settings.
SubnetIPAddressLimitReachedException
_SubnetIPAddressLimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
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 #
You have exceeded your maximum total code size per account. Limits
InvalidZipFileException
_InvalidZipFileException :: AsError a => Getting (First ServiceError) a ServiceError Source #
AWS Lambda could not unzip the function zip file.
ResourceConflictException
_ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The resource already exists.
EC2UnexpectedException
_EC2UnexpectedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.
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.
KMSAccessDeniedException
_KMSAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Lambda was unable to decrypt the environment variables because KMS access was denied. Please check the Lambda function's KMS permissions.
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
DeleteEventSourceMapping
UpdateEventSourceMapping
CreateAlias
ListVersionsByFunction
ListAliases
RemovePermission
Invoke
module Network.AWS.Lambda.Invoke
GetAlias
module Network.AWS.Lambda.GetAlias
GetEventSourceMapping
CreateFunction
CreateEventSourceMapping
GetFunction
ListEventSourceMappings (Paginated)
DeleteAlias
UpdateAlias
GetAccountSettings
AddPermission
PublishVersion
DeleteFunction
UpdateFunctionConfiguration
ListFunctions (Paginated)
UpdateFunctionCode
GetPolicy
module Network.AWS.Lambda.GetPolicy
Types
EventSourcePosition
data EventSourcePosition Source #
InvocationType
data InvocationType Source #
LogType
Runtime
AccountLimit
data AccountLimit Source #
Provides limits of code size and concurrency associated with the current account and region.
See: accountLimit
smart constructor.
accountLimit :: AccountLimit Source #
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 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 codedependencies that you can zip into a deployment package (uncompressed zipjar size) for uploading. The default limit is 250 MB.alCodeSizeZipped
- Size, in bytes, of a single zipped codedependencies package you can upload for your Lambda function(.zip.jar file). Try using AWS S3 for uploading larger files. Default limit is 50 MB.
alConcurrentExecutions :: Lens' AccountLimit (Maybe Int) Source #
Number of simultaneous executions of your function per region. For more information or to request a limit increase for concurrent executions, see Lambda Function Concurrent Executions . The default limit is 100.
alTotalCodeSize :: Lens' AccountLimit (Maybe Integer) Source #
Maximum size, in megabytes, of a code package you can upload per region. The default size is 75 GB.
alCodeSizeUnzipped :: Lens' AccountLimit (Maybe Integer) Source #
Size, in bytes, of codedependencies that you can zip into a deployment package (uncompressed zipjar size) for uploading. The default limit is 250 MB.
alCodeSizeZipped :: Lens' AccountLimit (Maybe Integer) Source #
Size, in bytes, of a single zipped codedependencies package you can upload for your Lambda function(.zip.jar file). Try using AWS S3 for uploading larger files. Default limit is 50 MB.
AccountUsage
data AccountUsage Source #
Provides code size usage and function count associated with the current account and region.
See: accountUsage
smart constructor.
accountUsage :: AccountUsage Source #
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.
auTotalCodeSize :: Lens' AccountUsage (Maybe Integer) Source #
Total size, in megabytes, of the account's deployment packages per region.
auFunctionCount :: Lens' AccountUsage (Maybe Integer) Source #
The number of your account's existing functions per region.
AliasConfiguration
data AliasConfiguration Source #
Provides configuration information about a Lambda function version alias.
See: aliasConfiguration
smart constructor.
aliasConfiguration :: AliasConfiguration Source #
Creates a value of AliasConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
acName
- Alias name.acFunctionVersion
- Function version to which the alias points.acAliasARN
- Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias calledBETA
that points to a helloworld function version, the ARN isarn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA
.acDescription
- Alias description.
acFunctionVersion :: Lens' AliasConfiguration (Maybe Text) Source #
Function version to which the alias points.
acAliasARN :: Lens' AliasConfiguration (Maybe Text) Source #
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 :: Lens' AliasConfiguration (Maybe Text) Source #
Alias description.
DeadLetterConfig
data DeadLetterConfig Source #
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
See: deadLetterConfig
smart constructor.
deadLetterConfig :: DeadLetterConfig Source #
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).
dlcTargetARN :: Lens' DeadLetterConfig (Maybe Text) Source #
The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ).
Environment
data Environment Source #
The parent object that contains your environment's configuration settings.
See: environment
smart constructor.
environment :: Environment Source #
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 ",".
eVariables :: Lens' Environment (Maybe (HashMap Text Text)) Source #
The key-value pairs that represent your environment's configuration settings. The value you specify cannot contain a ",".
EnvironmentError
data EnvironmentError Source #
The parent object that contains error information associated with your configuration settings.
See: environmentError
smart constructor.
environmentError :: EnvironmentError Source #
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.
eeErrorCode :: Lens' EnvironmentError (Maybe Text) Source #
The error code returned by the environment error object.
eeMessage :: Lens' EnvironmentError (Maybe Text) Source #
The message returned by the environment error object.
EnvironmentResponse
data EnvironmentResponse Source #
The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings.
See: environmentResponse
smart constructor.
environmentResponse :: EnvironmentResponse Source #
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.
envVariables :: Lens' EnvironmentResponse (Maybe (HashMap Text Text)) Source #
The key-value pairs returned that represent your environment's configuration settings or error information.
envError :: Lens' EnvironmentResponse (Maybe EnvironmentError) Source #
Undocumented member.
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
- The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.esmcState
- The state of the event source mapping. It can beCreating
,Enabled
,Disabled
,Enabling
,Disabling
,Updating
, orDeleting
.esmcFunctionARN
- The Lambda function to invoke when AWS Lambda detects an event on the stream.esmcUUId
- The AWS Lambda assigned opaque identifier for the mapping.esmcLastProcessingResult
- The result of the last AWS Lambda invocation of your Lambda function.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
- The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.esmcLastModified
- The UTC time string indicating the last time the event mapping was updated.
esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The state of the event source mapping. It can be Creating
, Enabled
, Disabled
, Enabling
, Disabling
, Updating
, or Deleting
.
esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The Lambda function to invoke when AWS Lambda detects an event on the stream.
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
- The Amazon S3 object (the deployment package) version you want to upload.fcS3Key
- The Amazon S3 object (the deployment package) key name you want to upload.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 Execution Permissions in the AWS Lambda Developer Guide . -- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.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.
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 #
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 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 :: 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
- 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
- The repository from which you can download the function.
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:
fcMemorySize
- The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.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
- The Amazon Resource Name (ARN) assigned to the function.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.fcEnvironment
- The parent object that contains your environment's configuration settings.fcDeadLetterConfig
- The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.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.fcVPCConfig
- VPC configuration associated with your Lambda function.fcVersion
- The version of the Lambda function.fcFunctionName
- The name of the function.fcCodeSize
- The size, in bytes, of the function .zip file you uploaded.fcHandler
- The function Lambda calls to begin executing your function.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.
fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) Source #
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) Source #
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 :: Lens' FunctionConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) assigned to the function.
fcKMSKeyARN :: Lens' FunctionConfiguration (Maybe Text) Source #
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.
fcEnvironment :: Lens' FunctionConfiguration (Maybe EnvironmentResponse) Source #
The parent object that contains your environment's configuration settings.
fcDeadLetterConfig :: Lens' FunctionConfiguration (Maybe DeadLetterConfig) Source #
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
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.
fcVPCConfig :: Lens' FunctionConfiguration (Maybe VPCConfigResponse) Source #
VPC configuration associated with your Lambda function.
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 time stamp of the last time you updated the function.
fcCodeSha256 :: Lens' FunctionConfiguration (Maybe Text) Source #
It is the SHA256 hash of your function deployment package.
fcDescription :: Lens' FunctionConfiguration (Maybe Text) Source #
The user-provided description.
VPCConfig
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.
vpcConfig :: VPCConfig Source #
Creates a value of VPCConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vpccSecurityGroupIds
- A list of one or more security groups IDs in your VPC.vpccSubnetIds
- A list of one or more subnet IDs in your VPC.
vpccSecurityGroupIds :: Lens' VPCConfig [Text] Source #
A list of one or more security groups IDs in your VPC.
VPCConfigResponse
data VPCConfigResponse Source #
VPC configuration associated with your Lambda function.
See: vpcConfigResponse
smart constructor.
vpcConfigResponse :: VPCConfigResponse Source #
Creates a value of VPCConfigResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vcSecurityGroupIds
- A list of security group IDs associated with the Lambda function.vcSubnetIds
- A list of subnet IDs associated with the Lambda function.vcVPCId
- The VPC ID associated with you Lambda function.
vcSecurityGroupIds :: Lens' VPCConfigResponse [Text] Source #
A list of security group IDs associated with the Lambda function.
vcSubnetIds :: Lens' VPCConfigResponse [Text] Source #
A list of subnet IDs associated with the Lambda function.