list_policies
¶
list_policies(
policy_engine_id: ResourceId,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
target_resource_scope: Optional[BedrockAgentcoreResourceArn] = None,
) -> ListPoliciesResponse
Retrieves a list of policies within the AgentCore Policy engine. This operation supports pagination and filtering to help administrators manage and discover policies across policy engines. Results can be filtered by policy engine or resource associations.
Parameters:
-
next_token(Optional[NextToken], default:None) –A pagination token returned from a previous ListPolicies call. Use this token to retrieve the next page of results when the response is paginated.
-
max_results(Optional[MaxResults], default:None) –The maximum number of policies to return in a single response. If not specified, the default is 10 policies per page, with a maximum of 100 per page.
-
policy_engine_id(ResourceId) –The identifier of the policy engine whose policies to retrieve.
-
target_resource_scope(Optional[BedrockAgentcoreResourceArn], default:None) –Optional filter to list policies that apply to a specific resource scope or resource type. This helps narrow down policy results to those relevant for particular Amazon Web Services resources, agent tools, or operational contexts within the policy engine ecosystem.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 | |