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

com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionHttpArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.TopicRuleErrorActionHttpArgs.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 confirmationUrl The HTTPS URL used to verify ownership of `url`.
 * @property httpHeaders Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
 * @property url The HTTPS URL.
 */
public data class TopicRuleErrorActionHttpArgs(
    public val confirmationUrl: Output? = null,
    public val httpHeaders: Output>? = null,
    public val url: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionHttpArgs =
        com.pulumi.aws.iot.inputs.TopicRuleErrorActionHttpArgs.builder()
            .confirmationUrl(confirmationUrl?.applyValue({ args0 -> args0 }))
            .httpHeaders(
                httpHeaders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .url(url.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleErrorActionHttpArgs].
 */
@PulumiTagMarker
public class TopicRuleErrorActionHttpArgsBuilder internal constructor() {
    private var confirmationUrl: Output? = null

    private var httpHeaders: Output>? = null

    private var url: Output? = null

    /**
     * @param value The HTTPS URL used to verify ownership of `url`.
     */
    @JvmName("jawomigitdqfnhiv")
    public suspend fun confirmationUrl(`value`: Output) {
        this.confirmationUrl = value
    }

    /**
     * @param value Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("wngtxyecomltttbi")
    public suspend fun httpHeaders(`value`: Output>) {
        this.httpHeaders = value
    }

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

    /**
     * @param values Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("intuirpqcfttmlve")
    public suspend fun httpHeaders(values: List>) {
        this.httpHeaders = Output.all(values)
    }

    /**
     * @param value The HTTPS URL.
     */
    @JvmName("phvxyeoyrcaonbir")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value The HTTPS URL used to verify ownership of `url`.
     */
    @JvmName("cxfxkkkpsxfntgeb")
    public suspend fun confirmationUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confirmationUrl = mapped
    }

    /**
     * @param value Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("jetyikmnvdwreyce")
    public suspend fun httpHeaders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("cjfdujodqqulopgl")
    public suspend fun httpHeaders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicRuleErrorActionHttpHttpHeaderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("cptnuncvnidihhmo")
    public suspend fun httpHeaders(vararg argument: suspend TopicRuleErrorActionHttpHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicRuleErrorActionHttpHttpHeaderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("fsyqgeujodraynku")
    public suspend fun httpHeaders(argument: suspend TopicRuleErrorActionHttpHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicRuleErrorActionHttpHttpHeaderArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param values Custom HTTP header IoT Core should send. It is possible to define more than one custom header.
     */
    @JvmName("hhdqricpgdvdmats")
    public suspend fun httpHeaders(vararg values: TopicRuleErrorActionHttpHttpHeaderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpHeaders = mapped
    }

    /**
     * @param value The HTTPS URL.
     */
    @JvmName("gsjuwisxkrwoxtvs")
    public suspend fun url(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): TopicRuleErrorActionHttpArgs = TopicRuleErrorActionHttpArgs(
        confirmationUrl = confirmationUrl,
        httpHeaders = httpHeaders,
        url = url ?: throw PulumiNullFieldException("url"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy