@aws-sdk/types 3.162.0 → 3.170.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,22 @@
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.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/types
9
+
10
+
11
+
12
+
13
+
14
+ # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/types
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
7
23
 
8
24
 
@@ -1,3 +1,17 @@
1
+ export interface EndpointPartition {
2
+ name: string;
3
+ dnsSuffix: string;
4
+ dualStackDnsSuffix: string;
5
+ supportsFIPS: boolean;
6
+ supportsDualStack: boolean;
7
+ }
8
+ export interface EndpointARN {
9
+ partition: string;
10
+ service: string;
11
+ region: string;
12
+ accountId: string;
13
+ resourceId: Array<string>;
14
+ }
1
15
  export declare enum EndpointURLScheme {
2
16
  HTTP = "http",
3
17
  HTTPS = "https"
@@ -16,6 +30,11 @@ export interface EndpointURL {
16
30
  * This value is as-is as provided by the user.
17
31
  */
18
32
  path: string;
33
+ /**
34
+ * The parsed path segment of the URL.
35
+ * This value is guranteed to start and end with a "/".
36
+ */
37
+ normalizedPath: string;
19
38
  /**
20
39
  * A boolean indicating whether the authority is an IP address.
21
40
  */
@@ -1,17 +1,15 @@
1
- export interface AbortHandler {
2
- (this: AbortSignal, ev: any): any;
3
- }
4
-
5
- export interface AbortSignal {
6
-
7
- readonly aborted: boolean;
8
-
9
- onabort: AbortHandler | null;
10
- }
11
-
12
- export interface AbortController {
13
-
14
- readonly signal: AbortSignal;
15
-
16
- abort(): void;
17
- }
1
+ export interface AbortHandler {
2
+ (this: AbortSignal, ev: any): any;
3
+ }
4
+
5
+ export interface AbortSignal {
6
+ readonly aborted: boolean;
7
+
8
+ onabort: AbortHandler | null;
9
+ }
10
+
11
+ export interface AbortController {
12
+ readonly signal: AbortSignal;
13
+
14
+ abort(): void;
15
+ }
@@ -1,17 +1,54 @@
1
- import { Command } from "./command";
2
- import { MiddlewareStack } from "./middleware";
3
- import { MetadataBearer } from "./response";
4
-
5
- interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {
6
- <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any): Promise<OutputType>;
7
- <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options: any, cb: (err: any, data?: OutputType) => void): void;
8
- <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any, cb?: (err: any, data?: OutputType) => void): Promise<OutputType> | void;
9
- }
10
-
11
- export interface Client<Input extends object, Output extends MetadataBearer, ResolvedClientConfiguration> {
12
- readonly config: ResolvedClientConfiguration;
13
- middlewareStack: MiddlewareStack<Input, Output>;
14
- send: InvokeFunction<Input, Output, ResolvedClientConfiguration>;
15
- destroy: () => void;
16
- }
17
- export {};
1
+ import { Command } from "./command";
2
+ import { MiddlewareStack } from "./middleware";
3
+ import { MetadataBearer } from "./response";
4
+
5
+ interface InvokeFunction<
6
+ InputTypes extends object,
7
+ OutputTypes extends MetadataBearer,
8
+ ResolvedClientConfiguration
9
+ > {
10
+ <InputType extends InputTypes, OutputType extends OutputTypes>(
11
+ command: Command<
12
+ InputTypes,
13
+ InputType,
14
+ OutputTypes,
15
+ OutputType,
16
+ ResolvedClientConfiguration
17
+ >,
18
+ options?: any
19
+ ): Promise<OutputType>;
20
+ <InputType extends InputTypes, OutputType extends OutputTypes>(
21
+ command: Command<
22
+ InputTypes,
23
+ InputType,
24
+ OutputTypes,
25
+ OutputType,
26
+ ResolvedClientConfiguration
27
+ >,
28
+ options: any,
29
+ cb: (err: any, data?: OutputType) => void
30
+ ): void;
31
+ <InputType extends InputTypes, OutputType extends OutputTypes>(
32
+ command: Command<
33
+ InputTypes,
34
+ InputType,
35
+ OutputTypes,
36
+ OutputType,
37
+ ResolvedClientConfiguration
38
+ >,
39
+ options?: any,
40
+ cb?: (err: any, data?: OutputType) => void
41
+ ): Promise<OutputType> | void;
42
+ }
43
+
44
+ export interface Client<
45
+ Input extends object,
46
+ Output extends MetadataBearer,
47
+ ResolvedClientConfiguration
48
+ > {
49
+ readonly config: ResolvedClientConfiguration;
50
+ middlewareStack: MiddlewareStack<Input, Output>;
51
+ send: InvokeFunction<Input, Output, ResolvedClientConfiguration>;
52
+ destroy: () => void;
53
+ }
54
+ export {};
@@ -1,7 +1,17 @@
1
- import { Handler, MiddlewareStack } from "./middleware";
2
- import { MetadataBearer } from "./response";
3
- export interface Command<ClientInput extends object, InputType extends ClientInput, ClientOutput extends MetadataBearer, OutputType extends ClientOutput, ResolvedConfiguration> {
4
- readonly input: InputType;
5
- readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
6
- resolveMiddleware(stack: MiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedConfiguration, options: any): Handler<InputType, OutputType>;
7
- }
1
+ import { Handler, MiddlewareStack } from "./middleware";
2
+ import { MetadataBearer } from "./response";
3
+ export interface Command<
4
+ ClientInput extends object,
5
+ InputType extends ClientInput,
6
+ ClientOutput extends MetadataBearer,
7
+ OutputType extends ClientOutput,
8
+ ResolvedConfiguration
9
+ > {
10
+ readonly input: InputType;
11
+ readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
12
+ resolveMiddleware(
13
+ stack: MiddlewareStack<ClientInput, ClientOutput>,
14
+ configuration: ResolvedConfiguration,
15
+ options: any
16
+ ): Handler<InputType, OutputType>;
17
+ }
@@ -1,13 +1,12 @@
1
- import { Provider } from "./util";
2
-
3
- export interface Credentials {
4
-
5
- readonly accessKeyId: string;
6
-
7
- readonly secretAccessKey: string;
8
-
9
- readonly sessionToken?: string;
10
-
11
- readonly expiration?: Date;
12
- }
13
- export declare type CredentialProvider = Provider<Credentials>;
1
+ import { Provider } from "./util";
2
+
3
+ export interface Credentials {
4
+ readonly accessKeyId: string;
5
+
6
+ readonly secretAccessKey: string;
7
+
8
+ readonly sessionToken?: string;
9
+
10
+ readonly expiration?: Date;
11
+ }
12
+ export declare type CredentialProvider = Provider<Credentials>;
@@ -1,20 +1,19 @@
1
- export declare type SourceData = string | ArrayBuffer | ArrayBufferView;
2
-
3
- export interface Hash {
4
-
5
- update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
6
-
7
- digest(): Promise<Uint8Array>;
8
- }
9
-
10
- export interface HashConstructor {
11
- new (secret?: SourceData): Hash;
12
- }
13
-
14
- export interface StreamHasher<StreamType = any> {
15
- (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
16
- }
17
-
18
- export interface randomValues {
19
- (byteLength: number): Promise<Uint8Array>;
20
- }
1
+ export declare type SourceData = string | ArrayBuffer | ArrayBufferView;
2
+
3
+ export interface Hash {
4
+ update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
5
+
6
+ digest(): Promise<Uint8Array>;
7
+ }
8
+
9
+ export interface HashConstructor {
10
+ new (secret?: SourceData): Hash;
11
+ }
12
+
13
+ export interface StreamHasher<StreamType = any> {
14
+ (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
15
+ }
16
+
17
+ export interface randomValues {
18
+ (byteLength: number): Promise<Uint8Array>;
19
+ }
@@ -1,22 +1,41 @@
1
- export declare enum EndpointURLScheme {
2
- HTTP = "http",
3
- HTTPS = "https"
4
- }
5
- export interface EndpointURL {
6
-
7
- scheme: EndpointURLScheme;
8
-
9
- authority: string;
10
-
11
- path: string;
12
-
13
- isIp: boolean;
14
- }
15
- export declare type EndpointObjectProperty = string | boolean | {
16
- [key: string]: EndpointObjectProperty;
17
- } | EndpointObjectProperty[];
18
- export interface EndpointV2 {
19
- url: URL;
20
- properties?: Record<string, EndpointObjectProperty>;
21
- headers?: Record<string, string[]>;
22
- }
1
+ export interface EndpointPartition {
2
+ name: string;
3
+ dnsSuffix: string;
4
+ dualStackDnsSuffix: string;
5
+ supportsFIPS: boolean;
6
+ supportsDualStack: boolean;
7
+ }
8
+ export interface EndpointARN {
9
+ partition: string;
10
+ service: string;
11
+ region: string;
12
+ accountId: string;
13
+ resourceId: Array<string>;
14
+ }
15
+ export declare enum EndpointURLScheme {
16
+ HTTP = "http",
17
+ HTTPS = "https",
18
+ }
19
+ export interface EndpointURL {
20
+ scheme: EndpointURLScheme;
21
+
22
+ authority: string;
23
+
24
+ path: string;
25
+
26
+ normalizedPath: string;
27
+
28
+ isIp: boolean;
29
+ }
30
+ export declare type EndpointObjectProperty =
31
+ | string
32
+ | boolean
33
+ | {
34
+ [key: string]: EndpointObjectProperty;
35
+ }
36
+ | EndpointObjectProperty[];
37
+ export interface EndpointV2 {
38
+ url: URL;
39
+ properties?: Record<string, EndpointObjectProperty>;
40
+ headers?: Record<string, string[]>;
41
+ }
@@ -1,83 +1,104 @@
1
- import { HttpRequest } from "./http";
2
- import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware";
3
- import { MetadataBearer } from "./response";
4
-
5
- export interface Message {
6
- headers: MessageHeaders;
7
- body: Uint8Array;
8
- }
9
- export declare type MessageHeaders = Record<string, MessageHeaderValue>;
10
- export interface BooleanHeaderValue {
11
- type: "boolean";
12
- value: boolean;
13
- }
14
- export interface ByteHeaderValue {
15
- type: "byte";
16
- value: number;
17
- }
18
- export interface ShortHeaderValue {
19
- type: "short";
20
- value: number;
21
- }
22
- export interface IntegerHeaderValue {
23
- type: "integer";
24
- value: number;
25
- }
26
- export interface LongHeaderValue {
27
- type: "long";
28
- value: Int64;
29
- }
30
- export interface BinaryHeaderValue {
31
- type: "binary";
32
- value: Uint8Array;
33
- }
34
- export interface StringHeaderValue {
35
- type: "string";
36
- value: string;
37
- }
38
- export interface TimestampHeaderValue {
39
- type: "timestamp";
40
- value: Date;
41
- }
42
- export interface UuidHeaderValue {
43
- type: "uuid";
44
- value: string;
45
- }
46
- export declare type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue;
47
- export interface Int64 {
48
- readonly bytes: Uint8Array;
49
- valueOf: () => number;
50
- toString: () => string;
51
- }
52
-
53
- export interface EventStreamSerdeContext {
54
- eventStreamMarshaller: EventStreamMarshaller;
55
- }
56
-
57
- export interface EventStreamMarshallerDeserFn<StreamType> {
58
- <T>(body: StreamType, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
59
- }
60
-
61
- export interface EventStreamMarshallerSerFn<StreamType> {
62
- <T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
63
- }
64
-
65
- export interface EventStreamMarshaller<StreamType = any> {
66
- deserialize: EventStreamMarshallerDeserFn<StreamType>;
67
- serialize: EventStreamMarshallerSerFn<StreamType>;
68
- }
69
- export interface EventStreamRequestSigner {
70
- sign(request: HttpRequest): Promise<HttpRequest>;
71
- }
72
- export interface EventStreamPayloadHandler {
73
- handle: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>, context?: HandlerExecutionContext) => Promise<FinalizeHandlerOutput<Output>>;
74
- }
75
- export interface EventStreamPayloadHandlerProvider {
76
- (options: any): EventStreamPayloadHandler;
77
- }
78
- export interface EventStreamSerdeProvider {
79
- (options: any): EventStreamMarshaller;
80
- }
81
- export interface EventStreamSignerProvider {
82
- (options: any): EventStreamRequestSigner;
83
- }
1
+ import { HttpRequest } from "./http";
2
+ import {
3
+ FinalizeHandler,
4
+ FinalizeHandlerArguments,
5
+ FinalizeHandlerOutput,
6
+ HandlerExecutionContext,
7
+ } from "./middleware";
8
+ import { MetadataBearer } from "./response";
9
+
10
+ export interface Message {
11
+ headers: MessageHeaders;
12
+ body: Uint8Array;
13
+ }
14
+ export declare type MessageHeaders = Record<string, MessageHeaderValue>;
15
+ export interface BooleanHeaderValue {
16
+ type: "boolean";
17
+ value: boolean;
18
+ }
19
+ export interface ByteHeaderValue {
20
+ type: "byte";
21
+ value: number;
22
+ }
23
+ export interface ShortHeaderValue {
24
+ type: "short";
25
+ value: number;
26
+ }
27
+ export interface IntegerHeaderValue {
28
+ type: "integer";
29
+ value: number;
30
+ }
31
+ export interface LongHeaderValue {
32
+ type: "long";
33
+ value: Int64;
34
+ }
35
+ export interface BinaryHeaderValue {
36
+ type: "binary";
37
+ value: Uint8Array;
38
+ }
39
+ export interface StringHeaderValue {
40
+ type: "string";
41
+ value: string;
42
+ }
43
+ export interface TimestampHeaderValue {
44
+ type: "timestamp";
45
+ value: Date;
46
+ }
47
+ export interface UuidHeaderValue {
48
+ type: "uuid";
49
+ value: string;
50
+ }
51
+ export declare type MessageHeaderValue =
52
+ | BooleanHeaderValue
53
+ | ByteHeaderValue
54
+ | ShortHeaderValue
55
+ | IntegerHeaderValue
56
+ | LongHeaderValue
57
+ | BinaryHeaderValue
58
+ | StringHeaderValue
59
+ | TimestampHeaderValue
60
+ | UuidHeaderValue;
61
+ export interface Int64 {
62
+ readonly bytes: Uint8Array;
63
+ valueOf: () => number;
64
+ toString: () => string;
65
+ }
66
+
67
+ export interface EventStreamSerdeContext {
68
+ eventStreamMarshaller: EventStreamMarshaller;
69
+ }
70
+
71
+ export interface EventStreamMarshallerDeserFn<StreamType> {
72
+ <T>(
73
+ body: StreamType,
74
+ deserializer: (input: Record<string, Message>) => Promise<T>
75
+ ): AsyncIterable<T>;
76
+ }
77
+
78
+ export interface EventStreamMarshallerSerFn<StreamType> {
79
+ <T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
80
+ }
81
+
82
+ export interface EventStreamMarshaller<StreamType = any> {
83
+ deserialize: EventStreamMarshallerDeserFn<StreamType>;
84
+ serialize: EventStreamMarshallerSerFn<StreamType>;
85
+ }
86
+ export interface EventStreamRequestSigner {
87
+ sign(request: HttpRequest): Promise<HttpRequest>;
88
+ }
89
+ export interface EventStreamPayloadHandler {
90
+ handle: <Input extends object, Output extends MetadataBearer>(
91
+ next: FinalizeHandler<Input, Output>,
92
+ args: FinalizeHandlerArguments<Input>,
93
+ context?: HandlerExecutionContext
94
+ ) => Promise<FinalizeHandlerOutput<Output>>;
95
+ }
96
+ export interface EventStreamPayloadHandlerProvider {
97
+ (options: any): EventStreamPayloadHandler;
98
+ }
99
+ export interface EventStreamSerdeProvider {
100
+ (options: any): EventStreamMarshaller;
101
+ }
102
+ export interface EventStreamSignerProvider {
103
+ (options: any): EventStreamRequestSigner;
104
+ }
@@ -1,40 +1,42 @@
1
- import { AbortSignal } from "./abort";
2
-
3
- export interface Headers extends Map<string, string> {
4
-
5
- withHeader(headerName: string, headerValue: string): Headers;
6
-
7
- withoutHeader(headerName: string): Headers;
8
- }
9
-
10
- export declare type HeaderBag = Record<string, string>;
11
-
12
- export interface HttpMessage {
13
- headers: HeaderBag;
14
- body?: any;
15
- }
16
-
17
- export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
18
- export interface Endpoint {
19
- protocol: string;
20
- hostname: string;
21
- port?: number;
22
- path: string;
23
- query?: QueryParameterBag;
24
- }
25
-
26
- export interface HttpRequest extends HttpMessage, Endpoint {
27
- method: string;
28
- }
29
-
30
- export interface HttpResponse extends HttpMessage {
31
- statusCode: number;
32
- }
33
-
34
- export interface ResolvedHttpResponse extends HttpResponse {
35
- body: string;
36
- }
37
-
38
- export interface HttpHandlerOptions {
39
- abortSignal?: AbortSignal;
40
- }
1
+ import { AbortSignal } from "./abort";
2
+
3
+ export interface Headers extends Map<string, string> {
4
+ withHeader(headerName: string, headerValue: string): Headers;
5
+
6
+ withoutHeader(headerName: string): Headers;
7
+ }
8
+
9
+ export declare type HeaderBag = Record<string, string>;
10
+
11
+ export interface HttpMessage {
12
+ headers: HeaderBag;
13
+ body?: any;
14
+ }
15
+
16
+ export declare type QueryParameterBag = Record<
17
+ string,
18
+ string | Array<string> | null
19
+ >;
20
+ export interface Endpoint {
21
+ protocol: string;
22
+ hostname: string;
23
+ port?: number;
24
+ path: string;
25
+ query?: QueryParameterBag;
26
+ }
27
+
28
+ export interface HttpRequest extends HttpMessage, Endpoint {
29
+ method: string;
30
+ }
31
+
32
+ export interface HttpResponse extends HttpMessage {
33
+ statusCode: number;
34
+ }
35
+
36
+ export interface ResolvedHttpResponse extends HttpResponse {
37
+ body: string;
38
+ }
39
+
40
+ export interface HttpHandlerOptions {
41
+ abortSignal?: AbortSignal;
42
+ }
@@ -1,21 +1,21 @@
1
- export * from "./abort";
2
- export * from "./client";
3
- export * from "./command";
4
- export * from "./credentials";
5
- export * from "./crypto";
6
- export * from "./endpoint";
7
- export * from "./eventStream";
8
- export * from "./http";
9
- export * from "./logger";
10
- export * from "./middleware";
11
- export * from "./pagination";
12
- export * from "./profile";
13
- export * from "./response";
14
- export * from "./serde";
15
- export * from "./shapes";
16
- export * from "./signature";
17
- export * from "./stream";
18
- export * from "./token";
19
- export * from "./transfer";
20
- export * from "./util";
21
- export * from "./waiter";
1
+ export * from "./abort";
2
+ export * from "./client";
3
+ export * from "./command";
4
+ export * from "./credentials";
5
+ export * from "./crypto";
6
+ export * from "./endpoint";
7
+ export * from "./eventStream";
8
+ export * from "./http";
9
+ export * from "./logger";
10
+ export * from "./middleware";
11
+ export * from "./pagination";
12
+ export * from "./profile";
13
+ export * from "./response";
14
+ export * from "./serde";
15
+ export * from "./shapes";
16
+ export * from "./signature";
17
+ export * from "./stream";
18
+ export * from "./token";
19
+ export * from "./transfer";
20
+ export * from "./util";
21
+ export * from "./waiter";
@@ -1,14 +1,19 @@
1
-
2
- export declare type LogLevel = "all" | "log" | "info" | "warn" | "error" | "off";
3
-
4
- export interface LoggerOptions {
5
- logger?: Logger;
6
- logLevel?: LogLevel;
7
- }
8
-
9
- export interface Logger {
10
- debug(...content: any[]): void;
11
- info(...content: any[]): void;
12
- warn(...content: any[]): void;
13
- error(...content: any[]): void;
14
- }
1
+ export declare type LogLevel =
2
+ | "all"
3
+ | "log"
4
+ | "info"
5
+ | "warn"
6
+ | "error"
7
+ | "off";
8
+
9
+ export interface LoggerOptions {
10
+ logger?: Logger;
11
+ logLevel?: LogLevel;
12
+ }
13
+
14
+ export interface Logger {
15
+ debug(...content: any[]): void;
16
+ info(...content: any[]): void;
17
+ warn(...content: any[]): void;
18
+ error(...content: any[]): void;
19
+ }