import{t as e}from"./CiotqGya.js";import{m as t}from"./BPr73Pj8.js";var n=`AWS_ACCESS_KEY_ID`,r=`AWS_SECRET_ACCESS_KEY`,i=`AWS_SESSION_TOKEN`,a=`AWS_CREDENTIAL_EXPIRATION`,o=`AWS_CREDENTIAL_SCOPE`,s=`AWS_ACCOUNT_ID`,c=c=>async()=>{c?.logger?.debug(`@aws-sdk/credential-provider-env - fromEnv`);let l={}[n],u={}[r],d={}[i],f={}[a],p={}[o],m={}[s];if(l&&u){let t={accessKeyId:l,secretAccessKey:u,...d&&{sessionToken:d},...f&&{expiration:new Date(f)},...p&&{credentialScope:p},...m&&{accountId:m}};return e(t,`CREDENTIALS_ENV_VARS`,`g`),t}throw new t(`Unable to find environment variable credentials.`,{logger:c?.logger})};export{r as a,n as i,o as n,i as o,a as r,c as s,s as t};