describe_direct_connect_gateway_associations
async
¶
describe_direct_connect_gateway_associations(
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
association_id: Optional[DirectConnectGatewayAssociationId] = None,
associated_gateway_id: Optional[AssociatedGatewayId] = None,
direct_connect_gateway_id: Optional[DirectConnectGatewayId] = None,
max_results: Optional[MaxResultSetSize] = None,
next_token: Optional[PaginationToken] = None,
virtual_gateway_id: Optional[VirtualGatewayId] = None,
) -> DescribeDirectConnectGatewayAssociationsResult
Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:
-
A Direct Connect gateway
The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.
-
A virtual private gateway
The response contains the Direct Connect gateway.
-
A transit gateway
The response contains the Direct Connect gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway and a transit gateway
The response contains the association between the Direct Connect gateway and transit gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway association to a Cloud WAN core network
The response contains the Cloud WAN core network ID that the Direct Connect gateway is associated to.
Parameters:
-
association_id(Optional[DirectConnectGatewayAssociationId], default:None) –The ID of the Direct Connect gateway association.
-
associated_gateway_id(Optional[AssociatedGatewayId], default:None) –The ID of the associated gateway.
-
direct_connect_gateway_id(Optional[DirectConnectGatewayId], default:None) –The ID of the Direct Connect gateway.
-
max_results(Optional[MaxResultSetSize], 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.If
MaxResultsis given a value larger than 100, only 100 results are returned. -
next_token(Optional[PaginationToken], default:None) –The token provided in the previous call to retrieve the next page.
-
virtual_gateway_id(Optional[VirtualGatewayId], default:None) –The ID of the virtual private gateway or transit gateway.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 | |