ImdsClient

IMDSv2 Client

This client supports fetching tokens, retrying failures, and token caching according to the specified TTL.

NOTE: This client ONLY supports IMDSv2. It will not fallback to IMDSv1. See transitioning to IMDSv2 for more information.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun get(path: String): String

Retrieve information from instance metadata service (IMDS).