Skip to main content

audit_suppressions

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

Overview

Nameaudit_suppressions
TypeResource
Idaws.iot.audit_suppressions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
check_namestringAn audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
descriptionstringThe description of the audit suppression. (pattern: <code>[\p{Graph}\x20]*</code>)
expiration_datestring (date-time)The epoch timestamp in seconds at which this suppression expires.
resource_identifierobjectInformation that identifies the noncompliant resource.
suppress_indefinitelybooleanIndicates whether a suppression should exist indefinitely or not.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_audit_suppressionselectregionGets information about a Device Defender audit suppression.
list_audit_suppressionsselectregionLists your Device Defender audit listings. Requires permission to access the ListAuditSuppressions action.
create_audit_suppressioninsertregion, checkName, resourceIdentifier, clientRequestTokenCreates a Device Defender audit suppression. Requires permission to access the CreateAuditSuppression action.
update_audit_suppressionupdateregion, checkName, resourceIdentifierUpdates a Device Defender audit suppression.
delete_audit_suppressiondeleteregionDeletes a Device Defender audit suppression. Requires permission to access the DeleteAuditSuppression 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)

SELECT examples

Gets information about a Device Defender audit suppression.

SELECT
check_name,
description,
expiration_date,
resource_identifier,
suppress_indefinitely
FROM aws.iot.audit_suppressions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a Device Defender audit suppression. Requires permission to access the CreateAuditSuppression action.

INSERT INTO aws.iot.audit_suppressions (
checkName,
resourceIdentifier,
expirationDate,
suppressIndefinitely,
description,
clientRequestToken,
region
)
SELECT
'{{ checkName }}' /* required */,
'{{ resourceIdentifier }}' /* required */,
'{{ expirationDate }}',
{{ suppressIndefinitely }},
'{{ description }}',
'{{ clientRequestToken }}' /* required */,
'{{ region }}'
;

UPDATE examples

Updates a Device Defender audit suppression.

UPDATE aws.iot.audit_suppressions
SET
checkName = '{{ checkName }}',
resourceIdentifier = '{{ resourceIdentifier }}',
expirationDate = '{{ expirationDate }}',
suppressIndefinitely = {{ suppressIndefinitely }},
description = '{{ description }}'
WHERE
region = '{{ region }}' --required
AND checkName = '{{ checkName }}' --required
AND resourceIdentifier = '{{ resourceIdentifier }}' --required;

DELETE examples

Deletes a Device Defender audit suppression. Requires permission to access the DeleteAuditSuppression action.

DELETE FROM aws.iot.audit_suppressions
WHERE region = '{{ region }}' --required
;