search_resources
¶
search_resources(
*,
config_overrides: Optional[Macie2ClientConfig] = 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/macie2.py
4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 | |