InventoryFrequency

class aws_cdk.aws_s3.InventoryFrequency(value)

Bases: enum.Enum

All supported inventory frequencies.

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

DAILY

A report is generated every day.

WEEKLY

A report is generated every Sunday (UTC timezone) after the initial report.