route_table_association#
Exec module for managing EC2 route table associations.
- async idem_aws.exec.aws.ec2.route_table_association.get(hub, ctx, route_table_id: str, name: str = None, resource_id: str = None, gateway_id: str = None, subnet_id: str = None) Dict [source]#
Get a route table association of a route table using Association ID, Gateway ID or Subnet ID.
- Parameters:
route_table_id (str) – ID of the AWS Route table.
name (str, Optional) – The name of the Idem state.
resource_id (str, Optional) – The route table association ID.
gateway_id (str, Optional) – The ID of the internet gateway or virtual private gateway.
subnet_id (str, Optional) – The ID of the subnet.
- Returns:
Returns security group in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli with filters
idem exec aws.ec2.route_table_association.get name="my_resource" route_table_id=rtb-13ewdeae resource_id=rtbassoc-0rera607rre12a2c5
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.ec2.route_table_association.get - kwargs: name: my_resource route_table_id: rtb-13ewdeae resource_id: rtbassoc-0rera607rre12a2c5