@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.
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
@@ -1,2 +1 @@
1
- ;
2
1
  export {};
@@ -1,7 +1,12 @@
1
+ /**
2
+ * @public
3
+ */
1
4
  export interface AbortHandler {
2
5
  (this: AbortSignal, ev: any): any;
3
6
  }
4
7
  /**
8
+ * @public
9
+ *
5
10
  * Holders of an AbortSignal object may query if the associated operation has
6
11
  * been aborted and register an onabort handler.
7
12
  *
@@ -19,6 +24,8 @@ export interface AbortSignal {
19
24
  onabort: AbortHandler | null;
20
25
  }
21
26
  /**
27
+ * @public
28
+ *
22
29
  * The AWS SDK uses a Controller/Signal model to allow for cooperative
23
30
  * cancellation of asynchronous operations. When initiating such an operation,
24
31
  * the caller can create an AbortController and then provide linked signal to
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * Authentication schemes represent a way that the service will authenticate the customer’s identity.
3
5
  */
4
6
  export interface AuthScheme {
@@ -25,6 +27,9 @@ export interface AuthScheme {
25
27
  signingScope?: never;
26
28
  properties: Record<string, unknown>;
27
29
  }
30
+ /**
31
+ * @internal
32
+ */
28
33
  export interface HttpAuthDefinition {
29
34
  /**
30
35
  * Defines the location of where the Auth is serialized.
@@ -41,6 +46,9 @@ export interface HttpAuthDefinition {
41
46
  */
42
47
  scheme?: string;
43
48
  }
49
+ /**
50
+ * @internal
51
+ */
44
52
  export declare enum HttpAuthLocation {
45
53
  HEADER = "header",
46
54
  QUERY = "query"
@@ -1,5 +1,7 @@
1
1
  import { SourceData } from "./crypto";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * An object that provides a checksum of data provided in chunks to `update`.
4
6
  * The checksum may be performed incrementally as chunks are received or all
5
7
  * at once when the checksum is finalized, depending on the underlying
@@ -50,6 +52,8 @@ export interface Checksum {
50
52
  update(chunk: Uint8Array): void;
51
53
  }
52
54
  /**
55
+ * @public
56
+ *
53
57
  * A constructor for a Checksum that may be used to calculate an HMAC. Implementing
54
58
  * classes should not directly hold the provided key in memory beyond the
55
59
  * lexical scope of the constructor.
@@ -2,6 +2,8 @@ import { Command } from "./command";
2
2
  import { MiddlewareStack } from "./middleware";
3
3
  import { MetadataBearer } from "./response";
4
4
  /**
5
+ * @public
6
+ *
5
7
  * function definition for different overrides of client's 'send' function.
6
8
  */
7
9
  interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {
@@ -1,5 +1,8 @@
1
1
  import { Handler, MiddlewareStack } from "./middleware";
2
2
  import { MetadataBearer } from "./response";
3
+ /**
4
+ * @public
5
+ */
3
6
  export interface Command<ClientInput extends object, InputType extends ClientInput, ClientOutput extends MetadataBearer, OutputType extends ClientOutput, ResolvedConfiguration> {
4
7
  readonly input: InputType;
5
8
  readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
@@ -1,6 +1,8 @@
1
1
  import { AwsCredentialIdentity } from "./identity";
2
2
  import { Provider } from "./util";
3
3
  /**
4
+ * @public
5
+ *
4
6
  * An object representing temporary or permanent AWS credentials.
5
7
  *
6
8
  * @deprecated Use {@AwsCredentialIdentity}
@@ -8,6 +10,8 @@ import { Provider } from "./util";
8
10
  export interface Credentials extends AwsCredentialIdentity {
9
11
  }
10
12
  /**
13
+ * @public
14
+ *
11
15
  * @deprecated Use {@AwsCredentialIdentityProvider}
12
16
  */
13
17
  export declare type CredentialProvider = Provider<Credentials>;
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @public
3
+ */
1
4
  export declare type SourceData = string | ArrayBuffer | ArrayBufferView;
2
5
  /**
6
+ * @public
7
+ *
3
8
  * An object that provides a hash of data provided in chunks to `update`. The
4
9
  * hash may be performed incrementally as chunks are received or all at once
5
10
  * when the hash is finalized, depending on the underlying implementation.
@@ -23,6 +28,8 @@ export interface Hash {
23
28
  digest(): Promise<Uint8Array>;
24
29
  }
25
30
  /**
31
+ * @public
32
+ *
26
33
  * A constructor for a hash that may be used to calculate an HMAC. Implementing
27
34
  * classes should not directly hold the provided key in memory beyond the
28
35
  * lexical scope of the constructor.
@@ -33,6 +40,8 @@ export interface HashConstructor {
33
40
  new (secret?: SourceData): Hash;
34
41
  }
35
42
  /**
43
+ * @public
44
+ *
36
45
  * A function that calculates the hash of a data stream. Determining the hash
37
46
  * will consume the stream, so only replayable streams should be provided to an
38
47
  * implementation of this interface.
@@ -41,6 +50,8 @@ export interface StreamHasher<StreamType = any> {
41
50
  (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
42
51
  }
43
52
  /**
53
+ * @public
54
+ *
44
55
  * A function that returns a promise fulfilled with bytes from a
45
56
  * cryptographically secure pseudorandom number generator.
46
57
  */
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @public
3
+ *
2
4
  * DNS record types
3
5
  */
4
6
  export declare enum HostAddressType {
@@ -11,6 +13,9 @@ export declare enum HostAddressType {
11
13
  */
12
14
  A = "A"
13
15
  }
16
+ /**
17
+ * @public
18
+ */
14
19
  export interface HostAddress {
15
20
  /**
16
21
  * The {@link HostAddressType} of the host address.
@@ -30,6 +35,9 @@ export interface HostAddress {
30
35
  */
31
36
  service?: string;
32
37
  }
38
+ /**
39
+ * @public
40
+ */
33
41
  export interface HostResolverArguments {
34
42
  /**
35
43
  * The host name to resolve.
@@ -41,6 +49,8 @@ export interface HostResolverArguments {
41
49
  service?: string;
42
50
  }
43
51
  /**
52
+ * @public
53
+ *
44
54
  * Host Resolver interface for DNS queries
45
55
  */
46
56
  export interface HostResolver {
@@ -1,4 +1,7 @@
1
1
  import { AuthScheme } from "./auth";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface EndpointPartition {
3
6
  name: string;
4
7
  dnsSuffix: string;
@@ -6,6 +9,9 @@ export interface EndpointPartition {
6
9
  supportsFIPS: boolean;
7
10
  supportsDualStack: boolean;
8
11
  }
12
+ /**
13
+ * @public
14
+ */
9
15
  export interface EndpointARN {
10
16
  partition: string;
11
17
  service: string;
@@ -13,10 +19,16 @@ export interface EndpointARN {
13
19
  accountId: string;
14
20
  resourceId: Array<string>;
15
21
  }
22
+ /**
23
+ * @public
24
+ */
16
25
  export declare enum EndpointURLScheme {
17
26
  HTTP = "http",
18
27
  HTTPS = "https"
19
28
  }
29
+ /**
30
+ * @public
31
+ */
20
32
  export interface EndpointURL {
21
33
  /**
22
34
  * The URL scheme such as http or https.
@@ -41,9 +53,15 @@ export interface EndpointURL {
41
53
  */
42
54
  isIp: boolean;
43
55
  }
56
+ /**
57
+ * @public
58
+ */
44
59
  export declare type EndpointObjectProperty = string | boolean | {
45
60
  [key: string]: EndpointObjectProperty;
46
61
  } | EndpointObjectProperty[];
62
+ /**
63
+ * @public
64
+ */
47
65
  export interface EndpointV2 {
48
66
  url: URL;
49
67
  properties?: {
@@ -51,6 +69,9 @@ export interface EndpointV2 {
51
69
  } & Record<string, EndpointObjectProperty>;
52
70
  headers?: Record<string, string[]>;
53
71
  }
72
+ /**
73
+ * @public
74
+ */
54
75
  export declare type EndpointParameters = {
55
76
  [name: string]: undefined | string | boolean;
56
77
  };
@@ -2,6 +2,8 @@ import { HttpRequest } from "./http";
2
2
  import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware";
3
3
  import { MetadataBearer } from "./response";
4
4
  /**
5
+ * @public
6
+ *
5
7
  * An event stream message. The headers and body properties will always be
6
8
  * defined, with empty headers represented as an object with no keys and an
7
9
  * empty body represented as a zero-length Uint8Array.
@@ -10,68 +12,112 @@ export interface Message {
10
12
  headers: MessageHeaders;
11
13
  body: Uint8Array;
12
14
  }
15
+ /**
16
+ * @public
17
+ */
13
18
  export declare type MessageHeaders = Record<string, MessageHeaderValue>;
19
+ /**
20
+ * @public
21
+ */
14
22
  export interface BooleanHeaderValue {
15
23
  type: "boolean";
16
24
  value: boolean;
17
25
  }
26
+ /**
27
+ * @public
28
+ */
18
29
  export interface ByteHeaderValue {
19
30
  type: "byte";
20
31
  value: number;
21
32
  }
33
+ /**
34
+ * @public
35
+ */
22
36
  export interface ShortHeaderValue {
23
37
  type: "short";
24
38
  value: number;
25
39
  }
40
+ /**
41
+ * @public
42
+ */
26
43
  export interface IntegerHeaderValue {
27
44
  type: "integer";
28
45
  value: number;
29
46
  }
47
+ /**
48
+ * @public
49
+ */
30
50
  export interface LongHeaderValue {
31
51
  type: "long";
32
52
  value: Int64;
33
53
  }
54
+ /**
55
+ * @public
56
+ */
34
57
  export interface BinaryHeaderValue {
35
58
  type: "binary";
36
59
  value: Uint8Array;
37
60
  }
61
+ /**
62
+ * @public
63
+ */
38
64
  export interface StringHeaderValue {
39
65
  type: "string";
40
66
  value: string;
41
67
  }
68
+ /**
69
+ * @public
70
+ */
42
71
  export interface TimestampHeaderValue {
43
72
  type: "timestamp";
44
73
  value: Date;
45
74
  }
75
+ /**
76
+ * @public
77
+ */
46
78
  export interface UuidHeaderValue {
47
79
  type: "uuid";
48
80
  value: string;
49
81
  }
82
+ /**
83
+ * @public
84
+ */
50
85
  export declare type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue;
86
+ /**
87
+ * @public
88
+ */
51
89
  export interface Int64 {
52
90
  readonly bytes: Uint8Array;
53
91
  valueOf: () => number;
54
92
  toString: () => string;
55
93
  }
56
94
  /**
95
+ * @public
96
+ *
57
97
  * Util functions for serializing or deserializing event stream
58
98
  */
59
99
  export interface EventStreamSerdeContext {
60
100
  eventStreamMarshaller: EventStreamMarshaller;
61
101
  }
62
102
  /**
103
+ * @public
104
+ *
63
105
  * A function which deserializes binary event stream message into modeled shape.
64
106
  */
65
107
  export interface EventStreamMarshallerDeserFn<StreamType> {
66
108
  <T>(body: StreamType, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
67
109
  }
68
110
  /**
111
+ * @public
112
+ *
69
113
  * A function that serializes modeled shape into binary stream message.
70
114
  */
71
115
  export interface EventStreamMarshallerSerFn<StreamType> {
72
116
  <T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
73
117
  }
74
118
  /**
119
+ * @public
120
+ *
75
121
  * An interface which provides functions for serializing and deserializing binary event stream
76
122
  * to/from corresponsing modeled shape.
77
123
  */
@@ -79,18 +125,33 @@ export interface EventStreamMarshaller<StreamType = any> {
79
125
  deserialize: EventStreamMarshallerDeserFn<StreamType>;
80
126
  serialize: EventStreamMarshallerSerFn<StreamType>;
81
127
  }
128
+ /**
129
+ * @public
130
+ */
82
131
  export interface EventStreamRequestSigner {
83
132
  sign(request: HttpRequest): Promise<HttpRequest>;
84
133
  }
134
+ /**
135
+ * @public
136
+ */
85
137
  export interface EventStreamPayloadHandler {
86
138
  handle: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>, context?: HandlerExecutionContext) => Promise<FinalizeHandlerOutput<Output>>;
87
139
  }
140
+ /**
141
+ * @public
142
+ */
88
143
  export interface EventStreamPayloadHandlerProvider {
89
144
  (options: any): EventStreamPayloadHandler;
90
145
  }
146
+ /**
147
+ * @public
148
+ */
91
149
  export interface EventStreamSerdeProvider {
92
150
  (options: any): EventStreamMarshaller;
93
151
  }
152
+ /**
153
+ * @public
154
+ */
94
155
  export interface EventStreamSignerProvider {
95
156
  (options: any): EventStreamRequestSigner;
96
157
  }
@@ -1,5 +1,7 @@
1
1
  import { AbortSignal } from "./abort";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * A collection of key/value pairs with case-insensitive keys.
4
6
  */
5
7
  export interface Headers extends Map<string, string> {
@@ -20,6 +22,8 @@ export interface Headers extends Map<string, string> {
20
22
  withoutHeader(headerName: string): Headers;
21
23
  }
22
24
  /**
25
+ * @public
26
+ *
23
27
  * A mapping of header names to string values. Multiple values for the same
24
28
  * header should be represented as a single string with values separated by
25
29
  * `, `.
@@ -36,23 +40,33 @@ export interface Headers extends Map<string, string> {
36
40
  * The SDK may at any point during processing remove one of the object
37
41
  * properties in favor of the other. The headers may or may not be combined, and
38
42
  * the SDK will not deterministically select which header candidate to use.
43
+ *
44
+ * @deprecated Replaced by implementation Fields in @aws-sdk/protocol-http.
39
45
  */
40
46
  export declare type HeaderBag = Record<string, string>;
41
47
  /**
48
+ * @public
49
+ *
42
50
  * Represents an HTTP message with headers and an optional static or streaming
43
51
  * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
52
+ *
53
+ * @deprecated Replaced by implementation HttpRequest/HttpResponse in @aws-sdk/protocol-http.
44
54
  */
45
55
  export interface HttpMessage {
46
56
  headers: HeaderBag;
47
57
  body?: any;
48
58
  }
49
59
  /**
60
+ * @public
61
+ *
50
62
  * A mapping of query parameter names to strings or arrays of strings, with the
51
63
  * second being used when a parameter contains a list of values. Value can be set
52
64
  * to null when query is not in key-value pairs shape
53
65
  */
54
66
  export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
55
67
  /**
68
+ * @public
69
+ *
56
70
  * @deprecated use EndpointV2 from @aws-sdk/types.
57
71
  */
58
72
  export interface Endpoint {
@@ -63,13 +77,19 @@ export interface Endpoint {
63
77
  query?: QueryParameterBag;
64
78
  }
65
79
  /**
80
+ * @public
81
+ *
66
82
  * Interface an HTTP request class. Contains
67
83
  * addressing information in addition to standard message properties.
84
+ *
85
+ * @deprecated Replaced by implementation HttpRequest in @aws-sdk/protocol-http.
68
86
  */
69
87
  export interface HttpRequest extends HttpMessage, Endpoint {
70
88
  method: string;
71
89
  }
72
90
  /**
91
+ * @public
92
+ *
73
93
  * Represents an HTTP message as received in reply to a request. Contains a
74
94
  * numeric status code in addition to standard message properties.
75
95
  */
@@ -77,6 +97,8 @@ export interface HttpResponse extends HttpMessage {
77
97
  statusCode: number;
78
98
  }
79
99
  /**
100
+ * @public
101
+ *
80
102
  * Represents HTTP message whose body has been resolved to a string. This is
81
103
  * used in parsing http message.
82
104
  */
@@ -84,6 +106,8 @@ export interface ResolvedHttpResponse extends HttpResponse {
84
106
  body: string;
85
107
  }
86
108
  /**
109
+ * @public
110
+ *
87
111
  * Represents the options that may be passed to an Http Handler.
88
112
  */
89
113
  export interface HttpHandlerOptions {
@@ -1,3 +1,6 @@
1
1
  import { Identity } from "./Identity";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface AnonymousIdentity extends Identity {
3
6
  }
@@ -1,4 +1,7 @@
1
1
  import { Identity, IdentityProvider } from "./Identity";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface AwsCredentialIdentity extends Identity {
3
6
  /**
4
7
  * AWS access key ID
@@ -14,4 +17,7 @@ export interface AwsCredentialIdentity extends Identity {
14
17
  */
15
18
  readonly sessionToken?: string;
16
19
  }
20
+ /**
21
+ * @public
22
+ */
17
23
  export declare type AwsCredentialIdentityProvider = IdentityProvider<AwsCredentialIdentity>;
@@ -1,9 +1,15 @@
1
+ /**
2
+ * @public
3
+ */
1
4
  export interface Identity {
2
5
  /**
3
6
  * A {Date} when the identity or credential will no longer be accepted.
4
7
  */
5
8
  readonly expiration?: Date;
6
9
  }
10
+ /**
11
+ * @public
12
+ */
7
13
  export interface IdentityProvider<IdentityT extends Identity> {
8
14
  (identityProperties?: Record<string, any>): Promise<IdentityT>;
9
15
  }
@@ -1,4 +1,7 @@
1
1
  import { Identity, IdentityProvider } from "./Identity";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface LoginIdentity extends Identity {
3
6
  /**
4
7
  * Identity username
@@ -9,4 +12,7 @@ export interface LoginIdentity extends Identity {
9
12
  */
10
13
  readonly password: string;
11
14
  }
15
+ /**
16
+ * @public
17
+ */
12
18
  export declare type LoginIdentityProvider = IdentityProvider<LoginIdentity>;
@@ -1,8 +1,14 @@
1
1
  import { Identity, IdentityProvider } from "./Identity";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface TokenIdentity extends Identity {
3
6
  /**
4
7
  * The literal token string
5
8
  */
6
9
  readonly token: string;
7
10
  }
11
+ /**
12
+ * @public
13
+ */
8
14
  export declare type TokenIdentityProvider = IdentityProvider<TokenIdentity>;
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @public
3
+ *
2
4
  * A list of logger's log level. These levels are sorted in
3
5
  * order of increasing severity. Each log level includes itself and all
4
6
  * the levels behind itself.
@@ -8,6 +10,8 @@
8
10
  */
9
11
  export declare type LogLevel = "all" | "trace" | "debug" | "log" | "info" | "warn" | "error" | "off";
10
12
  /**
13
+ * @public
14
+ *
11
15
  * An object consumed by Logger constructor to initiate a logger object.
12
16
  */
13
17
  export interface LoggerOptions {
@@ -15,6 +19,8 @@ export interface LoggerOptions {
15
19
  logLevel?: LogLevel;
16
20
  }
17
21
  /**
22
+ * @public
23
+ *
18
24
  * Represents a logger object that is available in HandlerExecutionContext
19
25
  * throughout the middleware stack.
20
26
  */