Skip to main content

S3StorageLifecycleRuleSchema

Defines the schema for a lifecycle rule of the s3 storage, which expires the objects it matches some days after each was written.

A rule matches the objects under its prefix that carry every one of its tags. With neither, it matches every object in the bucket.

@group

Resources/S3Storage

Index

Properties

expirationInDays

expirationInDays: number

The number of days after an object was written that it expires and is deleted.

optionalprefix

prefix?: string = ''

The key prefix the rule is limited to, e.g. uploads/. Omit it to match the whole bucket.

optionaltags

tags?: {} = {}

The tags an object must carry, every one of them, for the rule to match it, e.g. { upload: 'pending' }.


Type declaration

  • [key string]: string
Page Options