Skip to main content

violation_events

Creates, updates, deletes, gets or lists a violation_events resource.

Overview

Nameviolation_events
TypeResource
Idaws.iot.violation_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
behaviorobjectA Device Defender security profile behavior.
metric_valueobjectThe value of the metric (the measurement).
security_profile_namestringThe name of the security profile whose behavior was violated. (pattern: <code>[a-zA-Z0-9:_-]+</code>)
thing_namestringThe name of the thing responsible for the violation event.
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_event_timestring (date-time)The time the violation event occurred.
violation_event_typestringThe type of violation event. (in-alarm, alarm-cleared, alarm-invalidated)
violation_idstringThe ID of the violation event. (pattern: <code>[a-zA-Z0-9-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_violation_eventsselectstartTime, endTime, regionthingName, securityProfileName, behaviorCriteriaType, listSuppressedAlerts, verificationState, nextToken, maxResultsLists the Device Defender security profile violations discovered during the given time period. You can use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing (device). Requires permission to access the ListViolationEvents 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
endTimestring (date-time)The end time for the alerts to be listed.
regionstringAWS region (default: us-east-1)
startTimestring (date-time)The start time for the alerts to be listed.
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.
securityProfileNamestringA filter to limit results to those alerts generated by the specified security profile.
thingNamestringA filter to limit results to those alerts caused by the specified thing.
verificationStatestringThe verification state of the violation (detect alarm).

SELECT examples

Lists the Device Defender security profile violations discovered during the given time period. You can use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing (device). Requires permission to access the ListViolationEvents action.

SELECT
behavior,
metric_value,
security_profile_name,
thing_name,
verification_state,
verification_state_description,
violation_event_additional_info,
violation_event_time,
violation_event_type,
violation_id
FROM aws.iot.violation_events
WHERE startTime = '{{ startTime }}' -- required
AND endTime = '{{ endTime }}' -- required
AND region = '{{ region }}' -- required
AND thingName = '{{ thingName }}'
AND securityProfileName = '{{ securityProfileName }}'
AND behaviorCriteriaType = '{{ behaviorCriteriaType }}'
AND listSuppressedAlerts = '{{ listSuppressedAlerts }}'
AND verificationState = '{{ verificationState }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;