AWS::S3::StorageLens - AWS CloudFormation

AWS::S3::StorageLens

The AWS::S3::StorageLens resource creates an instance of an Amazon S3 Storage Lens configuration.

Syntax

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

JSON

{ "Type" : "AWS::S3::StorageLens", "Properties" : { "StorageLensConfiguration" : StorageLensConfiguration, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::S3::StorageLens Properties: StorageLensConfiguration: StorageLensConfiguration Tags: - Tag

Properties

StorageLensConfiguration

This resource contains the details Amazon S3 Storage Lens configuration.

Required: Yes

Type: StorageLensConfiguration

Update requires: No interruption

Tags

A set of tags (key–value pairs) to associate with the Storage Lens configuration.

Required: No

Type: List of Tag

Update requires: No interruption

Return values

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the S3 Storage Lens configuration Id, such as your-storage-lens-configuration-id. For more information about using the Ref function, see Ref.

Fn::GetAtt

Fn::GetAtt returns a value for a specified attribute of this type. For more information, see Fn::GetAtt. The following are the available attributes and sample return values.

StorageLensConfiguration.StorageLensArn

This property contains the details of the ARN of the S3 Storage Lens configuration. This property is read-only.