list_partnerships
async
¶
list_partnerships(
*,
config_overrides: Optional[Asyncb2biClientConfig] = None,
profile_id: Optional[ProfileId] = None,
next_token: Optional[PageToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListPartnershipsResponse
Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameters:
-
profile_id(Optional[ProfileId], default:None) –Specifies the unique, system-generated identifier for the profile connected to this partnership.
-
next_token(Optional[PageToken], default:None) –When additional results are obtained from the command, a
NextTokenparameter is returned in the output. You can then pass theNextTokenparameter in a subsequent command to continue listing additional resources. -
max_results(Optional[MaxResults], default:None) –Specifies the maximum number of capabilities to return.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
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.
-
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 ListPartnerships call
>>> await client.list_partnerships(max_results=50, next_token='foo', profile_id='p-60fbc37c87f04fce9')
Source code in docs_src/capo_b2bi/_services/async_b2bi.py
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 | |