enum InventoryObjectVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.InventoryObjectVersion |
Java | software.amazon.awscdk.services.s3.InventoryObjectVersion |
Python | aws_cdk.aws_s3.InventoryObjectVersion |
TypeScript (source) | @aws-cdk/aws-s3 » InventoryObjectVersion |
Inventory version support.
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 |
---|---|
ALL | Includes all versions of each object in the report. |
CURRENT | Includes only the current version of each object in the report. |
ALL
Includes all versions of each object in the report.
CURRENT
Includes only the current version of each object in the report.