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

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

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

import com.pulumi.awsnative.efs.kotlin.enums.FileSystemProtectionReplicationOverwriteProtection
import kotlin.Suppress

/**
 * Describes the protection on the file system.
 * @property replicationOverwriteProtection The status of the file system's replication overwrite protection.
 *   +   ``ENABLED`` – The file system cannot be used as the destination file system in a replication configuration. The file system is writeable. Replication overwrite protection is ``ENABLED`` by default.
 *   +   ``DISABLED`` – The file system can be used as the destination file system in a replication configuration. The file system is read-only and can only be modified by EFS replication.
 *   +   ``REPLICATING`` – The file system is being used as the destination file system in a replication configuration. The file system is read-only and is only modified only by EFS replication.
 *  If the replication configuration is deleted, the file system's replication overwrite protection is re-enabled, the file system becomes writeable.
 */
public data class FileSystemProtection(
    public val replicationOverwriteProtection: FileSystemProtectionReplicationOverwriteProtection? =
        null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.efs.outputs.FileSystemProtection): FileSystemProtection = FileSystemProtection(
            replicationOverwriteProtection = javaType.replicationOverwriteProtection().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.efs.kotlin.enums.FileSystemProtectionReplicationOverwriteProtection.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy