// @bun
import{tb as A}from"./chunk-f0ksrase.js";import{ub as C}from"./chunk-08bm2xax.js";import{vb as _}from"./chunk-qqp394c2.js";var S=_(A(),1),p=_(C(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{T as fromEnv,i as ENV_SESSION,a as ENV_SECRET,N as ENV_KEY,I as ENV_EXPIRATION,d as ENV_CREDENTIAL_SCOPE,v as ENV_ACCOUNT_ID};export{N as qb,a as rb,T as sb};
