
com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs.AuthRequirementArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.servicemanagement.v1.inputs.AuthRequirementArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* User-defined authentication requirements, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
* @property audiences NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
* @property providerId id from authentication provider. Example: provider_id: bookstore_auth
*/
public data class AuthRequirementArgs(
public val audiences: Output? = null,
public val providerId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.servicemanagement.v1.inputs.AuthRequirementArgs =
com.pulumi.googlenative.servicemanagement.v1.inputs.AuthRequirementArgs.builder()
.audiences(audiences?.applyValue({ args0 -> args0 }))
.providerId(providerId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AuthRequirementArgs].
*/
@PulumiTagMarker
public class AuthRequirementArgsBuilder internal constructor() {
private var audiences: Output? = null
private var providerId: Output? = null
/**
* @param value NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
*/
@JvmName("xgikckhtfpsedbwt")
public suspend fun audiences(`value`: Output) {
this.audiences = value
}
/**
* @param value id from authentication provider. Example: provider_id: bookstore_auth
*/
@JvmName("lsgtgbbcktidguqh")
public suspend fun providerId(`value`: Output) {
this.providerId = value
}
/**
* @param value NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
*/
@JvmName("gkdkdmlosskfmlej")
public suspend fun audiences(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.audiences = mapped
}
/**
* @param value id from authentication provider. Example: provider_id: bookstore_auth
*/
@JvmName("mbhbacjcveveoeus")
public suspend fun providerId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.providerId = mapped
}
internal fun build(): AuthRequirementArgs = AuthRequirementArgs(
audiences = audiences,
providerId = providerId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy