@aws-sdk/client-kinesis 3.1075.0 → 3.1077.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,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -25,7 +24,6 @@ export const getRuntimeConfig = (config) => {
25
24
  region: config?.region ?? invalidProvider("Region is missing"),
26
25
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
26
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
28
- sha256: config?.sha256 ?? Sha256,
29
27
  streamCollector: config?.streamCollector ?? streamCollector,
30
28
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
31
29
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -6,7 +6,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
8
8
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
9
+ import { calculateBodyLength } from "@smithy/core/serde";
10
10
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export const getRuntimeConfig = (config) => {
@@ -40,7 +40,6 @@ export const getRuntimeConfig = (config) => {
40
40
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
41
41
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
42
42
  }, config),
43
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
44
43
  streamCollector: config?.streamCollector ?? streamCollector,
45
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
45
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  serviceTarget: "Kinesis_20131202",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "Kinesis",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
14
14
  region: string | import("@smithy/types").Provider<any>;
15
15
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  cacheMiddleware?: boolean | undefined;
@@ -25,6 +24,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
25
24
  [setting: string]: unknown;
26
25
  };
27
26
  apiVersion: string;
27
+ sha256: import("@smithy/types").HashConstructor;
28
28
  urlParser: import("@smithy/types").UrlParser;
29
29
  base64Decoder: import("@smithy/types").Decoder;
30
30
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -15,8 +15,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
15
15
  region: string | import("@smithy/types").Provider<string>;
16
16
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -27,6 +26,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
27
26
  [setting: string]: unknown;
28
27
  };
29
28
  apiVersion: string;
29
+ sha256: import("@smithy/types").HashConstructor;
30
30
  urlParser: import("@smithy/types").UrlParser;
31
31
  base64Decoder: import("@smithy/types").Decoder;
32
32
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { KinesisClientConfig } from "./KinesisClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_1Protocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -21,8 +21,13 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
21
21
  | import("@smithy/core/protocols").HttpHandler<any>
22
22
  | RequestHandler;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
- sha256: import("@smithy/types").HashConstructor;
25
- streamCollector: import("@smithy/types").StreamCollector;
24
+ streamCollector: (
25
+ stream:
26
+ | import("stream").Readable
27
+ | import("stream/web").ReadableStream
28
+ | ReadableStream
29
+ | Blob
30
+ ) => Promise<Uint8Array>;
26
31
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
27
32
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
28
33
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -37,6 +42,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
37
42
  [setting: string]: unknown;
38
43
  };
39
44
  apiVersion: string;
45
+ sha256: import("@smithy/types").HashConstructor;
40
46
  urlParser: import("@smithy/types").UrlParser;
41
47
  base64Decoder: import("@smithy/types").Decoder;
42
48
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -22,8 +22,13 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
22
22
  | RequestHandler
23
23
  | import("@smithy/core/protocols").HttpHandler<any>;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
- sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
27
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
34
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -37,6 +42,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
37
42
  [setting: string]: unknown;
38
43
  };
39
44
  apiVersion: string;
45
+ sha256: import("@smithy/types").HashConstructor;
40
46
  urlParser: import("@smithy/types").UrlParser;
41
47
  base64Decoder: import("@smithy/types").Decoder;
42
48
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { KinesisClientConfig } from "./KinesisClient";
2
2
  export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,9 +17,16 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
24
24
  defaultNamespace?: string;
25
25
  };
26
26
  serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
27
28
  urlParser: import("@smithy/types").UrlParser;
28
29
  utf8Decoder: import("@smithy/types").Decoder;
29
30
  utf8Encoder: (input: Uint8Array | string) => string;
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.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -25,19 +25,17 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@aws-crypto/sha256-browser": "5.2.0",
29
- "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.23",
31
- "@aws-sdk/credential-provider-node": "^3.972.58",
32
- "@aws-sdk/types": "^3.973.13",
33
- "@smithy/core": "^3.24.6",
34
- "@smithy/fetch-http-handler": "^5.4.6",
35
- "@smithy/node-http-handler": "^4.7.6",
36
- "@smithy/types": "^4.14.3",
28
+ "@aws-sdk/core": "^3.974.25",
29
+ "@aws-sdk/credential-provider-node": "^3.972.60",
30
+ "@aws-sdk/types": "^3.973.14",
31
+ "@smithy/core": "^3.28.0",
32
+ "@smithy/fetch-http-handler": "^5.6.1",
33
+ "@smithy/node-http-handler": "^4.9.1",
34
+ "@smithy/types": "^4.15.0",
37
35
  "tslib": "^2.6.2"
38
36
  },
39
37
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.1.7",
38
+ "@smithy/snapshot-testing": "^2.2.4",
41
39
  "@tsconfig/node20": "20.1.8",
42
40
  "@types/node": "^20.14.8",
43
41
  "concurrently": "7.0.0",
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultKinesisHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "kinesis",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultKinesisHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,222 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const U = "ref";
3
- const a = -1, b = false, c = true, d = "isSet", e = "PartitionResult", f = "stringEquals", g = "substring", h = "coalesce", i = "", j = "-", k = "aws.parseArn", l = (n) => "arn_ssa_" + n + i, m = "isValidHostLabel", n = "getAttr", o = "accountId", p = "region", q = "service", s = "kinesis", t = "resourceId[0]", u = (n) => "arnType_ssa_" + n + i, v = "stream", w = "partition", x = "booleanEquals", y = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", z = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", A = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", B = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", C = (n) => "Partition: {arn_ssa_" + n + "#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", D = (n) => "Invalid ARN: Kinesis ARNs don't support `{arnType_ssa_" + n + "}` arn types.", E = (n) => "Invalid ARN: The ARN was not for the Kinesis service, found: {arn_ssa_" + n + "#service}.", F = { "fn": n, "argv": [{ [U]: e }, "name"] }, G = { [U]: "StreamId" }, H = { [U]: "Endpoint" }, I = { [U]: "arn_ssa_3" }, J = { [U]: "arnType_ssa_1" }, K = { [U]: "arn_ssa_2" }, L = { [U]: "arnType_ssa_3" }, M = { [U]: "arn_ssa_1" }, N = { [U]: "arnType_ssa_2" }, O = { [U]: e }, P = {}, Q = [{ [U]: "Region" }], R = [{ [U]: "StreamARN" }], S = [{ [U]: "ConsumerARN" }], T = [{ [U]: "ResourceARN" }];
4
- const _data = {
5
- conditions: [
6
- [d, Q],
7
- ["aws.partition", Q, e],
8
- [f, [F, "aws-iso-b"]],
9
- [f, [F, "aws-iso"]],
10
- [d, [G]],
11
- [g, [G, 21, 24, b], "StreamIdSuffixValue"],
12
- [g, [G, 0, 20, b], "StreamIdPrefixValue"],
13
- [f, [{ fn: h, argv: [{ fn: g, argv: [G, 20, 21, b] }, i] }, j]],
14
- [f, [{ fn: h, argv: [{ fn: g, argv: [G, 3, 4, c] }, i] }, j]],
15
- [d, [H]],
16
- [d, R],
17
- [k, R, l(3)],
18
- [m, [{ fn: n, argv: [I, o] }, b]],
19
- [m, [{ fn: n, argv: [I, p] }, b]],
20
- [g, [H, 15, 20, b], "HttpsCustomEndpointSuffixValue"],
21
- [f, [{ fn: h, argv: [{ fn: g, argv: [H, 20, 21, b] }, i] }, "."]],
22
- [f, [{ fn: h, argv: [{ fn: g, argv: [H, 15, 16, b] }, i] }, j]],
23
- [g, [H, 7, 12, b], "PlainCustomEndpointSuffixValue"],
24
- [f, [{ fn: n, argv: [I, q] }, s]],
25
- [n, [I, t], u(1)],
26
- [f, [J, i]],
27
- [f, [J, v]],
28
- [d, S],
29
- [d, T],
30
- [k, T, l(2)],
31
- [m, [{ fn: n, argv: [K, o] }, b]],
32
- [m, [{ fn: n, argv: [K, p] }, b]],
33
- [f, [{ fn: n, argv: [K, q] }, s]],
34
- [n, [K, t], u(3)],
35
- [f, [L, i]],
36
- [f, [L, v]],
37
- [f, [F, { fn: n, argv: [K, w] }]],
38
- [k, S, l(1)],
39
- [m, [{ fn: n, argv: [M, o] }, b]],
40
- [m, [{ fn: n, argv: [M, p] }, b]],
41
- [f, [{ fn: n, argv: [M, q] }, s]],
42
- [n, [M, t], u(2)],
43
- [f, [N, i]],
44
- [f, [N, v]],
45
- [f, [F, { fn: n, argv: [M, w] }]],
46
- [f, [F, { fn: n, argv: [I, w] }]],
47
- [d, [{ [U]: "OperationType" }]],
48
- [x, [{ [U]: "UseFIPS" }, c]],
49
- [x, [{ fn: n, argv: [O, "supportsFIPS"] }, c]],
50
- [x, [{ [U]: "UseDualStack" }, c]],
51
- [x, [{ fn: n, argv: [O, "supportsDualStack"] }, c]],
52
- [f, [F, "aws-us-gov"]],
53
- [f, [{ fn: h, argv: [{ fn: g, argv: [H, 7, 8, b] }, i] }, j]],
54
- [f, [{ fn: h, argv: [{ fn: g, argv: [H, 12, 13, b] }, i] }, "."]]
55
- ],
56
- results: [
57
- [a],
58
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
59
- [a, "DualStack is enabled, but this partition does not support DualStack."],
60
- [a, "FIPS is enabled, but this partition does not support FIPS."],
61
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
62
- [a, "FIPS is enabled but this partition does not support FIPS"],
63
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
64
- [a, "DualStack is enabled but this partition does not support DualStack"],
65
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
66
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
67
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
68
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
69
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
70
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
71
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
72
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
73
- ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
74
- [a, "Operation Type is not set. Please contact service team for resolution."],
75
- [y(3), P],
76
- [z(3), P],
77
- [A(3), P],
78
- [B(3), P],
79
- [a, C(3)],
80
- [a, D(1)],
81
- [a, "Invalid ARN: No ARN type specified"],
82
- [a, E(3)],
83
- [a, "Invalid ARN: Invalid region."],
84
- [a, "Invalid ARN: Invalid account id."],
85
- [a, "Invalid ARN: Failed to parse ARN."],
86
- [y(1), P],
87
- [z(1), P],
88
- [A(1), P],
89
- [B(1), P],
90
- [a, C(1)],
91
- [a, D(2)],
92
- [a, E(1)],
93
- [y(2), P],
94
- [z(2), P],
95
- [A(2), P],
96
- [B(2), P],
97
- [a, C(2)],
98
- [a, D(3)],
99
- [a, E(2)],
100
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
101
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
102
- [H, P],
103
- ["https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
104
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
105
- ["https://kinesis.{Region}.amazonaws.com", P],
106
- ["https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
107
- ["https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
108
- ["https://kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
109
- [a, "Invalid Configuration: Missing Region"]
110
- ]
111
- };
112
- const root = 2;
113
- const r = 100_000_000;
114
- const nodes = new Int32Array([
115
- -1, 1, -1,
116
- 0, 3, 4,
117
- 1, 5, 4,
118
- 9, 105, r + 52,
119
- 2, 96, 6,
120
- 3, 96, 7,
121
- 4, 8, 12,
122
- 5, 9, 12,
123
- 6, 10, 12,
124
- 7, 11, 12,
125
- 8, 61, 12,
126
- 9, 105, 13,
127
- 10, 46, 14,
128
- 22, 31, 15,
129
- 23, 16, 97,
130
- 24, 17, r + 28,
131
- 25, 18, r + 27,
132
- 26, 19, r + 26,
133
- 27, 20, r + 42,
134
- 28, 21, r + 24,
135
- 29, r + 24, 22,
136
- 30, 23, r + 41,
137
- 31, 24, r + 40,
138
- 41, 25, r + 17,
139
- 42, 28, 26,
140
- 44, 27, r + 39,
141
- 45, r + 38, r + 7,
142
- 43, 29, 93,
143
- 44, 30, r + 37,
144
- 45, r + 36, r + 2,
145
- 32, 32, r + 28,
146
- 33, 33, r + 27,
147
- 34, 34, r + 26,
148
- 35, 35, r + 35,
149
- 36, 36, r + 24,
150
- 37, r + 24, 37,
151
- 38, 38, r + 34,
152
- 39, 39, r + 33,
153
- 41, 40, r + 17,
154
- 42, 43, 41,
155
- 44, 42, r + 32,
156
- 45, r + 31, r + 7,
157
- 43, 44, 93,
158
- 44, 45, r + 30,
159
- 45, r + 29, r + 2,
160
- 11, 47, r + 28,
161
- 12, 48, r + 27,
162
- 13, 49, r + 26,
163
- 18, 50, r + 25,
164
- 19, 51, r + 24,
165
- 20, r + 24, 52,
166
- 21, 53, r + 23,
167
- 40, 54, r + 22,
168
- 41, 55, r + 17,
169
- 42, 58, 56,
170
- 44, 57, r + 21,
171
- 45, r + 20, r + 7,
172
- 43, 59, 93,
173
- 44, 60, r + 19,
174
- 45, r + 18, r + 2,
175
- 9, 62, 66,
176
- 14, 63, 65,
177
- 15, 64, 65,
178
- 16, 88, 65,
179
- 17, 73, 66,
180
- 41, 67, r + 17,
181
- 42, 70, 68,
182
- 44, 69, r + 16,
183
- 45, r + 15, r + 7,
184
- 43, 71, 93,
185
- 44, 72, r + 14,
186
- 45, r + 13, r + 2,
187
- 41, 74, r + 17,
188
- 42, 81, 75,
189
- 44, 78, 76,
190
- 47, 77, r + 16,
191
- 48, r + 12, r + 16,
192
- 45, 79, r + 7,
193
- 47, 80, r + 15,
194
- 48, r + 11, r + 15,
195
- 43, 82, 93,
196
- 44, 85, 83,
197
- 47, 84, r + 14,
198
- 48, r + 10, r + 14,
199
- 45, 86, r + 2,
200
- 47, 87, r + 13,
201
- 48, r + 9, r + 13,
202
- 41, 89, r + 17,
203
- 42, 92, 90,
204
- 44, 91, r + 8,
205
- 45, r + 6, r + 7,
206
- 43, 94, 93,
207
- 44, r + 3, r + 5,
208
- 44, 95, r + 4,
209
- 45, r + 1, r + 2,
210
- 9, 105, 97,
211
- 42, 100, 98,
212
- 44, 99, r + 51,
213
- 45, r + 50, r + 7,
214
- 43, 102, 101,
215
- 44, r + 47, r + 5,
216
- 44, 104, 103,
217
- 46, r + 48, r + 49,
218
- 45, r + 46, r + 47,
219
- 42, r + 43, 106,
220
- 44, r + 44, r + 45,
221
- ]);
222
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,24 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: [
7
- "ConsumerARN",
8
- "Endpoint",
9
- "OperationType",
10
- "Region",
11
- "ResourceARN",
12
- "StreamARN",
13
- "StreamId",
14
- "UseDualStack",
15
- "UseFIPS",
16
- ],
17
- });
18
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
19
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
20
- endpointParams: endpointParams,
21
- logger: context.logger,
22
- }));
23
- };
24
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.KinesisServiceException = class KinesisServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, KinesisServiceException.prototype);
7
- }
8
- };