macie_sessions
Creates, updates, deletes, gets or lists a macie_sessions resource.
Overview
| Name | macie_sessions |
| Type | Resource |
| Id | aws.macie2.macie_sessions |
Fields
The following fields are returned by SELECT queries:
- get_macie_session
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. |
finding_publishing_frequency | string | The 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_role | string | The 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. |
status | string | The status of an Amazon Macie account. Valid values are: (PAUSED, ENABLED) |
updated_at | string (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_macie_session | select | region | Retrieves the status and configuration settings for an Amazon Macie account. | |
update_macie_session | update | region | Suspends 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_macie_session
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
- update_macie_session
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;