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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeEnrichmentHttpParametersArgs.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.PipeEnrichmentHttpParametersArgs.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 PipeEnrichmentHttpParametersArgs(
    public val headerParameters: Output>? = null,
    public val pathParameterValues: Output>? = null,
    public val queryStringParameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeEnrichmentHttpParametersArgs =
        com.pulumi.awsnative.pipes.inputs.PipeEnrichmentHttpParametersArgs.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 [PipeEnrichmentHttpParametersArgs].
 */
@PulumiTagMarker
public class PipeEnrichmentHttpParametersArgsBuilder 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("suuuxtsflehcsare")
    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("itjnxhvoscullhhx")
    public suspend fun pathParameterValues(`value`: Output>) {
        this.pathParameterValues = value
    }

    @JvmName("qbdguftifcfntocj")
    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("ldwmofqbybntoess")
    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("ldqlhgrmhdfyiitm")
    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("eoibshfyfbgfsodq")
    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("ehvaswmkmrdjvpcq")
    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("cifxrgcmswsfrofi")
    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("htiopuveyuqstwvt")
    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("cljsvyqtleoudapg")
    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("opotpfmsltdgfkfo")
    public fun queryStringParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy