Lambda class

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 LambdaL How it Works in the AWS Lambda Developer Guide.

Constructors

Lambda({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventSource({required String eventSource, required String functionName, required String role, int? batchSize, Map<String, String>? parameters}) Future<EventSourceConfiguration>
Identifies a stream as an event source for an AWS Lambda function. It can be either an Amazon Kinesis stream or a Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.
close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
deleteFunction({required String functionName}) Future<void>
Deletes the specified Lambda function code and configuration.
getEventSource({required String uuid}) Future<EventSourceConfiguration>
Returns configuration information for the specified event source mapping (see AddEventSource).
getFunction({required String functionName}) Future<GetFunctionResponse>
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.
getFunctionConfiguration({required String functionName}) Future<FunctionConfiguration>
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using UploadFunction.
invokeAsync({required String functionName, required Uint8List invokeArgs}) Future<InvokeAsyncResponse>
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.
listEventSources({String? eventSourceArn, String? functionName, String? marker, int? maxItems}) Future<ListEventSourcesResponse>
Returns a list of event source mappings you created using the AddEventSource (see AddEventSource), where you identify a stream as event source. This list does not include Amazon S3 event sources.
listFunctions({String? marker, int? maxItems}) Future<ListFunctionsResponse>
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventSource({required String uuid}) Future<void>
Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.
toString() String
A string representation of this object.
inherited
updateFunctionConfiguration({required String functionName, String? description, String? handler, int? memorySize, String? role, int? timeout}) Future<FunctionConfiguration>
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.
uploadFunction({required String functionName, required Uint8List functionZip, required String handler, required Mode mode, required String role, required Runtime runtime, String? description, int? memorySize, int? timeout}) Future<FunctionConfiguration>
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.

Operators

operator ==(Object other) bool
The equality operator.
inherited