Skip to main content

macie_sessions

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

Overview

Namemacie_sessions
TypeResource
Idaws.macie2.macie_sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.
finding_publishing_frequencystringThe frequency with which Amazon Macie publishes updates to policy findings for an account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). For more information, see Monitoring and processing findings in the Amazon Macie User Guide. Valid values are: (FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS)
service_rolestringThe Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.
statusstringThe status of an Amazon Macie account. Valid values are: (PAUSED, ENABLED)
updated_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration settings for the Amazon Macie account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_macie_sessionselectregionRetrieves the status and configuration settings for an Amazon Macie account.
update_macie_sessionupdateregionSuspends or re-enables Amazon Macie, or updates the configuration settings for a Macie 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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the status and configuration settings for an Amazon Macie account.

SELECT
created_at,
finding_publishing_frequency,
service_role,
status,
updated_at
FROM aws.macie2.macie_sessions
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Suspends or re-enables Amazon Macie, or updates the configuration settings for a Macie account.

UPDATE aws.macie2.macie_sessions
SET
findingPublishingFrequency = '{{ findingPublishingFrequency }}',
status = '{{ status }}'
WHERE
region = '{{ region }}' --required;