AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Evaluation — 92%
↑ 1.05xAgent success when using this tile
A utility that loads AWS credentials from a configuration profile that uses an external credential process. This enables authentication with AWS services using credentials obtained from custom credential providers.
@generates
interface ProcessCredentials {
accessKeyId: string;
secretAccessKey: string;
sessionToken?: string;
expiration?: Date;
}
interface ProfileLoaderConfig {
profileName: string;
configFilePath: string;
}
/**
* Loads AWS credentials from a profile that uses credential_process.
*
* @param config - Configuration specifying profile and config file location
* @returns Promise resolving to process credentials
* @throws Error if profile doesn't specify credential_process or process fails
*/
async function loadCredentialsFromProfile(
config: ProfileLoaderConfig
): Promise<ProcessCredentials>;
/**
* Creates an STS client using credentials from a process-based profile.
*
* @param profileName - Name of the AWS config profile to use
* @param configFilePath - Path to the AWS config file
* @returns Promise resolving to configured STS client
*/
async function createSTSClientFromProfile(
profileName: string,
configFilePath: string
): Promise<any>;
export { loadCredentialsFromProfile, createSTSClientFromProfile, ProcessCredentials, ProfileLoaderConfig };Provides the STS client for AWS Security Token Service operations and credential management.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-aws-sdk--client-stsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10