
com.pulumi.awsnative.s3.kotlin.outputs.BucketTransition.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.BucketTransitionStorageClass
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see [Transitioning Objects Using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the *Amazon S3 User Guide*.
* @property storageClass The storage class to which you want the object to transition.
* @property transitionDate Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
* @property transitionInDays Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
*/
public data class BucketTransition(
public val storageClass: BucketTransitionStorageClass,
public val transitionDate: String? = null,
public val transitionInDays: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.s3.outputs.BucketTransition): BucketTransition = BucketTransition(
storageClass = javaType.storageClass().let({ args0 ->
com.pulumi.awsnative.s3.kotlin.enums.BucketTransitionStorageClass.Companion.toKotlin(args0)
}),
transitionDate = javaType.transitionDate().map({ args0 -> args0 }).orElse(null),
transitionInDays = javaType.transitionInDays().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy