event_destination#

Get and List methods for AWS SES Event destination.

async idem_aws.exec.aws.sesv2.event_destination.get(hub, ctx, configuration_set_name: str, resource_id: str = None) Dict[str, Any][source]#

Retrieve event destinations that are associated with a configuration set.

Parameters:
  • configuration_set_name (str) – The name of the configuration set.

  • resource_id (str, Optional) – A name that identifies the event destination within the configuration set.

Returns:

{"result": True|False, "comment": ["A list"], "ret": None|Dict}

Examples

Calling this exec module function from the cli

idem exec aws.sesv2.event_destination.get configuration_set_name=config_set_name resource_id=event_destination_name

Calling this exec module function from within a state module

async def state_function(hub, ctx, name, resource_id, configuration_set_name, **kwargs):
    ret = await hub.exec.aws.sesv2.event_destination.get(ctx=ctx,
                                                         resource_id=resource_id,
                                                         configuration_set_name=configuration_set_name)
async idem_aws.exec.aws.sesv2.event_destination.list_(hub, ctx) Dict[str, Any][source]#

Retrieve a list of event destinations that are associated with a configuration set.

Returns:

{"result": True|False, "comment": ["A list"], "ret": None|Dict}

Examples

Calling this exec module function from the cli

idem exec aws.sesv2.event_destination.list

Calling this exec module function from within a state module

async def state_function(hub, ctx, name, resource_id, configuration_set_name, **kwargs):
    ret = await hub.exec.aws.sesv2.event_destination.list(ctx=ctx)