search_engagements
¶
search_engagements(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = None,
keyword: Optional[EngagementSearchKeyword] = None,
filter: Optional[EngagementSearchFilter] = None,
group_id: Optional[GroupId] = None,
sort: Optional[EngagementSearchSort] = None,
max_results: Optional[PageSize] = None,
next_token: Optional[LeadsNextToken] = None,
) -> SearchEngagementsResponse
Searches the engagements in AWS Partner Central that match your criteria, such as customer industry or geography. You can combine a free-text Keyword, a structured Filter tree, an engagement group (GroupId), and Sort options, and each search criterion that you specify narrows the results. Results are paginated, so use NextToken to retrieve additional results.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog to search. The following values are valid:
-
AWS: Production. -
Sandbox: Testing environments.
-
-
keyword(Optional[EngagementSearchKeyword], default:None) –An optional free-text query string matched against the engagement title, description, customer company name, and member company names. When provided together with
FilterorGroupId, each one narrows the result set. -
filter(Optional[EngagementSearchFilter], default:None) –A recursive, structured filter tree. Each node is either a boolean combinator (
AndAllFilters,OrAllFilters, orNotFilter) or a leaf predicate (a single comparison such asEqualsTo). When provided together withKeywordorGroupId, each one narrows the result set. -
group_id(Optional[GroupId], default:None) –The identifier of an engagement group that
ListEngagementGroupsreturns. When you specify a group, the operation returns only the engagements that match the criteria that define the group. The group must be active and available to you in the specified catalog. Otherwise, the request fails with aValidationException. -
sort(Optional[EngagementSearchSort], default:None) –Specifies the field and direction used to sort the search results. If you omit this field, results are sorted by creation time, newest first.
-
max_results(Optional[PageSize], default:None) –Specifies the maximum number of results to return in a single call. If you omit this value, the operation returns up to 20 results. Use this value to control pagination together with
NextToken. -
next_token(Optional[LeadsNextToken], default:None) –A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.
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.
-
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.
Examples:
Search engagements by keyword and customer country Returns AWS catalog engagements whose text matches the keyword and whose prospected customer is in the United States, newest first.
>>> client.search_engagements(catalog='AWS', keyword='data analytics', filter={'EqualsTo': {'Key': 'ProspectingCustomerCountry', 'Value': {'StringValue': 'US'}}}, sort={'SortBy': 'CreatedAt', 'SortOrder': 'DESCENDING'}, max_results=20)
Source code in docs_src/capo_partnercentral_selling/_services/partner_central_selling.py
2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 | |