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

com.pulumi.gcp.storage.kotlin.outputs.GetBucketRetentionPolicy.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property isLocked If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy.  Caution: Locking a bucket is an irreversible action.
 * @property retentionPeriod The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 3,155,760,000 seconds.
 */
public data class GetBucketRetentionPolicy(
    public val isLocked: Boolean,
    public val retentionPeriod: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.GetBucketRetentionPolicy): GetBucketRetentionPolicy = GetBucketRetentionPolicy(
            isLocked = javaType.isLocked(),
            retentionPeriod = javaType.retentionPeriod(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy