InventoryObjectVersion

class aws_cdk.aws_s3.InventoryObjectVersion(value)

Bases: Enum

Inventory version support.

ExampleMetadata:

infused

Example:

inventory_bucket = s3.Bucket(self, "InventoryBucket")

data_bucket = s3.Bucket(self, "DataBucket",
    inventories=[s3.Inventory(
        frequency=s3.InventoryFrequency.DAILY,
        include_object_versions=s3.InventoryObjectVersion.CURRENT,
        destination=s3.InventoryDestination(
            bucket=inventory_bucket
        )
    ), s3.Inventory(
        frequency=s3.InventoryFrequency.WEEKLY,
        include_object_versions=s3.InventoryObjectVersion.ALL,
        destination=s3.InventoryDestination(
            bucket=inventory_bucket,
            prefix="with-all-versions"
        )
    )
    ]
)

Attributes

ALL

Includes all versions of each object in the report.

CURRENT

Includes only the current version of each object in the report.