search_resources
async
¶
search_resources(
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
bucket_criteria: Optional[SearchResourcesBucketCriteria] = None,
max_results: Optional[__integer] = None,
next_token: Optional[__string] = None,
sort_criteria: Optional[SearchResourcesSortCriteria] = None,
) -> SearchResourcesResponse
Retrieves (queries) statistical data and other information about Amazon Web Services resources that Amazon Macie monitors and analyzes for an account.
Parameters:
-
bucket_criteria(Optional[SearchResourcesBucketCriteria], default:None) –The filter conditions that determine which S3 buckets to include or exclude from the query results.
-
max_results(Optional[__integer], default:None) –The maximum number of items to include in each page of the response. The default value is 50.
-
next_token(Optional[__string], default:None) –The nextToken string that specifies which page of results to return in a paginated response.
-
sort_criteria(Optional[SearchResourcesSortCriteria], default:None) –The criteria to use to sort the results.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
ConflictException–Provides information about an error that occurred due to a versioning conflict for a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException–Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/async_macie2.py
4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 | |