update_partnership
async
¶
update_partnership(
partnership_id: PartnershipId,
*,
config_overrides: Optional[Asyncb2biClientConfig] = None,
name: Optional[PartnerName] = None,
capabilities: Optional[PartnershipCapabilities] = None,
capability_options: Optional[CapabilityOptions] = None,
) -> UpdatePartnershipResponse
Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameters:
-
partnership_id(PartnershipId) –Specifies the unique, system-generated identifier for a partnership.
-
name(Optional[PartnerName], default:None) –The name of the partnership, used to identify it.
-
capabilities(Optional[PartnershipCapabilities], default:None) –List of the capabilities associated with this partnership.
-
capability_options(Optional[CapabilityOptions], default:None) –To update, specify the structure that contains the details for the associated capabilities.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
-
InternalServerException–This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
-
ResourceNotFoundException–Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
-
ServiceQuotaExceededException–Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
-
ThrottlingException–The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
-
ValidationException–Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample UpdatePartnership call
>>> await client.update_partnership(capabilities=['ca-963a8121e4fc4e348'], name='b2bipartner', partnership_id='ps-219fa02f5b4242af8')
Source code in docs_src/capo_b2bi/_services/async_b2bi.py
1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 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 | |