![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.siterecovery.kotlin.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs.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.inputs
import com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs(
public val fabricLocation: Output? = null,
public val failOverDirections: Output>,
public val failOverTypes: Output>,
public val manualActionInstruction: Output? = null,
public val name: Output,
public val runbookId: Output? = null,
public val scriptPath: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs =
com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs.builder()
.fabricLocation(fabricLocation?.applyValue({ args0 -> args0 }))
.failOverDirections(failOverDirections.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.failOverTypes(failOverTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.manualActionInstruction(manualActionInstruction?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.runbookId(runbookId?.applyValue({ args0 -> args0 }))
.scriptPath(scriptPath?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs].
*/
@PulumiTagMarker
public class ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder internal constructor() {
private var fabricLocation: Output? = null
private var failOverDirections: Output>? = null
private var failOverTypes: Output>? = null
private var manualActionInstruction: Output? = null
private var name: Output? = null
private var runbookId: Output? = null
private var scriptPath: Output? = null
private var type: Output? = null
/**
* @param value 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`.
*/
@JvmName("lhsejtkashrmltgo")
public suspend fun fabricLocation(`value`: Output) {
this.fabricLocation = value
}
/**
* @param value Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
*/
@JvmName("dgtheysjbaxpjtuc")
public suspend fun failOverDirections(`value`: Output>) {
this.failOverDirections = value
}
@JvmName("srslypgxnwhrputn")
public suspend fun failOverDirections(vararg values: Output) {
this.failOverDirections = Output.all(values.asList())
}
/**
* @param values Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
*/
@JvmName("canweucoeeawdncl")
public suspend fun failOverDirections(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy