getBehaviorModelTrainingSummaries method
Returns a Device Defender's ML Detect Security Profile training model's status.
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceNotFoundException.
Parameter maxResults
:
The maximum number of results to return at one time. The default is 25.
Parameter nextToken
:
The token for the next set of results.
Parameter securityProfileName
:
The name of the security profile.
Implementation
Future<GetBehaviorModelTrainingSummariesResponse>
getBehaviorModelTrainingSummaries({
int? maxResults,
String? nextToken,
String? securityProfileName,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
10,
);
_s.validateStringLength(
'securityProfileName',
securityProfileName,
1,
128,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (securityProfileName != null)
'securityProfileName': [securityProfileName],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/behavior-model-training/summaries',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetBehaviorModelTrainingSummariesResponse.fromJson(response);
}