com.pulumi.aws.s3.kotlin.inputs.BucketWebsiteConfigurationV2RoutingRuleArgs.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.s3.kotlin.inputs
import com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2RoutingRuleArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property condition Configuration block for describing a condition that must be met for the specified redirect to apply. See below.
* @property redirect Configuration block for redirect information. See below.
*/
public data class BucketWebsiteConfigurationV2RoutingRuleArgs(
public val condition: Output? = null,
public val redirect: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2RoutingRuleArgs =
com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2RoutingRuleArgs.builder()
.condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.redirect(redirect.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BucketWebsiteConfigurationV2RoutingRuleArgs].
*/
@PulumiTagMarker
public class BucketWebsiteConfigurationV2RoutingRuleArgsBuilder internal constructor() {
private var condition: Output? = null
private var redirect: Output? = null
/**
* @param value Configuration block for describing a condition that must be met for the specified redirect to apply. See below.
*/
@JvmName("grtnciucuaaowksj")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value Configuration block for redirect information. See below.
*/
@JvmName("bhleprjgdbuixjli")
public suspend fun redirect(`value`: Output) {
this.redirect = value
}
/**
* @param value Configuration block for describing a condition that must be met for the specified redirect to apply. See below.
*/
@JvmName("nqqnmophjchwowcg")
public suspend fun condition(`value`: BucketWebsiteConfigurationV2RoutingRuleConditionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.condition = mapped
}
/**
* @param argument Configuration block for describing a condition that must be met for the specified redirect to apply. See below.
*/
@JvmName("iyietsudgefgwvou")
public suspend fun condition(argument: suspend BucketWebsiteConfigurationV2RoutingRuleConditionArgsBuilder.() -> Unit) {
val toBeMapped = BucketWebsiteConfigurationV2RoutingRuleConditionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.condition = mapped
}
/**
* @param value Configuration block for redirect information. See below.
*/
@JvmName("emvktangtcfbcocs")
public suspend fun redirect(`value`: BucketWebsiteConfigurationV2RoutingRuleRedirectArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.redirect = mapped
}
/**
* @param argument Configuration block for redirect information. See below.
*/
@JvmName("qhpamaxefrqcnjcr")
public suspend fun redirect(argument: suspend BucketWebsiteConfigurationV2RoutingRuleRedirectArgsBuilder.() -> Unit) {
val toBeMapped = BucketWebsiteConfigurationV2RoutingRuleRedirectArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.redirect = mapped
}
internal fun build(): BucketWebsiteConfigurationV2RoutingRuleArgs =
BucketWebsiteConfigurationV2RoutingRuleArgs(
condition = condition,
redirect = redirect ?: throw PulumiNullFieldException("redirect"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy