describe_internet_gateways
¶
describe_internet_gateways(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> client.describe_internet_gateways(filters=[{'Name': 'attachment.vpc-id', 'Values': ['vpc-a01106c2']}])
Source code in docs_src/capo_ec2/_services/ec2.py
27411 27412 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 | |