route_table#
- async idem_aws.exec.aws.ec2.route_table.get(hub, ctx, name, resource_id: str = None, filters: List = None)[source]#
Get a single route table 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) – An Idem state name.
resource_id (str, Optional) – AWS route table ID to identify the resource.
filters (list[dict[str, Any]], 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_route_tables
- async idem_aws.exec.aws.ec2.route_table.list_(hub, ctx, name: str = None, filters: List = None) Dict [source]#
Fetch a list of route table from AWS. The function returns empty list when no resource is found.
- Parameters:
name (str, Optional) – An Idem state name.
filters (list[dict[str, Any]], 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_route_tables