search_customer_accounts
¶
search_customer_accounts(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = None,
filter: Optional[Filter] = None,
sort: Optional[CustomerAccountSort] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> SearchCustomerAccountsResponse
Use SearchCustomerAccounts to find customer accounts in the specified catalog. You can filter the results by fields such as enrichment status, industry, geography, and creation date, and sort them by company name, date, or score.
Results are paginated. Use NextToken to retrieve additional results.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog for the request. Valid values:
-
AWS: Production. -
Sandbox: Testing environments.
-
-
filter(Optional[Filter], default:None) –Specifies a filter tree that narrows the customer accounts. Each node either combines child filters or compares a single field to a value.
-
sort(Optional[CustomerAccountSort], default:None) –Specifies the field and direction used to sort the results.
-
max_results(Optional[int], default:None) –Specifies the maximum number of results to return in a single call. Use this value together with
NextTokento control pagination. -
next_token(Optional[NextToken], default:None) –Specifies the token for the next page of results. Use the
NextTokenvalue from a previous response to retrieve the next page.
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.
Source code in docs_src/capo_partnercentral_selling/_services/partner_central_selling.py
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 | |