
com.pulumi.aws.shield.kotlin.ApplicationLayerAutomaticResponseArgs.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.shield.kotlin
import com.pulumi.aws.shield.ApplicationLayerAutomaticResponseArgs.builder
import com.pulumi.aws.shield.kotlin.inputs.ApplicationLayerAutomaticResponseTimeoutsArgs
import com.pulumi.aws.shield.kotlin.inputs.ApplicationLayerAutomaticResponseTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS Shield Application Layer Automatic Response for automatic DDoS mitigation.
* ## Example Usage
* @property action One of `COUNT` or `BLOCK`
* @property resourceArn ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
* @property timeouts
*/
public data class ApplicationLayerAutomaticResponseArgs(
public val action: Output? = null,
public val resourceArn: Output? = null,
public val timeouts: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.shield.ApplicationLayerAutomaticResponseArgs =
com.pulumi.aws.shield.ApplicationLayerAutomaticResponseArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.resourceArn(resourceArn?.applyValue({ args0 -> args0 }))
.timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApplicationLayerAutomaticResponseArgs].
*/
@PulumiTagMarker
public class ApplicationLayerAutomaticResponseArgsBuilder internal constructor() {
private var action: Output? = null
private var resourceArn: Output? = null
private var timeouts: Output? = null
/**
* @param value One of `COUNT` or `BLOCK`
*/
@JvmName("jydxoknhfekyqkmb")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
*/
@JvmName("vfvhrdvuoepikgwj")
public suspend fun resourceArn(`value`: Output) {
this.resourceArn = value
}
/**
* @param value
*/
@JvmName("wakaqlfhrywayoos")
public suspend fun timeouts(`value`: Output) {
this.timeouts = value
}
/**
* @param value One of `COUNT` or `BLOCK`
*/
@JvmName("sbsjgujeopfevwqc")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
*/
@JvmName("bobiqrlfikikqmqv")
public suspend fun resourceArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceArn = mapped
}
/**
* @param value
*/
@JvmName("dpcloemqwmrbjxsu")
public suspend fun timeouts(`value`: ApplicationLayerAutomaticResponseTimeoutsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeouts = mapped
}
/**
* @param argument
*/
@JvmName("cyfiwpmkuiooqrcp")
public suspend fun timeouts(argument: suspend ApplicationLayerAutomaticResponseTimeoutsArgsBuilder.() -> Unit) {
val toBeMapped = ApplicationLayerAutomaticResponseTimeoutsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.timeouts = mapped
}
internal fun build(): ApplicationLayerAutomaticResponseArgs =
ApplicationLayerAutomaticResponseArgs(
action = action,
resourceArn = resourceArn,
timeouts = timeouts,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy