@aws-sdk/types 3.357.0 → 3.370.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/auth.js +2 -5
- package/dist-cjs/endpoint.js +2 -5
- package/dist-cjs/transfer.js +2 -6
- package/dist-es/auth.js +1 -5
- package/dist-es/endpoint.js +1 -5
- package/dist-es/transfer.js +1 -6
- package/dist-types/abort.d.ts +1 -49
- package/dist-types/auth.d.ts +1 -55
- package/dist-types/checksum.d.ts +1 -63
- package/dist-types/client.d.ts +1 -25
- package/dist-types/command.d.ts +1 -10
- package/dist-types/connection.d.ts +1 -0
- package/dist-types/crypto.d.ts +1 -60
- package/dist-types/encode.d.ts +1 -19
- package/dist-types/endpoint.d.ts +1 -77
- package/dist-types/eventStream.d.ts +1 -108
- package/dist-types/http.d.ts +2 -87
- package/dist-types/identity/AwsCredentialIdentity.d.ts +1 -23
- package/dist-types/identity/Identity.d.ts +1 -15
- package/dist-types/logger.d.ts +2 -13
- package/dist-types/middleware.d.ts +1 -475
- package/dist-types/pagination.d.ts +1 -26
- package/dist-types/profile.d.ts +1 -22
- package/dist-types/response.d.ts +1 -40
- package/dist-types/retry.d.ts +1 -128
- package/dist-types/serde.d.ts +1 -104
- package/dist-types/shapes.d.ts +1 -72
- package/dist-types/signature.d.ts +1 -150
- package/dist-types/stream.d.ts +1 -22
- package/dist-types/transfer.d.ts +1 -33
- package/dist-types/ts3.4/abort.d.ts +1 -11
- package/dist-types/ts3.4/auth.d.ts +5 -17
- package/dist-types/ts3.4/checksum.d.ts +1 -12
- package/dist-types/ts3.4/client.d.ts +1 -52
- package/dist-types/ts3.4/command.d.ts +1 -17
- package/dist-types/ts3.4/connection.d.ts +6 -0
- package/dist-types/ts3.4/crypto.d.ts +7 -14
- package/dist-types/ts3.4/encode.d.ts +6 -19
- package/dist-types/ts3.4/endpoint.d.ts +9 -43
- package/dist-types/ts3.4/eventStream.d.ts +24 -77
- package/dist-types/ts3.4/http.d.ts +10 -26
- package/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -8
- package/dist-types/ts3.4/identity/Identity.d.ts +1 -6
- package/dist-types/ts3.4/logger.d.ts +2 -7
- package/dist-types/ts3.4/middleware.d.ts +40 -211
- package/dist-types/ts3.4/pagination.d.ts +1 -8
- package/dist-types/ts3.4/profile.d.ts +6 -7
- package/dist-types/ts3.4/response.d.ts +1 -11
- package/dist-types/ts3.4/retry.d.ts +12 -43
- package/dist-types/ts3.4/serde.d.ts +12 -46
- package/dist-types/ts3.4/shapes.d.ts +6 -24
- package/dist-types/ts3.4/signature.d.ts +15 -59
- package/dist-types/ts3.4/stream.d.ts +4 -16
- package/dist-types/ts3.4/transfer.d.ts +7 -26
- package/dist-types/ts3.4/uri.d.ts +1 -11
- package/dist-types/ts3.4/util.d.ts +14 -50
- package/dist-types/ts3.4/waiter.d.ts +1 -9
- package/dist-types/uri.d.ts +1 -17
- package/dist-types/util.d.ts +1 -155
- package/dist-types/waiter.d.ts +1 -35
- package/package.json +2 -1
- package/dist-cjs/connection/index.js +0 -6
- package/dist-cjs/connection/manager.js +0 -2
- package/dist-cjs/connection/pool.js +0 -2
- package/dist-es/connection/index.js +0 -3
- package/dist-es/connection/manager.js +0 -1
- package/dist-es/connection/pool.js +0 -1
- package/dist-types/connection/config.d.ts +0 -7
- package/dist-types/connection/index.d.ts +0 -3
- package/dist-types/connection/manager.d.ts +0 -28
- package/dist-types/connection/pool.d.ts +0 -24
- package/dist-types/ts3.4/connection/config.d.ts +0 -3
- package/dist-types/ts3.4/connection/index.d.ts +0 -3
- package/dist-types/ts3.4/connection/manager.d.ts +0 -14
- package/dist-types/ts3.4/connection/pool.d.ts +0 -9
- /package/dist-cjs/{connection/config.js → connection.js} +0 -0
- /package/dist-es/{connection/config.js → connection.js} +0 -0
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
| string
|
|
8
|
-
| DocumentType[]
|
|
9
|
-
| {
|
|
10
|
-
[prop: string]: DocumentType;
|
|
11
|
-
};
|
|
12
|
-
export interface RetryableTrait {
|
|
13
|
-
readonly throttling?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface SmithyException {
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly $fault: "client" | "server";
|
|
18
|
-
readonly $service?: string;
|
|
19
|
-
readonly $retryable?: RetryableTrait;
|
|
20
|
-
readonly $response?: HttpResponse;
|
|
21
|
-
}
|
|
22
|
-
export type SdkError = Error &
|
|
23
|
-
Partial<SmithyException> &
|
|
24
|
-
Partial<MetadataBearer>;
|
|
1
|
+
export {
|
|
2
|
+
DocumentType,
|
|
3
|
+
RetryableTrait,
|
|
4
|
+
SmithyException,
|
|
5
|
+
SdkError,
|
|
6
|
+
} from "@smithy/types";
|
|
@@ -1,59 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export interface EventSigningArguments extends SigningArguments {
|
|
18
|
-
priorSignature: string;
|
|
19
|
-
}
|
|
20
|
-
export interface RequestPresigner {
|
|
21
|
-
presign(
|
|
22
|
-
requestToSign: HttpRequest,
|
|
23
|
-
options?: RequestPresigningArguments
|
|
24
|
-
): Promise<HttpRequest>;
|
|
25
|
-
}
|
|
26
|
-
export interface RequestSigner {
|
|
27
|
-
sign(
|
|
28
|
-
requestToSign: HttpRequest,
|
|
29
|
-
options?: RequestSigningArguments
|
|
30
|
-
): Promise<HttpRequest>;
|
|
31
|
-
}
|
|
32
|
-
export interface StringSigner {
|
|
33
|
-
sign(stringToSign: string, options?: SigningArguments): Promise<string>;
|
|
34
|
-
}
|
|
35
|
-
export interface FormattedEvent {
|
|
36
|
-
headers: Uint8Array;
|
|
37
|
-
payload: Uint8Array;
|
|
38
|
-
}
|
|
39
|
-
export interface EventSigner {
|
|
40
|
-
sign(event: FormattedEvent, options: EventSigningArguments): Promise<string>;
|
|
41
|
-
}
|
|
42
|
-
export interface SignableMessage {
|
|
43
|
-
message: Message;
|
|
44
|
-
priorSignature: string;
|
|
45
|
-
}
|
|
46
|
-
export interface SignedMessage {
|
|
47
|
-
message: Message;
|
|
48
|
-
signature: string;
|
|
49
|
-
}
|
|
50
|
-
export interface MessageSigner {
|
|
51
|
-
signMessage(
|
|
52
|
-
message: SignableMessage,
|
|
53
|
-
args: SigningArguments
|
|
54
|
-
): Promise<SignedMessage>;
|
|
55
|
-
sign(
|
|
56
|
-
event: SignableMessage,
|
|
57
|
-
options: SigningArguments
|
|
58
|
-
): Promise<SignedMessage>;
|
|
59
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
DateInput,
|
|
3
|
+
EventSigner,
|
|
4
|
+
EventSigningArguments,
|
|
5
|
+
FormattedEvent,
|
|
6
|
+
MessageSigner,
|
|
7
|
+
RequestSigningArguments,
|
|
8
|
+
RequestPresigner,
|
|
9
|
+
RequestPresigningArguments,
|
|
10
|
+
RequestSigner,
|
|
11
|
+
SignableMessage,
|
|
12
|
+
SignedMessage,
|
|
13
|
+
SigningArguments,
|
|
14
|
+
StringSigner,
|
|
15
|
+
} from "@smithy/types";
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
base64Encoder?: Encoder;
|
|
6
|
-
bodyLengthChecker: BodyLengthCalculator;
|
|
7
|
-
checksumAlgorithmFn?: ChecksumConstructor | HashConstructor;
|
|
8
|
-
checksumLocationName?: string;
|
|
9
|
-
streamHasher?: StreamHasher;
|
|
10
|
-
}
|
|
11
|
-
export interface GetAwsChunkedEncodingStream<StreamType = any> {
|
|
12
|
-
(
|
|
13
|
-
readableStream: StreamType,
|
|
14
|
-
options: GetAwsChunkedEncodingStreamOptions
|
|
15
|
-
): StreamType;
|
|
16
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
GetAwsChunkedEncodingStream,
|
|
3
|
+
GetAwsChunkedEncodingStreamOptions,
|
|
4
|
+
} from "@smithy/types";
|
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
> {
|
|
9
|
-
metadata?: RequestHandlerMetadata;
|
|
10
|
-
destroy?: () => void;
|
|
11
|
-
handle: (
|
|
12
|
-
request: RequestType,
|
|
13
|
-
handlerOptions?: HandlerOptions
|
|
14
|
-
) => Promise<RequestHandlerOutput<ResponseType>>;
|
|
15
|
-
}
|
|
16
|
-
export interface RequestHandlerMetadata {
|
|
17
|
-
handlerProtocol: RequestHandlerProtocol | string;
|
|
18
|
-
}
|
|
19
|
-
export declare enum RequestHandlerProtocol {
|
|
20
|
-
HTTP_0_9 = "http/0.9",
|
|
21
|
-
HTTP_1_0 = "http/1.0",
|
|
22
|
-
TDS_8_0 = "tds/8.0",
|
|
23
|
-
}
|
|
24
|
-
export interface RequestContext {
|
|
25
|
-
destination: URL;
|
|
26
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
RequestContext,
|
|
3
|
+
RequestHandler,
|
|
4
|
+
RequestHandlerMetadata,
|
|
5
|
+
RequestHandlerOutput,
|
|
6
|
+
RequestHandlerProtocol,
|
|
7
|
+
} from "@smithy/types";
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type URI = {
|
|
3
|
-
protocol: string;
|
|
4
|
-
hostname: string;
|
|
5
|
-
port?: number;
|
|
6
|
-
path: string;
|
|
7
|
-
query?: QueryParameterBag;
|
|
8
|
-
username?: string;
|
|
9
|
-
password?: string;
|
|
10
|
-
fragment?: string;
|
|
11
|
-
};
|
|
1
|
+
export { URI } from "@smithy/types";
|
|
@@ -1,50 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(): Promise<T>;
|
|
16
|
-
}
|
|
17
|
-
export interface MemoizedProvider<T> {
|
|
18
|
-
(options?: { forceRefresh?: boolean }): Promise<T>;
|
|
19
|
-
}
|
|
20
|
-
export interface BodyLengthCalculator {
|
|
21
|
-
(body: any): number | undefined;
|
|
22
|
-
}
|
|
23
|
-
export interface RetryStrategy {
|
|
24
|
-
mode?: string;
|
|
25
|
-
retry: <Input extends object, Output extends MetadataBearer>(
|
|
26
|
-
next: FinalizeHandler<Input, Output>,
|
|
27
|
-
args: FinalizeHandlerArguments<Input>
|
|
28
|
-
) => Promise<FinalizeHandlerOutput<Output>>;
|
|
29
|
-
}
|
|
30
|
-
export interface UrlParser {
|
|
31
|
-
(url: string | URL): Endpoint;
|
|
32
|
-
}
|
|
33
|
-
export interface RegionInfo {
|
|
34
|
-
hostname: string;
|
|
35
|
-
partition: string;
|
|
36
|
-
path?: string;
|
|
37
|
-
signingService?: string;
|
|
38
|
-
signingRegion?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface RegionInfoProviderOptions {
|
|
41
|
-
useDualstackEndpoint: boolean;
|
|
42
|
-
useFipsEndpoint: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface RegionInfoProvider {
|
|
45
|
-
(region: string, options?: RegionInfoProviderOptions): Promise<
|
|
46
|
-
RegionInfo | undefined
|
|
47
|
-
>;
|
|
48
|
-
}
|
|
49
|
-
export type UserAgentPair = [string, string];
|
|
50
|
-
export type UserAgent = UserAgentPair[];
|
|
1
|
+
export {
|
|
2
|
+
Encoder,
|
|
3
|
+
Decoder,
|
|
4
|
+
Provider,
|
|
5
|
+
UserAgentPair,
|
|
6
|
+
UserAgent,
|
|
7
|
+
UrlParser,
|
|
8
|
+
MemoizedProvider,
|
|
9
|
+
BodyLengthCalculator,
|
|
10
|
+
RegionInfo,
|
|
11
|
+
RegionInfoProviderOptions,
|
|
12
|
+
RegionInfoProvider,
|
|
13
|
+
RetryStrategy,
|
|
14
|
+
} from "@smithy/types";
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface WaiterConfiguration<Client> {
|
|
3
|
-
client: Client;
|
|
4
|
-
maxWaitTime: number;
|
|
5
|
-
abortController?: AbortController;
|
|
6
|
-
abortSignal?: AbortController["signal"];
|
|
7
|
-
minDelay?: number;
|
|
8
|
-
maxDelay?: number;
|
|
9
|
-
}
|
|
1
|
+
export { WaiterConfiguration } from "@smithy/types";
|
package/dist-types/uri.d.ts
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*
|
|
5
|
-
* Represents the components parts of a Uniform Resource Identifier used to
|
|
6
|
-
* construct the target location of a Request.
|
|
7
|
-
*/
|
|
8
|
-
export type URI = {
|
|
9
|
-
protocol: string;
|
|
10
|
-
hostname: string;
|
|
11
|
-
port?: number;
|
|
12
|
-
path: string;
|
|
13
|
-
query?: QueryParameterBag;
|
|
14
|
-
username?: string;
|
|
15
|
-
password?: string;
|
|
16
|
-
fragment?: string;
|
|
17
|
-
};
|
|
1
|
+
export { URI } from "@smithy/types";
|
package/dist-types/util.d.ts
CHANGED
|
@@ -1,155 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware";
|
|
3
|
-
import { MetadataBearer } from "./response";
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*
|
|
7
|
-
* A function that, given a TypedArray of bytes, can produce a string
|
|
8
|
-
* representation thereof.
|
|
9
|
-
*
|
|
10
|
-
* @example An encoder function that converts bytes to hexadecimal
|
|
11
|
-
* representation would return `'deadbeef'` when given
|
|
12
|
-
* `new Uint8Array([0xde, 0xad, 0xbe, 0xef])`.
|
|
13
|
-
*/
|
|
14
|
-
export interface Encoder {
|
|
15
|
-
(input: Uint8Array): string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* A function that, given a string, can derive the bytes represented by that
|
|
21
|
-
* string.
|
|
22
|
-
*
|
|
23
|
-
* @example A decoder function that converts bytes to hexadecimal
|
|
24
|
-
* representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when
|
|
25
|
-
* given the string `'deadbeef'`.
|
|
26
|
-
*/
|
|
27
|
-
export interface Decoder {
|
|
28
|
-
(input: string): Uint8Array;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @public
|
|
32
|
-
*
|
|
33
|
-
* A function that, when invoked, returns a promise that will be fulfilled with
|
|
34
|
-
* a value of type T.
|
|
35
|
-
*
|
|
36
|
-
* @example A function that reads credentials from shared SDK configuration
|
|
37
|
-
* files, assuming roles and collecting MFA tokens as necessary.
|
|
38
|
-
*/
|
|
39
|
-
export interface Provider<T> {
|
|
40
|
-
(): Promise<T>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @public
|
|
44
|
-
*
|
|
45
|
-
* A function that, when invoked, returns a promise that will be fulfilled with
|
|
46
|
-
* a value of type T. It memoizes the result from the previous invocation
|
|
47
|
-
* instead of calling the underlying resources every time.
|
|
48
|
-
*
|
|
49
|
-
* You can force the provider to refresh the memoized value by invoke the
|
|
50
|
-
* function with optional parameter hash with `forceRefresh` boolean key and
|
|
51
|
-
* value `true`.
|
|
52
|
-
*
|
|
53
|
-
* @example A function that reads credentials from IMDS service that could
|
|
54
|
-
* return expired credentials. The SDK will keep using the expired credentials
|
|
55
|
-
* until an unretryable service error requiring a force refresh of the
|
|
56
|
-
* credentials.
|
|
57
|
-
*/
|
|
58
|
-
export interface MemoizedProvider<T> {
|
|
59
|
-
(options?: {
|
|
60
|
-
forceRefresh?: boolean;
|
|
61
|
-
}): Promise<T>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
*
|
|
66
|
-
* A function that, given a request body, determines the
|
|
67
|
-
* length of the body. This is used to determine the Content-Length
|
|
68
|
-
* that should be sent with a request.
|
|
69
|
-
*
|
|
70
|
-
* @example A function that reads a file stream and calculates
|
|
71
|
-
* the size of the file.
|
|
72
|
-
*/
|
|
73
|
-
export interface BodyLengthCalculator {
|
|
74
|
-
(body: any): number | undefined;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @public
|
|
78
|
-
*
|
|
79
|
-
* Interface that specifies the retry behavior
|
|
80
|
-
*/
|
|
81
|
-
export interface RetryStrategy {
|
|
82
|
-
/**
|
|
83
|
-
* The retry mode describing how the retry strategy control the traffic flow.
|
|
84
|
-
*/
|
|
85
|
-
mode?: string;
|
|
86
|
-
/**
|
|
87
|
-
* the retry behavior the will invoke the next handler and handle the retry accordingly.
|
|
88
|
-
* This function should also update the $metadata from the response accordingly.
|
|
89
|
-
* @see {@link ResponseMetadata}
|
|
90
|
-
*/
|
|
91
|
-
retry: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>) => Promise<FinalizeHandlerOutput<Output>>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @public
|
|
95
|
-
*
|
|
96
|
-
* Parses a URL in string form into an Endpoint object.
|
|
97
|
-
*/
|
|
98
|
-
export interface UrlParser {
|
|
99
|
-
(url: string | URL): Endpoint;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @public
|
|
103
|
-
*
|
|
104
|
-
* Object containing regionalization information of
|
|
105
|
-
* AWS services.
|
|
106
|
-
*/
|
|
107
|
-
export interface RegionInfo {
|
|
108
|
-
hostname: string;
|
|
109
|
-
partition: string;
|
|
110
|
-
path?: string;
|
|
111
|
-
signingService?: string;
|
|
112
|
-
signingRegion?: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @public
|
|
116
|
-
*
|
|
117
|
-
* Options to pass when calling {@link RegionInfoProvider}
|
|
118
|
-
*/
|
|
119
|
-
export interface RegionInfoProviderOptions {
|
|
120
|
-
/**
|
|
121
|
-
* Enables IPv6/IPv4 dualstack endpoint.
|
|
122
|
-
* @defaultValue false
|
|
123
|
-
*/
|
|
124
|
-
useDualstackEndpoint: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Enables FIPS compatible endpoints.
|
|
127
|
-
* @defaultValue false
|
|
128
|
-
*/
|
|
129
|
-
useFipsEndpoint: boolean;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @public
|
|
133
|
-
*
|
|
134
|
-
* Function returns designated service's regionalization
|
|
135
|
-
* information from given region. Each service client
|
|
136
|
-
* comes with its regionalization provider. it serves
|
|
137
|
-
* to provide the default values of related configurations
|
|
138
|
-
*/
|
|
139
|
-
export interface RegionInfoProvider {
|
|
140
|
-
(region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* @public
|
|
144
|
-
*
|
|
145
|
-
* A tuple that represents an API name and optional version
|
|
146
|
-
* of a library built using the AWS SDK.
|
|
147
|
-
*/
|
|
148
|
-
export type UserAgentPair = [name: string, version?: string];
|
|
149
|
-
/**
|
|
150
|
-
* @public
|
|
151
|
-
*
|
|
152
|
-
* User agent data that to be put into the request's user
|
|
153
|
-
* agent.
|
|
154
|
-
*/
|
|
155
|
-
export type UserAgent = UserAgentPair[];
|
|
1
|
+
export { Encoder, Decoder, Provider, UserAgentPair, UserAgent, UrlParser, MemoizedProvider, BodyLengthCalculator, RegionInfo, RegionInfoProviderOptions, RegionInfoProvider, RetryStrategy, } from "@smithy/types";
|
package/dist-types/waiter.d.ts
CHANGED
|
@@ -1,35 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export interface WaiterConfiguration<Client> {
|
|
6
|
-
/**
|
|
7
|
-
* Required service client
|
|
8
|
-
*/
|
|
9
|
-
client: Client;
|
|
10
|
-
/**
|
|
11
|
-
* The amount of time in seconds a user is willing to wait for a waiter to complete.
|
|
12
|
-
*/
|
|
13
|
-
maxWaitTime: number;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use abortSignal
|
|
16
|
-
* Abort controller. Used for ending the waiter early.
|
|
17
|
-
*/
|
|
18
|
-
abortController?: AbortController;
|
|
19
|
-
/**
|
|
20
|
-
* Abort Signal. Used for ending the waiter early.
|
|
21
|
-
*/
|
|
22
|
-
abortSignal?: AbortController["signal"];
|
|
23
|
-
/**
|
|
24
|
-
* The minimum amount of time to delay between retries in seconds. This is the
|
|
25
|
-
* floor of the exponential backoff. This value defaults to service default
|
|
26
|
-
* if not specified. This value MUST be less than or equal to maxDelay and greater than 0.
|
|
27
|
-
*/
|
|
28
|
-
minDelay?: number;
|
|
29
|
-
/**
|
|
30
|
-
* The maximum amount of time to delay between retries in seconds. This is the
|
|
31
|
-
* ceiling of the exponential backoff. This value defaults to service default
|
|
32
|
-
* if not specified. If specified, this value MUST be greater than or equal to 1.
|
|
33
|
-
*/
|
|
34
|
-
maxDelay?: number;
|
|
35
|
-
}
|
|
1
|
+
export { WaiterConfiguration } from "@smithy/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.370.0",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"directory": "packages/types"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@smithy/types": "^1.1.0",
|
|
44
45
|
"tslib": "^2.5.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./config"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./manager"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./pool"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { RequestContext } from "../transfer";
|
|
2
|
-
import { ConnectConfiguration } from "./config";
|
|
3
|
-
export interface ConnectionManagerConfiguration {
|
|
4
|
-
/**
|
|
5
|
-
* Maximum number of allowed concurrent requests per connection.
|
|
6
|
-
*/
|
|
7
|
-
maxConcurrency?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Disables concurrent requests per connection.
|
|
10
|
-
*/
|
|
11
|
-
disableConcurrency?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface ConnectionManager<T> {
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves a connection from the connection pool if available,
|
|
16
|
-
* otherwise establish a new connection
|
|
17
|
-
*/
|
|
18
|
-
lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T;
|
|
19
|
-
/**
|
|
20
|
-
* Releases the connection back to the pool making it potentially
|
|
21
|
-
* re-usable by other requests.
|
|
22
|
-
*/
|
|
23
|
-
release(requestContext: RequestContext, connection: T): void;
|
|
24
|
-
/**
|
|
25
|
-
* Destroys the connection manager. All connections will be closed.
|
|
26
|
-
*/
|
|
27
|
-
destroy(): void;
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface ConnectionPool<T> {
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the first connection in the pool
|
|
4
|
-
*/
|
|
5
|
-
poll(): T | void;
|
|
6
|
-
/**
|
|
7
|
-
* Release the connection back to the pool making it potentially
|
|
8
|
-
* re-usable by other requests.
|
|
9
|
-
*/
|
|
10
|
-
offerLast(connection: T): void;
|
|
11
|
-
/**
|
|
12
|
-
* Removes the connection from the pool, and destroys it.
|
|
13
|
-
*/
|
|
14
|
-
destroy(connection: T): void;
|
|
15
|
-
/**
|
|
16
|
-
* Implements the iterable protocol and allows arrays to be consumed
|
|
17
|
-
* by most syntaxes expecting iterables, such as the spread syntax
|
|
18
|
-
* and for...of loops
|
|
19
|
-
*/
|
|
20
|
-
[Symbol.iterator](): Iterator<T>;
|
|
21
|
-
}
|
|
22
|
-
export interface CacheKey {
|
|
23
|
-
destination: string;
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RequestContext } from "../transfer";
|
|
2
|
-
import { ConnectConfiguration } from "./config";
|
|
3
|
-
export interface ConnectionManagerConfiguration {
|
|
4
|
-
maxConcurrency?: number;
|
|
5
|
-
disableConcurrency?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface ConnectionManager<T> {
|
|
8
|
-
lease(
|
|
9
|
-
requestContext: RequestContext,
|
|
10
|
-
connectionConfiguration: ConnectConfiguration
|
|
11
|
-
): T;
|
|
12
|
-
release(requestContext: RequestContext, connection: T): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|