create_direct_connect_gateway_association_proposal
async
¶
create_direct_connect_gateway_association_proposal(
direct_connect_gateway_id: DirectConnectGatewayId,
direct_connect_gateway_owner_account: OwnerAccount,
gateway_id: GatewayIdToAssociate,
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
add_allowed_prefixes_to_direct_connect_gateway: Optional[
RouteFilterPrefixList
] = None,
remove_allowed_prefixes_to_direct_connect_gateway: Optional[
RouteFilterPrefixList
] = None,
) -> CreateDirectConnectGatewayAssociationProposalResult
Creates a proposal to associate the specified virtual private gateway or transit gateway with the specified Direct Connect gateway.
You can associate a Direct Connect gateway and virtual private gateway or transit gateway that is owned by any Amazon Web Services account.
Parameters:
-
direct_connect_gateway_id(DirectConnectGatewayId) –The ID of the Direct Connect gateway.
-
direct_connect_gateway_owner_account(OwnerAccount) –The ID of the Amazon Web Services account that owns the Direct Connect gateway.
-
gateway_id(GatewayIdToAssociate) –The ID of the virtual private gateway or transit gateway.
-
add_allowed_prefixes_to_direct_connect_gateway(Optional[RouteFilterPrefixList], default:None) –The Amazon VPC prefixes to advertise to the Direct Connect gateway.
-
remove_allowed_prefixes_to_direct_connect_gateway(Optional[RouteFilterPrefixList], default:None) –The Amazon VPC prefixes to no longer advertise to the Direct Connect 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
1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 | |