describe_transit_gateways
async
¶
describe_transit_gateways(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
35982 35983 35984 35985 35986 35987 35988 35989 35990 35991 35992 35993 35994 35995 35996 35997 35998 35999 36000 36001 36002 36003 36004 36005 36006 36007 36008 36009 36010 36011 36012 36013 36014 36015 36016 36017 36018 36019 36020 36021 36022 36023 36024 36025 36026 36027 36028 36029 36030 36031 36032 36033 36034 36035 36036 36037 36038 36039 36040 36041 36042 36043 36044 36045 36046 36047 | |