@aws-sdk/client-kinesis 3.1075.0 → 3.1076.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/index.js +1627 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +9 -9
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -222
- package/dist-cjs/endpoint/endpointResolver.js +0 -24
- package/dist-cjs/models/KinesisServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -193
- package/dist-cjs/runtimeConfig.browser.js +0 -34
- package/dist-cjs/runtimeConfig.js +0 -50
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -1006
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
15
15
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
21
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -16,7 +16,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
16
16
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
18
|
sha256: import("@smithy/types").HashConstructor;
|
|
19
|
-
streamCollector: import("
|
|
19
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
20
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
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;
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
22
22
|
| RequestHandler;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
27
33
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
28
34
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
23
23
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
25
|
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
-
streamCollector:
|
|
26
|
+
streamCollector: (
|
|
27
|
+
stream:
|
|
28
|
+
| import("stream").Readable
|
|
29
|
+
| import("stream/web").ReadableStream
|
|
30
|
+
| ReadableStream
|
|
31
|
+
| Blob
|
|
32
|
+
) => Promise<Uint8Array>;
|
|
27
33
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
35
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: KinesisClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
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;
|
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.
|
|
4
|
+
"version": "3.1076.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",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
32
|
-
"@aws-sdk/types": "^3.973.
|
|
33
|
-
"@smithy/core": "^3.
|
|
34
|
-
"@smithy/fetch-http-handler": "^5.
|
|
35
|
-
"@smithy/node-http-handler": "^4.
|
|
36
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@aws-sdk/core": "^3.974.24",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
32
|
+
"@aws-sdk/types": "^3.973.14",
|
|
33
|
+
"@smithy/core": "^3.27.0",
|
|
34
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
35
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
36
|
+
"@smithy/types": "^4.15.0",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@smithy/snapshot-testing": "^2.
|
|
40
|
+
"@smithy/snapshot-testing": "^2.2.3",
|
|
41
41
|
"@tsconfig/node20": "20.1.8",
|
|
42
42
|
"@types/node": "^20.14.8",
|
|
43
43
|
"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
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -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
|
-
};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
const { KinesisServiceException: __BaseException } = require("./KinesisServiceException");
|
|
2
|
-
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.InvalidArgumentException = class InvalidArgumentException extends __BaseException {
|
|
15
|
-
name = "InvalidArgumentException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "InvalidArgumentException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
27
|
-
name = "LimitExceededException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "LimitExceededException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
|
|
39
|
-
name = "ResourceInUseException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "ResourceInUseException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
51
|
-
name = "ResourceNotFoundException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "ResourceNotFoundException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.ValidationException = class ValidationException extends __BaseException {
|
|
63
|
-
name = "ValidationException";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "ValidationException",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
exports.ExpiredIteratorException = class ExpiredIteratorException extends __BaseException {
|
|
75
|
-
name = "ExpiredIteratorException";
|
|
76
|
-
$fault = "client";
|
|
77
|
-
constructor(opts) {
|
|
78
|
-
super({
|
|
79
|
-
name: "ExpiredIteratorException",
|
|
80
|
-
$fault: "client",
|
|
81
|
-
...opts,
|
|
82
|
-
});
|
|
83
|
-
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.ExpiredNextTokenException = class ExpiredNextTokenException extends __BaseException {
|
|
87
|
-
name = "ExpiredNextTokenException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
constructor(opts) {
|
|
90
|
-
super({
|
|
91
|
-
name: "ExpiredNextTokenException",
|
|
92
|
-
$fault: "client",
|
|
93
|
-
...opts,
|
|
94
|
-
});
|
|
95
|
-
Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
exports.InternalFailureException = class InternalFailureException extends __BaseException {
|
|
99
|
-
name = "InternalFailureException";
|
|
100
|
-
$fault = "server";
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "InternalFailureException",
|
|
104
|
-
$fault: "server",
|
|
105
|
-
...opts,
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
exports.KMSAccessDeniedException = class KMSAccessDeniedException extends __BaseException {
|
|
111
|
-
name = "KMSAccessDeniedException";
|
|
112
|
-
$fault = "client";
|
|
113
|
-
constructor(opts) {
|
|
114
|
-
super({
|
|
115
|
-
name: "KMSAccessDeniedException",
|
|
116
|
-
$fault: "client",
|
|
117
|
-
...opts,
|
|
118
|
-
});
|
|
119
|
-
Object.setPrototypeOf(this, KMSAccessDeniedException.prototype);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
exports.KMSDisabledException = class KMSDisabledException extends __BaseException {
|
|
123
|
-
name = "KMSDisabledException";
|
|
124
|
-
$fault = "client";
|
|
125
|
-
constructor(opts) {
|
|
126
|
-
super({
|
|
127
|
-
name: "KMSDisabledException",
|
|
128
|
-
$fault: "client",
|
|
129
|
-
...opts,
|
|
130
|
-
});
|
|
131
|
-
Object.setPrototypeOf(this, KMSDisabledException.prototype);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
exports.KMSInvalidStateException = class KMSInvalidStateException extends __BaseException {
|
|
135
|
-
name = "KMSInvalidStateException";
|
|
136
|
-
$fault = "client";
|
|
137
|
-
constructor(opts) {
|
|
138
|
-
super({
|
|
139
|
-
name: "KMSInvalidStateException",
|
|
140
|
-
$fault: "client",
|
|
141
|
-
...opts,
|
|
142
|
-
});
|
|
143
|
-
Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
exports.KMSNotFoundException = class KMSNotFoundException extends __BaseException {
|
|
147
|
-
name = "KMSNotFoundException";
|
|
148
|
-
$fault = "client";
|
|
149
|
-
constructor(opts) {
|
|
150
|
-
super({
|
|
151
|
-
name: "KMSNotFoundException",
|
|
152
|
-
$fault: "client",
|
|
153
|
-
...opts,
|
|
154
|
-
});
|
|
155
|
-
Object.setPrototypeOf(this, KMSNotFoundException.prototype);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
exports.KMSOptInRequired = class KMSOptInRequired extends __BaseException {
|
|
159
|
-
name = "KMSOptInRequired";
|
|
160
|
-
$fault = "client";
|
|
161
|
-
constructor(opts) {
|
|
162
|
-
super({
|
|
163
|
-
name: "KMSOptInRequired",
|
|
164
|
-
$fault: "client",
|
|
165
|
-
...opts,
|
|
166
|
-
});
|
|
167
|
-
Object.setPrototypeOf(this, KMSOptInRequired.prototype);
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
exports.KMSThrottlingException = class KMSThrottlingException extends __BaseException {
|
|
171
|
-
name = "KMSThrottlingException";
|
|
172
|
-
$fault = "client";
|
|
173
|
-
constructor(opts) {
|
|
174
|
-
super({
|
|
175
|
-
name: "KMSThrottlingException",
|
|
176
|
-
$fault: "client",
|
|
177
|
-
...opts,
|
|
178
|
-
});
|
|
179
|
-
Object.setPrototypeOf(this, KMSThrottlingException.prototype);
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
exports.ProvisionedThroughputExceededException = class ProvisionedThroughputExceededException extends __BaseException {
|
|
183
|
-
name = "ProvisionedThroughputExceededException";
|
|
184
|
-
$fault = "client";
|
|
185
|
-
constructor(opts) {
|
|
186
|
-
super({
|
|
187
|
-
name: "ProvisionedThroughputExceededException",
|
|
188
|
-
$fault: "client",
|
|
189
|
-
...opts,
|
|
190
|
-
});
|
|
191
|
-
Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
|
|
192
|
-
}
|
|
193
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
|
|
7
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
9
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
13
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
14
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return {
|
|
16
|
-
...clientSharedValues,
|
|
17
|
-
...config,
|
|
18
|
-
runtime: "browser",
|
|
19
|
-
defaultsMode,
|
|
20
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
21
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
22
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
24
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
25
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
26
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
28
|
-
sha256: config?.sha256 ?? Sha256,
|
|
29
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
31
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|