get_resource_activities_query_results
¶
get_resource_activities_query_results(
environment_arn: EnvironmentArn,
project: ProjectName,
query_id: ResourceActivitiesQueryId,
*,
config_overrides: Optional[AssuranceClientConfig] = 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/assurance.py
3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 | |