@aws-sdk/types 3.347.0 → 3.369.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.
Files changed (89) hide show
  1. package/dist-cjs/auth.js +2 -5
  2. package/dist-cjs/connection.js +2 -0
  3. package/dist-cjs/endpoint.js +2 -5
  4. package/dist-cjs/index.js +1 -0
  5. package/dist-cjs/transfer.js +2 -6
  6. package/dist-es/auth.js +1 -5
  7. package/dist-es/connection.js +1 -0
  8. package/dist-es/endpoint.js +1 -5
  9. package/dist-es/index.js +1 -0
  10. package/dist-es/transfer.js +1 -6
  11. package/dist-types/abort.d.ts +1 -49
  12. package/dist-types/auth.d.ts +1 -55
  13. package/dist-types/blob/blob-types.d.ts +22 -0
  14. package/dist-types/blob/runtime-blob-types.browser.d.ts +6 -0
  15. package/dist-types/blob/runtime-blob-types.node.d.ts +9 -0
  16. package/dist-types/checksum.d.ts +1 -63
  17. package/dist-types/client.d.ts +1 -25
  18. package/dist-types/command.d.ts +1 -10
  19. package/dist-types/connection.d.ts +1 -0
  20. package/dist-types/crypto.d.ts +1 -60
  21. package/dist-types/encode.d.ts +1 -19
  22. package/dist-types/endpoint.d.ts +1 -77
  23. package/dist-types/eventStream.d.ts +1 -108
  24. package/dist-types/http.d.ts +2 -87
  25. package/dist-types/identity/AwsCredentialIdentity.d.ts +1 -23
  26. package/dist-types/identity/Identity.d.ts +1 -15
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/logger.d.ts +2 -13
  29. package/dist-types/middleware.d.ts +1 -475
  30. package/dist-types/pagination.d.ts +1 -26
  31. package/dist-types/profile.d.ts +1 -22
  32. package/dist-types/response.d.ts +1 -40
  33. package/dist-types/retry.d.ts +1 -128
  34. package/dist-types/serde.d.ts +1 -104
  35. package/dist-types/shapes.d.ts +1 -72
  36. package/dist-types/signature.d.ts +1 -150
  37. package/dist-types/stream.d.ts +1 -22
  38. package/dist-types/transfer.d.ts +1 -33
  39. package/dist-types/ts3.4/abort.d.ts +1 -11
  40. package/dist-types/ts3.4/auth.d.ts +5 -17
  41. package/dist-types/ts3.4/blob/blob-types.d.ts +7 -0
  42. package/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +1 -0
  43. package/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +2 -0
  44. package/dist-types/ts3.4/checksum.d.ts +1 -12
  45. package/dist-types/ts3.4/client.d.ts +1 -52
  46. package/dist-types/ts3.4/command.d.ts +1 -17
  47. package/dist-types/ts3.4/connection.d.ts +6 -0
  48. package/dist-types/ts3.4/crypto.d.ts +7 -14
  49. package/dist-types/ts3.4/encode.d.ts +6 -19
  50. package/dist-types/ts3.4/endpoint.d.ts +9 -43
  51. package/dist-types/ts3.4/eventStream.d.ts +24 -77
  52. package/dist-types/ts3.4/http.d.ts +10 -26
  53. package/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -8
  54. package/dist-types/ts3.4/identity/Identity.d.ts +1 -6
  55. package/dist-types/ts3.4/index.d.ts +1 -0
  56. package/dist-types/ts3.4/logger.d.ts +2 -7
  57. package/dist-types/ts3.4/middleware.d.ts +40 -211
  58. package/dist-types/ts3.4/pagination.d.ts +1 -8
  59. package/dist-types/ts3.4/profile.d.ts +6 -7
  60. package/dist-types/ts3.4/response.d.ts +1 -11
  61. package/dist-types/ts3.4/retry.d.ts +12 -43
  62. package/dist-types/ts3.4/serde.d.ts +12 -46
  63. package/dist-types/ts3.4/shapes.d.ts +6 -24
  64. package/dist-types/ts3.4/signature.d.ts +15 -59
  65. package/dist-types/ts3.4/stream.d.ts +4 -16
  66. package/dist-types/ts3.4/transfer.d.ts +7 -26
  67. package/dist-types/ts3.4/uri.d.ts +1 -11
  68. package/dist-types/ts3.4/util.d.ts +14 -50
  69. package/dist-types/ts3.4/waiter.d.ts +1 -9
  70. package/dist-types/uri.d.ts +1 -17
  71. package/dist-types/util.d.ts +1 -155
  72. package/dist-types/waiter.d.ts +1 -35
  73. package/package.json +8 -1
  74. package/dist-cjs/connection/index.js +0 -6
  75. package/dist-es/connection/index.js +0 -3
  76. package/dist-types/connection/config.d.ts +0 -7
  77. package/dist-types/connection/index.d.ts +0 -3
  78. package/dist-types/connection/manager.d.ts +0 -28
  79. package/dist-types/connection/pool.d.ts +0 -24
  80. package/dist-types/ts3.4/connection/config.d.ts +0 -3
  81. package/dist-types/ts3.4/connection/index.d.ts +0 -3
  82. package/dist-types/ts3.4/connection/manager.d.ts +0 -14
  83. package/dist-types/ts3.4/connection/pool.d.ts +0 -9
  84. /package/dist-cjs/{connection/config.js → blob/blob-types.js} +0 -0
  85. /package/dist-cjs/{connection/manager.js → blob/runtime-blob-types.browser.js} +0 -0
  86. /package/dist-cjs/{connection/pool.js → blob/runtime-blob-types.node.js} +0 -0
  87. /package/dist-es/{connection/config.js → blob/blob-types.js} +0 -0
  88. /package/dist-es/{connection/manager.js → blob/runtime-blob-types.browser.js} +0 -0
  89. /package/dist-es/{connection/pool.js → blob/runtime-blob-types.node.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { AbortSignal } from "./abort";
2
- import { URI } from "./uri";
1
+ import { HttpResponse } from "@smithy/types";
2
+ export { Endpoint, HeaderBag, HttpHandlerOptions, HttpMessage, HttpRequest, HttpResponse, QueryParameterBag, } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  *
@@ -22,78 +22,6 @@ export interface Headers extends Map<string, string> {
22
22
  */
23
23
  withoutHeader(headerName: string): Headers;
24
24
  }
25
- /**
26
- * @public
27
- *
28
- * A mapping of header names to string values. Multiple values for the same
29
- * header should be represented as a single string with values separated by
30
- * `, `.
31
- *
32
- * Keys should be considered case insensitive, even if this is not enforced by a
33
- * particular implementation. For example, given the following HeaderBag, where
34
- * keys differ only in case:
35
- *
36
- * ```json
37
- * {
38
- * 'x-amz-date': '2000-01-01T00:00:00Z',
39
- * 'X-Amz-Date': '2001-01-01T00:00:00Z'
40
- * }
41
- * ```
42
- *
43
- * The SDK may at any point during processing remove one of the object
44
- * properties in favor of the other. The headers may or may not be combined, and
45
- * the SDK will not deterministically select which header candidate to use.
46
- */
47
- export type HeaderBag = Record<string, string>;
48
- /**
49
- * @public
50
- *
51
- * Represents an HTTP message with headers and an optional static or streaming
52
- * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
53
- */
54
- export interface HttpMessage {
55
- headers: HeaderBag;
56
- body?: any;
57
- }
58
- /**
59
- * @public
60
- *
61
- * A mapping of query parameter names to strings or arrays of strings, with the
62
- * second being used when a parameter contains a list of values. Value can be set
63
- * to null when query is not in key-value pairs shape
64
- */
65
- export type QueryParameterBag = Record<string, string | Array<string> | null>;
66
- /**
67
- * @public
68
- *
69
- * @deprecated use {@link EndpointV2} from `@aws-sdk/types`.
70
- */
71
- export interface Endpoint {
72
- protocol: string;
73
- hostname: string;
74
- port?: number;
75
- path: string;
76
- query?: QueryParameterBag;
77
- }
78
- /**
79
- * @public
80
- *
81
- * Interface an HTTP request class. Contains
82
- * addressing information in addition to standard message properties.
83
- */
84
- export interface HttpRequest extends HttpMessage, URI {
85
- method: string;
86
- }
87
- /**
88
- * @public
89
- *
90
- * Represents an HTTP message as received in reply to a request. Contains a
91
- * numeric status code in addition to standard message properties.
92
- */
93
- export interface HttpResponse extends HttpMessage {
94
- statusCode: number;
95
- reason?: string;
96
- }
97
25
  /**
98
26
  * @public
99
27
  *
@@ -103,16 +31,3 @@ export interface HttpResponse extends HttpMessage {
103
31
  export interface ResolvedHttpResponse extends HttpResponse {
104
32
  body: string;
105
33
  }
106
- /**
107
- * @public
108
- *
109
- * Represents the options that may be passed to an Http Handler.
110
- */
111
- export interface HttpHandlerOptions {
112
- abortSignal?: AbortSignal;
113
- /**
114
- * The maximum time in milliseconds that the connection phase of a request
115
- * may take before the connection attempt is abandoned.
116
- */
117
- requestTimeout?: number;
118
- }
@@ -1,23 +1 @@
1
- import { Identity, IdentityProvider } from "./Identity";
2
- /**
3
- * @public
4
- */
5
- export interface AwsCredentialIdentity extends Identity {
6
- /**
7
- * AWS access key ID
8
- */
9
- readonly accessKeyId: string;
10
- /**
11
- * AWS secret access key
12
- */
13
- readonly secretAccessKey: string;
14
- /**
15
- * A security or session token to use with these credentials. Usually
16
- * present for temporary credentials.
17
- */
18
- readonly sessionToken?: string;
19
- }
20
- /**
21
- * @public
22
- */
23
- export type AwsCredentialIdentityProvider = IdentityProvider<AwsCredentialIdentity>;
1
+ export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
@@ -1,15 +1 @@
1
- /**
2
- * @public
3
- */
4
- export interface Identity {
5
- /**
6
- * A `Date` when the identity or credential will no longer be accepted.
7
- */
8
- readonly expiration?: Date;
9
- }
10
- /**
11
- * @public
12
- */
13
- export interface IdentityProvider<IdentityT extends Identity> {
14
- (identityProperties?: Record<string, any>): Promise<IdentityT>;
15
- }
1
+ export { Identity, IdentityProvider } from "@smithy/types";
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -1,3 +1,5 @@
1
+ import { Logger } from "@smithy/types";
2
+ export { Logger } from "@smithy/types";
1
3
  /**
2
4
  * @public
3
5
  *
@@ -18,16 +20,3 @@ export interface LoggerOptions {
18
20
  logger?: Logger;
19
21
  logLevel?: LogLevel;
20
22
  }
21
- /**
22
- * @public
23
- *
24
- * Represents a logger object that is available in HandlerExecutionContext
25
- * throughout the middleware stack.
26
- */
27
- export interface Logger {
28
- trace?: (...content: any[]) => void;
29
- debug: (...content: any[]) => void;
30
- info: (...content: any[]) => void;
31
- warn: (...content: any[]) => void;
32
- error: (...content: any[]) => void;
33
- }
@@ -1,475 +1 @@
1
- import { AuthScheme, HttpAuthDefinition } from "./auth";
2
- import { EndpointV2 } from "./endpoint";
3
- import { Logger } from "./logger";
4
- import { UserAgent } from "./util";
5
- /**
6
- * @public
7
- */
8
- export interface InitializeHandlerArguments<Input extends object> {
9
- /**
10
- * User input to a command. Reflects the userland representation of the
11
- * union of data types the command can effectively handle.
12
- */
13
- input: Input;
14
- }
15
- /**
16
- * @public
17
- */
18
- export interface InitializeHandlerOutput<Output extends object> extends DeserializeHandlerOutput<Output> {
19
- output: Output;
20
- }
21
- /**
22
- * @public
23
- */
24
- export interface SerializeHandlerArguments<Input extends object> extends InitializeHandlerArguments<Input> {
25
- /**
26
- * The user input serialized as a request object. The request object is unknown,
27
- * so you cannot modify it directly. When work with request, you need to guard its
28
- * type to e.g. HttpRequest with 'instanceof' operand
29
- *
30
- * During the build phase of the execution of a middleware stack, a built
31
- * request may or may not be available.
32
- */
33
- request?: unknown;
34
- }
35
- /**
36
- * @public
37
- */
38
- export interface SerializeHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
39
- }
40
- /**
41
- * @public
42
- */
43
- export interface BuildHandlerArguments<Input extends object> extends FinalizeHandlerArguments<Input> {
44
- }
45
- /**
46
- * @public
47
- */
48
- export interface BuildHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
49
- }
50
- /**
51
- * @public
52
- */
53
- export interface FinalizeHandlerArguments<Input extends object> extends SerializeHandlerArguments<Input> {
54
- /**
55
- * The user input serialized as a request.
56
- */
57
- request: unknown;
58
- }
59
- /**
60
- * @public
61
- */
62
- export interface FinalizeHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
63
- }
64
- /**
65
- * @public
66
- */
67
- export interface DeserializeHandlerArguments<Input extends object> extends FinalizeHandlerArguments<Input> {
68
- }
69
- /**
70
- * @public
71
- */
72
- export interface DeserializeHandlerOutput<Output extends object> {
73
- /**
74
- * The raw response object from runtime is deserialized to structured output object.
75
- * The response object is unknown so you cannot modify it directly. When work with
76
- * response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand.
77
- *
78
- * During the deserialize phase of the execution of a middleware stack, a deserialized
79
- * response may or may not be available
80
- */
81
- response: unknown;
82
- output?: Output;
83
- }
84
- /**
85
- * @public
86
- */
87
- export interface InitializeHandler<Input extends object, Output extends object> {
88
- /**
89
- * Asynchronously converts an input object into an output object.
90
- *
91
- * @param args - An object containing a input to the command as well as any
92
- * associated or previously generated execution artifacts.
93
- */
94
- (args: InitializeHandlerArguments<Input>): Promise<InitializeHandlerOutput<Output>>;
95
- }
96
- /**
97
- * @public
98
- */
99
- export type Handler<Input extends object, Output extends object> = InitializeHandler<Input, Output>;
100
- /**
101
- * @public
102
- */
103
- export interface SerializeHandler<Input extends object, Output extends object> {
104
- /**
105
- * Asynchronously converts an input object into an output object.
106
- *
107
- * @param args - An object containing a input to the command as well as any
108
- * associated or previously generated execution artifacts.
109
- */
110
- (args: SerializeHandlerArguments<Input>): Promise<SerializeHandlerOutput<Output>>;
111
- }
112
- /**
113
- * @public
114
- */
115
- export interface FinalizeHandler<Input extends object, Output extends object> {
116
- /**
117
- * Asynchronously converts an input object into an output object.
118
- *
119
- * @param args - An object containing a input to the command as well as any
120
- * associated or previously generated execution artifacts.
121
- */
122
- (args: FinalizeHandlerArguments<Input>): Promise<FinalizeHandlerOutput<Output>>;
123
- }
124
- /**
125
- * @public
126
- */
127
- export interface BuildHandler<Input extends object, Output extends object> {
128
- (args: BuildHandlerArguments<Input>): Promise<BuildHandlerOutput<Output>>;
129
- }
130
- /**
131
- * @public
132
- */
133
- export interface DeserializeHandler<Input extends object, Output extends object> {
134
- (args: DeserializeHandlerArguments<Input>): Promise<DeserializeHandlerOutput<Output>>;
135
- }
136
- /**
137
- * @public
138
- *
139
- * A factory function that creates functions implementing the `Handler`
140
- * interface.
141
- */
142
- export interface InitializeMiddleware<Input extends object, Output extends object> {
143
- /**
144
- * @param next - The handler to invoke after this middleware has operated on
145
- * the user input and before this middleware operates on the output.
146
- *
147
- * @param context - Invariant data and functions for use by the handler.
148
- */
149
- (next: InitializeHandler<Input, Output>, context: HandlerExecutionContext): InitializeHandler<Input, Output>;
150
- }
151
- /**
152
- * @public
153
- *
154
- * A factory function that creates functions implementing the `BuildHandler`
155
- * interface.
156
- */
157
- export interface SerializeMiddleware<Input extends object, Output extends object> {
158
- /**
159
- * @param next - The handler to invoke after this middleware has operated on
160
- * the user input and before this middleware operates on the output.
161
- *
162
- * @param context - Invariant data and functions for use by the handler.
163
- */
164
- (next: SerializeHandler<Input, Output>, context: HandlerExecutionContext): SerializeHandler<Input, Output>;
165
- }
166
- /**
167
- * @public
168
- *
169
- * A factory function that creates functions implementing the `FinalizeHandler`
170
- * interface.
171
- */
172
- export interface FinalizeRequestMiddleware<Input extends object, Output extends object> {
173
- /**
174
- * @param next - The handler to invoke after this middleware has operated on
175
- * the user input and before this middleware operates on the output.
176
- *
177
- * @param context - Invariant data and functions for use by the handler.
178
- */
179
- (next: FinalizeHandler<Input, Output>, context: HandlerExecutionContext): FinalizeHandler<Input, Output>;
180
- }
181
- /**
182
- * @public
183
- */
184
- export interface BuildMiddleware<Input extends object, Output extends object> {
185
- (next: BuildHandler<Input, Output>, context: HandlerExecutionContext): BuildHandler<Input, Output>;
186
- }
187
- /**
188
- * @public
189
- */
190
- export interface DeserializeMiddleware<Input extends object, Output extends object> {
191
- (next: DeserializeHandler<Input, Output>, context: HandlerExecutionContext): DeserializeHandler<Input, Output>;
192
- }
193
- /**
194
- * @public
195
- */
196
- export type MiddlewareType<Input extends object, Output extends object> = InitializeMiddleware<Input, Output> | SerializeMiddleware<Input, Output> | BuildMiddleware<Input, Output> | FinalizeRequestMiddleware<Input, Output> | DeserializeMiddleware<Input, Output>;
197
- /**
198
- * @public
199
- *
200
- * A factory function that creates the terminal handler atop which a middleware
201
- * stack sits.
202
- */
203
- export interface Terminalware {
204
- <Input extends object, Output extends object>(context: HandlerExecutionContext): DeserializeHandler<Input, Output>;
205
- }
206
- /**
207
- * @public
208
- */
209
- export type Step = "initialize" | "serialize" | "build" | "finalizeRequest" | "deserialize";
210
- /**
211
- * @public
212
- */
213
- export type Priority = "high" | "normal" | "low";
214
- /**
215
- * @public
216
- */
217
- export interface HandlerOptions {
218
- /**
219
- * Handlers are ordered using a "step" that describes the stage of command
220
- * execution at which the handler will be executed. The available steps are:
221
- *
222
- * - initialize: The input is being prepared. Examples of typical
223
- * initialization tasks include injecting default options computing
224
- * derived parameters.
225
- * - serialize: The input is complete and ready to be serialized. Examples
226
- * of typical serialization tasks include input validation and building
227
- * an HTTP request from user input.
228
- * - build: The input has been serialized into an HTTP request, but that
229
- * request may require further modification. Any request alterations
230
- * will be applied to all retries. Examples of typical build tasks
231
- * include injecting HTTP headers that describe a stable aspect of the
232
- * request, such as `Content-Length` or a body checksum.
233
- * - finalizeRequest: The request is being prepared to be sent over the wire. The
234
- * request in this stage should already be semantically complete and
235
- * should therefore only be altered as match the recipient's
236
- * expectations. Examples of typical finalization tasks include request
237
- * signing and injecting hop-by-hop headers.
238
- * - deserialize: The response has arrived, the middleware here will deserialize
239
- * the raw response object to structured response
240
- *
241
- * Unlike initialization and build handlers, which are executed once
242
- * per operation execution, finalization and deserialize handlers will be
243
- * executed foreach HTTP request sent.
244
- *
245
- * @defaultValue 'initialize'
246
- */
247
- step?: Step;
248
- /**
249
- * A list of strings to any that identify the general purpose or important
250
- * characteristics of a given handler.
251
- */
252
- tags?: Array<string>;
253
- /**
254
- * A unique name to refer to a middleware
255
- */
256
- name?: string;
257
- /**
258
- * A flag to override the existing middleware with the same name. Without
259
- * setting it, adding middleware with duplicated name will throw an exception.
260
- * @internal
261
- */
262
- override?: boolean;
263
- }
264
- /**
265
- * @public
266
- */
267
- export interface AbsoluteLocation {
268
- /**
269
- * By default middleware will be added to individual step in un-guaranteed order.
270
- * In the case that
271
- *
272
- * @defaultValue 'normal'
273
- */
274
- priority?: Priority;
275
- }
276
- /**
277
- * @public
278
- */
279
- export type Relation = "before" | "after";
280
- /**
281
- * @public
282
- */
283
- export interface RelativeLocation {
284
- /**
285
- * Specify the relation to be before or after a know middleware.
286
- */
287
- relation: Relation;
288
- /**
289
- * A known middleware name to indicate inserting middleware's location.
290
- */
291
- toMiddleware: string;
292
- }
293
- /**
294
- * @public
295
- */
296
- export type RelativeMiddlewareOptions = RelativeLocation & Omit<HandlerOptions, "step">;
297
- /**
298
- * @public
299
- */
300
- export interface InitializeHandlerOptions extends HandlerOptions {
301
- step?: "initialize";
302
- }
303
- /**
304
- * @public
305
- */
306
- export interface SerializeHandlerOptions extends HandlerOptions {
307
- step: "serialize";
308
- }
309
- /**
310
- * @public
311
- */
312
- export interface BuildHandlerOptions extends HandlerOptions {
313
- step: "build";
314
- }
315
- /**
316
- * @public
317
- */
318
- export interface FinalizeRequestHandlerOptions extends HandlerOptions {
319
- step: "finalizeRequest";
320
- }
321
- /**
322
- * @public
323
- */
324
- export interface DeserializeHandlerOptions extends HandlerOptions {
325
- step: "deserialize";
326
- }
327
- /**
328
- * @public
329
- *
330
- * A stack storing middleware. It can be resolved into a handler. It supports 2
331
- * approaches for adding middleware:
332
- * 1. Adding middleware to specific step with `add()`. The order of middleware
333
- * added into same step is determined by order of adding them. If one middleware
334
- * needs to be executed at the front of the step or at the end of step, set
335
- * `priority` options to `high` or `low`.
336
- * 2. Adding middleware to location relative to known middleware with `addRelativeTo()`.
337
- * This is useful when given middleware must be executed before or after specific
338
- * middleware(`toMiddleware`). You can add a middleware relatively to another
339
- * middleware which also added relatively. But eventually, this relative middleware
340
- * chain **must** be 'anchored' by a middleware that added using `add()` API
341
- * with absolute `step` and `priority`. This mothod will throw if specified
342
- * `toMiddleware` is not found.
343
- */
344
- export interface MiddlewareStack<Input extends object, Output extends object> extends Pluggable<Input, Output> {
345
- /**
346
- * Add middleware to the stack to be executed during the "initialize" step,
347
- * optionally specifying a priority, tags and name
348
- */
349
- add(middleware: InitializeMiddleware<Input, Output>, options?: InitializeHandlerOptions & AbsoluteLocation): void;
350
- /**
351
- * Add middleware to the stack to be executed during the "serialize" step,
352
- * optionally specifying a priority, tags and name
353
- */
354
- add(middleware: SerializeMiddleware<Input, Output>, options: SerializeHandlerOptions & AbsoluteLocation): void;
355
- /**
356
- * Add middleware to the stack to be executed during the "build" step,
357
- * optionally specifying a priority, tags and name
358
- */
359
- add(middleware: BuildMiddleware<Input, Output>, options: BuildHandlerOptions & AbsoluteLocation): void;
360
- /**
361
- * Add middleware to the stack to be executed during the "finalizeRequest" step,
362
- * optionally specifying a priority, tags and name
363
- */
364
- add(middleware: FinalizeRequestMiddleware<Input, Output>, options: FinalizeRequestHandlerOptions & AbsoluteLocation): void;
365
- /**
366
- * Add middleware to the stack to be executed during the "deserialize" step,
367
- * optionally specifying a priority, tags and name
368
- */
369
- add(middleware: DeserializeMiddleware<Input, Output>, options: DeserializeHandlerOptions & AbsoluteLocation): void;
370
- /**
371
- * Add middleware to a stack position before or after a known middleware,optionally
372
- * specifying name and tags.
373
- */
374
- addRelativeTo(middleware: MiddlewareType<Input, Output>, options: RelativeMiddlewareOptions): void;
375
- /**
376
- * Apply a customization function to mutate the middleware stack, often
377
- * used for customizations that requires mutating multiple middleware.
378
- */
379
- use(pluggable: Pluggable<Input, Output>): void;
380
- /**
381
- * Create a shallow clone of this stack. Step bindings and handler priorities
382
- * and tags are preserved in the copy.
383
- */
384
- clone(): MiddlewareStack<Input, Output>;
385
- /**
386
- * Removes middleware from the stack.
387
- *
388
- * If a string is provided, it will be treated as middleware name. If a middleware
389
- * is inserted with the given name, it will be removed.
390
- *
391
- * If a middleware class is provided, all usages thereof will be removed.
392
- */
393
- remove(toRemove: MiddlewareType<Input, Output> | string): boolean;
394
- /**
395
- * Removes middleware that contains given tag
396
- *
397
- * Multiple middleware will potentially be removed
398
- */
399
- removeByTag(toRemove: string): boolean;
400
- /**
401
- * Create a stack containing the middlewares in this stack as well as the
402
- * middlewares in the `from` stack. Neither source is modified, and step
403
- * bindings and handler priorities and tags are preserved in the copy.
404
- */
405
- concat<InputType extends Input, OutputType extends Output>(from: MiddlewareStack<InputType, OutputType>): MiddlewareStack<InputType, OutputType>;
406
- /**
407
- * Returns a list of the current order of middleware in the stack.
408
- * This does not execute the middleware functions, nor does it
409
- * provide a reference to the stack itself.
410
- */
411
- identify(): string[];
412
- /**
413
- * Builds a single handler function from zero or more middleware classes and
414
- * a core handler. The core handler is meant to send command objects to AWS
415
- * services and return promises that will resolve with the operation result
416
- * or be rejected with an error.
417
- *
418
- * When a composed handler is invoked, the arguments will pass through all
419
- * middleware in a defined order, and the return from the innermost handler
420
- * will pass through all middleware in the reverse of that order.
421
- */
422
- resolve<InputType extends Input, OutputType extends Output>(handler: DeserializeHandler<InputType, OutputType>, context: HandlerExecutionContext): InitializeHandler<InputType, OutputType>;
423
- }
424
- /**
425
- * @public
426
- *
427
- * Data and helper objects that are not expected to change from one execution of
428
- * a composed handler to another.
429
- */
430
- export interface HandlerExecutionContext {
431
- /**
432
- * A logger that may be invoked by any handler during execution of an
433
- * operation.
434
- */
435
- logger?: Logger;
436
- /**
437
- * Additional user agent that inferred by middleware. It can be used to save
438
- * the internal user agent sections without overriding the `customUserAgent`
439
- * config in clients.
440
- */
441
- userAgent?: UserAgent;
442
- /**
443
- * Resolved by the endpointMiddleware function of `@aws-sdk/middleware-endpoint`
444
- * in the serialization stage.
445
- */
446
- endpointV2?: EndpointV2;
447
- /**
448
- * Set at the same time as endpointV2.
449
- */
450
- authSchemes?: AuthScheme[];
451
- /**
452
- * The current auth configuration that has been set by any auth middleware and
453
- * that will prevent from being set more than once.
454
- */
455
- currentAuthConfig?: HttpAuthDefinition;
456
- /**
457
- * Used by DynamoDbDocumentClient.
458
- */
459
- dynamoDbDocumentClientOptions?: Partial<{
460
- overrideInputFilterSensitiveLog(...args: any[]): string | void;
461
- overrideOutputFilterSensitiveLog(...args: any[]): string | void;
462
- }>;
463
- [key: string]: any;
464
- }
465
- /**
466
- * @public
467
- */
468
- export interface Pluggable<Input extends object, Output extends object> {
469
- /**
470
- * A function that mutate the passed in middleware stack. Functions implementing
471
- * this interface can add, remove, modify existing middleware stack from clients
472
- * or commands
473
- */
474
- applyToStack: (stack: MiddlewareStack<Input, Output>) => void;
475
- }
1
+ export { AbsoluteLocation, BuildHandler, BuildHandlerArguments, BuildHandlerOptions, BuildHandlerOutput, BuildMiddleware, DeserializeHandler, DeserializeHandlerArguments, DeserializeHandlerOptions, DeserializeHandlerOutput, DeserializeMiddleware, FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Handler, HandlerExecutionContext, HandlerOptions, InitializeHandler, InitializeHandlerArguments, InitializeHandlerOptions, InitializeHandlerOutput, InitializeMiddleware, MiddlewareStack, MiddlewareType, Pluggable, Priority, Relation, RelativeLocation, RelativeMiddlewareOptions, SerializeHandler, SerializeHandlerArguments, SerializeHandlerOptions, SerializeHandlerOutput, SerializeMiddleware, Step, Terminalware, } from "@smithy/types";
@@ -1,26 +1 @@
1
- import { Client } from "./client";
2
- /**
3
- * @public
4
- *
5
- * Expected type definition of a paginator.
6
- */
7
- export type Paginator<T> = AsyncGenerator<T, T, unknown>;
8
- /**
9
- * @public
10
- *
11
- * Expected paginator configuration passed to an operation. Services will extend
12
- * this interface definition and may type client further.
13
- */
14
- export interface PaginationConfiguration {
15
- client: Client<any, any, any>;
16
- pageSize?: number;
17
- startingToken?: any;
18
- /**
19
- * For some APIs, such as CloudWatchLogs events, the next page token will always
20
- * be present.
21
- *
22
- * When true, this config field will have the paginator stop when the token doesn't change
23
- * instead of when it is not present.
24
- */
25
- stopOnSameToken?: boolean;
26
- }
1
+ export { PaginationConfiguration, Paginator } from "@smithy/types";