![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.siterecovery.kotlin.outputs.ReplicationRecoveryPlanRecoveryGroupPreAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.siterecovery.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property fabricLocation The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
* > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
* @property failOverDirections Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
* @property failOverTypes Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
* @property manualActionInstruction Instructions of manual action.
* > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
* @property name The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
* @property runbookId Id of runbook.
* > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
* @property scriptPath Path of action script.
* > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
* @property type
*/
public data class ReplicationRecoveryPlanRecoveryGroupPreAction(
public val fabricLocation: String? = null,
public val failOverDirections: List,
public val failOverTypes: List,
public val manualActionInstruction: String? = null,
public val name: String,
public val runbookId: String? = null,
public val scriptPath: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.siterecovery.outputs.ReplicationRecoveryPlanRecoveryGroupPreAction): ReplicationRecoveryPlanRecoveryGroupPreAction =
ReplicationRecoveryPlanRecoveryGroupPreAction(
fabricLocation = javaType.fabricLocation().map({ args0 -> args0 }).orElse(null),
failOverDirections = javaType.failOverDirections().map({ args0 -> args0 }),
failOverTypes = javaType.failOverTypes().map({ args0 -> args0 }),
manualActionInstruction = javaType.manualActionInstruction().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
runbookId = javaType.runbookId().map({ args0 -> args0 }).orElse(null),
scriptPath = javaType.scriptPath().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy