log_group#

Exec module for managing Cloudwatch Log_Groups.

async idem_aws.exec.aws.cloudwatch.log_group.get(hub, ctx, name, resource_id: str = None) Dict[source]#

Get a log_group resource from AWS.

If more than one resource is found, the first resource returned from AWS will be used. The function returns None when no resource is found.

Parameters:
  • name (str) – The name of the Idem state.

  • resource_id (str, Optional) – Aws logGroupNamePrefix (The prefix to match.)

async idem_aws.exec.aws.cloudwatch.log_group.list_(hub, ctx, name: str = None) Dict[source]#

Fetch a list of log_group from AWS. The function returns empty list when no resource is found.

Parameters:

name (str, Optional) – The name of the Idem state.