@aws-sdk/types 3.54.1 → 3.109.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 +35 -0
- package/dist-types/eventStream.d.ts +1 -3
- package/dist-types/pagination.d.ts +8 -0
- package/dist-types/profile.d.ts +5 -9
- package/dist-types/ts3.4/eventStream.d.ts +1 -3
- package/dist-types/ts3.4/pagination.d.ts +2 -0
- package/dist-types/ts3.4/profile.d.ts +4 -4
- package/dist-types/ts3.4/util.d.ts +6 -0
- package/dist-types/util.d.ts +19 -0
- package/package.json +2 -2
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.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **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))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/types
|
|
@@ -62,9 +62,7 @@ export interface EventStreamSerdeContext {
|
|
|
62
62
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
63
63
|
}
|
|
64
64
|
export interface EventStreamMarshaller {
|
|
65
|
-
deserialize: (body: any, deserializer: (input:
|
|
66
|
-
[event: string]: Message;
|
|
67
|
-
}) => any) => AsyncIterable<any>;
|
|
65
|
+
deserialize: (body: any, deserializer: (input: Record<string, Message>) => any) => AsyncIterable<any>;
|
|
68
66
|
serialize: (input: AsyncIterable<any>, serializer: (event: any) => Message) => any;
|
|
69
67
|
}
|
|
70
68
|
export interface EventStreamRequestSigner {
|
|
@@ -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
|
}
|
package/dist-types/profile.d.ts
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export interface Profile {
|
|
1
|
+
export interface IniSection {
|
|
5
2
|
[key: string]: string | undefined;
|
|
6
3
|
}
|
|
7
4
|
/**
|
|
8
|
-
* @
|
|
5
|
+
* @deprecated: Please use IniSection
|
|
9
6
|
*/
|
|
7
|
+
export interface Profile extends IniSection {
|
|
8
|
+
}
|
|
10
9
|
export interface ParsedIniData {
|
|
11
|
-
[key: string]:
|
|
10
|
+
[key: string]: IniSection;
|
|
12
11
|
}
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
12
|
export interface SharedConfigFiles {
|
|
17
13
|
credentialsFile: ParsedIniData;
|
|
18
14
|
configFile: ParsedIniData;
|
|
@@ -56,9 +56,7 @@ export interface EventStreamSerdeContext {
|
|
|
56
56
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
57
57
|
}
|
|
58
58
|
export interface EventStreamMarshaller {
|
|
59
|
-
deserialize: (body: any, deserializer: (input:
|
|
60
|
-
[event: string]: Message;
|
|
61
|
-
}) => any) => AsyncIterable<any>;
|
|
59
|
+
deserialize: (body: any, deserializer: (input: Record<string, Message>) => any) => AsyncIterable<any>;
|
|
62
60
|
serialize: (input: AsyncIterable<any>, serializer: (event: any) => Message) => any;
|
|
63
61
|
}
|
|
64
62
|
export interface EventStreamRequestSigner {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Profile {
|
|
1
|
+
export interface IniSection {
|
|
3
2
|
[key: string]: string | undefined;
|
|
4
3
|
}
|
|
5
4
|
|
|
5
|
+
export interface Profile extends IniSection {
|
|
6
|
+
}
|
|
6
7
|
export interface ParsedIniData {
|
|
7
|
-
[key: string]:
|
|
8
|
+
[key: string]: IniSection;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
10
|
export interface SharedConfigFiles {
|
|
11
11
|
credentialsFile: ParsedIniData;
|
|
12
12
|
configFile: ParsedIniData;
|
|
@@ -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
|
}
|
package/dist-types/util.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "3.109.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.
|
|
47
|
+
"typescript": "~4.6.2"
|
|
48
48
|
}
|
|
49
49
|
}
|