function_event_invoke_config#

Exec module for managing Lambda function asynchronous invocation configuration

async idem_aws.exec.aws.lambda_aws.function_event_invoke_config.get(hub, ctx, name: str, resource_id: str = None, function_name: str = None, qualifier: str = None)[source]#

Get the configuration for asynchronous invocation for a function, version, or alias.

Parameters:
  • name (str) – An Idem name of the resource.

  • resource_id (str, Optional) – The Amazon Resource Name (ARN) of the function. If not supplied, the function name is required to get the resource.

  • function_name (str, Optional) – The name of the Lambda function. If not supplied, function_name is parsed from the resource_id.

  • qualifier (str, Optional) – A version number or alias name. Defaults to None.

Returns:

{"result": True|False, "comment": A message List, "ret": None|Dict}

Examples

Calling this exec module function from the cli with resource_id

idem exec aws.lambda_aws.function_event_invoke_config.get resource_id="resource_id" name="name"

Calling this exec module function from the cli with function_name and qualifier.

idem exec aws.lambda_aws.function_event_invoke_config.get function_name="function_name" name="name"

Calling this exec module function from within a state module in pure python

async def state_function(hub, ctx, name, resource_id, **kwargs):
    ret = await aws.lambda_aws.function_event_invoke_config.get(ctx, resource_id=resource_id, name=name, **kwargs)
async idem_aws.exec.aws.lambda_aws.function_event_invoke_config.list_(hub, ctx, function_name: str)[source]#

Retrieves a list of configurations for asynchronous invocation for a function.

Parameters:

function_name (str) –

The name of the Lambda function.
Name formats
  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

Returns:

{"result": True|False, "comment": A message List, "ret": None|Dict}

Examples

Calling this exec module function from the cli with function_name

idem exec aws.lambda_aws.function_event_invoke_config.list function_name="function_name"

Calling this exec module function from within a state module in pure python

async def state_function(hub, ctx, name, resource_id, **kwargs):
    ret = await aws.lambda_aws.function_event_invoke_config.list(ctx, function_name=function_name)