generateRecommendedPolicyV2 method
Begins the recommended policy generation to remediate a Security Hub
finding. GenerateRecommendedPolicyV2 only supports findings
for unused permissions.
May throw AccessDeniedException.
May throw InternalServerException.
May throw InvalidInputException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter metadataUid :
The unique identifier (ID) of Security Hub OCSF findings found under the
metadata.uid field of the finding.
Implementation
Future<void> generateRecommendedPolicyV2({
required String metadataUid,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/recommendedPolicyV2/${Uri.encodeComponent(metadataUid)}',
exceptionFnMap: _exceptionFns,
);
}