com.pulumi.gcp.storage.kotlin.outputs.BucketRetentionPolicy.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](https://cloud.google.com/storage/docs/using-bucket-lock#lock-bucket) 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 2,147,483,647 seconds.
*/
public data class BucketRetentionPolicy(
public val isLocked: Boolean? = null,
public val retentionPeriod: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.BucketRetentionPolicy): BucketRetentionPolicy = BucketRetentionPolicy(
isLocked = javaType.isLocked().map({ args0 -> args0 }).orElse(null),
retentionPeriod = javaType.retentionPeriod(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy