ExAws.Lambda.Adapter behaviour

Types

test :: %{foo: binary}

Callbacks

add_permission/4

Specs:

  • add_permission(function_name :: binary, principal :: binary, action :: binary, statement_id :: binary) :: %{}

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

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

add_permission/5

Specs:

  • add_permission(function_name :: binary, principal :: binary, action :: binary, statement_id :: binary, opts :: %{}) :: %{}
create_event_source_mapping/3

Specs:

  • create_event_source_mapping(function_name :: binary, event_source_arn :: binary, starting_position :: binary | :trim_horizon | :latest) :: %{}

Creates a stream based event source for a function

create_event_source_mapping/4

Specs:

  • create_event_source_mapping(function_name :: binary, event_source_arn :: binary, starting_position :: binary | :trim_horizon | :latest, opts :: %{}) :: %{}
create_function/3

Specs:

  • create_function(function_name :: binary, handler :: binary, zipfile :: File.Stat.t) :: %{}

Create a function.

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

create_function/4

Specs:

  • create_function(function_name :: binary, handler :: binary, zipfile :: File.Stat.t, opts :: %{}) :: %{}
delete_event_source_mapping/1

Specs:

  • delete_event_source_mapping(source_mapping_uuid :: binary) :: %{}

Delete an event source mapping

delete_function/1

Specs:

  • delete_function(function_name :: binary) :: %{}

Delete a lambda function

get_event_source_mapping/1

Specs:

  • get_event_source_mapping(source_mapping_uuid :: binary) :: %{}

Get an event source mapping

get_function/1

Specs:

  • get_function(function_name :: binary) :: %{}

Get a function

get_function_configuration/1

Specs:

  • get_function_configuration(function_name :: binary) :: %{}

Get a function configuration

get_policy/1

Specs:

  • get_policy(function_name :: binary) :: %{}

Get a function access policy

invoke/2

Specs:

  • invoke(function_name :: binary, client_context :: %{}) :: %{}

Invoke a lambda function

invoke/3

Specs:

  • invoke(function_name :: binary, client_context :: %{}, opts :: %{}) :: %{}
invoke_async/2

Specs:

  • invoke_async(function_name :: binary, args :: %{}) :: %{}

Invoke a lambda function asynchronously

list_event_source_mappings/2

Specs:

  • list_event_source_mappings(function_name :: binary, event_source_arn :: binary) :: %{}

List event source mappings

list_event_source_mappings/3

Specs:

  • list_event_source_mappings(function_name :: binary, event_source_arn :: binary, opts :: %{}) :: %{}
list_functions/0

Specs:

  • list_functions :: %{}

List functions

list_functions/1

Specs:

  • list_functions(opts :: %{}) :: %{}
remove_permission/2

Specs:

  • remove_permission(function_name :: binary, statement_id :: binary) :: %{}

Remove individual permissions from an function’s access policy

update_event_source_mapping/3

Specs:

  • update_event_source_mapping(function_name :: binary, uuid :: binary, attrs_to_update :: %{}) :: %{}

Update event source mapping

update_function_code/1

Specs:

  • update_function_code(function_name :: binary) :: %{}
update_function_configuration/1

Specs:

  • update_function_configuration(function_name :: binary) :: %{}