getPolicyEngine method

Future<GetPolicyEngineResponse> getPolicyEngine({
  1. required String policyEngineId,
})

Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter policyEngineId : The unique identifier of the policy engine to be retrieved. This must be a valid policy engine ID that exists within the account.

Implementation

Future<GetPolicyEngineResponse> getPolicyEngine({
  required String policyEngineId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/policy-engines/${Uri.encodeComponent(policyEngineId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPolicyEngineResponse.fromJson(response);
}