Class PubsubSubscriptionPushConfigOidcToken.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • serviceAccountEmail

        @Stability(Stable)
        public PubsubSubscriptionPushConfigOidcToken.Builder serviceAccountEmail​(String serviceAccountEmail)
        Parameters:
        serviceAccountEmail - Service account email to be used for generating the OIDC token. This parameter is required. The caller (for subscriptions.create, subscriptions.patch, and subscriptions.modifyPushConfig RPCs) must have the iam.serviceAccounts.actAs permission for the service account. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#service_account_email PubsubSubscription#service_account_email}
        Returns:
        this
      • audience

        @Stability(Stable)
        public PubsubSubscriptionPushConfigOidcToken.Builder audience​(String audience)
        Parameters:
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#audience PubsubSubscription#audience}
        Returns:
        this