@aws-sdk/types 3.54.0 → 3.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **types:** remove [@internal](https://github.com/internal) jsdoc tag from profile types ([#3452](https://github.com/aws/aws-sdk-js-v3/issues/3452)) ([2d7c151](https://github.com/aws/aws-sdk-js-v3/commit/2d7c151bb6d9ccfdd1eb3bd8b007e4ebcdd5daa3))
23
+
24
+
25
+ ### Features
26
+
27
+ * **property-provider:** memoize() supports force refresh ([#3413](https://github.com/aws/aws-sdk-js-v3/issues/3413)) ([a79f962](https://github.com/aws/aws-sdk-js-v3/commit/a79f962873ff11a3d6f98199224155bd2ddc0b1e))
28
+
29
+
30
+
31
+
32
+
33
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
34
+
35
+ **Note:** Version bump only for package @aws-sdk/types
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
42
 
8
43
 
package/dist-cjs/index.js CHANGED
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./http"), exports);
11
11
  tslib_1.__exportStar(require("./logger"), exports);
12
12
  tslib_1.__exportStar(require("./middleware"), exports);
13
13
  tslib_1.__exportStar(require("./pagination"), exports);
14
+ tslib_1.__exportStar(require("./profile"), exports);
14
15
  tslib_1.__exportStar(require("./response"), exports);
15
16
  tslib_1.__exportStar(require("./serde"), exports);
16
17
  tslib_1.__exportStar(require("./shapes"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-es/index.js CHANGED
@@ -8,6 +8,7 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
@@ -0,0 +1 @@
1
+ export {};
@@ -8,6 +8,7 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
@@ -11,4 +11,12 @@ export interface PaginationConfiguration {
11
11
  client: Client<any, any, any>;
12
12
  pageSize?: number;
13
13
  startingToken?: any;
14
+ /**
15
+ * For some APIs, such as CloudWatchLogs events, the next page token will always
16
+ * be present.
17
+ *
18
+ * When true, this config field will have the paginator stop when the token doesn't change
19
+ * instead of when it is not present.
20
+ */
21
+ stopOnSameToken?: boolean;
14
22
  }
@@ -0,0 +1,10 @@
1
+ export interface Profile {
2
+ [key: string]: string | undefined;
3
+ }
4
+ export interface ParsedIniData {
5
+ [key: string]: Profile;
6
+ }
7
+ export interface SharedConfigFiles {
8
+ credentialsFile: ParsedIniData;
9
+ configFile: ParsedIniData;
10
+ }
@@ -8,6 +8,7 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
@@ -6,4 +6,6 @@ export interface PaginationConfiguration {
6
6
  client: Client<any, any, any>;
7
7
  pageSize?: number;
8
8
  startingToken?: any;
9
+
10
+ stopOnSameToken?: boolean;
9
11
  }
@@ -0,0 +1,10 @@
1
+ export interface Profile {
2
+ [key: string]: string | undefined;
3
+ }
4
+ export interface ParsedIniData {
5
+ [key: string]: Profile;
6
+ }
7
+ export interface SharedConfigFiles {
8
+ credentialsFile: ParsedIniData;
9
+ configFile: ParsedIniData;
10
+ }
@@ -14,6 +14,12 @@ export interface Provider<T> {
14
14
  (): Promise<T>;
15
15
  }
16
16
 
17
+ export interface MemoizedProvider<T> {
18
+ (options?: {
19
+ forceRefresh?: boolean;
20
+ }): Promise<T>;
21
+ }
22
+
17
23
  export interface BodyLengthCalculator {
18
24
  (body: any): number | undefined;
19
25
  }
@@ -33,6 +33,25 @@ export interface Decoder {
33
33
  export interface Provider<T> {
34
34
  (): Promise<T>;
35
35
  }
36
+ /**
37
+ * A function that, when invoked, returns a promise that will be fulfilled with
38
+ * a value of type T. It memoizes the result from the previous invocation
39
+ * instead of calling the underlying resources every time.
40
+ *
41
+ * You can force the provider to refresh the memoized value by invoke the
42
+ * function with optional parameter hash with `forceRefresh` boolean key and
43
+ * value `true`.
44
+ *
45
+ * @example A function that reads credentials from IMDS service that could
46
+ * return expired credentials. The SDK will keep using the expired credentials
47
+ * until an unretryable service error requiring a force refresh of the
48
+ * credentials.
49
+ */
50
+ export interface MemoizedProvider<T> {
51
+ (options?: {
52
+ forceRefresh?: boolean;
53
+ }): Promise<T>;
54
+ }
36
55
  /**
37
56
  * A function that, given a request body, determines the
38
57
  * length of the body. This is used to determine the Content-Length
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.54.0",
3
+ "version": "3.78.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -44,6 +44,6 @@
44
44
  "downlevel-dts": "0.7.0",
45
45
  "rimraf": "3.0.2",
46
46
  "typedoc": "0.19.2",
47
- "typescript": "~4.3.5"
47
+ "typescript": "~4.6.2"
48
48
  }
49
49
  }