start_resource_activities_query
async
¶
start_resource_activities_query(
environment_arn: EnvironmentArn,
project: ProjectName,
actor_arn: ResourceArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
aggregation_levels: Optional[ActivityAggregationLevelList] = None,
filters: Optional[ResourceActivitiesFilterList] = None,
) -> StartResourceActivitiesQueryOutput
Starts a query of the AWS API calls that an artificial intelligence (AI) agent on Amazon Bedrock AgentCore Runtime made. Use the results to audit which resources the agent touched in your account. Returns a query ID. To check the status of the query and get its results, call GetResourceActivitiesQueryResults.
The agent runtime that you query must be in your AWS account.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of the environment to query in.
-
project(ProjectName) –The project to query in.
-
actor_arn(ResourceArn) –The ARN of the agent runtime whose activity to query. The agent runtime must be in your AWS account.
-
start_time(Optional[datetime], default:None) –The start of the time range to query, inclusive. The default is 24 hours before the request.
-
end_time(Optional[datetime], default:None) –The end of the time range to query, exclusive. The default is the time of the request.
-
aggregation_levels(Optional[ActivityAggregationLevelList], default:None) –The ways to group the results. By default, the results include every grouping. Valid values:
-
ACTION– Call counts for each AWS service and API action. -
RESOURCE– Call counts for each resource. -
SESSION– The agent sessions in the time range.
-
-
filters(Optional[ResourceActivitiesFilterList], default:None) –The filters to apply to the results. A result must match every filter. Within one filter, a result must match at least one of the values. If you don't specify any filters, the query returns all activity in the time range.
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
6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 | |