describe_internet_gateways
async
¶
describe_internet_gateways(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeInternetGatewaysMaxResults] = None,
dry_run: Optional[Boolean] = None,
internet_gateway_ids: Optional[InternetGatewayIdList] = None,
filters: Optional[FilterList] = None,
) -> DescribeInternetGatewaysResult
Describes your internet gateways. The default is to describe all your internet gateways. Alternatively, you can specify specific internet gateway IDs or filter the results to include only the internet gateways that match specific criteria.
Parameters:
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
max_results(Optional[DescribeInternetGatewaysMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
internet_gateway_ids(Optional[InternetGatewayIdList], default:None) –The IDs of the internet gateways.
Default: Describes all your internet gateways.
-
filters(Optional[FilterList], default:None) –The filters.
-
attachment.state- The current state of the attachment between the gateway and the VPC (available). Present only if a VPC is attached. -
attachment.vpc-id- The ID of an attached VPC. -
internet-gateway-id- The ID of the Internet gateway. -
owner-id- The ID of the Amazon Web Services account that owns the internet gateway. -
tag- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwnerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the Internet gateway for a VPC This example describes the Internet gateway for the specified VPC.
>>> await client.describe_internet_gateways(filters=[{'Name': 'attachment.vpc-id', 'Values': ['vpc-a01106c2']}])
Source code in docs_src/capo_ec2/_services/async_ec2.py
27788 27789 27790 27791 27792 27793 27794 27795 27796 27797 27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 | |