list_engagements
async
¶
list_engagements(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
created_by: Optional[AwsAccountList] = None,
exclude_created_by: Optional[AwsAccountList] = None,
context_types: Optional[EngagementContextTypeList] = None,
exclude_context_types: Optional[EngagementContextTypeList] = None,
sort: Optional[EngagementSort] = None,
max_results: Optional[EngagementPageSize] = None,
next_token: Optional[str] = None,
engagement_identifier: Optional[EngagementIdentifiers] = None,
) -> ListEngagementsResponse
This action allows users to retrieve a list of Engagement records from Partner Central. This action can be used to manage and track various engagements across different stages of the partner selling process.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog related to the request.
-
created_by(Optional[AwsAccountList], default:None) –A list of AWS account IDs. When specified, the response includes engagements created by these accounts. This filter is useful for finding engagements created by specific team members.
-
exclude_created_by(Optional[AwsAccountList], default:None) –An array of strings representing AWS Account IDs. Use this to exclude engagements created by specific users.
-
context_types(Optional[EngagementContextTypeList], default:None) –Filters engagements to include only those containing the specified context types, such as "CustomerProject" or "Lead". Use this to find engagements that have specific types of contextual information associated with them.
-
exclude_context_types(Optional[EngagementContextTypeList], default:None) –Filters engagements to exclude those containing the specified context types. Use this to find engagements that do not have certain types of contextual information, helping to narrow results based on context exclusion criteria.
-
sort(Optional[EngagementSort], default:None) –Specifies how to sort the returned engagements.
-
max_results(Optional[EngagementPageSize], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[str], default:None) –The token for the next set of results. This value is returned from a previous call.
-
engagement_identifier(Optional[EngagementIdentifiers], default:None) –An array of strings representing engagement identifiers to retrieve.
Raises:
-
AccessDeniedException–This error occurs when you don't have permission to perform the requested action.
You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.
-
InternalServerException–This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.
Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.
-
ResourceNotFoundException–This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.
Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.
-
ThrottlingException–This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.
This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.
-
ValidationException–The input fails to satisfy the constraints specified by the service or business validation rules.
Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_selling/_services/async_partner_central_selling.py
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 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 | |