All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclResponseInspectionHeaderArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.inputs

import com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionHeaderArgs.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

/**
 * Response headers that indicate success or failure of a login request
 * @property failureValues Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
 * JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`
 * @property name The name of the header to match against. The name must be an exact match, including case.
 * JSON example: `"Name": [ "RequestResult" ]`
 * @property successValues Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
 * JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`
 */
public data class WebAclResponseInspectionHeaderArgs(
    public val failureValues: Output>,
    public val name: Output,
    public val successValues: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionHeaderArgs =
        com.pulumi.awsnative.wafv2.inputs.WebAclResponseInspectionHeaderArgs.builder()
            .failureValues(failureValues.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .successValues(successValues.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [WebAclResponseInspectionHeaderArgs].
 */
@PulumiTagMarker
public class WebAclResponseInspectionHeaderArgsBuilder internal constructor() {
    private var failureValues: Output>? = null

    private var name: Output? = null

    private var successValues: Output>? = null

    /**
     * @param value Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`
     */
    @JvmName("ulohsckglngjrfdh")
    public suspend fun failureValues(`value`: Output>) {
        this.failureValues = value
    }

    @JvmName("udqowfwjtnqaqtkn")
    public suspend fun failureValues(vararg values: Output) {
        this.failureValues = Output.all(values.asList())
    }

    /**
     * @param values Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`
     */
    @JvmName("uvweobimobobmqsv")
    public suspend fun failureValues(values: List>) {
        this.failureValues = Output.all(values)
    }

    /**
     * @param value The name of the header to match against. The name must be an exact match, including case.
     * JSON example: `"Name": [ "RequestResult" ]`
     */
    @JvmName("iwxigvannrvwqssp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`
     */
    @JvmName("qqadtawxnglxbgsr")
    public suspend fun successValues(`value`: Output>) {
        this.successValues = value
    }

    @JvmName("sirxwpsvbponhwom")
    public suspend fun successValues(vararg values: Output) {
        this.successValues = Output.all(values.asList())
    }

    /**
     * @param values Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`
     */
    @JvmName("pdrcoiefnkdtrbwk")
    public suspend fun successValues(values: List>) {
        this.successValues = Output.all(values)
    }

    /**
     * @param value Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`
     */
    @JvmName("astjuhmgnqjhoqto")
    public suspend fun failureValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failureValues = mapped
    }

    /**
     * @param values Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`
     */
    @JvmName("divqbcpvjyqdbcpi")
    public suspend fun failureValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failureValues = mapped
    }

    /**
     * @param value The name of the header to match against. The name must be an exact match, including case.
     * JSON example: `"Name": [ "RequestResult" ]`
     */
    @JvmName("ldylromctcentctu")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`
     */
    @JvmName("astqvfwdeybvyioi")
    public suspend fun successValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.successValues = mapped
    }

    /**
     * @param values Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
     * JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`
     */
    @JvmName("ksgrvkabbaonbuoj")
    public suspend fun successValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.successValues = mapped
    }

    internal fun build(): WebAclResponseInspectionHeaderArgs = WebAclResponseInspectionHeaderArgs(
        failureValues = failureValues ?: throw PulumiNullFieldException("failureValues"),
        name = name ?: throw PulumiNullFieldException("name"),
        successValues = successValues ?: throw PulumiNullFieldException("successValues"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy