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
1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 | |