list_events
async
¶
list_events(
memory_id: MemoryId,
session_id: SessionId,
actor_id: ActorId,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
include_payloads: Optional[bool] = None,
filter: Optional[FilterInput] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListEventsOutput
Lists events in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the bedrock-agentcore:ListEvents permission.
Parameters:
-
memory_id(MemoryId) –The identifier of the AgentCore Memory resource for which to list events.
-
session_id(SessionId) –The identifier of the session for which to list events.
-
actor_id(ActorId) –The identifier of the actor for which to list events.
-
include_payloads(Optional[bool], default:None) –Specifies whether to include event payloads in the response. Set to true to include payloads, or false to exclude them.
-
filter(Optional[FilterInput], default:None) –Filter criteria to apply when listing events.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single call. The default value is 20.
-
next_token(Optional[PaginationToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
InvalidInputException–The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
-
ResourceNotFoundException–The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
-
ServiceException–The service encountered an internal error. Try your request again later.
-
ServiceQuotaExceededException–The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
-
ThrottledException–The request was denied due to request throttling. Reduce the frequency of requests and try again.
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/async_bedrock_agent_core.py
4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 | |