create_connect_peer
async
¶
create_connect_peer(
connect_attachment_id: AttachmentId,
peer_address: IPAddress,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
core_network_address: Optional[IPAddress] = None,
bgp_options: Optional[BgpOptions] = None,
inside_cidr_blocks: Optional[ConstrainedStringList] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
subnet_arn: Optional[SubnetArn] = None,
) -> CreateConnectPeerResponse
Creates a core network Connect peer for a specified core network connect attachment between a core network and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
Parameters:
-
connect_attachment_id(AttachmentId) –The ID of the connection attachment.
-
core_network_address(Optional[IPAddress], default:None) –A Connect peer core network address. This only applies only when the protocol is
GRE. -
peer_address(IPAddress) –The Connect peer address.
-
bgp_options(Optional[BgpOptions], default:None) –The Connect peer BGP options. This only applies only when the protocol is
GRE. -
inside_cidr_blocks(Optional[ConstrainedStringList], default:None) –The inside IP addresses used for BGP peering.
-
tags(Optional[TagList], default:None) –The tags associated with the peer request.
-
client_token(Optional[ClientToken], default:None) –The client token associated with the request.
-
subnet_arn(Optional[SubnetArn], default:None) –The subnet ARN for the Connect peer. This only applies only when the protocol is NO_ENCAP.
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.
-
ResourceNotFoundException–The specified resource could not be found.
-
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
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | |