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