describe_carrier_gateways
async
¶
describe_carrier_gateways(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
carrier_gateway_ids: Optional[CarrierGatewayIdSet] = None,
filters: Optional[FilterList] = None,
max_results: Optional[CarrierGatewayMaxResults] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeCarrierGatewaysResult
Describes one or more of your carrier gateways.
Parameters:
-
carrier_gateway_ids(Optional[CarrierGatewayIdSet], default:None) –One or more carrier gateway IDs.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
carrier-gateway-id- The ID of the carrier gateway. -
state- The state of the carrier gateway (pending|failed|available|deleting|deleted). -
owner-id- The Amazon Web Services account ID of the owner of the carrier 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 key Ownerand 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. -
vpc-id- The ID of the VPC associated with the carrier gateway.
-
-
max_results(Optional[CarrierGatewayMaxResults], 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
23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 | |