com.pulumi.gcp.storage.kotlin.outputs.GetBucketLifecycleRuleCondition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.storage.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property age Minimum age of an object in days to satisfy this condition.
* @property createdBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
* @property customTimeBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
* @property daysSinceCustomTime Number of days elapsed since the user-specified timestamp set on an object.
* @property daysSinceNoncurrentTime Number of days elapsed since the noncurrent timestamp of an object. This
* condition is relevant only for versioned objects.
* @property matchesPrefixes One or more matching name prefixes to satisfy this condition.
* @property matchesStorageClasses Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, DURABLE_REDUCED_AVAILABILITY.
* @property matchesSuffixes One or more matching name suffixes to satisfy this condition.
* @property noAge While set true, age value will be omitted.Required to set true when age is unset in the config file.
* @property noncurrentTimeBefore Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
* @property numNewerVersions Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
* @property withState Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
*/
public data class GetBucketLifecycleRuleCondition(
public val age: Int,
public val createdBefore: String,
public val customTimeBefore: String,
public val daysSinceCustomTime: Int,
public val daysSinceNoncurrentTime: Int,
public val matchesPrefixes: List,
public val matchesStorageClasses: List,
public val matchesSuffixes: List,
public val noAge: Boolean,
public val noncurrentTimeBefore: String,
public val numNewerVersions: Int,
public val withState: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.GetBucketLifecycleRuleCondition): GetBucketLifecycleRuleCondition = GetBucketLifecycleRuleCondition(
age = javaType.age(),
createdBefore = javaType.createdBefore(),
customTimeBefore = javaType.customTimeBefore(),
daysSinceCustomTime = javaType.daysSinceCustomTime(),
daysSinceNoncurrentTime = javaType.daysSinceNoncurrentTime(),
matchesPrefixes = javaType.matchesPrefixes().map({ args0 -> args0 }),
matchesStorageClasses = javaType.matchesStorageClasses().map({ args0 -> args0 }),
matchesSuffixes = javaType.matchesSuffixes().map({ args0 -> args0 }),
noAge = javaType.noAge(),
noncurrentTimeBefore = javaType.noncurrentTimeBefore(),
numNewerVersions = javaType.numNewerVersions(),
withState = javaType.withState(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy