@aws-sdk/types 3.272.0 → 3.290.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/dist-cjs/identity/Identity.js +0 -1
- package/dist-es/identity/Identity.js +0 -1
- package/dist-types/abort.d.ts +7 -0
- package/dist-types/auth.d.ts +8 -0
- package/dist-types/checksum.d.ts +4 -0
- package/dist-types/client.d.ts +2 -0
- package/dist-types/command.d.ts +3 -0
- package/dist-types/credentials.d.ts +4 -0
- package/dist-types/crypto.d.ts +11 -0
- package/dist-types/dns.d.ts +10 -0
- package/dist-types/endpoint.d.ts +21 -0
- package/dist-types/eventStream.d.ts +61 -0
- package/dist-types/http.d.ts +24 -0
- package/dist-types/identity/AnonymousIdentity.d.ts +3 -0
- package/dist-types/identity/AwsCredentialIdentity.d.ts +6 -0
- package/dist-types/identity/Identity.d.ts +6 -0
- package/dist-types/identity/LoginIdentity.d.ts +6 -0
- package/dist-types/identity/TokenIdentity.d.ts +6 -0
- package/dist-types/logger.d.ts +6 -0
- package/dist-types/middleware.d.ts +108 -0
- package/dist-types/pagination.d.ts +4 -0
- package/dist-types/profile.d.ts +11 -0
- package/dist-types/request.d.ts +3 -0
- package/dist-types/response.d.ts +9 -0
- package/dist-types/retry.d.ts +30 -0
- package/dist-types/serde.d.ts +25 -0
- package/dist-types/shapes.d.ts +8 -0
- package/dist-types/signature.d.ts +28 -0
- package/dist-types/stream.d.ts +5 -0
- package/dist-types/token.d.ts +4 -0
- package/dist-types/transfer.d.ts +9 -0
- package/dist-types/util.d.ts +24 -0
- package/dist-types/waiter.d.ts +3 -0
- package/package.json +1 -1
package/dist-types/util.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { Endpoint } from "./http";
|
|
|
2
2
|
import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware";
|
|
3
3
|
import { MetadataBearer } from "./response";
|
|
4
4
|
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
5
7
|
* A function that, given a TypedArray of bytes, can produce a string
|
|
6
8
|
* representation thereof.
|
|
7
9
|
*
|
|
@@ -13,6 +15,8 @@ export interface Encoder {
|
|
|
13
15
|
(input: Uint8Array): string;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
16
20
|
* A function that, given a string, can derive the bytes represented by that
|
|
17
21
|
* string.
|
|
18
22
|
*
|
|
@@ -24,6 +28,8 @@ export interface Decoder {
|
|
|
24
28
|
(input: string): Uint8Array;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
31
|
+
* @public
|
|
32
|
+
*
|
|
27
33
|
* A function that, when invoked, returns a promise that will be fulfilled with
|
|
28
34
|
* a value of type T.
|
|
29
35
|
*
|
|
@@ -34,6 +40,8 @@ export interface Provider<T> {
|
|
|
34
40
|
(): Promise<T>;
|
|
35
41
|
}
|
|
36
42
|
/**
|
|
43
|
+
* @public
|
|
44
|
+
*
|
|
37
45
|
* A function that, when invoked, returns a promise that will be fulfilled with
|
|
38
46
|
* a value of type T. It memoizes the result from the previous invocation
|
|
39
47
|
* instead of calling the underlying resources every time.
|
|
@@ -53,6 +61,8 @@ export interface MemoizedProvider<T> {
|
|
|
53
61
|
}): Promise<T>;
|
|
54
62
|
}
|
|
55
63
|
/**
|
|
64
|
+
* @public
|
|
65
|
+
*
|
|
56
66
|
* A function that, given a request body, determines the
|
|
57
67
|
* length of the body. This is used to determine the Content-Length
|
|
58
68
|
* that should be sent with a request.
|
|
@@ -64,6 +74,8 @@ export interface BodyLengthCalculator {
|
|
|
64
74
|
(body: any): number | undefined;
|
|
65
75
|
}
|
|
66
76
|
/**
|
|
77
|
+
* @public
|
|
78
|
+
*
|
|
67
79
|
* Interface that specifies the retry behavior
|
|
68
80
|
*/
|
|
69
81
|
export interface RetryStrategy {
|
|
@@ -79,12 +91,16 @@ export interface RetryStrategy {
|
|
|
79
91
|
retry: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>) => Promise<FinalizeHandlerOutput<Output>>;
|
|
80
92
|
}
|
|
81
93
|
/**
|
|
94
|
+
* @public
|
|
95
|
+
*
|
|
82
96
|
* Parses a URL in string form into an Endpoint object.
|
|
83
97
|
*/
|
|
84
98
|
export interface UrlParser {
|
|
85
99
|
(url: string | URL): Endpoint;
|
|
86
100
|
}
|
|
87
101
|
/**
|
|
102
|
+
* @public
|
|
103
|
+
*
|
|
88
104
|
* Object containing regionalization information of
|
|
89
105
|
* AWS services.
|
|
90
106
|
*/
|
|
@@ -96,6 +112,8 @@ export interface RegionInfo {
|
|
|
96
112
|
signingRegion?: string;
|
|
97
113
|
}
|
|
98
114
|
/**
|
|
115
|
+
* @public
|
|
116
|
+
*
|
|
99
117
|
* Options to pass when calling {@link RegionInfoProvider}
|
|
100
118
|
*/
|
|
101
119
|
export interface RegionInfoProviderOptions {
|
|
@@ -111,6 +129,8 @@ export interface RegionInfoProviderOptions {
|
|
|
111
129
|
useFipsEndpoint: boolean;
|
|
112
130
|
}
|
|
113
131
|
/**
|
|
132
|
+
* @public
|
|
133
|
+
*
|
|
114
134
|
* Function returns designated service's regionalization
|
|
115
135
|
* information from given region. Each service client
|
|
116
136
|
* comes with its regionalization provider. it serves
|
|
@@ -120,11 +140,15 @@ export interface RegionInfoProvider {
|
|
|
120
140
|
(region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
|
|
121
141
|
}
|
|
122
142
|
/**
|
|
143
|
+
* @public
|
|
144
|
+
*
|
|
123
145
|
* A tuple that represents an API name and optional version
|
|
124
146
|
* of a library built using the AWS SDK.
|
|
125
147
|
*/
|
|
126
148
|
export declare type UserAgentPair = [name: string, version?: string];
|
|
127
149
|
/**
|
|
150
|
+
* @public
|
|
151
|
+
*
|
|
128
152
|
* User agent data that to be put into the request's user
|
|
129
153
|
* agent.
|
|
130
154
|
*/
|
package/dist-types/waiter.d.ts
CHANGED