create_direct_connect_gateway_association
async
¶
create_direct_connect_gateway_association(
direct_connect_gateway_id: DirectConnectGatewayId,
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
gateway_id: Optional[GatewayIdToAssociate] = None,
add_allowed_prefixes_to_direct_connect_gateway: Optional[
RouteFilterPrefixList
] = None,
virtual_gateway_id: Optional[VirtualGatewayId] = None,
) -> CreateDirectConnectGatewayAssociationResult
Creates an association between a Direct Connect gateway and a virtual private gateway. The virtual private gateway must be attached to a VPC and must not be associated with another Direct Connect gateway.
Parameters:
-
direct_connect_gateway_id(DirectConnectGatewayId) –The ID of the Direct Connect gateway.
-
gateway_id(Optional[GatewayIdToAssociate], default:None) –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
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
-
virtual_gateway_id(Optional[VirtualGatewayId], default:None) –The ID of the virtual private 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
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 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 | |