flow_log#
Exec module for managing EC2 FlowLogs.
- async idem_aws.exec.aws.ec2.flow_log.get(hub, ctx, name, resource_id: str = None, filters: List = None) Dict[source]#
- Get a flow_log 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 flow_log id to identify the resource. 
- filters (list, Optional) – One or more filters: for example, tag :<key>, tag-key. A complete list of filters can be found at https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_flow_logs 
 
 
- async idem_aws.exec.aws.ec2.flow_log.list_(hub, ctx, name: str = None, filters: List = None) Dict[source]#
- Fetch a list of flow_logs from AWS. - The function returns empty list when no resource is found. - Parameters:
- name (str, Optional) – The name of the Idem state. 
- filters (list, Optional) – One or more filters: for example, tag :<key>, tag-key. A complete list of filters can be found at https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_flow_logs