get_policy
async
¶
get_policy(
policy_engine_id: ResourceId,
policy_id: ResourceId,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
) -> GetPolicyResponse
Retrieves detailed information about a specific policy within the AgentCore Policy system. This operation returns the complete policy definition, metadata, and current status, allowing administrators to review and manage policy configurations.
Parameters:
-
policy_engine_id(ResourceId) –The identifier of the policy engine that manages the policy to be retrieved.
-
policy_id(ResourceId) –The unique identifier of the policy to be retrieved. This must be a valid policy ID that exists within the specified policy engine.
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/async_bedrock_agent_core_control.py
12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 | |