
com.pulumi.awsnative.s3.kotlin.outputs.BucketNoncurrentVersionTransition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.s3.kotlin.outputs
import com.pulumi.awsnative.s3.kotlin.enums.BucketNoncurrentVersionTransitionStorageClass
import kotlin.Int
import kotlin.Suppress
/**
* Container for the transition rule that describes when noncurrent objects transition to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class at a specific period in the object's lifetime. If you specify this property, don't specify the ``NoncurrentVersionTransitions`` property.
* @property newerNoncurrentVersions Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.
* @property storageClass The class of storage used to store the object.
* @property transitionInDays Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.
*/
public data class BucketNoncurrentVersionTransition(
public val newerNoncurrentVersions: Int? = null,
public val storageClass: BucketNoncurrentVersionTransitionStorageClass,
public val transitionInDays: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.s3.outputs.BucketNoncurrentVersionTransition): BucketNoncurrentVersionTransition = BucketNoncurrentVersionTransition(
newerNoncurrentVersions = javaType.newerNoncurrentVersions().map({ args0 -> args0 }).orElse(null),
storageClass = javaType.storageClass().let({ args0 ->
com.pulumi.awsnative.s3.kotlin.enums.BucketNoncurrentVersionTransitionStorageClass.Companion.toKotlin(args0)
}),
transitionInDays = javaType.transitionInDays(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy