enum InventoryFrequency
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.InventoryFrequency |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#InventoryFrequency |
Java | software.amazon.awscdk.services.s3.InventoryFrequency |
Python | aws_cdk.aws_s3.InventoryFrequency |
TypeScript (source) | aws-cdk-lib » aws_s3 » InventoryFrequency |
All supported inventory frequencies.
Example
const inventoryBucket = new s3.Bucket(this, 'InventoryBucket');
const dataBucket = new s3.Bucket(this, 'DataBucket', {
inventories: [
{
frequency: s3.InventoryFrequency.DAILY,
includeObjectVersions: s3.InventoryObjectVersion.CURRENT,
destination: {
bucket: inventoryBucket,
},
},
{
frequency: s3.InventoryFrequency.WEEKLY,
includeObjectVersions: s3.InventoryObjectVersion.ALL,
destination: {
bucket: inventoryBucket,
prefix: 'with-all-versions',
},
},
],
});
Members
Name | Description |
---|---|
DAILY | A report is generated every day. |
WEEKLY | A report is generated every Sunday (UTC timezone) after the initial report. |
DAILY
A report is generated every day.
WEEKLY
A report is generated every Sunday (UTC timezone) after the initial report.