cancel_connection
async
¶
cancel_connection(
catalog: Catalog,
identifier: ConnectionId,
connection_type: ConnectionType,
reason: str,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncPartnerCentralAccountClientConfig] = None,
) -> CancelConnectionResponse
Cancels an existing connection between partners, terminating the partnership relationship.
Parameters:
-
catalog(Catalog) –The catalog identifier where the connection exists.
-
identifier(ConnectionId) –The unique identifier of the connection to cancel.
-
connection_type(ConnectionType) –The type of connection to cancel (e.g., reseller, distributor, technology partner).
-
reason(str) –The reason for canceling the connection, providing context for the termination.
-
client_token(ClientToken) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions. The caller does not have the required permissions to perform this operation.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource. This typically occurs when trying to create a resource that already exists or modify a resource that has been changed by another process.
-
InternalServerException–An internal server error occurred while processing the request. This is typically a temporary condition and the request may be retried.
-
ResourceNotFoundException–The specified resource could not be found. This may occur when referencing a resource that does not exist or has been deleted.
-
ThrottlingException–The request was throttled due to too many requests being sent in a short period of time. The client should implement exponential backoff and retry the request.
-
ValidationException–The request failed validation. One or more input parameters are invalid, missing, or do not meet the required format or constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_account/_services/async_partner_central_account.py
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 | |