Skip to main content

active_violations

Creates, updates, deletes, gets or lists an active_violations resource.

Overview

Nameactive_violations
TypeResource
Idaws.iot.active_violations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
behaviorobjectA Device Defender security profile behavior.
last_violation_timestring (date-time)The time the most recent violation occurred.
last_violation_valueobjectThe value of the metric (the measurement) that caused the most recent violation.
security_profile_namestringThe security profile with the behavior is in violation. (pattern: <code>[a-zA-Z0-9:_-]+</code>)
thing_namestringThe name of the thing responsible for the active violation.
verification_statestringThe verification state of the violation (detect alarm). (FALSE_POSITIVE, BENIGN_POSITIVE, TRUE_POSITIVE, UNKNOWN)
verification_state_descriptionstringThe description of the verification state of the violation. (pattern: <code>[^\p{Cntrl}]*</code>)
violation_event_additional_infoobjectThe details of a violation event.
violation_idstringThe ID of the active violation. (pattern: <code>[a-zA-Z0-9-]+</code>)
violation_start_timestring (date-time)The time the violation started.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_active_violationsselectregionthingName, securityProfileName, behaviorCriteriaType, listSuppressedAlerts, verificationState, nextToken, maxResultsLists the active violations for a given Device Defender security profile. Requires permission to access the ListActiveViolations action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
behaviorCriteriaTypestringThe criteria for a behavior.
listSuppressedAlertsbooleanA list of all suppressed alerts.
maxResultsintegerThe maximum number of results to return at one time.
nextTokenstringThe token for the next set of results.
securityProfileNamestringThe name of the Device Defender security profile for which violations are listed.
thingNamestringThe name of the thing whose active violations are listed.
verificationStatestringThe verification state of the violation (detect alarm).

SELECT examples

Lists the active violations for a given Device Defender security profile. Requires permission to access the ListActiveViolations action.

SELECT
behavior,
last_violation_time,
last_violation_value,
security_profile_name,
thing_name,
verification_state,
verification_state_description,
violation_event_additional_info,
violation_id,
violation_start_time
FROM aws.iot.active_violations
WHERE region = '{{ region }}' -- required
AND thingName = '{{ thingName }}'
AND securityProfileName = '{{ securityProfileName }}'
AND behaviorCriteriaType = '{{ behaviorCriteriaType }}'
AND listSuppressedAlerts = '{{ listSuppressedAlerts }}'
AND verificationState = '{{ verificationState }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;