create_connection
async
¶
create_connection(
global_network_id: GlobalNetworkId,
device_id: DeviceId,
connected_device_id: DeviceId,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = 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.
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 | |