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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeTargetHttpParametersArgs.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.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeTargetHttpParametersArgs.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 The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
 * @property pathParameterValues The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path wildcards ("*").
 * @property queryStringParameters The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
 */
public data class PipeTargetHttpParametersArgs(
    public val headerParameters: Output>? = null,
    public val pathParameterValues: Output>? = null,
    public val queryStringParameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeTargetHttpParametersArgs =
        com.pulumi.awsnative.pipes.inputs.PipeTargetHttpParametersArgs.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 [PipeTargetHttpParametersArgs].
 */
@PulumiTagMarker
public class PipeTargetHttpParametersArgsBuilder internal constructor() {
    private var headerParameters: Output>? = null

    private var pathParameterValues: Output>? = null

    private var queryStringParameters: Output>? = null

    /**
     * @param value The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("yrpgfwsfcgslyvec")
    public suspend fun headerParameters(`value`: Output>) {
        this.headerParameters = value
    }

    /**
     * @param value The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path wildcards ("*").
     */
    @JvmName("tcodevldbjndfcbh")
    public suspend fun pathParameterValues(`value`: Output>) {
        this.pathParameterValues = value
    }

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

    /**
     * @param values The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path wildcards ("*").
     */
    @JvmName("oveyyqbwkyrawmrl")
    public suspend fun pathParameterValues(values: List>) {
        this.pathParameterValues = Output.all(values)
    }

    /**
     * @param value The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("cwlqfnnorfbbfwrg")
    public suspend fun queryStringParameters(`value`: Output>) {
        this.queryStringParameters = value
    }

    /**
     * @param value The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("vfuajmvuitegkkni")
    public suspend fun headerParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

    /**
     * @param values The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("sghtpsspttnokqfr")
    public fun headerParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

    /**
     * @param value The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path wildcards ("*").
     */
    @JvmName("hexcuafdwdryppur")
    public suspend fun pathParameterValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathParameterValues = mapped
    }

    /**
     * @param values The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path wildcards ("*").
     */
    @JvmName("fscwsitbeubdovgj")
    public suspend fun pathParameterValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathParameterValues = mapped
    }

    /**
     * @param value The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("yfqgmkhblwnusvml")
    public suspend fun queryStringParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

    /**
     * @param values The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or EventBridge ApiDestination.
     */
    @JvmName("ometsfiummrtlhas")
    public fun queryStringParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy