Skip to main content

tigris buckets lifecycle edit

Edit an existing lifecycle rule by its id. Only specified fields are changed.

Alias: e

Usage

tigris buckets lifecycle edit <name> <id> [flags]
t3 b lc e <name> <id> [flags]

Run tigris buckets lifecycle list <name> to see existing rule ids.

Flags

NameRequiredDefaultDescription
--prefix, -pNoReplace the rule's key prefix
--storage-class, -sNoReplace the rule's transition target
--days, -dNoReplace the rule's transition days
--dateNoReplace the rule's transition date (ISO-8601)
--expire-daysNoReplace the rule's expiration days
--expire-dateNoReplace the rule's expiration date (ISO-8601)
--enableNoEnable the rule
--disableNoDisable the rule (does not remove it)

Examples

# Change the transition window
tigris buckets lifecycle edit my-bucket abc123 --days 60

# Add or change the expiration window
tigris buckets lifecycle edit my-bucket abc123 --expire-days 90

# Re-enable a previously disabled rule
tigris buckets lifecycle edit my-bucket abc123 --enable