AwsCredentials

org.llm4s.llmconnect.auth.aws.AwsCredentials
See theAwsCredentials companion object
@Experimental
final case class AwsCredentials

The AWS credentials AwsSecretsManagerApiKeyProvider signs its requests with (Signature Version 4): an access key id, its secret access key and, for temporary credentials from STS, a session token.

val longLived = AwsCredentials("AKIA...", Secret(secretAccessKey))
val temporary = AwsCredentials("ASIA...", Secret(secretAccessKey)).withSessionToken(Secret(sessionToken))

Value parameters

accessKeyId

the access key id, AKIA... or, for temporary credentials, ASIA...; not secret

secretAccessKey

the secret access key; never printed by toString nor put in an error

sessionToken

the session token of temporary credentials, sent as X-Amz-Security-Token

Attributes

Companion
object
Source
AwsCredentials.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
AwsCredentials.scala
def withSessionToken(sessionToken: Secret): AwsCredentials

The session token of temporary credentials.

The session token of temporary credentials.

Attributes

Source
AwsCredentials.scala

The session token of temporary credentials, or none for long-lived ones.

The session token of temporary credentials, or none for long-lived ones.

Attributes

Source
AwsCredentials.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product