getPolicySummary method
Retrieves a metadata-only summary of a specific policy without decrypting customer content. This lightweight read operation returns resource identifiers, status, and timestamps, but does not include the policy definition, description, or status reasons. Because this operation does not require access to the customer's KMS key, it is suitable for resource discovery, inventory, and integration scenarios where only metadata is needed.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter policyEngineId :
The identifier of the policy engine that manages the policy to retrieve
the summary for.
Parameter policyId :
The unique identifier of the policy to retrieve the summary for. This must
be a valid policy ID that exists within the specified policy engine.
Implementation
Future<GetPolicySummaryResponse> getPolicySummary({
required String policyEngineId,
required String policyId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/policy-engines/${Uri.encodeComponent(policyEngineId)}/policy-summaries/${Uri.encodeComponent(policyId)}',
exceptionFnMap: _exceptionFns,
);
return GetPolicySummaryResponse.fromJson(response);
}