com.pulumi.awsnative.efs.kotlin.inputs.FileSystemProtectionArgs.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.inputs
import com.pulumi.awsnative.efs.inputs.FileSystemProtectionArgs.builder
import com.pulumi.awsnative.efs.kotlin.enums.FileSystemProtectionReplicationOverwriteProtection
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* 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 FileSystemProtectionArgs(
public val replicationOverwriteProtection: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.efs.inputs.FileSystemProtectionArgs =
com.pulumi.awsnative.efs.inputs.FileSystemProtectionArgs.builder()
.replicationOverwriteProtection(
replicationOverwriteProtection?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
).build()
}
/**
* Builder for [FileSystemProtectionArgs].
*/
@PulumiTagMarker
public class FileSystemProtectionArgsBuilder internal constructor() {
private var replicationOverwriteProtection:
Output? = null
/**
* @param value 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.
*/
@JvmName("ulfrpebddrdjdhjk")
public suspend fun replicationOverwriteProtection(`value`: Output) {
this.replicationOverwriteProtection = value
}
/**
* @param value 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.
*/
@JvmName("ydubvebtblvywlyv")
public suspend fun replicationOverwriteProtection(`value`: FileSystemProtectionReplicationOverwriteProtection?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicationOverwriteProtection = mapped
}
internal fun build(): FileSystemProtectionArgs = FileSystemProtectionArgs(
replicationOverwriteProtection = replicationOverwriteProtection,
)
}