@aws-sdk/client-kinesis 3.514.0 → 3.521.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.
@@ -30,7 +30,7 @@ const getRuntimeConfig = (config) => {
30
30
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
31
31
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
32
32
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
33
- requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
33
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
34
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
35
35
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
36
36
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
@@ -36,8 +36,7 @@ const getRuntimeConfig = (config) => {
36
36
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
37
37
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
38
  region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: config?.requestHandler ??
40
- new node_http_handler_1.NodeHttp2Handler(async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true })),
39
+ requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
41
40
  retryMode: config?.retryMode ??
42
41
  (0, node_config_provider_1.loadConfig)({
43
42
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -26,7 +26,7 @@ export const getRuntimeConfig = (config) => {
26
26
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
27
27
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
28
28
  region: config?.region ?? invalidProvider("Region is missing"),
29
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
29
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
30
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
31
  sha256: config?.sha256 ?? Sha256,
32
32
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -32,8 +32,7 @@ export const getRuntimeConfig = (config) => {
32
32
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
33
33
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
34
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
- requestHandler: config?.requestHandler ??
36
- new RequestHandler(async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true })),
35
+ requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
37
36
  retryMode: config?.retryMode ??
38
37
  loadNodeConfig({
39
38
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -4,7 +4,7 @@ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver
4
4
  import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
5
5
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
6
6
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
7
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
7
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
8
8
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
9
9
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
10
10
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
@@ -54,11 +54,11 @@ export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateStreamComm
54
54
  /**
55
55
  * @public
56
56
  */
57
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
57
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
58
58
  /**
59
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
59
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
60
60
  */
61
- requestHandler?: __HttpHandler;
61
+ requestHandler?: __HttpHandlerUserInput;
62
62
  /**
63
63
  * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
64
64
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
@@ -12,10 +12,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
12
12
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  region: string | import("@smithy/types").Provider<any>;
15
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
16
- updateHttpClientConfig(key: never, value: never): void;
17
- httpHandlerConfigs(): {};
18
- }) | RequestHandler;
15
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
19
16
  retryMode: string | import("@smithy/types").Provider<string>;
20
17
  sha256: import("@smithy/types").HashConstructor;
21
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -12,10 +12,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
12
12
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  region: string | import("@smithy/types").Provider<string>;
15
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
16
- updateHttpClientConfig(key: never, value: never): void;
17
- httpHandlerConfigs(): {};
18
- }) | RequestHandler;
15
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
19
16
  retryMode: string | import("@smithy/types").Provider<string>;
20
17
  sha256: import("@smithy/types").HashConstructor;
21
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,10 +5,7 @@ import { KinesisClientConfig } from "./KinesisClient";
5
5
  export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
- updateHttpClientConfig(key: never, value: never): void;
10
- httpHandlerConfigs(): {};
11
- }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
9
  apiVersion: string;
13
10
  urlParser: import("@smithy/types").UrlParser;
14
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -22,7 +22,7 @@ import {
22
22
  RetryInputConfig,
23
23
  RetryResolvedConfig,
24
24
  } from "@smithy/middleware-retry";
25
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
25
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
26
26
  import {
27
27
  Client as __Client,
28
28
  DefaultsMode as __DefaultsMode,
@@ -252,8 +252,8 @@ export type ServiceOutputTypes =
252
252
  | UpdateShardCountCommandOutput
253
253
  | UpdateStreamModeCommandOutput;
254
254
  export interface ClientDefaults
255
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
256
- requestHandler?: __HttpHandler;
255
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
256
+ requestHandler?: __HttpHandlerUserInput;
257
257
  sha256?: __ChecksumConstructor | __HashConstructor;
258
258
  urlParser?: __UrlParser;
259
259
  bodyLengthChecker?: __BodyLengthCalculator;
@@ -16,19 +16,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
16
16
  maxAttempts: number | import("@smithy/types").Provider<number>;
17
17
  region: string | import("@smithy/types").Provider<any>;
18
18
  requestHandler:
19
- | (import("@smithy/types").RequestHandler<
20
- any,
21
- any,
22
- import("@smithy/types").HttpHandlerOptions
23
- > &
24
- import("@smithy/types").RequestHandler<
25
- import("@smithy/protocol-http").HttpRequest,
26
- import("@smithy/protocol-http").HttpResponse,
27
- import("@smithy/types").HttpHandlerOptions
28
- > & {
29
- updateHttpClientConfig(key: never, value: never): void;
30
- httpHandlerConfigs(): {};
31
- })
19
+ | import("@smithy/protocol-http").HttpHandler<any>
32
20
  | RequestHandler;
33
21
  retryMode: string | import("@smithy/types").Provider<string>;
34
22
  sha256: import("@smithy/types").HashConstructor;
@@ -20,20 +20,8 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
20
20
  maxAttempts: number | import("@smithy/types").Provider<number>;
21
21
  region: string | import("@smithy/types").Provider<string>;
22
22
  requestHandler:
23
- | (import("@smithy/types").RequestHandler<
24
- any,
25
- any,
26
- import("@smithy/types").HttpHandlerOptions
27
- > &
28
- import("@smithy/types").RequestHandler<
29
- import("@smithy/protocol-http").HttpRequest,
30
- import("@smithy/protocol-http").HttpResponse,
31
- import("@smithy/types").HttpHandlerOptions
32
- > & {
33
- updateHttpClientConfig(key: never, value: never): void;
34
- httpHandlerConfigs(): {};
35
- })
36
- | RequestHandler;
23
+ | RequestHandler
24
+ | import("@smithy/protocol-http").HttpHandler<any>;
37
25
  retryMode: string | import("@smithy/types").Provider<string>;
38
26
  sha256: import("@smithy/types").HashConstructor;
39
27
  streamCollector: import("@smithy/types").StreamCollector;
@@ -3,19 +3,10 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
3
3
  runtime: string;
4
4
  sha256: import("@smithy/types").HashConstructor;
5
5
  requestHandler:
6
- | (import("@smithy/types").RequestHandler<
7
- any,
8
- any,
9
- import("@smithy/types").HttpHandlerOptions
10
- > &
11
- import("@smithy/types").RequestHandler<
12
- import("@smithy/protocol-http").HttpRequest,
13
- import("@smithy/protocol-http").HttpResponse,
14
- import("@smithy/types").HttpHandlerOptions
15
- > & {
16
- updateHttpClientConfig(key: never, value: never): void;
17
- httpHandlerConfigs(): {};
18
- })
6
+ | import("@smithy/types").NodeHttpHandlerOptions
7
+ | import("@smithy/types").FetchHttpHandlerOptions
8
+ | Record<string, unknown>
9
+ | import("@smithy/protocol-http").HttpHandler<any>
19
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
20
11
  apiVersion: string;
21
12
  urlParser: import("@smithy/types").UrlParser;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis",
3
3
  "description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
4
- "version": "3.514.0",
4
+ "version": "3.521.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis",
@@ -21,47 +21,47 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.513.0",
25
- "@aws-sdk/core": "3.513.0",
26
- "@aws-sdk/credential-provider-node": "3.514.0",
27
- "@aws-sdk/middleware-host-header": "3.511.0",
28
- "@aws-sdk/middleware-logger": "3.511.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.511.0",
30
- "@aws-sdk/middleware-user-agent": "3.511.0",
31
- "@aws-sdk/region-config-resolver": "3.511.0",
32
- "@aws-sdk/types": "3.511.0",
33
- "@aws-sdk/util-endpoints": "3.511.0",
34
- "@aws-sdk/util-user-agent-browser": "3.511.0",
35
- "@aws-sdk/util-user-agent-node": "3.511.0",
36
- "@smithy/config-resolver": "^2.1.1",
37
- "@smithy/core": "^1.3.2",
38
- "@smithy/eventstream-serde-browser": "^2.1.1",
39
- "@smithy/eventstream-serde-config-resolver": "^2.1.1",
40
- "@smithy/eventstream-serde-node": "^2.1.1",
41
- "@smithy/fetch-http-handler": "^2.4.1",
42
- "@smithy/hash-node": "^2.1.1",
43
- "@smithy/invalid-dependency": "^2.1.1",
44
- "@smithy/middleware-content-length": "^2.1.1",
45
- "@smithy/middleware-endpoint": "^2.4.1",
46
- "@smithy/middleware-retry": "^2.1.1",
47
- "@smithy/middleware-serde": "^2.1.1",
48
- "@smithy/middleware-stack": "^2.1.1",
49
- "@smithy/node-config-provider": "^2.2.1",
50
- "@smithy/node-http-handler": "^2.3.1",
51
- "@smithy/protocol-http": "^3.1.1",
52
- "@smithy/smithy-client": "^2.3.1",
53
- "@smithy/types": "^2.9.1",
54
- "@smithy/url-parser": "^2.1.1",
24
+ "@aws-sdk/client-sts": "3.521.0",
25
+ "@aws-sdk/core": "3.521.0",
26
+ "@aws-sdk/credential-provider-node": "3.521.0",
27
+ "@aws-sdk/middleware-host-header": "3.521.0",
28
+ "@aws-sdk/middleware-logger": "3.521.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.521.0",
30
+ "@aws-sdk/middleware-user-agent": "3.521.0",
31
+ "@aws-sdk/region-config-resolver": "3.521.0",
32
+ "@aws-sdk/types": "3.521.0",
33
+ "@aws-sdk/util-endpoints": "3.521.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.521.0",
35
+ "@aws-sdk/util-user-agent-node": "3.521.0",
36
+ "@smithy/config-resolver": "^2.1.2",
37
+ "@smithy/core": "^1.3.3",
38
+ "@smithy/eventstream-serde-browser": "^2.1.2",
39
+ "@smithy/eventstream-serde-config-resolver": "^2.1.2",
40
+ "@smithy/eventstream-serde-node": "^2.1.2",
41
+ "@smithy/fetch-http-handler": "^2.4.2",
42
+ "@smithy/hash-node": "^2.1.2",
43
+ "@smithy/invalid-dependency": "^2.1.2",
44
+ "@smithy/middleware-content-length": "^2.1.2",
45
+ "@smithy/middleware-endpoint": "^2.4.2",
46
+ "@smithy/middleware-retry": "^2.1.2",
47
+ "@smithy/middleware-serde": "^2.1.2",
48
+ "@smithy/middleware-stack": "^2.1.2",
49
+ "@smithy/node-config-provider": "^2.2.2",
50
+ "@smithy/node-http-handler": "^2.4.0",
51
+ "@smithy/protocol-http": "^3.2.0",
52
+ "@smithy/smithy-client": "^2.4.0",
53
+ "@smithy/types": "^2.10.0",
54
+ "@smithy/url-parser": "^2.1.2",
55
55
  "@smithy/util-base64": "^2.1.1",
56
56
  "@smithy/util-body-length-browser": "^2.1.1",
57
57
  "@smithy/util-body-length-node": "^2.2.1",
58
- "@smithy/util-defaults-mode-browser": "^2.1.1",
59
- "@smithy/util-defaults-mode-node": "^2.2.0",
60
- "@smithy/util-endpoints": "^1.1.1",
61
- "@smithy/util-middleware": "^2.1.1",
62
- "@smithy/util-retry": "^2.1.1",
58
+ "@smithy/util-defaults-mode-browser": "^2.1.2",
59
+ "@smithy/util-defaults-mode-node": "^2.2.1",
60
+ "@smithy/util-endpoints": "^1.1.2",
61
+ "@smithy/util-middleware": "^2.1.2",
62
+ "@smithy/util-retry": "^2.1.2",
63
63
  "@smithy/util-utf8": "^2.1.1",
64
- "@smithy/util-waiter": "^2.1.1",
64
+ "@smithy/util-waiter": "^2.1.2",
65
65
  "tslib": "^2.5.0"
66
66
  },
67
67
  "devDependencies": {