com.pulumi.awsnative.efs.kotlin.outputs.FileSystemProtection.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.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),
)
}
}