list_channel_contracts
¶
list_channel_contracts(
catalog: Catalog,
contract_type: ChannelContractType,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
statuses: Optional[ChannelContractStatusFilterList] = None,
contract_type_filters: Optional[ListChannelContractsTypeFilters] = None,
contract_type_sort: Optional[ListChannelContractsTypeSort] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> ListChannelContractsResponse
Lists channel contracts based on specified criteria.
Parameters:
-
catalog(Catalog) –The catalog identifier to filter channel contracts.
-
contract_type(ChannelContractType) –Filter results by contract type.
-
statuses(Optional[ChannelContractStatusFilterList], default:None) –Filter results by channel contract status.
-
contract_type_filters(Optional[ListChannelContractsTypeFilters], default:None) –Type-specific filters for channel contracts.
-
contract_type_sort(Optional[ListChannelContractsTypeSort], default:None) –Type-specific sorting options for channel contracts.
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[NextToken], default:None) –Token for retrieving the next page of results.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions.
-
InternalServerException–An internal server error occurred while processing the request.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was throttled due to too many requests being sent in a short period.
-
ValidationException–The request failed validation due to invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for ListChannelContracts - MANAGED_SERVICES_ATTESTATION
>>> client.list_channel_contracts(catalog='AWS', contract_type='MANAGED_SERVICES_ATTESTATION', statuses=['PENDING'], contract_type_filters={'managedServicesAttestationTypeFilters': {'relationshipIdentifiers': ['rs-abc123def456g'], 'legalEntityNames': ['Example Partner Corp']}}, contract_type_sort={'managedServicesAttestationTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}}, max_results=20)
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | |