All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.storage.kotlin.outputs.BucketLifecycleRule.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.storage.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property action The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.
 * @property condition The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.
 */
public data class BucketLifecycleRule(
    public val action: BucketLifecycleRuleAction,
    public val condition: BucketLifecycleRuleCondition,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.BucketLifecycleRule): BucketLifecycleRule = BucketLifecycleRule(
            action = javaType.action().let({ args0 ->
                com.pulumi.gcp.storage.kotlin.outputs.BucketLifecycleRuleAction.Companion.toKotlin(args0)
            }),
            condition = javaType.condition().let({ args0 ->
                com.pulumi.gcp.storage.kotlin.outputs.BucketLifecycleRuleCondition.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy