start_resource_activities_query
¶
start_resource_activities_query(
environment_arn: EnvironmentArn,
project: ProjectName,
actor_arn: ResourceArn,
*,
config_overrides: Optional[AssuranceClientConfig] = 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/assurance.py
6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 | |