create_interconnect
¶
create_interconnect(
interconnect_name: InterconnectName,
bandwidth: Bandwidth,
location: LocationCode,
*,
config_overrides: Optional[DirectConnectClientConfig] = None,
lag_id: Optional[LagId] = None,
tags: Optional[TagList] = None,
provider_name: Optional[ProviderName] = None,
request_mac_sec: Optional[RequestMACSec] = None,
) -> Interconnect
Creates an interconnect between an Direct Connect Partner's network and a specific Direct Connect location.
An interconnect is a connection that is capable of hosting other connections. The Direct Connect Partner can use an interconnect to provide Direct Connect hosted connections to customers through their own network services. Like a standard connection, an interconnect links the partner's network to an Direct Connect location over a standard Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an Direct Connect router.
You can automatically add the new interconnect to a link aggregation group (LAG) by specifying a LAG ID in the request. This ensures that the new interconnect is allocated on the same Direct Connect endpoint that hosts the specified LAG. If there are no available ports on the endpoint, the request fails and no interconnect is created.
For each end customer, the Direct Connect Partner provisions a connection on their interconnect by calling AllocateHostedConnection. The end customer can then connect to Amazon Web Services resources by creating a virtual interface on their connection, using the VLAN assigned to them by the Direct Connect Partner.
Intended for use by Direct Connect Partners only.
Parameters:
-
interconnect_name(InterconnectName) –The name of the interconnect.
-
bandwidth(Bandwidth) –The port bandwidth, in Gbps. The possible values are 1, 10, and 100.
-
location(LocationCode) –The location of the interconnect.
-
lag_id(Optional[LagId], default:None) –The ID of the LAG.
-
tags(Optional[TagList], default:None) –The tags to associate with the interconnect.
-
provider_name(Optional[ProviderName], default:None) –The name of the service provider associated with the interconnect.
-
request_mac_sec(Optional[RequestMACSec], default:None) –Indicates whether you want the interconnect to support MAC Security (MACsec).
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
DuplicateTagKeysException–A tag key was specified more than once.
-
TooManyTagsException–You have reached the limit on the number of tags that can be assigned.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/direct_connect.py
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 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 | |