BucketLifecycleRuleCondition class
Constructors
-
BucketLifecycleRuleCondition({Input<int?>? age, Input<String?>? createdBefore, Input<String?>? customTimeBefore, Input<int?>? daysSinceCustomTime, Input<int?>? daysSinceNoncurrentTime, Input<List<String>?>? matchesPrefixes, Input<List<String>?>? matchesStorageClasses, Input<List<String>?>? matchesSuffixes, Input<String?>? noncurrentTimeBefore, Input<int?>? numNewerVersions, Input<bool?>? sendAgeIfZero, Input<bool?>? sendDaysSinceCustomTimeIfZero, Input<bool?>? sendDaysSinceNoncurrentTimeIfZero, Input<bool?>? sendNumNewerVersionsIfZero, Input<int?>? sizeAboveBytes, Input<int?>? sizeBelowBytes, Input<String?>? withState})
-
Creates a new BucketLifecycleRuleCondition.
age Minimum age of an object in days to satisfy this condition. Note To set 0 value of age, sendAgeIfZero should be set true otherwise 0 value of age field will be ignored.
createdBefore 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.
customTimeBefore 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.
daysSinceCustomTime Days since the date set in the customTime metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the customTime. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no daysSinceCustomTime condition.
daysSinceNoncurrentTime Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no daysSinceNoncurrentTime condition.
matchesPrefixes One or more matching name prefixes to satisfy this condition.
matchesStorageClasses Storage Class of objects to satisfy this condition. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.
matchesSuffixes One or more matching name suffixes to satisfy this condition.
noncurrentTimeBefore Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no noncurrentTimeBefore condition.
numNewerVersions Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored and your state will treat it as though you supplied no numNewerVersions condition.
sendAgeIfZero 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 sendAgeIfZero field is having false value.
sendDaysSinceCustomTimeIfZero While set true, daysSinceCustomTime 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 daysSinceCustomTime field. It can be used alone or together with daysSinceCustomTime.
sendDaysSinceNoncurrentTimeIfZero While set true, daysSinceNoncurrentTime 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 daysSinceNoncurrentTime field. It can be used alone or together with daysSinceNoncurrentTime.
sendNumNewerVersionsIfZero While set true, numNewerVersions 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 numNewerVersions field. It can be used alone or together with numNewerVersions.
sizeAboveBytes Objects having a size greater than this value in bytes will be matched.
sizeBelowBytes Objects having a size smaller than this value in bytes will be matched.
withState Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
const
-
BucketLifecycleRuleCondition.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
age
→ Input<int?>?
-
Minimum age of an object in days to satisfy this condition. Note To set
0 value of age, sendAgeIfZero should be set true otherwise 0 value of age field will be ignored.
final
-
createdBefore
→ Input<String?>?
-
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.
final
-
customTimeBefore
→ Input<String?>?
-
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.
final
-
daysSinceCustomTime
→ Input<int?>?
-
Days since the date set in the
customTime metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the customTime. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no daysSinceCustomTime condition.
final
-
daysSinceNoncurrentTime
→ Input<int?>?
-
Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object. Due to a current bug you are unable to set this value to
0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no daysSinceNoncurrentTime condition.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
matchesPrefixes
→ Input<List<String>?>?
-
One or more matching name prefixes to satisfy this condition.
final
-
matchesStorageClasses
→ Input<List<String>?>?
-
Storage Class of objects to satisfy this condition. Supported values include:
STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.
final
-
matchesSuffixes
→ Input<List<String>?>?
-
One or more matching name suffixes to satisfy this condition.
final
-
noncurrentTimeBefore
→ Input<String?>?
-
Relevant only for versioned objects. The date in RFC 3339 (e.g.
2017-06-13) when the object became nonconcurrent. Due to a current bug you are unable to set this value to 0 within Terraform. When set to 0 it will be ignored, and your state will treat it as though you supplied no noncurrentTimeBefore condition.
final
-
numNewerVersions
→ Input<int?>?
-
Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition. Due to a current bug you are unable to set this value to
0 within Terraform. When set to 0 it will be ignored and your state will treat it as though you supplied no numNewerVersions condition.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sendAgeIfZero
→ Input<bool?>?
-
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 sendAgeIfZero field is having false value.
final
-
sendDaysSinceCustomTimeIfZero
→ Input<bool?>?
-
While set true,
daysSinceCustomTime 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 daysSinceCustomTime field. It can be used alone or together with daysSinceCustomTime.
final
-
sendDaysSinceNoncurrentTimeIfZero
→ Input<bool?>?
-
While set true,
daysSinceNoncurrentTime 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 daysSinceNoncurrentTime field. It can be used alone or together with daysSinceNoncurrentTime.
final
-
sendNumNewerVersionsIfZero
→ Input<bool?>?
-
While set true,
numNewerVersions 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 numNewerVersions field. It can be used alone or together with numNewerVersions.
final
-
sizeAboveBytes
→ Input<int?>?
-
Objects having a size greater than this value in bytes will be matched.
final
-
sizeBelowBytes
→ Input<int?>?
-
Objects having a size smaller than this value in bytes will be matched.
final
-
withState
→ Input<String?>?
-
Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include:
"LIVE", "ARCHIVED", "ANY".
final