com.pulumi.gcp.storage.kotlin.outputs.GetBucketRetentionPolicy.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.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