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.
-
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
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 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 | |