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
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 | |