com.pulumi.aws.cloudfront.kotlin.inputs.DistributionOriginGroupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.cloudfront.kotlin.inputs
import com.pulumi.aws.cloudfront.inputs.DistributionOriginGroupArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property failoverCriteria The failover criteria for when to failover to the secondary origin.
* @property members Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members.
* @property originId
*/
public data class DistributionOriginGroupArgs(
public val failoverCriteria: Output,
public val members: Output>,
public val originId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.DistributionOriginGroupArgs =
com.pulumi.aws.cloudfront.inputs.DistributionOriginGroupArgs.builder()
.failoverCriteria(failoverCriteria.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.members(
members.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.originId(originId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionOriginGroupArgs].
*/
@PulumiTagMarker
public class DistributionOriginGroupArgsBuilder internal constructor() {
private var failoverCriteria: Output? = null
private var members: Output>? = null
private var originId: Output? = null
/**
* @param value The failover criteria for when to failover to the secondary origin.
*/
@JvmName("oiaynloosvcxbdlw")
public suspend fun failoverCriteria(`value`: Output) {
this.failoverCriteria = value
}
/**
* @param value Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members.
*/
@JvmName("uscnkqrttfkgdgun")
public suspend fun members(`value`: Output>) {
this.members = value
}
@JvmName("ghlnfsjrxsrvjqgo")
public suspend fun members(vararg values: Output) {
this.members = Output.all(values.asList())
}
/**
* @param values Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members.
*/
@JvmName("axtoqvrdufsmflfc")
public suspend fun members(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy