BucketLifecycleRuleConditionArgs

data class BucketLifecycleRuleConditionArgs(val age: Output<Int>? = null, val createdBefore: Output<String>? = null, val customTimeBefore: Output<String>? = null, val daysSinceCustomTime: Output<Int>? = null, val daysSinceNoncurrentTime: Output<Int>? = null, val matchesPrefixes: Output<List<String>>? = null, val matchesStorageClasses: Output<List<String>>? = null, val matchesSuffixes: Output<List<String>>? = null, val noncurrentTimeBefore: Output<String>? = null, val numNewerVersions: Output<Int>? = null, val sendAgeIfZero: Output<Boolean>? = null, val sendDaysSinceCustomTimeIfZero: Output<Boolean>? = null, val sendDaysSinceNoncurrentTimeIfZero: Output<Boolean>? = null, val sendNumNewerVersionsIfZero: Output<Boolean>? = null, val withState: Output<String>? = null) : ConvertibleToJava<BucketLifecycleRuleConditionArgs>

Constructors

Link copied to clipboard
constructor(age: Output<Int>? = null, createdBefore: Output<String>? = null, customTimeBefore: Output<String>? = null, daysSinceCustomTime: Output<Int>? = null, daysSinceNoncurrentTime: Output<Int>? = null, matchesPrefixes: Output<List<String>>? = null, matchesStorageClasses: Output<List<String>>? = null, matchesSuffixes: Output<List<String>>? = null, noncurrentTimeBefore: Output<String>? = null, numNewerVersions: Output<Int>? = null, sendAgeIfZero: Output<Boolean>? = null, sendDaysSinceCustomTimeIfZero: Output<Boolean>? = null, sendDaysSinceNoncurrentTimeIfZero: Output<Boolean>? = null, sendNumNewerVersionsIfZero: Output<Boolean>? = null, withState: Output<String>? = null)

Properties

Link copied to clipboard
val age: Output<Int>? = null

Minimum age of an object in days to satisfy this condition. Note To set 0 value of age, send_age_if_zero should be set true otherwise 0 value of age field will be ignored.

Link copied to clipboard
val createdBefore: Output<String>? = null

A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when an object is created before midnight of the specified date in UTC.

Link copied to clipboard
val customTimeBefore: Output<String>? = null

A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.

Link copied to clipboard
val daysSinceCustomTime: Output<Int>? = null

Number of days elapsed since the user-specified timestamp set on an object.

Link copied to clipboard
val daysSinceNoncurrentTime: Output<Int>? = null

Number of days elapsed since the noncurrent timestamp of an object. This condition is relevant only for versioned objects.

Link copied to clipboard
val matchesPrefixes: Output<List<String>>? = null

One or more matching name prefixes to satisfy this condition.

Link copied to clipboard
val matchesStorageClasses: Output<List<String>>? = null

Storage Class of objects to satisfy this condition. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.

Link copied to clipboard
val matchesSuffixes: Output<List<String>>? = null

One or more matching name suffixes to satisfy this condition.

Link copied to clipboard
val noncurrentTimeBefore: Output<String>? = null

Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.

Link copied to clipboard
val numNewerVersions: Output<Int>? = null

Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.

Link copied to clipboard
val sendAgeIfZero: Output<Boolean>? = null

While set true, age value will be sent in the request even for zero value of the field. This field is only useful and required for setting 0 value to the age field. It can be used alone or together with age attribute. NOTE age attibute with 0 value will be ommitted from the API request if send_age_if_zero field is having false value.

Link copied to clipboard

While set true, days_since_custom_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_custom_time field. It can be used alone or together with days_since_custom_time.

Link copied to clipboard

While set true, days_since_noncurrent_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_noncurrent_time field. It can be used alone or together with days_since_noncurrent_time.

Link copied to clipboard
val sendNumNewerVersionsIfZero: Output<Boolean>? = null

While set true, num_newer_versions value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the num_newer_versions field. It can be used alone or together with num_newer_versions.

Link copied to clipboard
val withState: Output<String>? = null

Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".

Functions

Link copied to clipboard
open override fun toJava(): BucketLifecycleRuleConditionArgs