listThreatModelJobTasks method
Returns a paginated list of task summaries for the specified threat model job.
Parameter agentSpaceId :
The unique identifier of the agent space.
Parameter threatModelJobId :
The unique identifier of the threat model job to list tasks 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<ListThreatModelJobTasksOutput> listThreatModelJobTasks({
required String agentSpaceId,
required String threatModelJobId,
int? maxResults,
String? nextToken,
}) async {
final $payload = <String, dynamic>{
'agentSpaceId': agentSpaceId,
'threatModelJobId': threatModelJobId,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListThreatModelJobTasks',
exceptionFnMap: _exceptionFns,
);
return ListThreatModelJobTasksOutput.fromJson(response);
}