Skip to main content

account_audit_configurations

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

Overview

Nameaccount_audit_configurations
TypeResource
Idaws.iot.account_audit_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
audit_check_configurationsobjectWhich audit checks are enabled and disabled for this account.
audit_notification_target_configurationsobjectInformation about the targets to which audit notifications are sent for this account.
role_arnstringThe ARN of the role that grants permission to IoT to access information about your devices, policies, certificates, and other items as required when performing an audit. On the first call to UpdateAccountAuditConfiguration, this parameter is required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_account_audit_configurationselectregionGets information about the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled. Requires permission to access the DescribeAccountAuditConfiguration action.
update_account_audit_configurationupdateregionConfigures or reconfigures the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled. Requires permission to access the UpdateAccountAuditConfiguration action.
delete_account_audit_configurationdeleteregiondeleteScheduledAuditsRestores the default settings for Device Defender audits for this account. Any configuration data you entered is deleted and all audit checks are reset to disabled. Requires permission to access the DeleteAccountAuditConfiguration 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)
deleteScheduledAuditsbooleanIf true, all scheduled audits are deleted.

SELECT examples

Gets information about the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled. Requires permission to access the DescribeAccountAuditConfiguration action.

SELECT
audit_check_configurations,
audit_notification_target_configurations,
role_arn
FROM aws.iot.account_audit_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Configures or reconfigures the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled. Requires permission to access the UpdateAccountAuditConfiguration action.

UPDATE aws.iot.account_audit_configurations
SET
roleArn = '{{ roleArn }}',
auditNotificationTargetConfigurations = '{{ auditNotificationTargetConfigurations }}',
auditCheckConfigurations = '{{ auditCheckConfigurations }}'
WHERE
region = '{{ region }}' --required;

DELETE examples

Restores the default settings for Device Defender audits for this account. Any configuration data you entered is deleted and all audit checks are reset to disabled. Requires permission to access the DeleteAccountAuditConfiguration action.

DELETE FROM aws.iot.account_audit_configurations
WHERE region = '{{ region }}' --required
AND deleteScheduledAudits = '{{ deleteScheduledAudits }}'
;