| 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.ListActiveViolations
Description
Lists the active violations for a given Device Defender security profile.
Requires permission to access the ListActiveViolations action.
This operation returns paginated results.
Synopsis
- data ListActiveViolations = ListActiveViolations' {}
- newListActiveViolations :: ListActiveViolations
- listActiveViolations_behaviorCriteriaType :: Lens' ListActiveViolations (Maybe BehaviorCriteriaType)
- listActiveViolations_listSuppressedAlerts :: Lens' ListActiveViolations (Maybe Bool)
- listActiveViolations_maxResults :: Lens' ListActiveViolations (Maybe Natural)
- listActiveViolations_nextToken :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_securityProfileName :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_thingName :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_verificationState :: Lens' ListActiveViolations (Maybe VerificationState)
- data ListActiveViolationsResponse = ListActiveViolationsResponse' {}
- newListActiveViolationsResponse :: Int -> ListActiveViolationsResponse
- listActiveViolationsResponse_activeViolations :: Lens' ListActiveViolationsResponse (Maybe [ActiveViolation])
- listActiveViolationsResponse_nextToken :: Lens' ListActiveViolationsResponse (Maybe Text)
- listActiveViolationsResponse_httpStatus :: Lens' ListActiveViolationsResponse Int
Creating a Request
data ListActiveViolations Source #
See: newListActiveViolations smart constructor.
Constructors
| ListActiveViolations' | |
Fields
| |
Instances
newListActiveViolations :: ListActiveViolations Source #
Create a value of ListActiveViolations 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:behaviorCriteriaType:ListActiveViolations', listActiveViolations_behaviorCriteriaType - The criteria for a behavior.
$sel:listSuppressedAlerts:ListActiveViolations', listActiveViolations_listSuppressedAlerts - A list of all suppressed alerts.
$sel:maxResults:ListActiveViolations', listActiveViolations_maxResults - The maximum number of results to return at one time.
ListActiveViolations, listActiveViolations_nextToken - The token for the next set of results.
ListActiveViolations, listActiveViolations_securityProfileName - The name of the Device Defender security profile for which violations
are listed.
ListActiveViolations, listActiveViolations_thingName - The name of the thing whose active violations are listed.
ListActiveViolations, listActiveViolations_verificationState - The verification state of the violation (detect alarm).
Request Lenses
listActiveViolations_behaviorCriteriaType :: Lens' ListActiveViolations (Maybe BehaviorCriteriaType) Source #
The criteria for a behavior.
listActiveViolations_listSuppressedAlerts :: Lens' ListActiveViolations (Maybe Bool) Source #
A list of all suppressed alerts.
listActiveViolations_maxResults :: Lens' ListActiveViolations (Maybe Natural) Source #
The maximum number of results to return at one time.
listActiveViolations_nextToken :: Lens' ListActiveViolations (Maybe Text) Source #
The token for the next set of results.
listActiveViolations_securityProfileName :: Lens' ListActiveViolations (Maybe Text) Source #
The name of the Device Defender security profile for which violations are listed.
listActiveViolations_thingName :: Lens' ListActiveViolations (Maybe Text) Source #
The name of the thing whose active violations are listed.
listActiveViolations_verificationState :: Lens' ListActiveViolations (Maybe VerificationState) Source #
The verification state of the violation (detect alarm).
Destructuring the Response
data ListActiveViolationsResponse Source #
See: newListActiveViolationsResponse smart constructor.
Constructors
| ListActiveViolationsResponse' | |
Fields
| |
Instances
newListActiveViolationsResponse Source #
Create a value of ListActiveViolationsResponse 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:activeViolations:ListActiveViolationsResponse', listActiveViolationsResponse_activeViolations - The list of active violations.
ListActiveViolations, listActiveViolationsResponse_nextToken - A token that can be used to retrieve the next set of results, or null
if there are no additional results.
$sel:httpStatus:ListActiveViolationsResponse', listActiveViolationsResponse_httpStatus - The response's http status code.
Response Lenses
listActiveViolationsResponse_activeViolations :: Lens' ListActiveViolationsResponse (Maybe [ActiveViolation]) Source #
The list of active violations.
listActiveViolationsResponse_nextToken :: Lens' ListActiveViolationsResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listActiveViolationsResponse_httpStatus :: Lens' ListActiveViolationsResponse Int Source #
The response's http status code.