describe_transit_gateways
¶
describe_transit_gateways(
*,
config_overrides: Optional[EC2ClientConfig] = None,
transit_gateway_ids: Optional[TransitGatewayIdStringList] = None,
filters: Optional[FilterList] = None,
max_results: Optional[TransitGatewayMaxResults] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeTransitGatewaysResult
Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.
Parameters:
-
transit_gateway_ids(Optional[TransitGatewayIdStringList], default:None) –The IDs of the transit gateways.
-
filters(Optional[FilterList], default:None) –One or more filters. The possible values are:
-
options.propagation-default-route-table-id- The ID of the default propagation route table. -
options.amazon-side-asn- The private ASN for the Amazon side of a BGP session. -
options.association-default-route-table-id- The ID of the default association route table. -
options.auto-accept-shared-attachments- Indicates whether there is automatic acceptance of attachment requests (enable|disable). -
options.default-route-table-association- Indicates whether resource attachments are automatically associated with the default association route table (enable|disable). -
options.default-route-table-propagation- Indicates whether resource attachments automatically propagate routes to the default propagation route table (enable|disable). -
options.dns-support- Indicates whether DNS support is enabled (enable|disable). -
options.vpn-ecmp-support- Indicates whether Equal Cost Multipath Protocol support is enabled (enable|disable). -
owner-id- The ID of the Amazon Web Services account that owns the transit gateway. -
state- The state of the transit gateway (available|deleted|deleting|modifying|pending). -
transit-gateway-id- The ID of the transit gateway. -
tag-key- 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.
-
-
max_results(Optional[TransitGatewayMaxResults], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue. -
next_token(Optional[String], default:None) –The token for the next page of results.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
35515 35516 35517 35518 35519 35520 35521 35522 35523 35524 35525 35526 35527 35528 35529 35530 35531 35532 35533 35534 35535 35536 35537 35538 35539 35540 35541 35542 35543 35544 35545 35546 35547 35548 35549 35550 35551 35552 35553 35554 35555 35556 35557 35558 35559 35560 35561 35562 35563 35564 35565 35566 35567 35568 35569 35570 35571 35572 35573 35574 35575 35576 35577 35578 35579 | |