com.pulumi.awsnative.nimblestudio.kotlin.outputs.LaunchProfileStreamConfigurationSessionBackup.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.nimblestudio.kotlin.outputs
import com.pulumi.awsnative.nimblestudio.kotlin.enums.LaunchProfileSessionBackupMode
import kotlin.Double
import kotlin.Suppress
/**
* Configures how streaming sessions are backed up when launched from this launch
* profile.
* @property maxBackupsToRetain The maximum number of backups that each streaming session created from this launch
* profile can have.
* @property mode Specifies how artists sessions are backed up.
* Configures backups for streaming sessions launched with this launch profile. The default value is `DEACTIVATED` , which means that backups are deactivated. To allow backups, set this value to `AUTOMATIC` .
*/
public data class LaunchProfileStreamConfigurationSessionBackup(
public val maxBackupsToRetain: Double? = null,
public val mode: LaunchProfileSessionBackupMode? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.nimblestudio.outputs.LaunchProfileStreamConfigurationSessionBackup): LaunchProfileStreamConfigurationSessionBackup =
LaunchProfileStreamConfigurationSessionBackup(
maxBackupsToRetain = javaType.maxBackupsToRetain().map({ args0 -> args0 }).orElse(null),
mode = javaType.mode().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.nimblestudio.kotlin.enums.LaunchProfileSessionBackupMode.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}