@@ -2,6 +2,47 @@ export * from "./fromCognitoIdentity";
22export * from "./fromCognitoIdentityPool" ;
33export { fromHttp } from "@aws-sdk/credential-provider-http" ;
44export type { FromHttpOptions , HttpProviderCredentials } from "@aws-sdk/credential-provider-http" ;
5- export * from "./fromEnv" ;
65export * from "./fromTemporaryCredentials" ;
76export * from "./fromWebToken" ;
7+
8+ export const fromContainerMetadata = async ( ) => {
9+ notAvailable ( "fromContainerMetadata" ) ;
10+ } ;
11+
12+ export const fromEnv = async ( ) => {
13+ notAvailable ( "fromEnv" ) ;
14+ } ;
15+
16+ export const fromIni = async ( ) => {
17+ notAvailable ( "fromIni" ) ;
18+ } ;
19+
20+ export const fromInstanceMetadata = async ( ) => {
21+ notAvailable ( "fromInstanceMetadata" ) ;
22+ } ;
23+
24+ export const fromNodeProviderChain = async ( ) => {
25+ notAvailable ( "fromNodeProviderChain" ) ;
26+ } ;
27+
28+ export const fromProcess = async ( ) => {
29+ notAvailable ( "fromProcess" ) ;
30+ } ;
31+
32+ export const fromSSO = async ( ) => {
33+ notAvailable ( "fromSSO" ) ;
34+ } ;
35+
36+ export const fromTokenFile = async ( ) => {
37+ notAvailable ( "fromTokenFile" ) ;
38+ } ;
39+
40+ /**
41+ * @internal
42+ */
43+ const notAvailable = ( name : string ) : never => {
44+ throw new Error (
45+ `${ name } is not available in the browser mode or similar environment.
46+ See https://www.npmjs.com/package/@aws-sdk/credential-providers for usage.`
47+ ) ;
48+ } ;
0 commit comments