AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::S3::StorageLensGroup

CfnStorageLensGroup

The `AWS::S3::StorageLensGroup` resource creates an S3 Storage Lens group. A Storage Lens group is a custom grouping of objects that include filters for prefixes, suffixes, object tags, object size, or object age. You can create an S3 Storage Lens group that includes a single filter or multiple filter conditions. To specify multiple filter conditions, you use `AND` or `OR` logical operators. For more information about S3 Storage Lens groups, see [Working with S3 Storage Lens groups](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups-overview.html) .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnStorageLensGroupProps.

filterRequired
IResolvable | FilterProperty

This property contains the criteria for the Storage Lens group data that is displayed.

nameRequired
string

This property contains the Storage Lens group name.

tagsOptional
CfnTag[]

This property contains the AWS resource tags that you're adding to your Storage Lens group. This parameter is optional.

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