get_customer_account_statistics
async
¶
get_customer_account_statistics(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
filter: Optional[Filter] = None,
aggregations: Optional[AggregationRequestList] = None,
include_missing: Optional[bool] = None,
) -> GetCustomerAccountStatisticsResponse
Use GetCustomerAccountStatistics to count your customer accounts and group them by fields such as industry, geography, or enrichment status. You can use the same filters as SearchCustomerAccounts.
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. If you omit this field, the statistics cover all of your customer accounts.
-
aggregations(Optional[AggregationRequestList], default:None) –Specifies how to group the customer accounts. Each aggregation returns the number of accounts for each value of a field.
-
include_missing(Optional[bool], default:None) –Specifies whether to include a group for customer accounts that have no value for the grouped field.
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/async_partner_central_selling.py
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 | |