| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.ValidateSecurityProfileBehaviors
Description
Validates a Device Defender security profile behaviors specification.
Requires permission to access the ValidateSecurityProfileBehaviors action.
Synopsis
- data ValidateSecurityProfileBehaviors = ValidateSecurityProfileBehaviors' {}
- newValidateSecurityProfileBehaviors :: ValidateSecurityProfileBehaviors
- validateSecurityProfileBehaviors_behaviors :: Lens' ValidateSecurityProfileBehaviors [Behavior]
- data ValidateSecurityProfileBehaviorsResponse = ValidateSecurityProfileBehaviorsResponse' {
- valid :: Maybe Bool
- validationErrors :: Maybe [ValidationError]
- httpStatus :: Int
- newValidateSecurityProfileBehaviorsResponse :: Int -> ValidateSecurityProfileBehaviorsResponse
- validateSecurityProfileBehaviorsResponse_valid :: Lens' ValidateSecurityProfileBehaviorsResponse (Maybe Bool)
- validateSecurityProfileBehaviorsResponse_validationErrors :: Lens' ValidateSecurityProfileBehaviorsResponse (Maybe [ValidationError])
- validateSecurityProfileBehaviorsResponse_httpStatus :: Lens' ValidateSecurityProfileBehaviorsResponse Int
Creating a Request
data ValidateSecurityProfileBehaviors Source #
See: newValidateSecurityProfileBehaviors smart constructor.
Constructors
| ValidateSecurityProfileBehaviors' | |
Instances
newValidateSecurityProfileBehaviors :: ValidateSecurityProfileBehaviors Source #
Create a value of ValidateSecurityProfileBehaviors with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:behaviors:ValidateSecurityProfileBehaviors', validateSecurityProfileBehaviors_behaviors - Specifies the behaviors that, when violated by a device (thing), cause
an alert.
Request Lenses
validateSecurityProfileBehaviors_behaviors :: Lens' ValidateSecurityProfileBehaviors [Behavior] Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Destructuring the Response
data ValidateSecurityProfileBehaviorsResponse Source #
See: newValidateSecurityProfileBehaviorsResponse smart constructor.
Constructors
| ValidateSecurityProfileBehaviorsResponse' | |
Fields
| |
Instances
newValidateSecurityProfileBehaviorsResponse Source #
Arguments
| :: Int | |
| -> ValidateSecurityProfileBehaviorsResponse |
Create a value of ValidateSecurityProfileBehaviorsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:valid:ValidateSecurityProfileBehaviorsResponse', validateSecurityProfileBehaviorsResponse_valid - True if the behaviors were valid.
$sel:validationErrors:ValidateSecurityProfileBehaviorsResponse', validateSecurityProfileBehaviorsResponse_validationErrors - The list of any errors found in the behaviors.
$sel:httpStatus:ValidateSecurityProfileBehaviorsResponse', validateSecurityProfileBehaviorsResponse_httpStatus - The response's http status code.
Response Lenses
validateSecurityProfileBehaviorsResponse_valid :: Lens' ValidateSecurityProfileBehaviorsResponse (Maybe Bool) Source #
True if the behaviors were valid.
validateSecurityProfileBehaviorsResponse_validationErrors :: Lens' ValidateSecurityProfileBehaviorsResponse (Maybe [ValidationError]) Source #
The list of any errors found in the behaviors.
validateSecurityProfileBehaviorsResponse_httpStatus :: Lens' ValidateSecurityProfileBehaviorsResponse Int Source #
The response's http status code.