amazonka-lambda-1.4.0: Amazon Lambda SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lambda.Types

Contents

Description

 

Synopsis

Service Configuration

lambda :: Service Source

API version '2015-03-31' of the Amazon Lambda SDK configuration.

Errors

_EC2ThrottledException :: AsError a => Getting (First ServiceError) a ServiceError Source

AWS Lambda was throttled by Amazon EC2 during Lambda function initiatization using the execution role provided for the Lambda function.

_PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

Lambda function access policy is limited to 20 KB.

_EC2AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source

Prism for EC2AccessDeniedException' errors.

_InvalidSubnetIdException :: AsError a => Getting (First ServiceError) a ServiceError Source

The Subnet ID provided in the Lambda function VPC configuration is invalid.

_UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError Source

The content type of the Invoke request body is not JSON.

_InvalidRequestContentException :: AsError a => Getting (First ServiceError) a ServiceError Source

The request body could not be parsed as JSON.

_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 :: 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 :: 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 :: AsError a => Getting (First ServiceError) a ServiceError Source

Prism for TooManyRequestsException' errors.

_InvalidSecurityGroupIdException :: AsError a => Getting (First ServiceError) a ServiceError Source

The Security Group ID provided in the Lambda function VPC configuration is invalid.

_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 :: AsError a => Getting (First ServiceError) a ServiceError Source

The AWS Lambda service encountered an internal error.

_CodeStorageExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

You have exceeded your maximum total code size per account. Limits

_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 :: 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.

EventSourcePosition

InvocationType

LogType

Runtime

AliasConfiguration

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:

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'.

EventSourceMappingConfiguration

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

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 zip file containing your deployment package. If you are using the API directly, 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, 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

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

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 :: 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.

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.

fcVPCConfig :: Lens' FunctionConfiguration (Maybe VPCConfigResponse) Source

VPC configuration associated with your Lambda function.

fcVersion :: Lens' FunctionConfiguration (Maybe Text) Source

The version of the Lambda 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

data VPCConfig Source

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 :: Lens' VPCConfig [Text] Source

A list of one or more security groups IDs in your VPC.

vpccSubnetIds :: Lens' VPCConfig [Text] Source

A list of one or more subnet IDs in your VPC.

VPCConfigResponse

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 :: 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.

vcVPCId :: Lens' VPCConfigResponse (Maybe Text) Source

The VPC ID associated with you Lambda function.