getPolicyGenerationSummary method
Retrieves a metadata-only summary of a specific policy generation request without decrypting customer content. This lightweight read operation returns resource identifiers, status, timestamps, and findings, but does not include 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 associated with the policy generation
request.
Parameter policyGenerationId :
The unique identifier of the policy generation request to retrieve the
summary for.
Implementation
Future<GetPolicyGenerationSummaryResponse> getPolicyGenerationSummary({
required String policyEngineId,
required String policyGenerationId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/policy-engines/${Uri.encodeComponent(policyEngineId)}/policy-generation-summaries/${Uri.encodeComponent(policyGenerationId)}',
exceptionFnMap: _exceptionFns,
);
return GetPolicyGenerationSummaryResponse.fromJson(response);
}