create_lag
async
¶
create_lag(
number_of_connections: Count,
location: LocationCode,
connections_bandwidth: Bandwidth,
lag_name: LagName,
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
connection_id: Optional[ConnectionId] = None,
tags: Optional[TagList] = None,
child_connection_tags: Optional[TagList] = None,
provider_name: Optional[ProviderName] = None,
request_mac_sec: Optional[RequestMACSec] = None,
billing_mode: Optional[RequestBillingMode] = None,
) -> Lag
Creates a link aggregation group (LAG) with the specified number of bundled physical dedicated connections between the customer network and a specific Direct Connect location. A LAG is a logical interface that uses the Link Aggregation Control Protocol (LACP) to aggregate multiple interfaces, enabling you to treat them as a single interface.
All connections in a LAG must use the same bandwidth (either 1Gbps, 10Gbps, 100Gbps, or 400Gbps) and must terminate at the same Direct Connect endpoint.
You can have up to 10 dedicated connections per location. Regardless of this limit, if you request more connections for the LAG than Direct Connect can allocate on a single endpoint, no LAG is created..
You can specify an existing physical dedicated connection or interconnect to include in the LAG (which counts towards the total number of connections). Doing so interrupts the current physical dedicated connection, and re-establishes them as a member of the LAG. The LAG will be created on the same Direct Connect endpoint to which the dedicated connection terminates. Any virtual interfaces associated with the dedicated connection are automatically disassociated and re-associated with the LAG. The connection ID does not change.
If the Amazon Web Services account used to create a LAG is a registered Direct Connect Partner, the LAG is automatically enabled to host sub-connections. For a LAG owned by a partner, any associated virtual interfaces cannot be directly configured.
Parameters:
-
number_of_connections(Count) –The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the port speed is 1Gbps or 10Gbps, or two when the port speed is 100Gbps or 400Gbps.
-
location(LocationCode) –The location for the LAG.
-
connections_bandwidth(Bandwidth) –The bandwidth of the individual physical dedicated connections bundled by the LAG. The possible values are 1Gbps,10Gbps, 100Gbps, and 400Gbps.
-
lag_name(LagName) –The name of the LAG.
-
connection_id(Optional[ConnectionId], default:None) –The ID of an existing dedicated connection to migrate to the LAG.
-
tags(Optional[TagList], default:None) –The tags to associate with the LAG.
-
child_connection_tags(Optional[TagList], default:None) –The tags to associate with the automtically created LAGs.
-
provider_name(Optional[ProviderName], default:None) –The name of the service provider associated with the LAG.
-
request_mac_sec(Optional[RequestMACSec], default:None) –Indicates whether the connection will support MAC Security (MACsec).
All connections in the LAG must be capable of supporting MAC Security (MACsec). For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.
-
billing_mode(Optional[RequestBillingMode], default:None) –The billing mode for the LAG.
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/async_direct_connect.py
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 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 | |