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

com.pulumi.awsnative.efs.kotlin.outputs.FileSystemLifecyclePolicy.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.efs.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Describes a policy used by Lifecycle management that specifies when to transition files into and out of the EFS storage classes. For more information, see [Managing file system storage](https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html).
 *    +  Each ``LifecyclePolicy`` object can have only a single transition. This means that in a request body, ``LifecyclePolicies`` must be structured as an array of ``LifecyclePolicy`` objects, one object for each transition, ``TransitionToIA``, ``TransitionToArchive``, ``TransitionToPrimaryStorageClass``.
 *   +  See the AWS::EFS::FileSystem examples for the correct ``LifecyclePolicy`` structure. Do not use the syntax shown on this page.
 * @property transitionToArchive The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
 * @property transitionToIa The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
 * @property transitionToPrimaryStorageClass Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
 */
public data class FileSystemLifecyclePolicy(
    public val transitionToArchive: String? = null,
    public val transitionToIa: String? = null,
    public val transitionToPrimaryStorageClass: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.efs.outputs.FileSystemLifecyclePolicy): FileSystemLifecyclePolicy = FileSystemLifecyclePolicy(
            transitionToArchive = javaType.transitionToArchive().map({ args0 -> args0 }).orElse(null),
            transitionToIa = javaType.transitionToIa().map({ args0 -> args0 }).orElse(null),
            transitionToPrimaryStorageClass = javaType.transitionToPrimaryStorageClass().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy