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 noAge: Output<Boolean>? = null, val noncurrentTimeBefore: Output<String>? = null, val numNewerVersions: Output<Int>? = 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, noAge: Output<Boolean>? = null, noncurrentTimeBefore: Output<String>? = null, numNewerVersions: Output<Int>? = 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. If not supplied alongside another condition and without setting no_age to true, a default age of 0 will be set.

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 noAge: Output<Boolean>? = null

While set true, age value will be omitted from requests. This prevents a default age of 0 from being applied, and if you do not have an age value set, setting this to true is strongly recommended. When unset and other conditions are set to zero values, this can result in a rule that applies your action to all files in the bucket.

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

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