stopThreatModelJob method

Future<void> stopThreatModelJob({
  1. required String agentSpaceId,
  2. required String threatModelJobId,
})

Stops a running threat model job.

Parameter agentSpaceId : The unique identifier of the agent space.

Parameter threatModelJobId : The unique identifier of the threat model job to stop.

Implementation

Future<void> stopThreatModelJob({
  required String agentSpaceId,
  required String threatModelJobId,
}) async {
  final $payload = <String, dynamic>{
    'agentSpaceId': agentSpaceId,
    'threatModelJobId': threatModelJobId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/StopThreatModelJob',
    exceptionFnMap: _exceptionFns,
  );
}