get_resource_activities_query_results
async
¶
get_resource_activities_query_results(
environment_arn: EnvironmentArn,
project: ProjectName,
query_id: ResourceActivitiesQueryId,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetResourceActivitiesQueryResultsOutput
Gets the status of a query that StartResourceActivitiesQuery started, and one page of its results. To get the next page, pass the nextToken value from the response in your next request.
Call this operation until status is COMPLETE, FAILED, or EXPIRED. The response includes results and a pagination token only when status is COMPLETE.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of the environment that the query ran in.
-
project(ProjectName) –The project that the query ran in.
-
query_id(ResourceActivitiesQueryId) –The ID of the query, as returned by
StartResourceActivitiesQuery. -
next_token(Optional[PaginationToken], default:None) –The pagination token returned by a previous request for the same
queryId. Use it to retrieve the next page of results. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to return on one page. The default is 50. If more results are available, use the
nextTokenvalue from the response to get the next page.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_assurance/_services/async_assurance.py
3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 | |