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

com.pulumi.gcp.pubsub.kotlin.inputs.SubscriptionPushConfigOidcTokenArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.pubsub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.SubscriptionPushConfigOidcTokenArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property audience Audience to be used when generating OIDC token. The audience claim
 * identifies the recipients that the JWT is intended for. The audience
 * value is a single case-sensitive string. Having multiple values (array)
 * for the audience field is not supported. More info about the OIDC JWT
 * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
 * Note: if not specified, the Push endpoint URL will be used.
 * @property serviceAccountEmail Service account email to be used for generating the OIDC token.
 * The caller (for subscriptions.create, subscriptions.patch, and
 * subscriptions.modifyPushConfig RPCs) must have the
 * iam.serviceAccounts.actAs permission for the service account.
 */
public data class SubscriptionPushConfigOidcTokenArgs(
    public val audience: Output? = null,
    public val serviceAccountEmail: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.pubsub.inputs.SubscriptionPushConfigOidcTokenArgs =
        com.pulumi.gcp.pubsub.inputs.SubscriptionPushConfigOidcTokenArgs.builder()
            .audience(audience?.applyValue({ args0 -> args0 }))
            .serviceAccountEmail(serviceAccountEmail.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceAccountEmail: Output? = null

    /**
     * @param value Audience to be used when generating OIDC token. The audience claim
     * identifies the recipients that the JWT is intended for. The audience
     * value is a single case-sensitive string. Having multiple values (array)
     * for the audience field is not supported. More info about the OIDC JWT
     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
     * Note: if not specified, the Push endpoint URL will be used.
     */
    @JvmName("crdcdrdesxvwhpdb")
    public suspend fun audience(`value`: Output) {
        this.audience = value
    }

    /**
     * @param value Service account email to be used for generating the OIDC token.
     * The caller (for subscriptions.create, subscriptions.patch, and
     * subscriptions.modifyPushConfig RPCs) must have the
     * iam.serviceAccounts.actAs permission for the service account.
     */
    @JvmName("uplnbwxorpvtauvn")
    public suspend fun serviceAccountEmail(`value`: Output) {
        this.serviceAccountEmail = value
    }

    /**
     * @param value Audience to be used when generating OIDC token. The audience claim
     * identifies the recipients that the JWT is intended for. The audience
     * value is a single case-sensitive string. Having multiple values (array)
     * for the audience field is not supported. More info about the OIDC JWT
     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
     * Note: if not specified, the Push endpoint URL will be used.
     */
    @JvmName("rfcigiqxmyvndrjm")
    public suspend fun audience(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audience = mapped
    }

    /**
     * @param value Service account email to be used for generating the OIDC token.
     * The caller (for subscriptions.create, subscriptions.patch, and
     * subscriptions.modifyPushConfig RPCs) must have the
     * iam.serviceAccounts.actAs permission for the service account.
     */
    @JvmName("rseivmmwyqxcfdvy")
    public suspend fun serviceAccountEmail(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAccountEmail = mapped
    }

    internal fun build(): SubscriptionPushConfigOidcTokenArgs = SubscriptionPushConfigOidcTokenArgs(
        audience = audience,
        serviceAccountEmail = serviceAccountEmail ?: throw PulumiNullFieldException("serviceAccountEmail"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy