create_connection
¶
create_connection(
global_network_id: GlobalNetworkId,
device_id: DeviceId,
connected_device_id: DeviceId,
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
link_id: Optional[LinkId] = None,
connected_link_id: Optional[LinkId] = None,
description: Optional[ConstrainedString] = None,
tags: Optional[TagList] = None,
) -> CreateConnectionResponse
Creates a connection between two devices. The devices can be a physical or virtual appliance that connects to a third-party appliance in a VPC, or a physical appliance that connects to another physical appliance in an on-premises network.
Parameters:
-
global_network_id(GlobalNetworkId) –The ID of the global network.
-
device_id(DeviceId) –The ID of the first device in the connection.
-
connected_device_id(DeviceId) –The ID of the second device in the connection.
-
link_id(Optional[LinkId], default:None) –The ID of the link for the first device.
-
connected_link_id(Optional[LinkId], default:None) –The ID of the link for the second device.
-
description(Optional[ConstrainedString], default:None) –A description of the connection.
Length Constraints: Maximum length of 256 characters.
-
tags(Optional[TagList], default:None) –The tags to apply to the resource during creation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.
-
InternalServerException–The request has failed due to an internal error.
-
ServiceQuotaExceededException–A service limit was exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.