describe_direct_connect_gateway_associations
¶
describe_direct_connect_gateway_associations(
*,
config_overrides: Optional[DirectConnectClientConfig] = 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/direct_connect.py
2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 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 | |