create_direct_connect_gateway_association_proposal
¶
create_direct_connect_gateway_association_proposal(
direct_connect_gateway_id: DirectConnectGatewayId,
direct_connect_gateway_owner_account: OwnerAccount,
gateway_id: GatewayIdToAssociate,
*,
config_overrides: Optional[DirectConnectClientConfig] = 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/direct_connect.py
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 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 | |