validateSecurityProfileBehaviors method
Validates a Device Defender security profile behaviors specification.
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException.
Parameter behaviors
:
Specifies the behaviors that, when violated by a device (thing), cause an
alert.
Implementation
Future<ValidateSecurityProfileBehaviorsResponse>
validateSecurityProfileBehaviors({
required List<Behavior> behaviors,
}) async {
ArgumentError.checkNotNull(behaviors, 'behaviors');
final $payload = <String, dynamic>{
'behaviors': behaviors,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/security-profile-behaviors/validate',
exceptionFnMap: _exceptionFns,
);
return ValidateSecurityProfileBehaviorsResponse.fromJson(response);
}