accept_connection_proposal
async
¶
accept_connection_proposal(
attach_point: AttachPoint,
activation_key: ActivationKey,
*,
config_overrides: Optional[AsyncInterconnectClientConfig] = None,
description: Optional[ConnectionDescription] = None,
tags: Optional[TagMap] = None,
client_token: Optional[str] = None,
) -> AcceptConnectionProposalResponse
Accepts a connection proposal which was generated at a supported partner's portal.
The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.
Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.
Parameters:
-
attach_point(AttachPoint) –The Attach Point to which the connection should be associated.
-
activation_key(ActivationKey) –An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.
The details of this request can be described using with DescribeConnectionProposal.
-
description(Optional[ConnectionDescription], default:None) –A description to distinguish this Connection.
-
tags(Optional[TagMap], default:None) –The tags to associate with the resulting Connection.
-
client_token(Optional[str], default:None) –Idempotency token used for the request.
Raises:
-
AccessDeniedException–The calling principal is not allowed to access the specified resource, or the resource does not exist.
-
InterconnectClientException–The request was denied due to incorrect client supplied parameters.
-
InterconnectServerException–The request resulted in an exception internal to the service.
-
InterconnectValidationException–The input fails to satisfy the constraints specified.
-
ResourceNotFoundException–The request specifies a resource that does not exist on the server.
-
ServiceQuotaExceededException–The requested operation would result in the calling principal exceeding their allotted quota.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Accept Connection Proposal
>>> await client.accept_connection_proposal(activation_key='<Activation Key Data>', attach_point={'directConnectGateway': '90392BE3-219C-47FD-BBA5-03DF76D2542A'})
Source code in docs_src/capo_interconnect/_services/async_interconnect.py
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | |