describe_carrier_gateways
¶
describe_carrier_gateways(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 | |