cancelPolicyGeneration method

Future<void> cancelPolicyGeneration({
  1. required String jobId,
})

Cancels the requested policy generation.

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

Parameter jobId : The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.

Implementation

Future<void> cancelPolicyGeneration({
  required String jobId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri: '/policy/generation/${Uri.encodeComponent(jobId)}',
    exceptionFnMap: _exceptionFns,
  );
}