@aws-sdk/client-kinesis 3.1032.0 → 3.1033.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.
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const U = "ref";
6
+ 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" }];
7
+ const _data = {
8
+ conditions: [
9
+ [d, Q],
10
+ ["aws.partition", Q, e],
11
+ [f, [F, "aws-iso-b"]],
12
+ [f, [F, "aws-iso"]],
13
+ [d, [G]],
14
+ [g, [G, 21, 24, b], "StreamIdSuffixValue"],
15
+ [g, [G, 0, 20, b], "StreamIdPrefixValue"],
16
+ [f, [{ fn: h, argv: [{ fn: g, argv: [G, 20, 21, b] }, i] }, j]],
17
+ [f, [{ fn: h, argv: [{ fn: g, argv: [G, 3, 4, c] }, i] }, j]],
18
+ [d, [H]],
19
+ [d, R],
20
+ [k, R, l(3)],
21
+ [m, [{ fn: n, argv: [I, o] }, b]],
22
+ [m, [{ fn: n, argv: [I, p] }, b]],
23
+ [g, [H, 15, 20, b], "HttpsCustomEndpointSuffixValue"],
24
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 20, 21, b] }, i] }, "."]],
25
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 15, 16, b] }, i] }, j]],
26
+ [g, [H, 7, 12, b], "PlainCustomEndpointSuffixValue"],
27
+ [f, [{ fn: n, argv: [I, q] }, s]],
28
+ [n, [I, t], u(1)],
29
+ [f, [J, i]],
30
+ [f, [J, v]],
31
+ [d, S],
32
+ [d, T],
33
+ [k, T, l(2)],
34
+ [m, [{ fn: n, argv: [K, o] }, b]],
35
+ [m, [{ fn: n, argv: [K, p] }, b]],
36
+ [f, [{ fn: n, argv: [K, q] }, s]],
37
+ [n, [K, t], u(3)],
38
+ [f, [L, i]],
39
+ [f, [L, v]],
40
+ [f, [F, { fn: n, argv: [K, w] }]],
41
+ [k, S, l(1)],
42
+ [m, [{ fn: n, argv: [M, o] }, b]],
43
+ [m, [{ fn: n, argv: [M, p] }, b]],
44
+ [f, [{ fn: n, argv: [M, q] }, s]],
45
+ [n, [M, t], u(2)],
46
+ [f, [N, i]],
47
+ [f, [N, v]],
48
+ [f, [F, { fn: n, argv: [M, w] }]],
49
+ [f, [F, { fn: n, argv: [I, w] }]],
50
+ [d, [{ [U]: "OperationType" }]],
51
+ [x, [{ [U]: "UseFIPS" }, c]],
52
+ [x, [{ fn: n, argv: [O, "supportsFIPS"] }, c]],
53
+ [x, [{ [U]: "UseDualStack" }, c]],
54
+ [x, [{ fn: n, argv: [O, "supportsDualStack"] }, c]],
55
+ [f, [F, "aws-us-gov"]],
56
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 7, 8, b] }, i] }, j]],
57
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 12, 13, b] }, i] }, "."]]
58
+ ],
59
+ results: [
60
+ [a],
61
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
62
+ [a, "DualStack is enabled, but this partition does not support DualStack."],
63
+ [a, "FIPS is enabled, but this partition does not support FIPS."],
64
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
65
+ [a, "FIPS is enabled but this partition does not support FIPS"],
66
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
67
+ [a, "DualStack is enabled but this partition does not support DualStack"],
68
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
69
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
70
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
71
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
72
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
73
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
74
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
75
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
76
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
77
+ [a, "Operation Type is not set. Please contact service team for resolution."],
78
+ [y(3), P],
79
+ [z(3), P],
80
+ [A(3), P],
81
+ [B(3), P],
82
+ [a, C(3)],
83
+ [a, D(1)],
84
+ [a, "Invalid ARN: No ARN type specified"],
85
+ [a, E(3)],
86
+ [a, "Invalid ARN: Invalid region."],
87
+ [a, "Invalid ARN: Invalid account id."],
88
+ [a, "Invalid ARN: Failed to parse ARN."],
89
+ [y(1), P],
90
+ [z(1), P],
91
+ [A(1), P],
92
+ [B(1), P],
93
+ [a, C(1)],
94
+ [a, D(2)],
95
+ [a, E(1)],
96
+ [y(2), P],
97
+ [z(2), P],
98
+ [A(2), P],
99
+ [B(2), P],
100
+ [a, C(2)],
101
+ [a, D(3)],
102
+ [a, E(2)],
103
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
104
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
105
+ [H, P],
106
+ ["https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
107
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
108
+ ["https://kinesis.{Region}.amazonaws.com", P],
109
+ ["https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
110
+ ["https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
111
+ ["https://kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
112
+ [a, "Invalid Configuration: Missing Region"]
113
+ ]
114
+ };
115
+ const root = 2;
116
+ const r = 100_000_000;
117
+ const nodes = new Int32Array([
118
+ -1, 1, -1,
119
+ 0, 3, 4,
120
+ 1, 5, 4,
121
+ 9, 105, r + 52,
122
+ 2, 96, 6,
123
+ 3, 96, 7,
124
+ 4, 8, 12,
125
+ 5, 9, 12,
126
+ 6, 10, 12,
127
+ 7, 11, 12,
128
+ 8, 61, 12,
129
+ 9, 105, 13,
130
+ 10, 46, 14,
131
+ 22, 31, 15,
132
+ 23, 16, 97,
133
+ 24, 17, r + 28,
134
+ 25, 18, r + 27,
135
+ 26, 19, r + 26,
136
+ 27, 20, r + 42,
137
+ 28, 21, r + 24,
138
+ 29, r + 24, 22,
139
+ 30, 23, r + 41,
140
+ 31, 24, r + 40,
141
+ 41, 25, r + 17,
142
+ 42, 28, 26,
143
+ 44, 27, r + 39,
144
+ 45, r + 38, r + 7,
145
+ 43, 29, 93,
146
+ 44, 30, r + 37,
147
+ 45, r + 36, r + 2,
148
+ 32, 32, r + 28,
149
+ 33, 33, r + 27,
150
+ 34, 34, r + 26,
151
+ 35, 35, r + 35,
152
+ 36, 36, r + 24,
153
+ 37, r + 24, 37,
154
+ 38, 38, r + 34,
155
+ 39, 39, r + 33,
156
+ 41, 40, r + 17,
157
+ 42, 43, 41,
158
+ 44, 42, r + 32,
159
+ 45, r + 31, r + 7,
160
+ 43, 44, 93,
161
+ 44, 45, r + 30,
162
+ 45, r + 29, r + 2,
163
+ 11, 47, r + 28,
164
+ 12, 48, r + 27,
165
+ 13, 49, r + 26,
166
+ 18, 50, r + 25,
167
+ 19, 51, r + 24,
168
+ 20, r + 24, 52,
169
+ 21, 53, r + 23,
170
+ 40, 54, r + 22,
171
+ 41, 55, r + 17,
172
+ 42, 58, 56,
173
+ 44, 57, r + 21,
174
+ 45, r + 20, r + 7,
175
+ 43, 59, 93,
176
+ 44, 60, r + 19,
177
+ 45, r + 18, r + 2,
178
+ 9, 62, 66,
179
+ 14, 63, 65,
180
+ 15, 64, 65,
181
+ 16, 88, 65,
182
+ 17, 73, 66,
183
+ 41, 67, r + 17,
184
+ 42, 70, 68,
185
+ 44, 69, r + 16,
186
+ 45, r + 15, r + 7,
187
+ 43, 71, 93,
188
+ 44, 72, r + 14,
189
+ 45, r + 13, r + 2,
190
+ 41, 74, r + 17,
191
+ 42, 81, 75,
192
+ 44, 78, 76,
193
+ 47, 77, r + 16,
194
+ 48, r + 12, r + 16,
195
+ 45, 79, r + 7,
196
+ 47, 80, r + 15,
197
+ 48, r + 11, r + 15,
198
+ 43, 82, 93,
199
+ 44, 85, 83,
200
+ 47, 84, r + 14,
201
+ 48, r + 10, r + 14,
202
+ 45, 86, r + 2,
203
+ 47, 87, r + 13,
204
+ 48, r + 9, r + 13,
205
+ 41, 89, r + 17,
206
+ 42, 92, 90,
207
+ 44, 91, r + 8,
208
+ 45, r + 6, r + 7,
209
+ 43, 94, 93,
210
+ 44, r + 3, r + 5,
211
+ 44, 95, r + 4,
212
+ 45, r + 1, r + 2,
213
+ 9, 105, 97,
214
+ 42, 100, 98,
215
+ 44, 99, r + 51,
216
+ 45, r + 50, r + 7,
217
+ 43, 102, 101,
218
+ 44, r + 47, r + 5,
219
+ 44, 104, 103,
220
+ 46, r + 48, r + 49,
221
+ 45, r + 46, r + 47,
222
+ 42, r + 43, 106,
223
+ 44, r + 44, r + 45,
224
+ ]);
225
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: [
@@ -19,7 +19,7 @@ const cache = new util_endpoints_2.EndpointCache({
19
19
  ],
20
20
  });
21
21
  const defaultEndpointResolver = (endpointParams, context = {}) => {
22
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
22
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
23
23
  endpointParams: endpointParams,
24
24
  logger: context.logger,
25
25
  }));
@@ -0,0 +1,222 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-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
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,6 +1,6 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: [
@@ -16,7 +16,7 @@ const cache = new EndpointCache({
16
16
  ],
17
17
  });
18
18
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
19
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
19
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
20
20
  endpointParams: endpointParams,
21
21
  logger: context.logger,
22
22
  }));
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
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.1032.0",
4
+ "version": "3.1033.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 client-kinesis",
@@ -23,17 +23,17 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.974.1",
27
- "@aws-sdk/credential-provider-node": "^3.972.32",
26
+ "@aws-sdk/core": "^3.974.2",
27
+ "@aws-sdk/credential-provider-node": "^3.972.33",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.10",
29
29
  "@aws-sdk/middleware-logger": "^3.972.10",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
- "@aws-sdk/middleware-user-agent": "^3.972.31",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.32",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.12",
33
33
  "@aws-sdk/types": "^3.973.8",
34
34
  "@aws-sdk/util-endpoints": "^3.996.7",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
- "@aws-sdk/util-user-agent-node": "^3.973.17",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.18",
37
37
  "@smithy/config-resolver": "^4.4.16",
38
38
  "@smithy/core": "^3.23.15",
39
39
  "@smithy/eventstream-serde-browser": "^4.2.14",
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ruleSet = void 0;
4
- const X = "required", Y = "type", Z = "rules", aa = "conditions", ab = "fn", ac = "argv", ad = "ref", ae = "assign", af = "url", ag = "properties", ah = "headers";
5
- const a = false, b = true, c = "isSet", d = "substring", e = "StreamIdDelimiterValue", f = "stringEquals", g = "-", h = "StreamIdDelimiterReversedValue", i = "HttpsCustomEndpointDelimiterValue", j = "HttpsEndpointDelimiterValue", k = "booleanEquals", l = "endpoint", m = "tree", n = "error", o = "PlainCustomEndpointDelimiterValue", p = "PlainEndpointDelimiterValue", q = "aws.parseArn", r = "arn", s = { [X]: false, [Y]: "string" }, t = { [X]: true, "default": false, [Y]: "boolean" }, u = { [ad]: "StreamId" }, v = { [ab]: c, [ac]: [{ [ad]: "Region" }] }, w = { [ab]: "aws.partition", [ac]: [{ [ad]: "Region" }], [ae]: "PartitionResult" }, x = { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "name"] }, "aws-iso"] }] }, y = { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "name"] }, z = { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [y, "aws-iso-b"] }] }, A = { [ab]: c, [ac]: [{ [ad]: "Endpoint" }] }, B = { [ad]: "Endpoint" }, C = { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsFIPS"] }, D = {}, E = { [n]: "DualStack is enabled, but this partition does not support DualStack.", [Y]: n }, F = { [n]: "FIPS is enabled, but this partition does not support FIPS.", [Y]: n }, G = { [n]: "FIPS is enabled but this partition does not support FIPS", [Y]: n }, H = { [n]: "DualStack is enabled but this partition does not support DualStack", [Y]: n }, I = { [n]: "Operation Type is not set. Please contact service team for resolution.", [Y]: n }, J = { [ab]: "not", [ac]: [A] }, K = { [n]: "Invalid ARN: Failed to parse ARN.", [Y]: n }, L = { [ab]: k, [ac]: [true, { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsDualStack"] }] }, M = [{ [ab]: c, [ac]: [{ [ad]: "OperationType" }] }], N = [{ [ab]: k, [ac]: [{ [ad]: "UseFIPS" }, true] }, { [ab]: k, [ac]: [{ [ad]: "UseDualStack" }, true] }], O = [{ [ab]: k, [ac]: [C, true] }], P = [{ [ab]: k, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsDualStack"] }, true] }], Q = [{ [ab]: k, [ac]: [{ [ad]: "UseFIPS" }, true] }], R = [{ [ab]: k, [ac]: [{ [ad]: "UseDualStack" }, true] }], S = [{ [ad]: "StreamARN" }], T = [A], U = [{ [aa]: [{ [ab]: "isValidHostLabel", [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "accountId"] }, false] }], [Z]: [{ [aa]: [{ [ab]: "isValidHostLabel", [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "region"] }, false] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "service"] }, "kinesis"] }], [Z]: [{ [aa]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "resourceId[0]"], [ae]: "arnType" }, { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [{ [ad]: "arnType" }, ""] }] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [{ [ad]: "arnType" }, "stream"] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [y, "{arn#partition}"] }], [Z]: [{ [aa]: M, [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, H], [Y]: m }, { [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, I], [Y]: m }, { [n]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: No ARN type specified", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Invalid region.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Invalid account id.", [Y]: n }], V = [{ [ad]: "ConsumerARN" }], W = [{ [ad]: "ResourceARN" }];
6
- const _data = { version: "1.0", parameters: { Region: s, UseDualStack: t, UseFIPS: t, Endpoint: s, StreamId: s, StreamARN: s, OperationType: s, ConsumerARN: s, ResourceARN: s }, [Z]: [{ [aa]: [{ [ab]: c, [ac]: [u] }, { [ab]: d, [ac]: [u, 20, 21, a], [ae]: e }, { [ab]: f, [ac]: [{ [ad]: e }, g] }, { [ab]: d, [ac]: [u, 3, 4, b], [ae]: h }, { [ab]: f, [ac]: [{ [ad]: h }, g] }, { [ab]: d, [ac]: [u, 0, 20, a], [ae]: "StreamIdPrefixValue" }, { [ab]: d, [ac]: [u, 21, 24, a], [ae]: "StreamIdSuffixValue" }, v, w, x, z], [Z]: [{ [aa]: M, [Z]: [{ [aa]: [A, { [ab]: d, [ac]: [B, 15, 16, a], [ae]: i }, { [ab]: f, [ac]: [{ [ad]: i }, g] }, { [ab]: d, [ac]: [B, 20, 21, a], [ae]: j }, { [ab]: f, [ac]: [{ [ad]: j }, "."] }, { [ab]: d, [ac]: [B, 15, 20, a], [ae]: "HttpsCustomEndpointSuffixValue" }], [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: [A, { [ab]: d, [ac]: [B, 7, 8, a], [ae]: o }, { [ab]: f, [ac]: [{ [ad]: o }, g] }, { [ab]: d, [ac]: [B, 12, 13, a], [ae]: p }, { [ab]: f, [ac]: [{ [ad]: p }, "."] }, { [ab]: d, [ac]: [B, 7, 12, a], [ae]: "PlainCustomEndpointSuffixValue" }], [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, I], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: S }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: S, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: V }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: V, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: W }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: W, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: T, [Z]: [{ [aa]: Q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [Y]: n }, { [aa]: R, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [Y]: n }, { endpoint: { [af]: B, [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: [v], [Z]: [{ [aa]: [w], [Z]: [{ [aa]: N, [Z]: [{ [aa]: [{ [ab]: k, [ac]: [b, C] }, L], [Z]: [{ endpoint: { [af]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [Y]: n }], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ [aa]: [{ [ab]: f, [ac]: [y, "aws-us-gov"] }], endpoint: { [af]: "https://kinesis.{Region}.amazonaws.com", [ag]: D, [ah]: D }, [Y]: l }, { endpoint: { [af]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: [L], [Z]: [{ endpoint: { [af]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }], [Y]: m }, { error: "Invalid Configuration: Missing Region", [Y]: n }] };
7
- exports.ruleSet = _data;
@@ -1,4 +0,0 @@
1
- const X = "required", Y = "type", Z = "rules", aa = "conditions", ab = "fn", ac = "argv", ad = "ref", ae = "assign", af = "url", ag = "properties", ah = "headers";
2
- const a = false, b = true, c = "isSet", d = "substring", e = "StreamIdDelimiterValue", f = "stringEquals", g = "-", h = "StreamIdDelimiterReversedValue", i = "HttpsCustomEndpointDelimiterValue", j = "HttpsEndpointDelimiterValue", k = "booleanEquals", l = "endpoint", m = "tree", n = "error", o = "PlainCustomEndpointDelimiterValue", p = "PlainEndpointDelimiterValue", q = "aws.parseArn", r = "arn", s = { [X]: false, [Y]: "string" }, t = { [X]: true, "default": false, [Y]: "boolean" }, u = { [ad]: "StreamId" }, v = { [ab]: c, [ac]: [{ [ad]: "Region" }] }, w = { [ab]: "aws.partition", [ac]: [{ [ad]: "Region" }], [ae]: "PartitionResult" }, x = { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "name"] }, "aws-iso"] }] }, y = { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "name"] }, z = { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [y, "aws-iso-b"] }] }, A = { [ab]: c, [ac]: [{ [ad]: "Endpoint" }] }, B = { [ad]: "Endpoint" }, C = { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsFIPS"] }, D = {}, E = { [n]: "DualStack is enabled, but this partition does not support DualStack.", [Y]: n }, F = { [n]: "FIPS is enabled, but this partition does not support FIPS.", [Y]: n }, G = { [n]: "FIPS is enabled but this partition does not support FIPS", [Y]: n }, H = { [n]: "DualStack is enabled but this partition does not support DualStack", [Y]: n }, I = { [n]: "Operation Type is not set. Please contact service team for resolution.", [Y]: n }, J = { [ab]: "not", [ac]: [A] }, K = { [n]: "Invalid ARN: Failed to parse ARN.", [Y]: n }, L = { [ab]: k, [ac]: [true, { [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsDualStack"] }] }, M = [{ [ab]: c, [ac]: [{ [ad]: "OperationType" }] }], N = [{ [ab]: k, [ac]: [{ [ad]: "UseFIPS" }, true] }, { [ab]: k, [ac]: [{ [ad]: "UseDualStack" }, true] }], O = [{ [ab]: k, [ac]: [C, true] }], P = [{ [ab]: k, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: "PartitionResult" }, "supportsDualStack"] }, true] }], Q = [{ [ab]: k, [ac]: [{ [ad]: "UseFIPS" }, true] }], R = [{ [ab]: k, [ac]: [{ [ad]: "UseDualStack" }, true] }], S = [{ [ad]: "StreamARN" }], T = [A], U = [{ [aa]: [{ [ab]: "isValidHostLabel", [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "accountId"] }, false] }], [Z]: [{ [aa]: [{ [ab]: "isValidHostLabel", [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "region"] }, false] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "service"] }, "kinesis"] }], [Z]: [{ [aa]: [{ [ab]: "getAttr", [ac]: [{ [ad]: r }, "resourceId[0]"], [ae]: "arnType" }, { [ab]: "not", [ac]: [{ [ab]: f, [ac]: [{ [ad]: "arnType" }, ""] }] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [{ [ad]: "arnType" }, "stream"] }], [Z]: [{ [aa]: [{ [ab]: f, [ac]: [y, "{arn#partition}"] }], [Z]: [{ [aa]: M, [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, H], [Y]: m }, { [l]: { [af]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: {}, [ah]: {} }, [Y]: l }], [Y]: m }, I], [Y]: m }, { [n]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: No ARN type specified", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Invalid region.", [Y]: n }], [Y]: m }, { [n]: "Invalid ARN: Invalid account id.", [Y]: n }], V = [{ [ad]: "ConsumerARN" }], W = [{ [ad]: "ResourceARN" }];
3
- const _data = { version: "1.0", parameters: { Region: s, UseDualStack: t, UseFIPS: t, Endpoint: s, StreamId: s, StreamARN: s, OperationType: s, ConsumerARN: s, ResourceARN: s }, [Z]: [{ [aa]: [{ [ab]: c, [ac]: [u] }, { [ab]: d, [ac]: [u, 20, 21, a], [ae]: e }, { [ab]: f, [ac]: [{ [ad]: e }, g] }, { [ab]: d, [ac]: [u, 3, 4, b], [ae]: h }, { [ab]: f, [ac]: [{ [ad]: h }, g] }, { [ab]: d, [ac]: [u, 0, 20, a], [ae]: "StreamIdPrefixValue" }, { [ab]: d, [ac]: [u, 21, 24, a], [ae]: "StreamIdSuffixValue" }, v, w, x, z], [Z]: [{ [aa]: M, [Z]: [{ [aa]: [A, { [ab]: d, [ac]: [B, 15, 16, a], [ae]: i }, { [ab]: f, [ac]: [{ [ad]: i }, g] }, { [ab]: d, [ac]: [B, 20, 21, a], [ae]: j }, { [ab]: f, [ac]: [{ [ad]: j }, "."] }, { [ab]: d, [ac]: [B, 15, 20, a], [ae]: "HttpsCustomEndpointSuffixValue" }], [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: [A, { [ab]: d, [ac]: [B, 7, 8, a], [ae]: o }, { [ab]: f, [ac]: [{ [ad]: o }, g] }, { [ab]: d, [ac]: [B, 12, 13, a], [ae]: p }, { [ab]: f, [ac]: [{ [ad]: p }, "."] }, { [ab]: d, [ac]: [B, 7, 12, a], [ae]: "PlainCustomEndpointSuffixValue" }], [Z]: [{ [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: N, [Z]: [{ [aa]: O, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, E], [Y]: m }, F], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: P, [Z]: [{ endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, I], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: S }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: S, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: V }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: V, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: [{ [ab]: c, [ac]: W }, J, v, w, x, z], [Z]: [{ [aa]: [{ [ab]: q, [ac]: W, [ae]: r }], [Z]: U, [Y]: m }, K], [Y]: m }, { [aa]: T, [Z]: [{ [aa]: Q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [Y]: n }, { [aa]: R, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [Y]: n }, { endpoint: { [af]: B, [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { [aa]: [v], [Z]: [{ [aa]: [w], [Z]: [{ [aa]: N, [Z]: [{ [aa]: [{ [ab]: k, [ac]: [b, C] }, L], [Z]: [{ endpoint: { [af]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [Y]: n }], [Y]: m }, { [aa]: Q, [Z]: [{ [aa]: O, [Z]: [{ [aa]: [{ [ab]: f, [ac]: [y, "aws-us-gov"] }], endpoint: { [af]: "https://kinesis.{Region}.amazonaws.com", [ag]: D, [ah]: D }, [Y]: l }, { endpoint: { [af]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, G], [Y]: m }, { [aa]: R, [Z]: [{ [aa]: [L], [Z]: [{ endpoint: { [af]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }, H], [Y]: m }, { endpoint: { [af]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [ag]: D, [ah]: D }, [Y]: l }], [Y]: m }], [Y]: m }, { error: "Invalid Configuration: Missing Region", [Y]: n }] };
4
- export const ruleSet = _data;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;