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

com.pulumi.aws.cloudwatch.kotlin.inputs.EventTargetHttpTargetArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.cloudwatch.kotlin.inputs

import com.pulumi.aws.cloudwatch.inputs.EventTargetHttpTargetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property headerParameters Enables you to specify HTTP headers to add to the request.
 * @property pathParameterValues The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
 * @property queryStringParameters Represents keys/values of query string parameters that are appended to the invoked endpoint.
 * */*/
 */
public data class EventTargetHttpTargetArgs(
    public val headerParameters: Output>? = null,
    public val pathParameterValues: Output>? = null,
    public val queryStringParameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cloudwatch.inputs.EventTargetHttpTargetArgs =
        com.pulumi.aws.cloudwatch.inputs.EventTargetHttpTargetArgs.builder()
            .headerParameters(
                headerParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .pathParameterValues(pathParameterValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .queryStringParameters(
                queryStringParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var pathParameterValues: Output>? = null

    private var queryStringParameters: Output>? = null

    /**
     * @param value Enables you to specify HTTP headers to add to the request.
     */
    @JvmName("ureegkvvymgujhns")
    public suspend fun headerParameters(`value`: Output>) {
        this.headerParameters = value
    }

    /**
     * @param value The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
     * */*/
     */
    @JvmName("qfafbagodtdkcllp")
    public suspend fun pathParameterValues(`value`: Output>) {
        this.pathParameterValues = value
    }

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

    /**
     * @param values The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
     * */*/
     */
    @JvmName("bcvausuftdirnouq")
    public suspend fun pathParameterValues(values: List>) {
        this.pathParameterValues = Output.all(values)
    }

    /**
     * @param value Represents keys/values of query string parameters that are appended to the invoked endpoint.
     */
    @JvmName("nyxbuxlxljqkycmv")
    public suspend fun queryStringParameters(`value`: Output>) {
        this.queryStringParameters = value
    }

    /**
     * @param value Enables you to specify HTTP headers to add to the request.
     */
    @JvmName("avyonxbmjpcyrgma")
    public suspend fun headerParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

    /**
     * @param values Enables you to specify HTTP headers to add to the request.
     */
    @JvmName("ceexmfjsuwlpijjf")
    public fun headerParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

    /**
     * @param value The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
     * */*/
     */
    @JvmName("aphfsqexfgjuilbo")
    public suspend fun pathParameterValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathParameterValues = mapped
    }

    /**
     * @param values The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*`).
     * */*/
     */
    @JvmName("tdabmpdptncxovhu")
    public suspend fun pathParameterValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathParameterValues = mapped
    }

    /**
     * @param value Represents keys/values of query string parameters that are appended to the invoked endpoint.
     */
    @JvmName("gtirrgdegwxhflrs")
    public suspend fun queryStringParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

    /**
     * @param values Represents keys/values of query string parameters that are appended to the invoked endpoint.
     */
    @JvmName("rxiapsxfivcsdfau")
    public fun queryStringParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

    internal fun build(): EventTargetHttpTargetArgs = EventTargetHttpTargetArgs(
        headerParameters = headerParameters,
        pathParameterValues = pathParameterValues,
        queryStringParameters = queryStringParameters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy