Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::Macie::Session

Focus mode
AWS::Macie::Session - AWS CloudFormation
Filter View

The AWS::Macie::Session resource represents the Amazon Macie service and certain configuration settings for an Amazon Macie account in a specific AWS Region. It enables Macie to become operational for a specific account in a specific Region. An account can have only one session in each Region.

You must create an AWS::Macie::Session resource for an account before you can create other types of resources for the account. Use a DependsOn attribute to ensure that an AWS::Macie::Session resource is created before other Macie resources are created for an account. For example, "DependsOn": "Session".

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Macie::Session", "Properties" : { "FindingPublishingFrequency" : String, "Status" : String } }

YAML

Type: AWS::Macie::Session Properties: FindingPublishingFrequency: String Status: String

Properties

FindingPublishingFrequency

Specifies how often Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). Valid values are:

  • FIFTEEN_MINUTES

  • ONE_HOUR

  • SIX_HOURS

Required: No

Type: String

Allowed values: FIFTEEN_MINUTES | ONE_HOUR | SIX_HOURS

Update requires: No interruption

Status

The status of Amazon Macie for the account. Valid values are: ENABLED, start or resume Macie activities for the account; and, PAUSED, suspend Macie activities for the account.

Required: No

Type: String

Allowed values: ENABLED | PAUSED

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the account ID for the AWS account in which the Amazon Macie session is created. For example, { "Ref": "Session" }.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

AutomatedDiscoveryStatus

The status of automated sensitive data discovery for the account. Possible values are: ENABLED, perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account.

AwsAccountId

The account ID for the AWS account in which the Amazon Macie session is created.

ServiceRole

The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in AWS resources for the account.

Examples

The following example demonstrates how to declare an AWS::Macie::Session resource.

Creating a session

This example enables Amazon Macie for an account. It also configures Macie to publish updated policy findings every hour for the account.

JSON

{ "Type": "AWS::Macie::Session", "Properties": { "FindingPublishingFrequency": "ONE_HOUR", "Status": "ENABLED" } }

YAML

Type: 'AWS::Macie::Session' Properties: FindingPublishingFrequency: ONE_HOUR Status: ENABLED

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.