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

com.pulumi.awsnative.apigatewayv2.kotlin.inputs.AuthorizerJwtConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.apigatewayv2.kotlin.inputs

import com.pulumi.awsnative.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

/**
 * The ``JWTConfiguration`` property specifies the configuration of a JWT authorizer. Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
 * @property audience A list of the intended recipients of the JWT. A valid JWT must provide an ``aud`` that matches at least one entry in this list. See [RFC 7519](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7519#section-4.1.3). Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
 * @property issuer The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: ``https://cognito-idp.{region}.amazonaws.com/{userPoolId}``. Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
 */
public data class AuthorizerJwtConfigurationArgs(
    public val audience: Output>? = null,
    public val issuer: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs =
        com.pulumi.awsnative.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs.builder()
            .audience(audience?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .issuer(issuer?.applyValue({ args0 -> args0 })).build()
}

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

    private var issuer: Output? = null

    /**
     * @param value A list of the intended recipients of the JWT. A valid JWT must provide an ``aud`` that matches at least one entry in this list. See [RFC 7519](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7519#section-4.1.3). Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("wkaorhqoluaoubvn")
    public suspend fun audience(`value`: Output>) {
        this.audience = value
    }

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

    /**
     * @param values A list of the intended recipients of the JWT. A valid JWT must provide an ``aud`` that matches at least one entry in this list. See [RFC 7519](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7519#section-4.1.3). Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("mcaycyxlqfmxayes")
    public suspend fun audience(values: List>) {
        this.audience = Output.all(values)
    }

    /**
     * @param value The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: ``https://cognito-idp.{region}.amazonaws.com/{userPoolId}``. Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("xukpycjtprirbkep")
    public suspend fun issuer(`value`: Output) {
        this.issuer = value
    }

    /**
     * @param value A list of the intended recipients of the JWT. A valid JWT must provide an ``aud`` that matches at least one entry in this list. See [RFC 7519](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7519#section-4.1.3). Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("pheysheofryrexcm")
    public suspend fun audience(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audience = mapped
    }

    /**
     * @param values A list of the intended recipients of the JWT. A valid JWT must provide an ``aud`` that matches at least one entry in this list. See [RFC 7519](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7519#section-4.1.3). Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("nfqmeadxatyjvvvd")
    public suspend fun audience(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audience = mapped
    }

    /**
     * @param value The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: ``https://cognito-idp.{region}.amazonaws.com/{userPoolId}``. Required for the ``JWT`` authorizer type. Supported only for HTTP APIs.
     */
    @JvmName("trkpdmdtsomuggsd")
    public suspend fun issuer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuer = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy