com.pulumi.googlenative.pubsub.v1.kotlin.outputs.OidcTokenResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.pubsub.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect).
* @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](https://cloud.google.com/iam/docs/service-accounts) used for generating the OIDC token. For more information on setting up authentication, see [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
*/
public data class OidcTokenResponse(
public val audience: String,
public val serviceAccountEmail: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.pubsub.v1.outputs.OidcTokenResponse): OidcTokenResponse = OidcTokenResponse(
audience = javaType.audience(),
serviceAccountEmail = javaType.serviceAccountEmail(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy