list_relationships
¶
list_relationships(
catalog: Catalog,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
max_results: Optional[int] = None,
associated_account_ids: Optional[AccountIdList] = None,
association_types: Optional[AssociationTypeList] = None,
display_names: Optional[RelationshipDisplayNameList] = None,
program_management_account_identifiers: Optional[
ProgramManagementAccountIdentifierList
] = None,
sort: Optional[ListRelationshipsSortBase] = None,
next_token: Optional[NextToken] = None,
) -> ListRelationshipsResponse
Lists partner relationships based on specified criteria.
Parameters:
-
catalog(Catalog) –The catalog identifier to filter relationships.
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single call.
-
associated_account_ids(Optional[AccountIdList], default:None) –Filter by associated AWS account IDs.
-
association_types(Optional[AssociationTypeList], default:None) –Filter by association types.
-
display_names(Optional[RelationshipDisplayNameList], default:None) –Filter by display names.
-
program_management_account_identifiers(Optional[ProgramManagementAccountIdentifierList], default:None) –Filter by program management account identifiers.
-
sort(Optional[ListRelationshipsSortBase], default:None) –Sorting options for the results.
-
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 ListRelationships
>>> client.list_relationships(catalog='AWS', max_results=100, associated_account_ids=['123456789012'], association_types=['DOWNSTREAM_SELLER'], display_names=['TestDisplayName'], program_management_account_identifiers=['pma-u8ic702rtzng8'], sort={'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}, next_token='nextToken')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 | |