describe_local_gateways
async
¶
describe_local_gateways(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
local_gateway_ids: Optional[LocalGatewayIdSet] = None,
filters: Optional[FilterList] = None,
max_results: Optional[LocalGatewayMaxResults] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeLocalGatewaysResult
Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.
Parameters:
-
local_gateway_ids(Optional[LocalGatewayIdSet], default:None) –The IDs of the local gateways.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
local-gateway-id- The ID of a local gateway. -
outpost-arn- The Amazon Resource Name (ARN) of the Outpost. -
owner-id- The ID of the Amazon Web Services account that owns the local gateway. -
state- The state of the association.
-
-
max_results(Optional[LocalGatewayMaxResults], 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
29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 29675 29676 29677 29678 29679 29680 29681 29682 29683 29684 29685 29686 29687 29688 29689 29690 29691 29692 29693 29694 29695 29696 29697 29698 29699 | |