Skip to content

Struct star::S3Credentials

ClassList > star > S3Credentials

AWS Credentials with resolution chain. More...

  • #include <stards.h>

Public Attributes

Type Name
std::string access_key
std::string secret_key
std::string session_token

Public Static Functions

Type Name
S3Credentials resolve (const std::string & profile="")
Resolve credentials using standard AWS chain.

Detailed Description

Resolves credentials in standard AWS order: * Environment variables * AWS SSO session * Credentials file

Public Attributes Documentation

variable access_key

std::string star::S3Credentials::access_key;

variable secret_key

std::string star::S3Credentials::secret_key;

variable session_token

std::string star::S3Credentials::session_token;

Public Static Functions Documentation

function resolve

Resolve credentials using standard AWS chain.

static inline S3Credentials star::S3Credentials::resolve (
    const std::string & profile=""
) 

Parameters:

  • profile Profile name (from AWS_PROFILE env var or "default")

Returns:

S3Credentials

Exception:

  • std::runtime_error if no credentials found


The documentation for this class was generated from the following file StarDS/include/stards.h