Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_nextToken :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_listSuppressedAlerts :: Lens' ListActiveViolations (Maybe Bool)
- listActiveViolations_behaviorCriteriaType :: Lens' ListActiveViolations (Maybe BehaviorCriteriaType)
- listActiveViolations_securityProfileName :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_thingName :: Lens' ListActiveViolations (Maybe Text)
- listActiveViolations_verificationState :: Lens' ListActiveViolations (Maybe VerificationState)
- listActiveViolations_maxResults :: Lens' ListActiveViolations (Maybe Natural)
- 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.
ListActiveViolations' | |
|
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:nextToken:ListActiveViolations'
, listActiveViolations_nextToken
- The token for the next set of results.
$sel:listSuppressedAlerts:ListActiveViolations'
, listActiveViolations_listSuppressedAlerts
- A list of all suppressed alerts.
$sel:behaviorCriteriaType:ListActiveViolations'
, listActiveViolations_behaviorCriteriaType
- The criteria for a behavior.
$sel:securityProfileName:ListActiveViolations'
, listActiveViolations_securityProfileName
- The name of the Device Defender security profile for which violations
are listed.
$sel:thingName:ListActiveViolations'
, listActiveViolations_thingName
- The name of the thing whose active violations are listed.
$sel:verificationState:ListActiveViolations'
, listActiveViolations_verificationState
- The verification state of the violation (detect alarm).
$sel:maxResults:ListActiveViolations'
, listActiveViolations_maxResults
- The maximum number of results to return at one time.
Request Lenses
listActiveViolations_nextToken :: Lens' ListActiveViolations (Maybe Text) Source #
The token for the next set of results.
listActiveViolations_listSuppressedAlerts :: Lens' ListActiveViolations (Maybe Bool) Source #
A list of all suppressed alerts.
listActiveViolations_behaviorCriteriaType :: Lens' ListActiveViolations (Maybe BehaviorCriteriaType) Source #
The criteria for a behavior.
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).
listActiveViolations_maxResults :: Lens' ListActiveViolations (Maybe Natural) Source #
The maximum number of results to return at one time.
Destructuring the Response
data ListActiveViolationsResponse Source #
See: newListActiveViolationsResponse
smart constructor.
ListActiveViolationsResponse' | |
|
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.
$sel:nextToken: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.