AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::S3::StorageLens

CfnStorageLens

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

Import

import { CfnStorageLens } from 'aws-cdk-lib/aws-s3';

Or use the module namespace:

import * as s3 from 'aws-cdk-lib/aws-s3';
// s3.CfnStorageLens

Properties

Configuration passed to the constructor as CfnStorageLensProps.

storageLensConfigurationRequired
IResolvable | StorageLensConfigurationProperty

This resource contains the details Amazon S3 Storage Lens configuration.

tagsOptional
CfnTag[]

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon S3 Cheat Sheet

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

Download Free Infographic