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

com.pulumi.aws.apigatewayv2.kotlin.inputs.AuthorizerJwtConfigurationArgs.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.apigatewayv2.kotlin.inputs

import com.pulumi.aws.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property audiences List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
 * @property issuer Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
 */
public data class AuthorizerJwtConfigurationArgs(
    public val audiences: Output>? = null,
    public val issuer: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs =
        com.pulumi.aws.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs.builder()
            .audiences(audiences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .issuer(issuer?.applyValue({ args0 -> args0 })).build()
}

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

    private var issuer: Output? = null

    /**
     * @param value List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     */
    @JvmName("yoixmnoolxnvhbab")
    public suspend fun audiences(`value`: Output>) {
        this.audiences = value
    }

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

    /**
     * @param values List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     */
    @JvmName("ijtsbjakebfsacbh")
    public suspend fun audiences(values: List>) {
        this.audiences = Output.all(values)
    }

    /**
     * @param value Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
     */
    @JvmName("ttknipjwiqswtrdr")
    public suspend fun issuer(`value`: Output) {
        this.issuer = value
    }

    /**
     * @param value List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     */
    @JvmName("skvycxtpukapqlfj")
    public suspend fun audiences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audiences = mapped
    }

    /**
     * @param values List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     */
    @JvmName("iynduqoernweouxf")
    public suspend fun audiences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audiences = mapped
    }

    /**
     * @param value Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
     */
    @JvmName("mvwdqgpfygusyigl")
    public suspend fun issuer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuer = mapped
    }

    internal fun build(): AuthorizerJwtConfigurationArgs = AuthorizerJwtConfigurationArgs(
        audiences = audiences,
        issuer = issuer,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy