Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a note related to ISO 8601 date format and updated RuleId description in the table.

...

Attribute

Value

Definition

RuleId

<unique rule id>

A required, user-defined ID of the rule. The value is contained within quotes and must be URL-encoded. Duplicate rule ids (on different Policy-Lifecycle headers) on the same bucket are disallowed.

Enabled

<true|false>

An optional indication to verify if the rule is enabled. The absence of this attribute indicates the rule enabled.

NamePrefix

<prefix>

An optional prefix to match against the relative name of the object in question.

  • Always use quoted value and verify it is URL encoded

  • Never use slash as a first character for the prefix.

  • The rule is applied to the object if the prefix is matched with the object name.

  • The absence of the prefix indicates the rule is applied to all objects in the bucket.

ExpirationDays

<nonnegative integer>

The current version of an object is expired after the defined number of days.

ExpirationDate

<ISO 8601 date>

The current version of an object is expired after the defined date (midnight UTC time).

ObsoleteExpirationDays

<nonnegative integer>

A non-current version of an object is expired after the defined number of days when the object becomes non-current.

Info

This rule takes effect if versioning is enabled on the bucket.

ObsoleteExpirationDate

<ISO 8601 date>

A non-current version of the object is expired after the defined date (midnight UTC time).

Info

This rule takes effect if versioning is enabled on the bucket.

Info

Note

Swarm supports the following ISO 8601 date formats:

  • 2024-01-01 T00:00:00.000Z

  • 2024-01-01 T00:00:00Z

  • 2024-01-01 T00:00:00

  • 2024-01-01

Rules with Attributes

Every rule:

...