AWS::AccessAnalyzer::Analyzer AnalyzerConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::AccessAnalyzer::Analyzer AnalyzerConfiguration

Contains information about the configuration of an analyzer for an Amazon organization or account.

Syntax

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

Properties

UnusedAccessConfiguration

Specifies the configuration of an unused access analyzer for an Amazon organization or account.

Required: No

Type: UnusedAccessConfiguration

Update requires: Some interruptions

Examples

Declare an AnalyzerConfiguration Resource

The following example shows how to declare a IAM Access Analyzer AnalyzerConfiguration resource:

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "Analyzer": { "Properties": { "AnalyzerName": "DevUnusedAccessAccountAnalyzer", "AnalyzerConfiguration": { "UnusedAccessConfiguration": { "UnusedAccessAge": 90, "AnalysisRule": { "Exclusions": [ { "ResourceTags": [ [ { "Key": "Kind", "Value": "Dev" } ], [ { "Key": "AnotherKey" } ] ] } ] } } }, "ArchiveRules": [ { "Filter": [ { "Eq": [ "123456789012" ], "Property": "resourceOwnerAccount" } ], "RuleName": "ArchiveTrustedAccountAccess" }, { "Filter": [ { "Contains": [ "arn:aws:s3:::amzn-s3-demo-logging-bucket", "arn:aws:s3:::amzn-s3-demo-website-bucket" ], "Property": "resource" } ], "RuleName": "ArchivePublicS3BucketsAccess" } ], "Tags": [ { "Key": "Kind", "Value": "Dev" } ], "Type": "ACCOUNT_UNUSED_ACCESS" }, "Type": "AWS::AccessAnalyzer::Analyzer" } } }

YAML

AWSTemplateFormatVersion: '2010-09-09' Resources: Analyzer: Properties: AnalyzerName: DevUnusedAccessAccountAnalyzer AnalyzerConfiguration: UnusedAccessConfiguration: UnusedAccessAge: 90 AnalysisRule: Exclusions: - ResourceTags: - - Key: Kind Value: Dev - - Key: AnotherKey ArchiveRules: - Filter: - Eq: - '123456789012' Property: resourceOwnerAccount RuleName: ArchiveTrustedAccountAccess - Filter: - Contains: - arn:aws:s3:::amzn-s3-demo-logging-bucket - arn:aws:s3:::amzn-s3-demo-website-bucket Property: resource RuleName: ArchivePublicS3BucketsAccess Tags: - Key: Kind Value: Dev Type: ACCOUNT_UNUSED_ACCESS Type: AWS::AccessAnalyzer::Analyzer