@aws-sdk/types
Advanced tools
Comparing version 3.54.1 to 3.55.0
@@ -1,16 +0,7 @@ | ||
/** | ||
* @internal | ||
*/ | ||
export interface Profile { | ||
[key: string]: string | undefined; | ||
} | ||
/** | ||
* @internal | ||
*/ | ||
export interface ParsedIniData { | ||
[key: string]: Profile; | ||
} | ||
/** | ||
* @internal | ||
*/ | ||
export interface SharedConfigFiles { | ||
@@ -17,0 +8,0 @@ credentialsFile: ParsedIniData; |
@@ -1,10 +0,7 @@ | ||
export interface Profile { | ||
[key: string]: string | undefined; | ||
} | ||
export interface ParsedIniData { | ||
[key: string]: Profile; | ||
} | ||
export interface SharedConfigFiles { | ||
@@ -11,0 +8,0 @@ credentialsFile: ParsedIniData; |
@@ -17,2 +17,8 @@ import { Endpoint } from "./http"; | ||
export interface MemoizedProvider<T> { | ||
(options?: { | ||
forceRefresh?: boolean; | ||
}): Promise<T>; | ||
} | ||
export interface BodyLengthCalculator { | ||
@@ -19,0 +25,0 @@ (body: any): number | undefined; |
@@ -37,2 +37,21 @@ import { Endpoint } from "./http"; | ||
/** | ||
* A function that, when invoked, returns a promise that will be fulfilled with | ||
* a value of type T. It memoizes the result from the previous invocation | ||
* instead of calling the underlying resources every time. | ||
* | ||
* You can force the provider to refresh the memoized value by invoke the | ||
* function with optional parameter hash with `forceRefresh` boolean key and | ||
* value `true`. | ||
* | ||
* @example A function that reads credentials from IMDS service that could | ||
* return expired credentials. The SDK will keep using the expired credentials | ||
* until an unretryable service error requiring a force refresh of the | ||
* credentials. | ||
*/ | ||
export interface MemoizedProvider<T> { | ||
(options?: { | ||
forceRefresh?: boolean; | ||
}): Promise<T>; | ||
} | ||
/** | ||
* A function that, given a request body, determines the | ||
@@ -39,0 +58,0 @@ * length of the body. This is used to determine the Content-Length |
{ | ||
"name": "@aws-sdk/types", | ||
"version": "3.54.1", | ||
"version": "3.55.0", | ||
"main": "./dist-cjs/index.js", | ||
@@ -47,4 +47,4 @@ "module": "./dist-es/index.js", | ||
"typedoc": "0.19.2", | ||
"typescript": "~4.3.5" | ||
"typescript": "~4.6.2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162955
1746