Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idaws.auditmanager.settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
default_assessment_reports_destinationobjectThe location where Audit Manager saves assessment reports for the given assessment.
default_export_destinationobjectThe default S3 destination bucket for storing evidence finder exports.
default_process_ownersarrayThe designated default audit owners.
deregistration_policyobjectThe deregistration policy for your Audit Manager data. You can use this attribute to determine how your data is handled when you deregister Audit Manager.
evidence_finder_enablementobjectThe current evidence finder status and event data store details.
is_aws_org_enabledbooleanSpecifies whether Organizations is enabled.
kms_keystringThe KMS key details. (pattern: <code>^arn:.:kms:.|DEFAULT</code>)
sns_topicstringThe designated Amazon Simple Notification Service (Amazon SNS) topic. (pattern: <code>^[a-zA-Z0-9-_()&#91;&#93;]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_settingsselectattribute, regionGets the settings for a specified Amazon Web Services account.
update_settingsupdateregionUpdates Audit Manager settings for the current account.

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
attributestringThe list of setting attribute enum values.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the settings for a specified Amazon Web Services account.

SELECT
default_assessment_reports_destination,
default_export_destination,
default_process_owners,
deregistration_policy,
evidence_finder_enablement,
is_aws_org_enabled,
kms_key,
sns_topic
FROM aws.auditmanager.settings
WHERE attribute = '{{ attribute }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates Audit Manager settings for the current account.

UPDATE aws.auditmanager.settings
SET
snsTopic = '{{ snsTopic }}',
defaultAssessmentReportsDestination = '{{ defaultAssessmentReportsDestination }}',
defaultProcessOwners = '{{ defaultProcessOwners }}',
kmsKey = '{{ kmsKey }}',
evidenceFinderEnabled = {{ evidenceFinderEnabled }},
deregistrationPolicy = '{{ deregistrationPolicy }}',
defaultExportDestination = '{{ defaultExportDestination }}'
WHERE
region = '{{ region }}' --required
RETURNING
settings;