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

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

package com.pulumi.gcp.pubsub.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 SubscriptionPushConfigOidcToken(
    public val audience: String? = null,
    public val serviceAccountEmail: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.SubscriptionPushConfigOidcToken): SubscriptionPushConfigOidcToken = SubscriptionPushConfigOidcToken(
            audience = javaType.audience().map({ args0 -> args0 }).orElse(null),
            serviceAccountEmail = javaType.serviceAccountEmail(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy