listThreatModelJobs method

Future<ListThreatModelJobsOutput> listThreatModelJobs({
  1. required String agentSpaceId,
  2. required String threatModelId,
  3. int? maxResults,
  4. String? nextToken,
})

Returns a paginated list of threat model job summaries for the specified threat model.

Parameter agentSpaceId : The unique identifier of the agent space.

Parameter threatModelId : The unique identifier of the threat model to list jobs for.

Parameter maxResults : The maximum number of results to return in a single call.

Parameter nextToken : A token to use for paginating results that are returned in the response.

Implementation

Future<ListThreatModelJobsOutput> listThreatModelJobs({
  required String agentSpaceId,
  required String threatModelId,
  int? maxResults,
  String? nextToken,
}) async {
  final $payload = <String, dynamic>{
    'agentSpaceId': agentSpaceId,
    'threatModelId': threatModelId,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListThreatModelJobs',
    exceptionFnMap: _exceptionFns,
  );
  return ListThreatModelJobsOutput.fromJson(response);
}