list_channel_handshakes
¶
list_channel_handshakes(
handshake_type: HandshakeType,
catalog: Catalog,
participant_type: ParticipantType,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
max_results: Optional[int] = None,
statuses: Optional[HandshakeStatusList] = None,
associated_resource_identifiers: Optional[AssociatedResourceIdentifierList] = None,
handshake_type_filters: Optional[ListChannelHandshakesTypeFilters] = None,
handshake_type_sort: Optional[ListChannelHandshakesTypeSort] = None,
next_token: Optional[NextToken] = None,
) -> ListChannelHandshakesResponse
Lists channel handshakes based on specified criteria.
Parameters:
-
handshake_type(HandshakeType) –Filter results by handshake type.
-
catalog(Catalog) –The catalog identifier to filter handshakes.
-
participant_type(ParticipantType) –Filter by participant type (sender or receiver).
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single call.
-
statuses(Optional[HandshakeStatusList], default:None) –Filter results by handshake status.
-
associated_resource_identifiers(Optional[AssociatedResourceIdentifierList], default:None) –Filter by associated resource identifiers.
-
handshake_type_filters(Optional[ListChannelHandshakesTypeFilters], default:None) –Type-specific filters for handshakes.
-
handshake_type_sort(Optional[ListChannelHandshakesTypeSort], default:None) –Type-specific sorting options for handshakes.
-
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 ListChannelHandshakes - START_SERVICE_PERIOD
>>> client.list_channel_handshakes(handshake_type='START_SERVICE_PERIOD', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['rs-123abc456def7'], handshake_type_filters={'startServicePeriodTypeFilters': {'servicePeriodTypes': ['FIXED_COMMITMENT_PERIOD']}}, handshake_type_sort={'startServicePeriodTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}})
Example for ListChannelHandshakes - REVOKE_SERVICE_PERIOD
>>> client.list_channel_handshakes(handshake_type='REVOKE_SERVICE_PERIOD', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['rs-123abc456def7'], handshake_type_filters={'revokeServicePeriodTypeFilters': {'servicePeriodTypes': ['MINIMUM_NOTICE_PERIOD']}}, handshake_type_sort={'revokeServicePeriodTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}})
Example for ListChannelHandshakes - PROGRAM_MANAGEMENT_ACCOUNT
>>> client.list_channel_handshakes(handshake_type='PROGRAM_MANAGEMENT_ACCOUNT', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['pma-123abc456def7'], handshake_type_filters={'programManagementAccountTypeFilters': {'programs': ['SOLUTION_PROVIDER']}}, handshake_type_sort={'programManagementAccountTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}}, max_results=20, next_token='nextToken')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 | |