Google Cloud
Documentation Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
Related sites
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Sign in
  • C++
Overview Guides Reference Samples
Contact Us Start free
Google Cloud
  • Documentation
    • Overview
    • Guides
    • Reference
    • Samples
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Related sites
    • More
  • Console
  • Contact Us
  • Start free
  • Overview
  • Library reference docs
  • Common Components for the Google Cloud C++ Client Libraries
  • In-Depth Topics
    • Error Handling
    • Logging Components
  • Modules
    • Intercepting Unrecoverable Errors
    • Authentication Components
    • Client Library Configuration
    • Options only applicable when using REST transport
  • Namespaces
    • google::cloud
      • Overview
      • Classes
        • AsyncOperation
          • Overview
          • Functions
            • Cancel()
        • AsyncStreamingReadWriteRpc<Request, Response>
          • Overview
          • Functions
            • Cancel()
            • Start()
            • Read()
            • Write(Request const &, grpc::WriteOptions)
            • WritesDone()
            • Finish()
        • BackgroundThreads
          • Overview
          • Functions
            • cq() const
        • CompletionQueue
          • Overview
          • Constructors
            • CompletionQueue()
            • CompletionQueue(std::shared_ptr< internal::CompletionQueueImpl >)
          • Functions
            • Run()
            • Shutdown()
            • CancelAll()
            • MakeDeadlineTimer(std::chrono::system_clock::time_point)
            • MakeRelativeTimer(std::chrono::duration< Rep, Period >)
            • MakeUnaryRpc(AsyncCallType, Request const &, std::unique_ptr< grpc::ClientContext >)
            • MakeStreamingReadRpc(AsyncCallType &&, Request const &, std::unique_ptr< grpc::ClientContext >, OnReadHandler &&, OnFinishHandler &&)
            • RunAsync(Functor &&)
            • RunAsync(Functor &&)
            • AsyncWaitConnectionReady(std::shared_ptr< grpc::Channel >, std::chrono::system_clock::time_point)
        • ConnectionOptions<ConnectionTraits>
          • Overview
          • Constructors
            • ConnectionOptions()
            • ConnectionOptions(std::shared_ptr< grpc::ChannelCredentials >)
          • Functions
            • set_credentials(std::shared_ptr< grpc::ChannelCredentials >)
            • credentials() const
            • set_endpoint(std::string)
            • endpoint() const
            • num_channels() const
            • set_num_channels(int)
            • tracing_enabled(std::string const &) const
            • enable_tracing(std::string const &)
            • disable_tracing(std::string const &)
            • components() const
            • tracing_options() const
            • channel_pool_domain() const
            • set_channel_pool_domain(std::string)
            • add_user_agent_prefix(std::string)
            • user_agent_prefix() const
            • CreateChannelArguments() const
            • set_background_thread_pool_size(std::size_t)
            • background_thread_pool_size() const
            • DisableBackgroundThreads(google::cloud::CompletionQueue const &)
            • background_threads_factory() const
          • Types
            • BackgroundThreadsFactory
        • Credentials
          • Overview
        • ErrorInfo
          • Overview
          • Constructors
            • ErrorInfo()
            • ErrorInfo(std::string, std::string, std::unordered_map< std::string, std::string >)
          • Operators
            • operator==(ErrorInfo const &, ErrorInfo const &)
            • operator!=(ErrorInfo const &, ErrorInfo const &)
          • Functions
            • reason() const
            • domain() const
            • metadata() const
        • future<T>
          • Overview
          • Constructors
            • future()
            • future(future< future< T > > &&)
            • future(future< U > &&)
            • future(std::shared_ptr< shared_state_type >)
          • Functions
            • get()
            • then(F &&)
          • Types
            • shared_state_type
        • future< void >
          • Overview
          • Constructors
            • future()
            • future(future< future< void > > &&)
            • future(future< T > &&)
            • future(std::shared_ptr< shared_state_type >)
          • Functions
            • get()
            • then(F &&)
          • Types
            • shared_state_type
        • GenericPollingPolicy<Retry, Backoff>
          • Overview
          • Constructors
            • GenericPollingPolicy(Retry, Backoff)
          • Functions
            • virtual clone() const
            • virtual OnFailure(Status const &)
            • virtual WaitPeriod()
        • KmsKeyName
          • Overview
          • Constructors
            • KmsKeyName(KmsKeyName const &)
            • KmsKeyName(KmsKeyName &&)
            • KmsKeyName(std::string const &, std::string const &, std::string const &, std::string const &)
          • Operators
            • operator=(KmsKeyName const &)
            • operator=(KmsKeyName &&)
            • operator==(KmsKeyName const &, KmsKeyName const &)
            • operator!=(KmsKeyName const &, KmsKeyName const &)
            • operator<<(std::ostream &, KmsKeyName const &)
          • Functions
            • FullName() const
        • LogBackend
          • Overview
          • Functions
            • Process(LogRecord const &)
            • ProcessWithOwnership(LogRecord)
            • virtual Flush()
        • Logger<bool>
          • Overview
          • Constructors
            • Logger(Severity, char const *, char const *, int, LogSink &)
          • Functions
            • enabled() const
            • LogTo(LogSink &)
            • Stream()
        • Logger< false >
          • Overview
          • Constructors
            • Logger(Severity, char const *, char const *, int, LogSink &)
          • Functions
            • enabled() const
            • LogTo(LogSink &)
            • Stream()
        • LogSink
          • Overview
          • Constructors
            • LogSink()
          • Functions
            • empty() const
            • is_enabled(Severity) const
            • set_minimum_severity(Severity)
            • minimum_severity() const
            • AddBackend(std::shared_ptr< LogBackend >)
            • RemoveBackend(BackendId)
            • ClearBackends()
            • BackendCount() const
            • Log(LogRecord)
            • Flush()
            • static CompileTimeEnabled(Severity)
            • static Instance()
            • static EnableStdClog(Severity)
            • static DisableStdClog()
          • Types
            • BackendId
        • Options
          • Overview
          • Constructors
            • Options()
            • Options(Options const &)
            • Options(Options &&)
          • Operators
            • operator=(Options const &)
            • operator=(Options &&)
          • Functions
            • set(ValueTypeT< T >)
            • has() const
            • unset()
            • get() const
            • lookup(ValueTypeT< T >)
        • PollingPolicy
          • Overview
          • Functions
            • clone() const
            • OnFailure(Status const &)
            • WaitPeriod()
        • Project
          • Overview
          • Constructors
            • Project(Project const &)
            • Project(Project &&)
            • Project(std::string)
          • Operators
            • operator=(Project const &)
            • operator=(Project &&)
            • operator==(Project const &, Project const &)
            • operator!=(Project const &, Project const &)
            • operator<<(std::ostream &, Project const &)
          • Functions
            • project_id() const
            • FullName() const
        • promise<T>
          • Overview
          • Constructors
            • promise()
            • promise(std::function< void()>)
            • promise(null_promise_t)
            • promise(promise &&)
            • promise(promise const &)
          • Operators
            • operator=(promise &&)
            • operator=(promise const &)
          • Functions
            • swap(promise &)
            • get_future()
            • set_value(T)
        • promise< void >
          • Overview
          • Constructors
            • promise()
            • promise(std::function< void()>)
            • promise(null_promise_t)
            • promise(promise &&)
            • promise(promise const &)
          • Operators
            • operator=(promise &&)
            • operator=(promise const &)
          • Functions
            • swap(promise &)
            • get_future()
            • set_value()
        • RuntimeStatusError
          • Overview
          • Constructors
            • RuntimeStatusError(Status)
          • Functions
            • status() const
        • Status
          • Overview
          • Constructors
            • Status(Status const &)
            • Status(Status &&)
            • Status()
            • Status(StatusCode, std::string, ErrorInfo)
          • Operators
            • operator=(Status const &)
            • operator=(Status &&)
            • operator==(Status const &, Status const &)
            • operator!=(Status const &, Status const &)
          • Functions
            • ok() const
            • code() const
            • message() const
            • error_info() const
        • StatusOr<T>
          • Overview
          • Constructors
            • StatusOr()
            • StatusOr(StatusOr const &)
            • StatusOr(StatusOr &&)
            • StatusOr(Status)
            • StatusOr(T &&)
            • StatusOr(T const &)
            • operator bool() const
          • Operators
            • operator*() &
            • operator*() const &
            • operator*() &&
            • operator*() const &&
            • operator->() &
            • operator->() const &
            • operator=(StatusOr const &)
            • operator=(StatusOr &&)
            • operator=(Status)
            • operator=(U &&)
            • operator bool() const
          • Functions
            • value() &
            • value() const &
            • value() &&
            • value() const &&
            • status() const &
            • status() &&
            • ok() const
          • Types
            • value_type
        • StreamRange<T>
          • Overview
          • Constructors
            • IteratorImpl<U>
              • Overview
              • Constructors
                • IteratorImpl()
              • Operators
                • operator==(IteratorImpl const &, IteratorImpl const &)
                • operator!=(IteratorImpl const &, IteratorImpl const &)
                • operator*()
                • operator->()
                • operator*() const
                • operator->() const
                • operator++()
                • operator++(int)
              • Types
                • iterator_category
                • value_type
                • difference_type
                • reference
                • pointer
                • const_reference
                • const_pointer
            • StreamRange(StreamRange const &)
            • StreamRange(StreamRange &&)
            • StreamRange()
          • Operators
            • operator=(StreamRange const &)
            • operator=(StreamRange &&)
          • Functions
            • begin()
            • end()
          • Types
            • value_type
            • iterator
            • difference_type
            • reference
            • pointer
            • const_reference
            • const_pointer
        • TracingOptions
          • Overview
          • Constructors
            • TracingOptions()
            • TracingOptions(TracingOptions const &)
            • TracingOptions(TracingOptions &&)
          • Operators
            • operator=(TracingOptions const &)
            • operator=(TracingOptions &&)
            • operator==(TracingOptions const &, TracingOptions const &)
            • operator!=(TracingOptions const &, TracingOptions const &)
          • Functions
            • SetOptions(std::string const &)
            • single_line_mode() const
            • use_short_repeated_primitives() const
            • truncate_string_field_longer_than() const
      • Structs
        • AccessTokenLifetimeOption
          • Overview
          • Types
            • Type
        • AsyncTimerResult
          • Overview
        • AuthorityOption
          • Overview
          • Types
            • Type
        • CARootsFilePathOption
          • Overview
          • Types
            • Type
        • DelegatesOption
          • Overview
          • Types
            • Type
        • EndpointOption
          • Overview
          • Types
            • Type
        • ExperimentalTag
          • Overview
        • GrpcBackgroundThreadPoolSizeOption
          • Overview
          • Types
            • Type
        • GrpcBackgroundThreadsFactoryOption
          • Overview
          • Types
            • Type
        • GrpcChannelArgumentsNativeOption
          • Overview
          • Types
            • Type
        • GrpcChannelArgumentsOption
          • Overview
          • Types
            • Type
        • GrpcCompletionQueueOption
          • Overview
          • Types
            • Type
        • GrpcCredentialOption
          • Overview
          • Types
            • Type
        • GrpcNumChannelsOption
          • Overview
          • Types
            • Type
        • GrpcTracingOptionsOption
          • Overview
          • Types
            • Type
        • LogRecord
          • Overview
        • NullStream
          • Overview
          • Operators
            • operator<<(T)
        • QuotaUserOption
          • Overview
          • Types
            • Type
        • RestTracingOptionsOption
          • Overview
          • Types
            • Type
        • ScopesOption
          • Overview
          • Types
            • Type
        • ServerTimeoutOption
          • Overview
          • Types
            • Type
        • TracingComponentsOption
          • Overview
          • Types
            • Type
        • UnifiedCredentialsOption
          • Overview
          • Types
            • Type
        • UserAgentProductsOption
          • Overview
          • Types
            • Type
        • UserIpOption
          • Overview
          • Types
            • Type
        • UserProjectOption
          • Overview
          • Types
            • Type
      • Functions
        • MakeInsecureCredentials(Options)
        • MakeGoogleDefaultCredentials(Options)
        • MakeAccessTokenCredentials(std::string const &, std::chrono::system_clock::time_point, Options)
        • MakeImpersonateServiceAccountCredentials(std::shared_ptr< Credentials >, std::string, Options)
        • MakeServiceAccountCredentials(std::string, Options)
        • MakeExternalAccountCredentials(std::string, Options)
        • make_ready_future(T &&)
        • make_ready_future()
        • MakeStatusFromRpcError(grpc::Status const &)
        • MakeStatusFromRpcError(grpc::StatusCode, std::string)
        • MakeStatusFromRpcError(google::rpc::Status const &)
        • MakeKmsKeyName(std::string const &)
        • ParseSeverity(std::string const &)
        • MakeProject(std::string const &)
        • StatusCodeToString(StatusCode)
        • make_status_or(T)
        • SetTerminateHandler(TerminateHandler)
        • GetTerminateHandler()
        • Terminate(char const *)
        • version_major()
        • version_minor()
        • version_patch()
        • version_pre_release()
        • version()
        • version_string()
      • Operators
        • operator<<(std::ostream &, Severity)
        • operator<<(std::ostream &, LogRecord const &)
        • operator<<(std::ostream &, StatusCode)
        • operator<<(std::ostream &, Status const &)
        • operator==(StatusOr< T > const &, StatusOr< T > const &)
        • operator!=(StatusOr< T > const &, StatusOr< T > const &)
      • Enums
        • Idempotency
          • Overview
          • kIdempotent
          • kNonIdempotent
        • Severity
          • Overview
          • GCP_LS_TRACE
          • GCP_LS_DEBUG
          • GCP_LS_INFO
          • GCP_LS_NOTICE
          • GCP_LS_WARNING
          • GCP_LS_ERROR
          • GCP_LS_CRITICAL
          • GCP_LS_ALERT
          • GCP_LS_FATAL
          • GCP_LS_HIGHEST
          • GCP_LS_LOWEST
          • GCP_LS_LOWEST_ENABLED
        • StatusCode
          • Overview
          • kOk
          • kCancelled
          • kUnknown
          • kInvalidArgument
          • kDeadlineExceeded
          • kNotFound
          • kAlreadyExists
          • kPermissionDenied
          • kResourceExhausted
          • kFailedPrecondition
          • kAborted
          • kOutOfRange
          • kUnimplemented
          • kInternal
          • kUnavailable
          • kDataLoss
          • kUnauthenticated
      • Types
        • BackoffPolicy
        • ExponentialBackoffPolicy
        • CommonOptionList
        • UnifiedCredentialsOptionList
        • BackgroundThreadsFactory
        • GrpcOptionList
        • IamUpdater
        • optional
        • OptionList
        • RestOptionList
        • TerminateHandler
    • google::cloud::mocks
      • Overview
      • Functions
        • CurrentOptions()
        • MakeStreamRange(std::vector< T >, Status)
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
  • Home
  • C++
  • Documentation
  • Reference

Struct AccessTokenLifetimeOption (2.13.0)

Stay organized with collections Save and categorize content based on your preferences.
  • 2.34.0-rc (latest)
  • 2.33.0
  • 2.32.0
  • 2.31.0
  • 2.30.0
  • 2.29.0
  • 2.28.0
  • 2.27.0
  • 2.26.0
  • 2.25.1
  • 2.24.0
  • 2.23.0
  • 2.22.0
  • 2.21.0
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.0
  • 2.15.1
  • 2.14.0
  • 2.13.0
  • 2.12.0
  • 2.11.0
  • 2.10.1

Configure the access token lifetime.

Type Aliases

Type

Alias Of: std::chrono::seconds

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-01-08 UTC.

  • Why Google

    • Choosing Google Cloud
    • Trust and security
    • Modern Infrastructure Cloud
    • Multicloud
    • Global infrastructure
    • Customers and case studies
    • Analyst reports
    • Whitepapers
    • Blog
  • Products and pricing

    • Google Cloud pricing
    • Google Workspace pricing
    • See all products
  • Solutions

    • Infrastructure modernization
    • Databases
    • Application modernization
    • Smart analytics
    • Artificial Intelligence
    • Security
    • Productivity & work transformation
    • Industry solutions
    • DevOps solutions
    • Small business solutions
    • See all solutions
  • Resources

    • Google Cloud Affiliate Program
    • Google Cloud documentation
    • Google Cloud quickstarts
    • Google Cloud Marketplace
    • Learn about cloud computing
    • Support
    • Code samples
    • Cloud Architecture Center
    • Training
    • Certifications
    • Google for Developers
    • Google Cloud for Startups
    • System status
    • Release Notes
  • Engage

    • Contact sales
    • Find a Partner
    • Become a Partner
    • Events
    • Podcasts
    • Developer Center
    • Press Corner
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
    • Follow on X
    • Join User Research
    • We're hiring. Join Google Cloud!
    • Google Cloud Community
  • About Google
  • Privacy
  • Site terms
  • Google Cloud terms
  • Manage cookies
  • Our third decade of climate action: join us
  • Sign up for the Google Cloud newsletter Subscribe
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어