ExAws v1.1.4 ExAws.Lambda View Source

Operations on ExAws Lambda

Link to this section Summary

Functions

Adds a permission to the access policy associated with the specified AWS Lambda function

Delete an event source mapping

Delete a lambda function

Get an event source mapping

Get a function configuration

Get a function access policy

Invoke a lambda function asynchronously

List event source mappings

Remove individual permissions from an function’s access policy

Link to this section Types

Link to this type add_permission_opts() View Source
add_permission_opts() :: [source_account: binary, source_arn: binary]
Link to this type create_event_source_mapping_opts() View Source
create_event_source_mapping_opts() :: [batch_size: pos_integer, enabled: boolean]
Link to this type create_function_opts() View Source
create_function_opts() :: [description: binary, memory_size: pos_integer, timeout: pos_integer]
Link to this type invoke_opts() View Source
invoke_opts() :: [invocation_type: :event | :request_response | :dry_run, log_type: :none | :tail, qualifier: String.t]
Link to this type list_event_source_mappings_opts() View Source
list_event_source_mappings_opts() :: [event_source_arn: binary, function_name: binary, marker: binary, max_items: pos_integer]
Link to this type list_functions_opts() View Source
list_functions_opts() :: [marker: binary, max_items: pos_integer]
Link to this type starting_position_vals() View Source
starting_position_vals() :: :trim_horizon | :latest

Link to this section Functions

Link to this function add_permission(function_name, principal, action, statement_id, opts \\ []) View Source
add_permission(function_name :: binary, principal :: binary, action :: binary, statement_id :: binary, opts :: add_permission_opts) :: ExAws.Operation.JSON.t

Adds a permission to the access policy associated with the specified AWS Lambda function

Action pattern: (lambda:[]|lambda:[a-zA-Z]+|[])

Link to this function create_event_source_mapping(function_name, event_source_arn, starting_position, opts \\ []) View Source
create_event_source_mapping(function_name :: binary, event_source_arn :: binary, starting_position :: starting_position_vals, opts :: create_event_source_mapping_opts) :: ExAws.Operation.JSON.t

Creates a stream based event source for a function

Link to this function create_function(function_name, handler, zipfile, opts \\ []) View Source
create_function(function_name :: binary, handler :: binary, zipfile :: binary, opts :: create_function_opts) :: ExAws.Operation.JSON.t

Create a function.

Runtime defaults to nodejs, as that is the only one available.

Link to this function delete_event_source_mapping(source_mapping_uuid) View Source
delete_event_source_mapping(source_mapping_uuid :: binary) :: ExAws.Operation.JSON.t

Delete an event source mapping

Link to this function delete_function(function_name) View Source
delete_function(function_name :: binary) :: ExAws.Operation.JSON.t

Delete a lambda function

Link to this function get_event_source_mapping(source_mapping_uuid) View Source
get_event_source_mapping(source_mapping_uuid :: binary) :: ExAws.Operation.JSON.t

Get an event source mapping

Link to this function get_function(function_name) View Source
get_function(function_name :: binary) :: ExAws.Operation.JSON.t

Get a function

Link to this function get_function_configuration(function_name) View Source
get_function_configuration(function_name :: binary) :: ExAws.Operation.JSON.t

Get a function configuration

Link to this function get_policy(function_name) View Source
get_policy(function_name :: binary) :: ExAws.Operation.JSON.t

Get a function access policy

Link to this function invoke(function_name, payload, client_context, opts \\ []) View Source
invoke(function_name :: binary, payload :: map, client_context :: map, opts :: invoke_opts) :: ExAws.Operation.JSON.t

Invoke a lambda function

Link to this function invoke_async(function_name, args) View Source
invoke_async(function_name :: binary, args :: map) :: ExAws.Operation.JSON.t

Invoke a lambda function asynchronously

Link to this function list_event_source_mappings(opts \\ []) View Source
list_event_source_mappings(opts :: list_event_source_mappings_opts) :: ExAws.Operation.JSON.t

List event source mappings

Link to this function list_functions(opts \\ []) View Source
list_functions(opts :: list_functions_opts) :: ExAws.Operation.JSON.t

List functions

Link to this function remove_permission(function_name, statement_id) View Source
remove_permission(function_name :: binary, statement_id :: binary) :: ExAws.Operation.JSON.t

Remove individual permissions from an function’s access policy

Link to this function update_event_source_mapping(uuid, attrs_to_update) View Source
update_event_source_mapping(uuid :: binary, attrs_to_update :: map) :: ExAws.Operation.JSON.t

Update event source mapping

Link to this function update_function_code(function_name, zipfile) View Source
update_function_code(function_name :: binary, zipfile :: binary) :: ExAws.Operation.JSON.t

Update function code

Link to this function update_function_configuration(function_name, configuration) View Source
update_function_configuration(function_name :: binary, configuration :: map) :: ExAws.Operation.JSON.t

Update a function configuration