AWS Fundamentals Logo
AWS Fundamentals
AWS::S3::StorageLens

S3 StorageLens

The AWS::S3::StorageLens resource is an Amazon S3 resource type that you can use to create Storage Lens configurations.

Properties

2 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
StorageLensConfiguration
StorageLensConfiguration
Required
Tags
Array<Tag>

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::S3::StorageLens

Resources:
  MyResource:
    Type: AWS::S3::StorageLens
    Properties:
      StorageLensConfiguration: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

s3:GetStorageLensConfigurations3:GetStorageLensConfigurationTagging

create

s3:PutStorageLensConfigurations3:PutStorageLensConfigurationTaggings3:GetStorageLensConfigurations3:GetStorageLensConfigurationTaggings3tables:CreateTableBuckets3tables:PutTableBucketPolicyorganizations:DescribeOrganizationorganizations:ListAccounts

update

s3:PutStorageLensConfigurations3:PutStorageLensConfigurationTaggings3:GetStorageLensConfigurations3:GetStorageLensConfigurationTaggings3tables:CreateTableBuckets3tables:PutTableBucketPolicyorganizations:DescribeOrganizationorganizations:ListAccounts

list

s3:ListStorageLensConfigurations

delete

s3:DeleteStorageLensConfigurations3:DeleteStorageLensConfigurationTagging

Get the S3 Cheat Sheet

Everything you need to know about S3 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceS3
Properties2
Required1
TaggingSupported
Primary IDStorageLensConfiguration/Id

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

StorageLensConfiguration/Id

External Links