ExAws.Lambda.Adapter behaviour
Types ↑
test :: %{foo: binary}
Callbacks
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]+|[*])
Specs:
- add_permission(function_name :: binary, principal :: binary, action :: binary, statement_id :: binary, opts :: %{}) :: %{}
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
Specs:
- create_event_source_mapping(function_name :: binary, event_source_arn :: binary, starting_position :: binary | :trim_horizon | :latest, opts :: %{}) :: %{}
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.
Specs:
- create_function(function_name :: binary, handler :: binary, zipfile :: File.Stat.t, opts :: %{}) :: %{}
Specs:
- delete_event_source_mapping(source_mapping_uuid :: binary) :: %{}
Delete an event source mapping
Specs:
- delete_function(function_name :: binary) :: %{}
Delete a lambda function
Specs:
- get_event_source_mapping(source_mapping_uuid :: binary) :: %{}
Get an event source mapping
Specs:
- get_function(function_name :: binary) :: %{}
Get a function
Specs:
- get_function_configuration(function_name :: binary) :: %{}
Get a function configuration
Specs:
- get_policy(function_name :: binary) :: %{}
Get a function access policy
Specs:
- invoke(function_name :: binary, client_context :: %{}) :: %{}
Invoke a lambda function
Specs:
- invoke(function_name :: binary, client_context :: %{}, opts :: %{}) :: %{}
Specs:
- invoke_async(function_name :: binary, args :: %{}) :: %{}
Invoke a lambda function asynchronously
Specs:
- list_event_source_mappings(function_name :: binary, event_source_arn :: binary) :: %{}
List event source mappings
Specs:
- list_event_source_mappings(function_name :: binary, event_source_arn :: binary, opts :: %{}) :: %{}
Specs:
- list_functions :: %{}
List functions
Specs:
- list_functions(opts :: %{}) :: %{}
Specs:
- remove_permission(function_name :: binary, statement_id :: binary) :: %{}
Remove individual permissions from an function’s access policy
Specs:
- update_event_source_mapping(function_name :: binary, uuid :: binary, attrs_to_update :: %{}) :: %{}
Update event source mapping
Specs:
- update_function_code(function_name :: binary) :: %{}
Specs:
- update_function_configuration(function_name :: binary) :: %{}