@aws-sdk/client-kinesis 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +278 -886
- package/dist-es/protocols/Aws_json1_1.js +279 -887
- package/package.json +6 -6
|
@@ -7,292 +7,205 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const KinesisServiceException_1 = require("../models/KinesisServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_AddTagsToStreamCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "Kinesis_20131202.AddTagsToStream",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AddTagsToStream");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AddTagsToStreamCommand = se_AddTagsToStreamCommand;
|
|
19
16
|
const se_CreateStreamCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "Kinesis_20131202.CreateStream",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateStream");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateStreamCommand = se_CreateStreamCommand;
|
|
29
23
|
const se_DecreaseStreamRetentionPeriodCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "Kinesis_20131202.DecreaseStreamRetentionPeriod",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DecreaseStreamRetentionPeriod");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_DecreaseStreamRetentionPeriodCommand = se_DecreaseStreamRetentionPeriodCommand;
|
|
39
30
|
const se_DeleteStreamCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "Kinesis_20131202.DeleteStream",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteStream");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteStreamCommand = se_DeleteStreamCommand;
|
|
49
37
|
const se_DeregisterStreamConsumerCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "Kinesis_20131202.DeregisterStreamConsumer",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeregisterStreamConsumer");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeregisterStreamConsumerCommand = se_DeregisterStreamConsumerCommand;
|
|
59
44
|
const se_DescribeLimitsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "Kinesis_20131202.DescribeLimits",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DescribeLimits");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DescribeLimitsCommand = se_DescribeLimitsCommand;
|
|
69
51
|
const se_DescribeStreamCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "Kinesis_20131202.DescribeStream",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeStream");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeStreamCommand = se_DescribeStreamCommand;
|
|
79
58
|
const se_DescribeStreamConsumerCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "Kinesis_20131202.DescribeStreamConsumer",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeStreamConsumer");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeStreamConsumerCommand = se_DescribeStreamConsumerCommand;
|
|
89
65
|
const se_DescribeStreamSummaryCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "Kinesis_20131202.DescribeStreamSummary",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeStreamSummary");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeStreamSummaryCommand = se_DescribeStreamSummaryCommand;
|
|
99
72
|
const se_DisableEnhancedMonitoringCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "Kinesis_20131202.DisableEnhancedMonitoring",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DisableEnhancedMonitoring");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DisableEnhancedMonitoringCommand = se_DisableEnhancedMonitoringCommand;
|
|
109
79
|
const se_EnableEnhancedMonitoringCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "Kinesis_20131202.EnableEnhancedMonitoring",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("EnableEnhancedMonitoring");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_EnableEnhancedMonitoringCommand = se_EnableEnhancedMonitoringCommand;
|
|
119
86
|
const se_GetRecordsCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "Kinesis_20131202.GetRecords",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("GetRecords");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_GetRecordsCommand = se_GetRecordsCommand;
|
|
129
93
|
const se_GetShardIteratorCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "Kinesis_20131202.GetShardIterator",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("GetShardIterator");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_GetShardIteratorInput(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_GetShardIteratorCommand = se_GetShardIteratorCommand;
|
|
139
100
|
const se_IncreaseStreamRetentionPeriodCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "Kinesis_20131202.IncreaseStreamRetentionPeriod",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("IncreaseStreamRetentionPeriod");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_IncreaseStreamRetentionPeriodCommand = se_IncreaseStreamRetentionPeriodCommand;
|
|
149
107
|
const se_ListShardsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "Kinesis_20131202.ListShards",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListShards");
|
|
154
109
|
let body;
|
|
155
110
|
body = JSON.stringify(se_ListShardsInput(input, context));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_ListShardsCommand = se_ListShardsCommand;
|
|
159
114
|
const se_ListStreamConsumersCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "Kinesis_20131202.ListStreamConsumers",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("ListStreamConsumers");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_ListStreamConsumersInput(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_ListStreamConsumersCommand = se_ListStreamConsumersCommand;
|
|
169
121
|
const se_ListStreamsCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "Kinesis_20131202.ListStreams",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("ListStreams");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_ListStreamsCommand = se_ListStreamsCommand;
|
|
179
128
|
const se_ListTagsForStreamCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "Kinesis_20131202.ListTagsForStream",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("ListTagsForStream");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_ListTagsForStreamCommand = se_ListTagsForStreamCommand;
|
|
189
135
|
const se_MergeShardsCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "Kinesis_20131202.MergeShards",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("MergeShards");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_MergeShardsCommand = se_MergeShardsCommand;
|
|
199
142
|
const se_PutRecordCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "Kinesis_20131202.PutRecord",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("PutRecord");
|
|
204
144
|
let body;
|
|
205
145
|
body = JSON.stringify(se_PutRecordInput(input, context));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_PutRecordCommand = se_PutRecordCommand;
|
|
209
149
|
const se_PutRecordsCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "Kinesis_20131202.PutRecords",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("PutRecords");
|
|
214
151
|
let body;
|
|
215
152
|
body = JSON.stringify(se_PutRecordsInput(input, context));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_PutRecordsCommand = se_PutRecordsCommand;
|
|
219
156
|
const se_RegisterStreamConsumerCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "Kinesis_20131202.RegisterStreamConsumer",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("RegisterStreamConsumer");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_RegisterStreamConsumerCommand = se_RegisterStreamConsumerCommand;
|
|
229
163
|
const se_RemoveTagsFromStreamCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "Kinesis_20131202.RemoveTagsFromStream",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("RemoveTagsFromStream");
|
|
234
165
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_RemoveTagsFromStreamCommand = se_RemoveTagsFromStreamCommand;
|
|
239
170
|
const se_SplitShardCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "Kinesis_20131202.SplitShard",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("SplitShard");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_SplitShardCommand = se_SplitShardCommand;
|
|
249
177
|
const se_StartStreamEncryptionCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "Kinesis_20131202.StartStreamEncryption",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("StartStreamEncryption");
|
|
254
179
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_StartStreamEncryptionCommand = se_StartStreamEncryptionCommand;
|
|
259
184
|
const se_StopStreamEncryptionCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "Kinesis_20131202.StopStreamEncryption",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("StopStreamEncryption");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_StopStreamEncryptionCommand = se_StopStreamEncryptionCommand;
|
|
269
191
|
const se_SubscribeToShardCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "Kinesis_20131202.SubscribeToShard",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("SubscribeToShard");
|
|
274
193
|
let body;
|
|
275
194
|
body = JSON.stringify(se_SubscribeToShardInput(input, context));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_SubscribeToShardCommand = se_SubscribeToShardCommand;
|
|
279
198
|
const se_UpdateShardCountCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "Kinesis_20131202.UpdateShardCount",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("UpdateShardCount");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_UpdateShardCountCommand = se_UpdateShardCountCommand;
|
|
289
205
|
const se_UpdateStreamModeCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "Kinesis_20131202.UpdateStreamMode",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("UpdateStreamMode");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_UpdateStreamModeCommand = se_UpdateStreamModeCommand;
|
|
@@ -304,7 +217,7 @@ const de_AddTagsToStreamCommand = async (output, context) => {
|
|
|
304
217
|
const response = {
|
|
305
218
|
$metadata: deserializeMetadata(output),
|
|
306
219
|
};
|
|
307
|
-
return
|
|
220
|
+
return response;
|
|
308
221
|
};
|
|
309
222
|
exports.de_AddTagsToStreamCommand = de_AddTagsToStreamCommand;
|
|
310
223
|
const de_AddTagsToStreamCommandError = async (output, context) => {
|
|
@@ -331,10 +244,9 @@ const de_AddTagsToStreamCommandError = async (output, context) => {
|
|
|
331
244
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
332
245
|
default:
|
|
333
246
|
const parsedBody = parsedOutput.body;
|
|
334
|
-
|
|
247
|
+
return throwDefaultError({
|
|
335
248
|
output,
|
|
336
249
|
parsedBody,
|
|
337
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
338
250
|
errorCode,
|
|
339
251
|
});
|
|
340
252
|
}
|
|
@@ -347,7 +259,7 @@ const de_CreateStreamCommand = async (output, context) => {
|
|
|
347
259
|
const response = {
|
|
348
260
|
$metadata: deserializeMetadata(output),
|
|
349
261
|
};
|
|
350
|
-
return
|
|
262
|
+
return response;
|
|
351
263
|
};
|
|
352
264
|
exports.de_CreateStreamCommand = de_CreateStreamCommand;
|
|
353
265
|
const de_CreateStreamCommandError = async (output, context) => {
|
|
@@ -368,10 +280,9 @@ const de_CreateStreamCommandError = async (output, context) => {
|
|
|
368
280
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
369
281
|
default:
|
|
370
282
|
const parsedBody = parsedOutput.body;
|
|
371
|
-
|
|
283
|
+
return throwDefaultError({
|
|
372
284
|
output,
|
|
373
285
|
parsedBody,
|
|
374
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
375
286
|
errorCode,
|
|
376
287
|
});
|
|
377
288
|
}
|
|
@@ -384,7 +295,7 @@ const de_DecreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
|
384
295
|
const response = {
|
|
385
296
|
$metadata: deserializeMetadata(output),
|
|
386
297
|
};
|
|
387
|
-
return
|
|
298
|
+
return response;
|
|
388
299
|
};
|
|
389
300
|
exports.de_DecreaseStreamRetentionPeriodCommand = de_DecreaseStreamRetentionPeriodCommand;
|
|
390
301
|
const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
@@ -411,10 +322,9 @@ const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) =>
|
|
|
411
322
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
412
323
|
default:
|
|
413
324
|
const parsedBody = parsedOutput.body;
|
|
414
|
-
|
|
325
|
+
return throwDefaultError({
|
|
415
326
|
output,
|
|
416
327
|
parsedBody,
|
|
417
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
418
328
|
errorCode,
|
|
419
329
|
});
|
|
420
330
|
}
|
|
@@ -427,7 +337,7 @@ const de_DeleteStreamCommand = async (output, context) => {
|
|
|
427
337
|
const response = {
|
|
428
338
|
$metadata: deserializeMetadata(output),
|
|
429
339
|
};
|
|
430
|
-
return
|
|
340
|
+
return response;
|
|
431
341
|
};
|
|
432
342
|
exports.de_DeleteStreamCommand = de_DeleteStreamCommand;
|
|
433
343
|
const de_DeleteStreamCommandError = async (output, context) => {
|
|
@@ -454,10 +364,9 @@ const de_DeleteStreamCommandError = async (output, context) => {
|
|
|
454
364
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
365
|
default:
|
|
456
366
|
const parsedBody = parsedOutput.body;
|
|
457
|
-
|
|
367
|
+
return throwDefaultError({
|
|
458
368
|
output,
|
|
459
369
|
parsedBody,
|
|
460
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
461
370
|
errorCode,
|
|
462
371
|
});
|
|
463
372
|
}
|
|
@@ -470,7 +379,7 @@ const de_DeregisterStreamConsumerCommand = async (output, context) => {
|
|
|
470
379
|
const response = {
|
|
471
380
|
$metadata: deserializeMetadata(output),
|
|
472
381
|
};
|
|
473
|
-
return
|
|
382
|
+
return response;
|
|
474
383
|
};
|
|
475
384
|
exports.de_DeregisterStreamConsumerCommand = de_DeregisterStreamConsumerCommand;
|
|
476
385
|
const de_DeregisterStreamConsumerCommandError = async (output, context) => {
|
|
@@ -491,10 +400,9 @@ const de_DeregisterStreamConsumerCommandError = async (output, context) => {
|
|
|
491
400
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
492
401
|
default:
|
|
493
402
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
403
|
+
return throwDefaultError({
|
|
495
404
|
output,
|
|
496
405
|
parsedBody,
|
|
497
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
498
406
|
errorCode,
|
|
499
407
|
});
|
|
500
408
|
}
|
|
@@ -505,12 +413,12 @@ const de_DescribeLimitsCommand = async (output, context) => {
|
|
|
505
413
|
}
|
|
506
414
|
const data = await parseBody(output.body, context);
|
|
507
415
|
let contents = {};
|
|
508
|
-
contents =
|
|
416
|
+
contents = (0, smithy_client_1._json)(data);
|
|
509
417
|
const response = {
|
|
510
418
|
$metadata: deserializeMetadata(output),
|
|
511
419
|
...contents,
|
|
512
420
|
};
|
|
513
|
-
return
|
|
421
|
+
return response;
|
|
514
422
|
};
|
|
515
423
|
exports.de_DescribeLimitsCommand = de_DescribeLimitsCommand;
|
|
516
424
|
const de_DescribeLimitsCommandError = async (output, context) => {
|
|
@@ -525,10 +433,9 @@ const de_DescribeLimitsCommandError = async (output, context) => {
|
|
|
525
433
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
526
434
|
default:
|
|
527
435
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
|
|
436
|
+
return throwDefaultError({
|
|
529
437
|
output,
|
|
530
438
|
parsedBody,
|
|
531
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
532
439
|
errorCode,
|
|
533
440
|
});
|
|
534
441
|
}
|
|
@@ -544,7 +451,7 @@ const de_DescribeStreamCommand = async (output, context) => {
|
|
|
544
451
|
$metadata: deserializeMetadata(output),
|
|
545
452
|
...contents,
|
|
546
453
|
};
|
|
547
|
-
return
|
|
454
|
+
return response;
|
|
548
455
|
};
|
|
549
456
|
exports.de_DescribeStreamCommand = de_DescribeStreamCommand;
|
|
550
457
|
const de_DescribeStreamCommandError = async (output, context) => {
|
|
@@ -568,10 +475,9 @@ const de_DescribeStreamCommandError = async (output, context) => {
|
|
|
568
475
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
476
|
default:
|
|
570
477
|
const parsedBody = parsedOutput.body;
|
|
571
|
-
|
|
478
|
+
return throwDefaultError({
|
|
572
479
|
output,
|
|
573
480
|
parsedBody,
|
|
574
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
575
481
|
errorCode,
|
|
576
482
|
});
|
|
577
483
|
}
|
|
@@ -587,7 +493,7 @@ const de_DescribeStreamConsumerCommand = async (output, context) => {
|
|
|
587
493
|
$metadata: deserializeMetadata(output),
|
|
588
494
|
...contents,
|
|
589
495
|
};
|
|
590
|
-
return
|
|
496
|
+
return response;
|
|
591
497
|
};
|
|
592
498
|
exports.de_DescribeStreamConsumerCommand = de_DescribeStreamConsumerCommand;
|
|
593
499
|
const de_DescribeStreamConsumerCommandError = async (output, context) => {
|
|
@@ -608,10 +514,9 @@ const de_DescribeStreamConsumerCommandError = async (output, context) => {
|
|
|
608
514
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
515
|
default:
|
|
610
516
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
|
|
517
|
+
return throwDefaultError({
|
|
612
518
|
output,
|
|
613
519
|
parsedBody,
|
|
614
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
615
520
|
errorCode,
|
|
616
521
|
});
|
|
617
522
|
}
|
|
@@ -627,7 +532,7 @@ const de_DescribeStreamSummaryCommand = async (output, context) => {
|
|
|
627
532
|
$metadata: deserializeMetadata(output),
|
|
628
533
|
...contents,
|
|
629
534
|
};
|
|
630
|
-
return
|
|
535
|
+
return response;
|
|
631
536
|
};
|
|
632
537
|
exports.de_DescribeStreamSummaryCommand = de_DescribeStreamSummaryCommand;
|
|
633
538
|
const de_DescribeStreamSummaryCommandError = async (output, context) => {
|
|
@@ -651,10 +556,9 @@ const de_DescribeStreamSummaryCommandError = async (output, context) => {
|
|
|
651
556
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
557
|
default:
|
|
653
558
|
const parsedBody = parsedOutput.body;
|
|
654
|
-
|
|
559
|
+
return throwDefaultError({
|
|
655
560
|
output,
|
|
656
561
|
parsedBody,
|
|
657
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
658
562
|
errorCode,
|
|
659
563
|
});
|
|
660
564
|
}
|
|
@@ -665,12 +569,12 @@ const de_DisableEnhancedMonitoringCommand = async (output, context) => {
|
|
|
665
569
|
}
|
|
666
570
|
const data = await parseBody(output.body, context);
|
|
667
571
|
let contents = {};
|
|
668
|
-
contents =
|
|
572
|
+
contents = (0, smithy_client_1._json)(data);
|
|
669
573
|
const response = {
|
|
670
574
|
$metadata: deserializeMetadata(output),
|
|
671
575
|
...contents,
|
|
672
576
|
};
|
|
673
|
-
return
|
|
577
|
+
return response;
|
|
674
578
|
};
|
|
675
579
|
exports.de_DisableEnhancedMonitoringCommand = de_DisableEnhancedMonitoringCommand;
|
|
676
580
|
const de_DisableEnhancedMonitoringCommandError = async (output, context) => {
|
|
@@ -697,10 +601,9 @@ const de_DisableEnhancedMonitoringCommandError = async (output, context) => {
|
|
|
697
601
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
602
|
default:
|
|
699
603
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
604
|
+
return throwDefaultError({
|
|
701
605
|
output,
|
|
702
606
|
parsedBody,
|
|
703
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
704
607
|
errorCode,
|
|
705
608
|
});
|
|
706
609
|
}
|
|
@@ -711,12 +614,12 @@ const de_EnableEnhancedMonitoringCommand = async (output, context) => {
|
|
|
711
614
|
}
|
|
712
615
|
const data = await parseBody(output.body, context);
|
|
713
616
|
let contents = {};
|
|
714
|
-
contents =
|
|
617
|
+
contents = (0, smithy_client_1._json)(data);
|
|
715
618
|
const response = {
|
|
716
619
|
$metadata: deserializeMetadata(output),
|
|
717
620
|
...contents,
|
|
718
621
|
};
|
|
719
|
-
return
|
|
622
|
+
return response;
|
|
720
623
|
};
|
|
721
624
|
exports.de_EnableEnhancedMonitoringCommand = de_EnableEnhancedMonitoringCommand;
|
|
722
625
|
const de_EnableEnhancedMonitoringCommandError = async (output, context) => {
|
|
@@ -743,10 +646,9 @@ const de_EnableEnhancedMonitoringCommandError = async (output, context) => {
|
|
|
743
646
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
647
|
default:
|
|
745
648
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
649
|
+
return throwDefaultError({
|
|
747
650
|
output,
|
|
748
651
|
parsedBody,
|
|
749
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
750
652
|
errorCode,
|
|
751
653
|
});
|
|
752
654
|
}
|
|
@@ -762,7 +664,7 @@ const de_GetRecordsCommand = async (output, context) => {
|
|
|
762
664
|
$metadata: deserializeMetadata(output),
|
|
763
665
|
...contents,
|
|
764
666
|
};
|
|
765
|
-
return
|
|
667
|
+
return response;
|
|
766
668
|
};
|
|
767
669
|
exports.de_GetRecordsCommand = de_GetRecordsCommand;
|
|
768
670
|
const de_GetRecordsCommandError = async (output, context) => {
|
|
@@ -807,10 +709,9 @@ const de_GetRecordsCommandError = async (output, context) => {
|
|
|
807
709
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
710
|
default:
|
|
809
711
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
712
|
+
return throwDefaultError({
|
|
811
713
|
output,
|
|
812
714
|
parsedBody,
|
|
813
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
814
715
|
errorCode,
|
|
815
716
|
});
|
|
816
717
|
}
|
|
@@ -821,12 +722,12 @@ const de_GetShardIteratorCommand = async (output, context) => {
|
|
|
821
722
|
}
|
|
822
723
|
const data = await parseBody(output.body, context);
|
|
823
724
|
let contents = {};
|
|
824
|
-
contents =
|
|
725
|
+
contents = (0, smithy_client_1._json)(data);
|
|
825
726
|
const response = {
|
|
826
727
|
$metadata: deserializeMetadata(output),
|
|
827
728
|
...contents,
|
|
828
729
|
};
|
|
829
|
-
return
|
|
730
|
+
return response;
|
|
830
731
|
};
|
|
831
732
|
exports.de_GetShardIteratorCommand = de_GetShardIteratorCommand;
|
|
832
733
|
const de_GetShardIteratorCommandError = async (output, context) => {
|
|
@@ -850,10 +751,9 @@ const de_GetShardIteratorCommandError = async (output, context) => {
|
|
|
850
751
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
752
|
default:
|
|
852
753
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
|
|
754
|
+
return throwDefaultError({
|
|
854
755
|
output,
|
|
855
756
|
parsedBody,
|
|
856
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
857
757
|
errorCode,
|
|
858
758
|
});
|
|
859
759
|
}
|
|
@@ -866,7 +766,7 @@ const de_IncreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
|
866
766
|
const response = {
|
|
867
767
|
$metadata: deserializeMetadata(output),
|
|
868
768
|
};
|
|
869
|
-
return
|
|
769
|
+
return response;
|
|
870
770
|
};
|
|
871
771
|
exports.de_IncreaseStreamRetentionPeriodCommand = de_IncreaseStreamRetentionPeriodCommand;
|
|
872
772
|
const de_IncreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
@@ -893,10 +793,9 @@ const de_IncreaseStreamRetentionPeriodCommandError = async (output, context) =>
|
|
|
893
793
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
794
|
default:
|
|
895
795
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
796
|
+
return throwDefaultError({
|
|
897
797
|
output,
|
|
898
798
|
parsedBody,
|
|
899
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
900
799
|
errorCode,
|
|
901
800
|
});
|
|
902
801
|
}
|
|
@@ -907,12 +806,12 @@ const de_ListShardsCommand = async (output, context) => {
|
|
|
907
806
|
}
|
|
908
807
|
const data = await parseBody(output.body, context);
|
|
909
808
|
let contents = {};
|
|
910
|
-
contents =
|
|
809
|
+
contents = (0, smithy_client_1._json)(data);
|
|
911
810
|
const response = {
|
|
912
811
|
$metadata: deserializeMetadata(output),
|
|
913
812
|
...contents,
|
|
914
813
|
};
|
|
915
|
-
return
|
|
814
|
+
return response;
|
|
916
815
|
};
|
|
917
816
|
exports.de_ListShardsCommand = de_ListShardsCommand;
|
|
918
817
|
const de_ListShardsCommandError = async (output, context) => {
|
|
@@ -942,10 +841,9 @@ const de_ListShardsCommandError = async (output, context) => {
|
|
|
942
841
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
842
|
default:
|
|
944
843
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
844
|
+
return throwDefaultError({
|
|
946
845
|
output,
|
|
947
846
|
parsedBody,
|
|
948
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
949
847
|
errorCode,
|
|
950
848
|
});
|
|
951
849
|
}
|
|
@@ -961,7 +859,7 @@ const de_ListStreamConsumersCommand = async (output, context) => {
|
|
|
961
859
|
$metadata: deserializeMetadata(output),
|
|
962
860
|
...contents,
|
|
963
861
|
};
|
|
964
|
-
return
|
|
862
|
+
return response;
|
|
965
863
|
};
|
|
966
864
|
exports.de_ListStreamConsumersCommand = de_ListStreamConsumersCommand;
|
|
967
865
|
const de_ListStreamConsumersCommandError = async (output, context) => {
|
|
@@ -988,10 +886,9 @@ const de_ListStreamConsumersCommandError = async (output, context) => {
|
|
|
988
886
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
989
887
|
default:
|
|
990
888
|
const parsedBody = parsedOutput.body;
|
|
991
|
-
|
|
889
|
+
return throwDefaultError({
|
|
992
890
|
output,
|
|
993
891
|
parsedBody,
|
|
994
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
995
892
|
errorCode,
|
|
996
893
|
});
|
|
997
894
|
}
|
|
@@ -1007,7 +904,7 @@ const de_ListStreamsCommand = async (output, context) => {
|
|
|
1007
904
|
$metadata: deserializeMetadata(output),
|
|
1008
905
|
...contents,
|
|
1009
906
|
};
|
|
1010
|
-
return
|
|
907
|
+
return response;
|
|
1011
908
|
};
|
|
1012
909
|
exports.de_ListStreamsCommand = de_ListStreamsCommand;
|
|
1013
910
|
const de_ListStreamsCommandError = async (output, context) => {
|
|
@@ -1028,10 +925,9 @@ const de_ListStreamsCommandError = async (output, context) => {
|
|
|
1028
925
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1029
926
|
default:
|
|
1030
927
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
928
|
+
return throwDefaultError({
|
|
1032
929
|
output,
|
|
1033
930
|
parsedBody,
|
|
1034
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1035
931
|
errorCode,
|
|
1036
932
|
});
|
|
1037
933
|
}
|
|
@@ -1042,12 +938,12 @@ const de_ListTagsForStreamCommand = async (output, context) => {
|
|
|
1042
938
|
}
|
|
1043
939
|
const data = await parseBody(output.body, context);
|
|
1044
940
|
let contents = {};
|
|
1045
|
-
contents =
|
|
941
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1046
942
|
const response = {
|
|
1047
943
|
$metadata: deserializeMetadata(output),
|
|
1048
944
|
...contents,
|
|
1049
945
|
};
|
|
1050
|
-
return
|
|
946
|
+
return response;
|
|
1051
947
|
};
|
|
1052
948
|
exports.de_ListTagsForStreamCommand = de_ListTagsForStreamCommand;
|
|
1053
949
|
const de_ListTagsForStreamCommandError = async (output, context) => {
|
|
@@ -1071,10 +967,9 @@ const de_ListTagsForStreamCommandError = async (output, context) => {
|
|
|
1071
967
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
968
|
default:
|
|
1073
969
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
|
|
970
|
+
return throwDefaultError({
|
|
1075
971
|
output,
|
|
1076
972
|
parsedBody,
|
|
1077
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1078
973
|
errorCode,
|
|
1079
974
|
});
|
|
1080
975
|
}
|
|
@@ -1087,7 +982,7 @@ const de_MergeShardsCommand = async (output, context) => {
|
|
|
1087
982
|
const response = {
|
|
1088
983
|
$metadata: deserializeMetadata(output),
|
|
1089
984
|
};
|
|
1090
|
-
return
|
|
985
|
+
return response;
|
|
1091
986
|
};
|
|
1092
987
|
exports.de_MergeShardsCommand = de_MergeShardsCommand;
|
|
1093
988
|
const de_MergeShardsCommandError = async (output, context) => {
|
|
@@ -1117,10 +1012,9 @@ const de_MergeShardsCommandError = async (output, context) => {
|
|
|
1117
1012
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1118
1013
|
default:
|
|
1119
1014
|
const parsedBody = parsedOutput.body;
|
|
1120
|
-
|
|
1015
|
+
return throwDefaultError({
|
|
1121
1016
|
output,
|
|
1122
1017
|
parsedBody,
|
|
1123
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1124
1018
|
errorCode,
|
|
1125
1019
|
});
|
|
1126
1020
|
}
|
|
@@ -1131,12 +1025,12 @@ const de_PutRecordCommand = async (output, context) => {
|
|
|
1131
1025
|
}
|
|
1132
1026
|
const data = await parseBody(output.body, context);
|
|
1133
1027
|
let contents = {};
|
|
1134
|
-
contents =
|
|
1028
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1135
1029
|
const response = {
|
|
1136
1030
|
$metadata: deserializeMetadata(output),
|
|
1137
1031
|
...contents,
|
|
1138
1032
|
};
|
|
1139
|
-
return
|
|
1033
|
+
return response;
|
|
1140
1034
|
};
|
|
1141
1035
|
exports.de_PutRecordCommand = de_PutRecordCommand;
|
|
1142
1036
|
const de_PutRecordCommandError = async (output, context) => {
|
|
@@ -1178,10 +1072,9 @@ const de_PutRecordCommandError = async (output, context) => {
|
|
|
1178
1072
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
1073
|
default:
|
|
1180
1074
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1075
|
+
return throwDefaultError({
|
|
1182
1076
|
output,
|
|
1183
1077
|
parsedBody,
|
|
1184
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1185
1078
|
errorCode,
|
|
1186
1079
|
});
|
|
1187
1080
|
}
|
|
@@ -1192,12 +1085,12 @@ const de_PutRecordsCommand = async (output, context) => {
|
|
|
1192
1085
|
}
|
|
1193
1086
|
const data = await parseBody(output.body, context);
|
|
1194
1087
|
let contents = {};
|
|
1195
|
-
contents =
|
|
1088
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1196
1089
|
const response = {
|
|
1197
1090
|
$metadata: deserializeMetadata(output),
|
|
1198
1091
|
...contents,
|
|
1199
1092
|
};
|
|
1200
|
-
return
|
|
1093
|
+
return response;
|
|
1201
1094
|
};
|
|
1202
1095
|
exports.de_PutRecordsCommand = de_PutRecordsCommand;
|
|
1203
1096
|
const de_PutRecordsCommandError = async (output, context) => {
|
|
@@ -1239,10 +1132,9 @@ const de_PutRecordsCommandError = async (output, context) => {
|
|
|
1239
1132
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1240
1133
|
default:
|
|
1241
1134
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
|
|
1135
|
+
return throwDefaultError({
|
|
1243
1136
|
output,
|
|
1244
1137
|
parsedBody,
|
|
1245
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1246
1138
|
errorCode,
|
|
1247
1139
|
});
|
|
1248
1140
|
}
|
|
@@ -1258,7 +1150,7 @@ const de_RegisterStreamConsumerCommand = async (output, context) => {
|
|
|
1258
1150
|
$metadata: deserializeMetadata(output),
|
|
1259
1151
|
...contents,
|
|
1260
1152
|
};
|
|
1261
|
-
return
|
|
1153
|
+
return response;
|
|
1262
1154
|
};
|
|
1263
1155
|
exports.de_RegisterStreamConsumerCommand = de_RegisterStreamConsumerCommand;
|
|
1264
1156
|
const de_RegisterStreamConsumerCommandError = async (output, context) => {
|
|
@@ -1282,10 +1174,9 @@ const de_RegisterStreamConsumerCommandError = async (output, context) => {
|
|
|
1282
1174
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1283
1175
|
default:
|
|
1284
1176
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1177
|
+
return throwDefaultError({
|
|
1286
1178
|
output,
|
|
1287
1179
|
parsedBody,
|
|
1288
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1289
1180
|
errorCode,
|
|
1290
1181
|
});
|
|
1291
1182
|
}
|
|
@@ -1298,7 +1189,7 @@ const de_RemoveTagsFromStreamCommand = async (output, context) => {
|
|
|
1298
1189
|
const response = {
|
|
1299
1190
|
$metadata: deserializeMetadata(output),
|
|
1300
1191
|
};
|
|
1301
|
-
return
|
|
1192
|
+
return response;
|
|
1302
1193
|
};
|
|
1303
1194
|
exports.de_RemoveTagsFromStreamCommand = de_RemoveTagsFromStreamCommand;
|
|
1304
1195
|
const de_RemoveTagsFromStreamCommandError = async (output, context) => {
|
|
@@ -1325,10 +1216,9 @@ const de_RemoveTagsFromStreamCommandError = async (output, context) => {
|
|
|
1325
1216
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
1217
|
default:
|
|
1327
1218
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1219
|
+
return throwDefaultError({
|
|
1329
1220
|
output,
|
|
1330
1221
|
parsedBody,
|
|
1331
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1332
1222
|
errorCode,
|
|
1333
1223
|
});
|
|
1334
1224
|
}
|
|
@@ -1341,7 +1231,7 @@ const de_SplitShardCommand = async (output, context) => {
|
|
|
1341
1231
|
const response = {
|
|
1342
1232
|
$metadata: deserializeMetadata(output),
|
|
1343
1233
|
};
|
|
1344
|
-
return
|
|
1234
|
+
return response;
|
|
1345
1235
|
};
|
|
1346
1236
|
exports.de_SplitShardCommand = de_SplitShardCommand;
|
|
1347
1237
|
const de_SplitShardCommandError = async (output, context) => {
|
|
@@ -1371,10 +1261,9 @@ const de_SplitShardCommandError = async (output, context) => {
|
|
|
1371
1261
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
1262
|
default:
|
|
1373
1263
|
const parsedBody = parsedOutput.body;
|
|
1374
|
-
|
|
1264
|
+
return throwDefaultError({
|
|
1375
1265
|
output,
|
|
1376
1266
|
parsedBody,
|
|
1377
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1378
1267
|
errorCode,
|
|
1379
1268
|
});
|
|
1380
1269
|
}
|
|
@@ -1387,7 +1276,7 @@ const de_StartStreamEncryptionCommand = async (output, context) => {
|
|
|
1387
1276
|
const response = {
|
|
1388
1277
|
$metadata: deserializeMetadata(output),
|
|
1389
1278
|
};
|
|
1390
|
-
return
|
|
1279
|
+
return response;
|
|
1391
1280
|
};
|
|
1392
1281
|
exports.de_StartStreamEncryptionCommand = de_StartStreamEncryptionCommand;
|
|
1393
1282
|
const de_StartStreamEncryptionCommandError = async (output, context) => {
|
|
@@ -1432,10 +1321,9 @@ const de_StartStreamEncryptionCommandError = async (output, context) => {
|
|
|
1432
1321
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
1322
|
default:
|
|
1434
1323
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
|
|
1324
|
+
return throwDefaultError({
|
|
1436
1325
|
output,
|
|
1437
1326
|
parsedBody,
|
|
1438
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1439
1327
|
errorCode,
|
|
1440
1328
|
});
|
|
1441
1329
|
}
|
|
@@ -1448,7 +1336,7 @@ const de_StopStreamEncryptionCommand = async (output, context) => {
|
|
|
1448
1336
|
const response = {
|
|
1449
1337
|
$metadata: deserializeMetadata(output),
|
|
1450
1338
|
};
|
|
1451
|
-
return
|
|
1339
|
+
return response;
|
|
1452
1340
|
};
|
|
1453
1341
|
exports.de_StopStreamEncryptionCommand = de_StopStreamEncryptionCommand;
|
|
1454
1342
|
const de_StopStreamEncryptionCommandError = async (output, context) => {
|
|
@@ -1475,10 +1363,9 @@ const de_StopStreamEncryptionCommandError = async (output, context) => {
|
|
|
1475
1363
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1476
1364
|
default:
|
|
1477
1365
|
const parsedBody = parsedOutput.body;
|
|
1478
|
-
|
|
1366
|
+
return throwDefaultError({
|
|
1479
1367
|
output,
|
|
1480
1368
|
parsedBody,
|
|
1481
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1482
1369
|
errorCode,
|
|
1483
1370
|
});
|
|
1484
1371
|
}
|
|
@@ -1492,7 +1379,7 @@ const de_SubscribeToShardCommand = async (output, context) => {
|
|
|
1492
1379
|
$metadata: deserializeMetadata(output),
|
|
1493
1380
|
...contents,
|
|
1494
1381
|
};
|
|
1495
|
-
return
|
|
1382
|
+
return response;
|
|
1496
1383
|
};
|
|
1497
1384
|
exports.de_SubscribeToShardCommand = de_SubscribeToShardCommand;
|
|
1498
1385
|
const de_SubscribeToShardCommandError = async (output, context) => {
|
|
@@ -1519,10 +1406,9 @@ const de_SubscribeToShardCommandError = async (output, context) => {
|
|
|
1519
1406
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1520
1407
|
default:
|
|
1521
1408
|
const parsedBody = parsedOutput.body;
|
|
1522
|
-
|
|
1409
|
+
return throwDefaultError({
|
|
1523
1410
|
output,
|
|
1524
1411
|
parsedBody,
|
|
1525
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1526
1412
|
errorCode,
|
|
1527
1413
|
});
|
|
1528
1414
|
}
|
|
@@ -1533,12 +1419,12 @@ const de_UpdateShardCountCommand = async (output, context) => {
|
|
|
1533
1419
|
}
|
|
1534
1420
|
const data = await parseBody(output.body, context);
|
|
1535
1421
|
let contents = {};
|
|
1536
|
-
contents =
|
|
1422
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1537
1423
|
const response = {
|
|
1538
1424
|
$metadata: deserializeMetadata(output),
|
|
1539
1425
|
...contents,
|
|
1540
1426
|
};
|
|
1541
|
-
return
|
|
1427
|
+
return response;
|
|
1542
1428
|
};
|
|
1543
1429
|
exports.de_UpdateShardCountCommand = de_UpdateShardCountCommand;
|
|
1544
1430
|
const de_UpdateShardCountCommandError = async (output, context) => {
|
|
@@ -1568,10 +1454,9 @@ const de_UpdateShardCountCommandError = async (output, context) => {
|
|
|
1568
1454
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1569
1455
|
default:
|
|
1570
1456
|
const parsedBody = parsedOutput.body;
|
|
1571
|
-
|
|
1457
|
+
return throwDefaultError({
|
|
1572
1458
|
output,
|
|
1573
1459
|
parsedBody,
|
|
1574
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1575
1460
|
errorCode,
|
|
1576
1461
|
});
|
|
1577
1462
|
}
|
|
@@ -1584,7 +1469,7 @@ const de_UpdateStreamModeCommand = async (output, context) => {
|
|
|
1584
1469
|
const response = {
|
|
1585
1470
|
$metadata: deserializeMetadata(output),
|
|
1586
1471
|
};
|
|
1587
|
-
return
|
|
1472
|
+
return response;
|
|
1588
1473
|
};
|
|
1589
1474
|
exports.de_UpdateStreamModeCommand = de_UpdateStreamModeCommand;
|
|
1590
1475
|
const de_UpdateStreamModeCommandError = async (output, context) => {
|
|
@@ -1608,17 +1493,16 @@ const de_UpdateStreamModeCommandError = async (output, context) => {
|
|
|
1608
1493
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
1494
|
default:
|
|
1610
1495
|
const parsedBody = parsedOutput.body;
|
|
1611
|
-
|
|
1496
|
+
return throwDefaultError({
|
|
1612
1497
|
output,
|
|
1613
1498
|
parsedBody,
|
|
1614
|
-
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1615
1499
|
errorCode,
|
|
1616
1500
|
});
|
|
1617
1501
|
}
|
|
1618
1502
|
};
|
|
1619
1503
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1620
1504
|
const body = parsedOutput.body;
|
|
1621
|
-
const deserialized =
|
|
1505
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1622
1506
|
const exception = new models_0_1.AccessDeniedException({
|
|
1623
1507
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1624
1508
|
...deserialized,
|
|
@@ -1627,7 +1511,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1627
1511
|
};
|
|
1628
1512
|
const de_ExpiredIteratorExceptionRes = async (parsedOutput, context) => {
|
|
1629
1513
|
const body = parsedOutput.body;
|
|
1630
|
-
const deserialized =
|
|
1514
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1631
1515
|
const exception = new models_0_1.ExpiredIteratorException({
|
|
1632
1516
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1633
1517
|
...deserialized,
|
|
@@ -1636,7 +1520,7 @@ const de_ExpiredIteratorExceptionRes = async (parsedOutput, context) => {
|
|
|
1636
1520
|
};
|
|
1637
1521
|
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1638
1522
|
const body = parsedOutput.body;
|
|
1639
|
-
const deserialized =
|
|
1523
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1640
1524
|
const exception = new models_0_1.ExpiredNextTokenException({
|
|
1641
1525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1642
1526
|
...deserialized,
|
|
@@ -1645,7 +1529,7 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1645
1529
|
};
|
|
1646
1530
|
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1647
1531
|
const body = parsedOutput.body;
|
|
1648
|
-
const deserialized =
|
|
1532
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1649
1533
|
const exception = new models_0_1.InvalidArgumentException({
|
|
1650
1534
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
1535
|
...deserialized,
|
|
@@ -1654,7 +1538,7 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
1654
1538
|
};
|
|
1655
1539
|
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1656
1540
|
const body = parsedOutput.body;
|
|
1657
|
-
const deserialized =
|
|
1541
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1658
1542
|
const exception = new models_0_1.KMSAccessDeniedException({
|
|
1659
1543
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1660
1544
|
...deserialized,
|
|
@@ -1663,7 +1547,7 @@ const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1663
1547
|
};
|
|
1664
1548
|
const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1665
1549
|
const body = parsedOutput.body;
|
|
1666
|
-
const deserialized =
|
|
1550
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1667
1551
|
const exception = new models_0_1.KMSDisabledException({
|
|
1668
1552
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1669
1553
|
...deserialized,
|
|
@@ -1672,7 +1556,7 @@ const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
1672
1556
|
};
|
|
1673
1557
|
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1674
1558
|
const body = parsedOutput.body;
|
|
1675
|
-
const deserialized =
|
|
1559
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1676
1560
|
const exception = new models_0_1.KMSInvalidStateException({
|
|
1677
1561
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1678
1562
|
...deserialized,
|
|
@@ -1681,7 +1565,7 @@ const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
1681
1565
|
};
|
|
1682
1566
|
const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1683
1567
|
const body = parsedOutput.body;
|
|
1684
|
-
const deserialized =
|
|
1568
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1685
1569
|
const exception = new models_0_1.KMSNotFoundException({
|
|
1686
1570
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1687
1571
|
...deserialized,
|
|
@@ -1690,7 +1574,7 @@ const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1690
1574
|
};
|
|
1691
1575
|
const de_KMSOptInRequiredRes = async (parsedOutput, context) => {
|
|
1692
1576
|
const body = parsedOutput.body;
|
|
1693
|
-
const deserialized =
|
|
1577
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1694
1578
|
const exception = new models_0_1.KMSOptInRequired({
|
|
1695
1579
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1696
1580
|
...deserialized,
|
|
@@ -1699,7 +1583,7 @@ const de_KMSOptInRequiredRes = async (parsedOutput, context) => {
|
|
|
1699
1583
|
};
|
|
1700
1584
|
const de_KMSThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1701
1585
|
const body = parsedOutput.body;
|
|
1702
|
-
const deserialized =
|
|
1586
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1703
1587
|
const exception = new models_0_1.KMSThrottlingException({
|
|
1704
1588
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1705
1589
|
...deserialized,
|
|
@@ -1708,7 +1592,7 @@ const de_KMSThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1708
1592
|
};
|
|
1709
1593
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1710
1594
|
const body = parsedOutput.body;
|
|
1711
|
-
const deserialized =
|
|
1595
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1712
1596
|
const exception = new models_0_1.LimitExceededException({
|
|
1713
1597
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
1598
|
...deserialized,
|
|
@@ -1717,7 +1601,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1717
1601
|
};
|
|
1718
1602
|
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1719
1603
|
const body = parsedOutput.body;
|
|
1720
|
-
const deserialized =
|
|
1604
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1721
1605
|
const exception = new models_0_1.ProvisionedThroughputExceededException({
|
|
1722
1606
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1723
1607
|
...deserialized,
|
|
@@ -1726,7 +1610,7 @@ const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, contex
|
|
|
1726
1610
|
};
|
|
1727
1611
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1728
1612
|
const body = parsedOutput.body;
|
|
1729
|
-
const deserialized =
|
|
1613
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1730
1614
|
const exception = new models_0_1.ResourceInUseException({
|
|
1731
1615
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
1616
|
...deserialized,
|
|
@@ -1735,7 +1619,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1735
1619
|
};
|
|
1736
1620
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1737
1621
|
const body = parsedOutput.body;
|
|
1738
|
-
const deserialized =
|
|
1622
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1739
1623
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1740
1624
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1741
1625
|
...deserialized,
|
|
@@ -1744,7 +1628,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1744
1628
|
};
|
|
1745
1629
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1746
1630
|
const body = parsedOutput.body;
|
|
1747
|
-
const deserialized =
|
|
1631
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1748
1632
|
const exception = new models_0_1.ValidationException({
|
|
1749
1633
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1750
1634
|
...deserialized,
|
|
@@ -1877,188 +1761,65 @@ const de_SubscribeToShardEvent_event = async (output, context) => {
|
|
|
1877
1761
|
};
|
|
1878
1762
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1879
1763
|
const body = parsedOutput.body;
|
|
1880
|
-
const deserialized =
|
|
1764
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1881
1765
|
const exception = new models_0_1.InternalFailureException({
|
|
1882
1766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1883
1767
|
...deserialized,
|
|
1884
1768
|
});
|
|
1885
1769
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1886
1770
|
};
|
|
1887
|
-
const se_AddTagsToStreamInput = (input, context) => {
|
|
1888
|
-
return {
|
|
1889
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1890
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1891
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
1892
|
-
};
|
|
1893
|
-
};
|
|
1894
|
-
const se_CreateStreamInput = (input, context) => {
|
|
1895
|
-
return {
|
|
1896
|
-
...(input.ShardCount != null && { ShardCount: input.ShardCount }),
|
|
1897
|
-
...(input.StreamModeDetails != null && {
|
|
1898
|
-
StreamModeDetails: se_StreamModeDetails(input.StreamModeDetails, context),
|
|
1899
|
-
}),
|
|
1900
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
const se_DecreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1906
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1907
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1908
|
-
};
|
|
1909
|
-
};
|
|
1910
|
-
const se_DeleteStreamInput = (input, context) => {
|
|
1911
|
-
return {
|
|
1912
|
-
...(input.EnforceConsumerDeletion != null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion }),
|
|
1913
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1914
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
const se_DeregisterStreamConsumerInput = (input, context) => {
|
|
1918
|
-
return {
|
|
1919
|
-
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1920
|
-
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1921
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1922
|
-
};
|
|
1923
|
-
};
|
|
1924
|
-
const se_DescribeLimitsInput = (input, context) => {
|
|
1925
|
-
return {};
|
|
1926
|
-
};
|
|
1927
|
-
const se_DescribeStreamConsumerInput = (input, context) => {
|
|
1928
|
-
return {
|
|
1929
|
-
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1930
|
-
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1931
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1932
|
-
};
|
|
1933
|
-
};
|
|
1934
|
-
const se_DescribeStreamInput = (input, context) => {
|
|
1935
|
-
return {
|
|
1936
|
-
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1937
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1938
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1939
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
const se_DescribeStreamSummaryInput = (input, context) => {
|
|
1943
|
-
return {
|
|
1944
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1945
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1946
|
-
};
|
|
1947
|
-
};
|
|
1948
|
-
const se_DisableEnhancedMonitoringInput = (input, context) => {
|
|
1949
|
-
return {
|
|
1950
|
-
...(input.ShardLevelMetrics != null && { ShardLevelMetrics: se_MetricsNameList(input.ShardLevelMetrics, context) }),
|
|
1951
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1952
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
const se_EnableEnhancedMonitoringInput = (input, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
...(input.ShardLevelMetrics != null && { ShardLevelMetrics: se_MetricsNameList(input.ShardLevelMetrics, context) }),
|
|
1958
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1959
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1960
|
-
};
|
|
1961
|
-
};
|
|
1962
|
-
const se_GetRecordsInput = (input, context) => {
|
|
1963
|
-
return {
|
|
1964
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1965
|
-
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
1966
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1967
|
-
};
|
|
1968
|
-
};
|
|
1969
1771
|
const se_GetShardIteratorInput = (input, context) => {
|
|
1970
|
-
return {
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
};
|
|
1978
|
-
};
|
|
1979
|
-
const se_IncreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1980
|
-
return {
|
|
1981
|
-
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1982
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1983
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1984
|
-
};
|
|
1772
|
+
return (0, smithy_client_1.take)(input, {
|
|
1773
|
+
ShardId: [],
|
|
1774
|
+
ShardIteratorType: [],
|
|
1775
|
+
StartingSequenceNumber: [],
|
|
1776
|
+
StreamARN: [],
|
|
1777
|
+
StreamName: [],
|
|
1778
|
+
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1779
|
+
});
|
|
1985
1780
|
};
|
|
1986
1781
|
const se_ListShardsInput = (input, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1997
|
-
};
|
|
1782
|
+
return (0, smithy_client_1.take)(input, {
|
|
1783
|
+
ExclusiveStartShardId: [],
|
|
1784
|
+
MaxResults: [],
|
|
1785
|
+
NextToken: [],
|
|
1786
|
+
ShardFilter: (_) => se_ShardFilter(_, context),
|
|
1787
|
+
StreamARN: [],
|
|
1788
|
+
StreamCreationTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1789
|
+
StreamName: [],
|
|
1790
|
+
});
|
|
1998
1791
|
};
|
|
1999
1792
|
const se_ListStreamConsumersInput = (input, context) => {
|
|
2000
|
-
return {
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
2006
|
-
}),
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
const se_ListStreamsInput = (input, context) => {
|
|
2010
|
-
return {
|
|
2011
|
-
...(input.ExclusiveStartStreamName != null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName }),
|
|
2012
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
2013
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2014
|
-
};
|
|
2015
|
-
};
|
|
2016
|
-
const se_ListTagsForStreamInput = (input, context) => {
|
|
2017
|
-
return {
|
|
2018
|
-
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
2019
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
2020
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2021
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2022
|
-
};
|
|
2023
|
-
};
|
|
2024
|
-
const se_MergeShardsInput = (input, context) => {
|
|
2025
|
-
return {
|
|
2026
|
-
...(input.AdjacentShardToMerge != null && { AdjacentShardToMerge: input.AdjacentShardToMerge }),
|
|
2027
|
-
...(input.ShardToMerge != null && { ShardToMerge: input.ShardToMerge }),
|
|
2028
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2029
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2030
|
-
};
|
|
2031
|
-
};
|
|
2032
|
-
const se_MetricsNameList = (input, context) => {
|
|
2033
|
-
return input
|
|
2034
|
-
.filter((e) => e != null)
|
|
2035
|
-
.map((entry) => {
|
|
2036
|
-
return entry;
|
|
1793
|
+
return (0, smithy_client_1.take)(input, {
|
|
1794
|
+
MaxResults: [],
|
|
1795
|
+
NextToken: [],
|
|
1796
|
+
StreamARN: [],
|
|
1797
|
+
StreamCreationTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2037
1798
|
});
|
|
2038
1799
|
};
|
|
2039
1800
|
const se_PutRecordInput = (input, context) => {
|
|
2040
|
-
return {
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
};
|
|
1801
|
+
return (0, smithy_client_1.take)(input, {
|
|
1802
|
+
Data: context.base64Encoder,
|
|
1803
|
+
ExplicitHashKey: [],
|
|
1804
|
+
PartitionKey: [],
|
|
1805
|
+
SequenceNumberForOrdering: [],
|
|
1806
|
+
StreamARN: [],
|
|
1807
|
+
StreamName: [],
|
|
1808
|
+
});
|
|
2048
1809
|
};
|
|
2049
1810
|
const se_PutRecordsInput = (input, context) => {
|
|
2050
|
-
return {
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
};
|
|
1811
|
+
return (0, smithy_client_1.take)(input, {
|
|
1812
|
+
Records: (_) => se_PutRecordsRequestEntryList(_, context),
|
|
1813
|
+
StreamARN: [],
|
|
1814
|
+
StreamName: [],
|
|
1815
|
+
});
|
|
2055
1816
|
};
|
|
2056
1817
|
const se_PutRecordsRequestEntry = (input, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
};
|
|
1818
|
+
return (0, smithy_client_1.take)(input, {
|
|
1819
|
+
Data: context.base64Encoder,
|
|
1820
|
+
ExplicitHashKey: [],
|
|
1821
|
+
PartitionKey: [],
|
|
1822
|
+
});
|
|
2062
1823
|
};
|
|
2063
1824
|
const se_PutRecordsRequestEntryList = (input, context) => {
|
|
2064
1825
|
return input
|
|
@@ -2067,541 +1828,165 @@ const se_PutRecordsRequestEntryList = (input, context) => {
|
|
|
2067
1828
|
return se_PutRecordsRequestEntry(entry, context);
|
|
2068
1829
|
});
|
|
2069
1830
|
};
|
|
2070
|
-
const se_RegisterStreamConsumerInput = (input, context) => {
|
|
2071
|
-
return {
|
|
2072
|
-
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
2073
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
const se_RemoveTagsFromStreamInput = (input, context) => {
|
|
2077
|
-
return {
|
|
2078
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2079
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2080
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2081
|
-
};
|
|
2082
|
-
};
|
|
2083
1831
|
const se_ShardFilter = (input, context) => {
|
|
2084
|
-
return {
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
};
|
|
2089
|
-
};
|
|
2090
|
-
const se_SplitShardInput = (input, context) => {
|
|
2091
|
-
return {
|
|
2092
|
-
...(input.NewStartingHashKey != null && { NewStartingHashKey: input.NewStartingHashKey }),
|
|
2093
|
-
...(input.ShardToSplit != null && { ShardToSplit: input.ShardToSplit }),
|
|
2094
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2095
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2096
|
-
};
|
|
1832
|
+
return (0, smithy_client_1.take)(input, {
|
|
1833
|
+
ShardId: [],
|
|
1834
|
+
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1835
|
+
Type: [],
|
|
1836
|
+
});
|
|
2097
1837
|
};
|
|
2098
1838
|
const se_StartingPosition = (input, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
};
|
|
2104
|
-
};
|
|
2105
|
-
const se_StartStreamEncryptionInput = (input, context) => {
|
|
2106
|
-
return {
|
|
2107
|
-
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2108
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2109
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2110
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
const se_StopStreamEncryptionInput = (input, context) => {
|
|
2114
|
-
return {
|
|
2115
|
-
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2116
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2117
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2118
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2119
|
-
};
|
|
2120
|
-
};
|
|
2121
|
-
const se_StreamModeDetails = (input, context) => {
|
|
2122
|
-
return {
|
|
2123
|
-
...(input.StreamMode != null && { StreamMode: input.StreamMode }),
|
|
2124
|
-
};
|
|
2125
|
-
};
|
|
2126
|
-
const se_SubscribeToShardInput = (input, context) => {
|
|
2127
|
-
return {
|
|
2128
|
-
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
2129
|
-
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
2130
|
-
...(input.StartingPosition != null && { StartingPosition: se_StartingPosition(input.StartingPosition, context) }),
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
const se_TagKeyList = (input, context) => {
|
|
2134
|
-
return input
|
|
2135
|
-
.filter((e) => e != null)
|
|
2136
|
-
.map((entry) => {
|
|
2137
|
-
return entry;
|
|
1839
|
+
return (0, smithy_client_1.take)(input, {
|
|
1840
|
+
SequenceNumber: [],
|
|
1841
|
+
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1842
|
+
Type: [],
|
|
2138
1843
|
});
|
|
2139
1844
|
};
|
|
2140
|
-
const
|
|
2141
|
-
return
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
acc[key] = value;
|
|
2146
|
-
return acc;
|
|
2147
|
-
}, {});
|
|
2148
|
-
};
|
|
2149
|
-
const se_UpdateShardCountInput = (input, context) => {
|
|
2150
|
-
return {
|
|
2151
|
-
...(input.ScalingType != null && { ScalingType: input.ScalingType }),
|
|
2152
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2153
|
-
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2154
|
-
...(input.TargetShardCount != null && { TargetShardCount: input.TargetShardCount }),
|
|
2155
|
-
};
|
|
2156
|
-
};
|
|
2157
|
-
const se_UpdateStreamModeInput = (input, context) => {
|
|
2158
|
-
return {
|
|
2159
|
-
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2160
|
-
...(input.StreamModeDetails != null && {
|
|
2161
|
-
StreamModeDetails: se_StreamModeDetails(input.StreamModeDetails, context),
|
|
2162
|
-
}),
|
|
2163
|
-
};
|
|
2164
|
-
};
|
|
2165
|
-
const de_AccessDeniedException = (output, context) => {
|
|
2166
|
-
return {
|
|
2167
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2168
|
-
};
|
|
2169
|
-
};
|
|
2170
|
-
const de_ChildShard = (output, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
HashKeyRange: output.HashKeyRange != null ? de_HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2173
|
-
ParentShards: output.ParentShards != null ? de_ShardIdList(output.ParentShards, context) : undefined,
|
|
2174
|
-
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const de_ChildShardList = (output, context) => {
|
|
2178
|
-
const retVal = (output || [])
|
|
2179
|
-
.filter((e) => e != null)
|
|
2180
|
-
.map((entry) => {
|
|
2181
|
-
if (entry === null) {
|
|
2182
|
-
return null;
|
|
2183
|
-
}
|
|
2184
|
-
return de_ChildShard(entry, context);
|
|
1845
|
+
const se_SubscribeToShardInput = (input, context) => {
|
|
1846
|
+
return (0, smithy_client_1.take)(input, {
|
|
1847
|
+
ConsumerARN: [],
|
|
1848
|
+
ShardId: [],
|
|
1849
|
+
StartingPosition: (_) => se_StartingPosition(_, context),
|
|
2185
1850
|
});
|
|
2186
|
-
return retVal;
|
|
2187
1851
|
};
|
|
2188
1852
|
const de_Consumer = (output, context) => {
|
|
2189
|
-
return {
|
|
2190
|
-
ConsumerARN:
|
|
2191
|
-
ConsumerCreationTimestamp:
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
ConsumerStatus: (0, smithy_client_1.expectString)(output.ConsumerStatus),
|
|
2196
|
-
};
|
|
1853
|
+
return (0, smithy_client_1.take)(output, {
|
|
1854
|
+
ConsumerARN: smithy_client_1.expectString,
|
|
1855
|
+
ConsumerCreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1856
|
+
ConsumerName: smithy_client_1.expectString,
|
|
1857
|
+
ConsumerStatus: smithy_client_1.expectString,
|
|
1858
|
+
});
|
|
2197
1859
|
};
|
|
2198
1860
|
const de_ConsumerDescription = (output, context) => {
|
|
2199
|
-
return {
|
|
2200
|
-
ConsumerARN:
|
|
2201
|
-
ConsumerCreationTimestamp:
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2207
|
-
};
|
|
1861
|
+
return (0, smithy_client_1.take)(output, {
|
|
1862
|
+
ConsumerARN: smithy_client_1.expectString,
|
|
1863
|
+
ConsumerCreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1864
|
+
ConsumerName: smithy_client_1.expectString,
|
|
1865
|
+
ConsumerStatus: smithy_client_1.expectString,
|
|
1866
|
+
StreamARN: smithy_client_1.expectString,
|
|
1867
|
+
});
|
|
2208
1868
|
};
|
|
2209
1869
|
const de_ConsumerList = (output, context) => {
|
|
2210
1870
|
const retVal = (output || [])
|
|
2211
1871
|
.filter((e) => e != null)
|
|
2212
1872
|
.map((entry) => {
|
|
2213
|
-
if (entry === null) {
|
|
2214
|
-
return null;
|
|
2215
|
-
}
|
|
2216
1873
|
return de_Consumer(entry, context);
|
|
2217
1874
|
});
|
|
2218
1875
|
return retVal;
|
|
2219
1876
|
};
|
|
2220
|
-
const de_DescribeLimitsOutput = (output, context) => {
|
|
2221
|
-
return {
|
|
2222
|
-
OnDemandStreamCount: (0, smithy_client_1.expectInt32)(output.OnDemandStreamCount),
|
|
2223
|
-
OnDemandStreamCountLimit: (0, smithy_client_1.expectInt32)(output.OnDemandStreamCountLimit),
|
|
2224
|
-
OpenShardCount: (0, smithy_client_1.expectInt32)(output.OpenShardCount),
|
|
2225
|
-
ShardLimit: (0, smithy_client_1.expectInt32)(output.ShardLimit),
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
1877
|
const de_DescribeStreamConsumerOutput = (output, context) => {
|
|
2229
|
-
return {
|
|
2230
|
-
ConsumerDescription:
|
|
2231
|
-
};
|
|
1878
|
+
return (0, smithy_client_1.take)(output, {
|
|
1879
|
+
ConsumerDescription: (_) => de_ConsumerDescription(_, context),
|
|
1880
|
+
});
|
|
2232
1881
|
};
|
|
2233
1882
|
const de_DescribeStreamOutput = (output, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
StreamDescription:
|
|
2236
|
-
};
|
|
1883
|
+
return (0, smithy_client_1.take)(output, {
|
|
1884
|
+
StreamDescription: (_) => de_StreamDescription(_, context),
|
|
1885
|
+
});
|
|
2237
1886
|
};
|
|
2238
1887
|
const de_DescribeStreamSummaryOutput = (output, context) => {
|
|
2239
|
-
return {
|
|
2240
|
-
StreamDescriptionSummary:
|
|
2241
|
-
? de_StreamDescriptionSummary(output.StreamDescriptionSummary, context)
|
|
2242
|
-
: undefined,
|
|
2243
|
-
};
|
|
2244
|
-
};
|
|
2245
|
-
const de_EnhancedMetrics = (output, context) => {
|
|
2246
|
-
return {
|
|
2247
|
-
ShardLevelMetrics: output.ShardLevelMetrics != null ? de_MetricsNameList(output.ShardLevelMetrics, context) : undefined,
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const de_EnhancedMonitoringList = (output, context) => {
|
|
2251
|
-
const retVal = (output || [])
|
|
2252
|
-
.filter((e) => e != null)
|
|
2253
|
-
.map((entry) => {
|
|
2254
|
-
if (entry === null) {
|
|
2255
|
-
return null;
|
|
2256
|
-
}
|
|
2257
|
-
return de_EnhancedMetrics(entry, context);
|
|
1888
|
+
return (0, smithy_client_1.take)(output, {
|
|
1889
|
+
StreamDescriptionSummary: (_) => de_StreamDescriptionSummary(_, context),
|
|
2258
1890
|
});
|
|
2259
|
-
return retVal;
|
|
2260
|
-
};
|
|
2261
|
-
const de_EnhancedMonitoringOutput = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
CurrentShardLevelMetrics: output.CurrentShardLevelMetrics != null
|
|
2264
|
-
? de_MetricsNameList(output.CurrentShardLevelMetrics, context)
|
|
2265
|
-
: undefined,
|
|
2266
|
-
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics != null
|
|
2267
|
-
? de_MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2268
|
-
: undefined,
|
|
2269
|
-
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2270
|
-
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const de_ExpiredIteratorException = (output, context) => {
|
|
2274
|
-
return {
|
|
2275
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
|
-
const de_ExpiredNextTokenException = (output, context) => {
|
|
2279
|
-
return {
|
|
2280
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2281
|
-
};
|
|
2282
1891
|
};
|
|
2283
1892
|
const de_GetRecordsOutput = (output, context) => {
|
|
2284
|
-
return {
|
|
2285
|
-
ChildShards:
|
|
2286
|
-
MillisBehindLatest:
|
|
2287
|
-
NextShardIterator:
|
|
2288
|
-
Records:
|
|
2289
|
-
};
|
|
2290
|
-
};
|
|
2291
|
-
const de_GetShardIteratorOutput = (output, context) => {
|
|
2292
|
-
return {
|
|
2293
|
-
ShardIterator: (0, smithy_client_1.expectString)(output.ShardIterator),
|
|
2294
|
-
};
|
|
2295
|
-
};
|
|
2296
|
-
const de_HashKeyRange = (output, context) => {
|
|
2297
|
-
return {
|
|
2298
|
-
EndingHashKey: (0, smithy_client_1.expectString)(output.EndingHashKey),
|
|
2299
|
-
StartingHashKey: (0, smithy_client_1.expectString)(output.StartingHashKey),
|
|
2300
|
-
};
|
|
2301
|
-
};
|
|
2302
|
-
const de_InternalFailureException = (output, context) => {
|
|
2303
|
-
return {
|
|
2304
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const de_InvalidArgumentException = (output, context) => {
|
|
2308
|
-
return {
|
|
2309
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2310
|
-
};
|
|
2311
|
-
};
|
|
2312
|
-
const de_KMSAccessDeniedException = (output, context) => {
|
|
2313
|
-
return {
|
|
2314
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
const de_KMSDisabledException = (output, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2320
|
-
};
|
|
2321
|
-
};
|
|
2322
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2325
|
-
};
|
|
2326
|
-
};
|
|
2327
|
-
const de_KMSNotFoundException = (output, context) => {
|
|
2328
|
-
return {
|
|
2329
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2330
|
-
};
|
|
2331
|
-
};
|
|
2332
|
-
const de_KMSOptInRequired = (output, context) => {
|
|
2333
|
-
return {
|
|
2334
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2335
|
-
};
|
|
2336
|
-
};
|
|
2337
|
-
const de_KMSThrottlingException = (output, context) => {
|
|
2338
|
-
return {
|
|
2339
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const de_LimitExceededException = (output, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
const de_ListShardsOutput = (output, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2350
|
-
Shards: output.Shards != null ? de_ShardList(output.Shards, context) : undefined,
|
|
2351
|
-
};
|
|
1893
|
+
return (0, smithy_client_1.take)(output, {
|
|
1894
|
+
ChildShards: smithy_client_1._json,
|
|
1895
|
+
MillisBehindLatest: smithy_client_1.expectLong,
|
|
1896
|
+
NextShardIterator: smithy_client_1.expectString,
|
|
1897
|
+
Records: (_) => de_RecordList(_, context),
|
|
1898
|
+
});
|
|
2352
1899
|
};
|
|
2353
1900
|
const de_ListStreamConsumersOutput = (output, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
Consumers:
|
|
2356
|
-
NextToken:
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
|
-
const de_ListStreamsOutput = (output, context) => {
|
|
2360
|
-
return {
|
|
2361
|
-
HasMoreStreams: (0, smithy_client_1.expectBoolean)(output.HasMoreStreams),
|
|
2362
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2363
|
-
StreamNames: output.StreamNames != null ? de_StreamNameList(output.StreamNames, context) : undefined,
|
|
2364
|
-
StreamSummaries: output.StreamSummaries != null ? de_StreamSummaryList(output.StreamSummaries, context) : undefined,
|
|
2365
|
-
};
|
|
2366
|
-
};
|
|
2367
|
-
const de_ListTagsForStreamOutput = (output, context) => {
|
|
2368
|
-
return {
|
|
2369
|
-
HasMoreTags: (0, smithy_client_1.expectBoolean)(output.HasMoreTags),
|
|
2370
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2371
|
-
};
|
|
2372
|
-
};
|
|
2373
|
-
const de_MetricsNameList = (output, context) => {
|
|
2374
|
-
const retVal = (output || [])
|
|
2375
|
-
.filter((e) => e != null)
|
|
2376
|
-
.map((entry) => {
|
|
2377
|
-
if (entry === null) {
|
|
2378
|
-
return null;
|
|
2379
|
-
}
|
|
2380
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1901
|
+
return (0, smithy_client_1.take)(output, {
|
|
1902
|
+
Consumers: (_) => de_ConsumerList(_, context),
|
|
1903
|
+
NextToken: smithy_client_1.expectString,
|
|
2381
1904
|
});
|
|
2382
|
-
return retVal;
|
|
2383
|
-
};
|
|
2384
|
-
const de_ProvisionedThroughputExceededException = (output, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const de_PutRecordOutput = (output, context) => {
|
|
2390
|
-
return {
|
|
2391
|
-
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2392
|
-
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
2393
|
-
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const de_PutRecordsOutput = (output, context) => {
|
|
2397
|
-
return {
|
|
2398
|
-
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2399
|
-
FailedRecordCount: (0, smithy_client_1.expectInt32)(output.FailedRecordCount),
|
|
2400
|
-
Records: output.Records != null ? de_PutRecordsResultEntryList(output.Records, context) : undefined,
|
|
2401
|
-
};
|
|
2402
|
-
};
|
|
2403
|
-
const de_PutRecordsResultEntry = (output, context) => {
|
|
2404
|
-
return {
|
|
2405
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
2406
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
2407
|
-
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
2408
|
-
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2409
|
-
};
|
|
2410
1905
|
};
|
|
2411
|
-
const
|
|
2412
|
-
|
|
2413
|
-
.
|
|
2414
|
-
.
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
}
|
|
2418
|
-
return de_PutRecordsResultEntry(entry, context);
|
|
1906
|
+
const de_ListStreamsOutput = (output, context) => {
|
|
1907
|
+
return (0, smithy_client_1.take)(output, {
|
|
1908
|
+
HasMoreStreams: smithy_client_1.expectBoolean,
|
|
1909
|
+
NextToken: smithy_client_1.expectString,
|
|
1910
|
+
StreamNames: smithy_client_1._json,
|
|
1911
|
+
StreamSummaries: (_) => de_StreamSummaryList(_, context),
|
|
2419
1912
|
});
|
|
2420
|
-
return retVal;
|
|
2421
1913
|
};
|
|
2422
1914
|
const de__Record = (output, context) => {
|
|
2423
|
-
return {
|
|
2424
|
-
ApproximateArrivalTimestamp:
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
2431
|
-
};
|
|
1915
|
+
return (0, smithy_client_1.take)(output, {
|
|
1916
|
+
ApproximateArrivalTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1917
|
+
Data: context.base64Decoder,
|
|
1918
|
+
EncryptionType: smithy_client_1.expectString,
|
|
1919
|
+
PartitionKey: smithy_client_1.expectString,
|
|
1920
|
+
SequenceNumber: smithy_client_1.expectString,
|
|
1921
|
+
});
|
|
2432
1922
|
};
|
|
2433
1923
|
const de_RecordList = (output, context) => {
|
|
2434
1924
|
const retVal = (output || [])
|
|
2435
1925
|
.filter((e) => e != null)
|
|
2436
1926
|
.map((entry) => {
|
|
2437
|
-
if (entry === null) {
|
|
2438
|
-
return null;
|
|
2439
|
-
}
|
|
2440
1927
|
return de__Record(entry, context);
|
|
2441
1928
|
});
|
|
2442
1929
|
return retVal;
|
|
2443
1930
|
};
|
|
2444
1931
|
const de_RegisterStreamConsumerOutput = (output, context) => {
|
|
2445
|
-
return {
|
|
2446
|
-
Consumer:
|
|
2447
|
-
};
|
|
2448
|
-
};
|
|
2449
|
-
const de_ResourceInUseException = (output, context) => {
|
|
2450
|
-
return {
|
|
2451
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2452
|
-
};
|
|
2453
|
-
};
|
|
2454
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2455
|
-
return {
|
|
2456
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2457
|
-
};
|
|
2458
|
-
};
|
|
2459
|
-
const de_SequenceNumberRange = (output, context) => {
|
|
2460
|
-
return {
|
|
2461
|
-
EndingSequenceNumber: (0, smithy_client_1.expectString)(output.EndingSequenceNumber),
|
|
2462
|
-
StartingSequenceNumber: (0, smithy_client_1.expectString)(output.StartingSequenceNumber),
|
|
2463
|
-
};
|
|
2464
|
-
};
|
|
2465
|
-
const de_Shard = (output, context) => {
|
|
2466
|
-
return {
|
|
2467
|
-
AdjacentParentShardId: (0, smithy_client_1.expectString)(output.AdjacentParentShardId),
|
|
2468
|
-
HashKeyRange: output.HashKeyRange != null ? de_HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2469
|
-
ParentShardId: (0, smithy_client_1.expectString)(output.ParentShardId),
|
|
2470
|
-
SequenceNumberRange: output.SequenceNumberRange != null ? de_SequenceNumberRange(output.SequenceNumberRange, context) : undefined,
|
|
2471
|
-
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2472
|
-
};
|
|
2473
|
-
};
|
|
2474
|
-
const de_ShardIdList = (output, context) => {
|
|
2475
|
-
const retVal = (output || [])
|
|
2476
|
-
.filter((e) => e != null)
|
|
2477
|
-
.map((entry) => {
|
|
2478
|
-
if (entry === null) {
|
|
2479
|
-
return null;
|
|
2480
|
-
}
|
|
2481
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1932
|
+
return (0, smithy_client_1.take)(output, {
|
|
1933
|
+
Consumer: (_) => de_Consumer(_, context),
|
|
2482
1934
|
});
|
|
2483
|
-
return retVal;
|
|
2484
|
-
};
|
|
2485
|
-
const de_ShardList = (output, context) => {
|
|
2486
|
-
const retVal = (output || [])
|
|
2487
|
-
.filter((e) => e != null)
|
|
2488
|
-
.map((entry) => {
|
|
2489
|
-
if (entry === null) {
|
|
2490
|
-
return null;
|
|
2491
|
-
}
|
|
2492
|
-
return de_Shard(entry, context);
|
|
2493
|
-
});
|
|
2494
|
-
return retVal;
|
|
2495
1935
|
};
|
|
2496
1936
|
const de_StreamDescription = (output, context) => {
|
|
2497
|
-
return {
|
|
2498
|
-
EncryptionType:
|
|
2499
|
-
EnhancedMonitoring:
|
|
2500
|
-
HasMoreShards:
|
|
2501
|
-
KeyId:
|
|
2502
|
-
RetentionPeriodHours:
|
|
2503
|
-
Shards:
|
|
2504
|
-
StreamARN:
|
|
2505
|
-
StreamCreationTimestamp:
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2511
|
-
};
|
|
1937
|
+
return (0, smithy_client_1.take)(output, {
|
|
1938
|
+
EncryptionType: smithy_client_1.expectString,
|
|
1939
|
+
EnhancedMonitoring: smithy_client_1._json,
|
|
1940
|
+
HasMoreShards: smithy_client_1.expectBoolean,
|
|
1941
|
+
KeyId: smithy_client_1.expectString,
|
|
1942
|
+
RetentionPeriodHours: smithy_client_1.expectInt32,
|
|
1943
|
+
Shards: smithy_client_1._json,
|
|
1944
|
+
StreamARN: smithy_client_1.expectString,
|
|
1945
|
+
StreamCreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1946
|
+
StreamModeDetails: smithy_client_1._json,
|
|
1947
|
+
StreamName: smithy_client_1.expectString,
|
|
1948
|
+
StreamStatus: smithy_client_1.expectString,
|
|
1949
|
+
});
|
|
2512
1950
|
};
|
|
2513
1951
|
const de_StreamDescriptionSummary = (output, context) => {
|
|
2514
|
-
return {
|
|
2515
|
-
ConsumerCount:
|
|
2516
|
-
EncryptionType:
|
|
2517
|
-
EnhancedMonitoring:
|
|
2518
|
-
KeyId:
|
|
2519
|
-
OpenShardCount:
|
|
2520
|
-
RetentionPeriodHours:
|
|
2521
|
-
StreamARN:
|
|
2522
|
-
StreamCreationTimestamp:
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2527
|
-
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2528
|
-
};
|
|
2529
|
-
};
|
|
2530
|
-
const de_StreamModeDetails = (output, context) => {
|
|
2531
|
-
return {
|
|
2532
|
-
StreamMode: (0, smithy_client_1.expectString)(output.StreamMode),
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
const de_StreamNameList = (output, context) => {
|
|
2536
|
-
const retVal = (output || [])
|
|
2537
|
-
.filter((e) => e != null)
|
|
2538
|
-
.map((entry) => {
|
|
2539
|
-
if (entry === null) {
|
|
2540
|
-
return null;
|
|
2541
|
-
}
|
|
2542
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1952
|
+
return (0, smithy_client_1.take)(output, {
|
|
1953
|
+
ConsumerCount: smithy_client_1.expectInt32,
|
|
1954
|
+
EncryptionType: smithy_client_1.expectString,
|
|
1955
|
+
EnhancedMonitoring: smithy_client_1._json,
|
|
1956
|
+
KeyId: smithy_client_1.expectString,
|
|
1957
|
+
OpenShardCount: smithy_client_1.expectInt32,
|
|
1958
|
+
RetentionPeriodHours: smithy_client_1.expectInt32,
|
|
1959
|
+
StreamARN: smithy_client_1.expectString,
|
|
1960
|
+
StreamCreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1961
|
+
StreamModeDetails: smithy_client_1._json,
|
|
1962
|
+
StreamName: smithy_client_1.expectString,
|
|
1963
|
+
StreamStatus: smithy_client_1.expectString,
|
|
2543
1964
|
});
|
|
2544
|
-
return retVal;
|
|
2545
1965
|
};
|
|
2546
1966
|
const de_StreamSummary = (output, context) => {
|
|
2547
|
-
return {
|
|
2548
|
-
StreamARN:
|
|
2549
|
-
StreamCreationTimestamp:
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2555
|
-
};
|
|
1967
|
+
return (0, smithy_client_1.take)(output, {
|
|
1968
|
+
StreamARN: smithy_client_1.expectString,
|
|
1969
|
+
StreamCreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1970
|
+
StreamModeDetails: smithy_client_1._json,
|
|
1971
|
+
StreamName: smithy_client_1.expectString,
|
|
1972
|
+
StreamStatus: smithy_client_1.expectString,
|
|
1973
|
+
});
|
|
2556
1974
|
};
|
|
2557
1975
|
const de_StreamSummaryList = (output, context) => {
|
|
2558
1976
|
const retVal = (output || [])
|
|
2559
1977
|
.filter((e) => e != null)
|
|
2560
1978
|
.map((entry) => {
|
|
2561
|
-
if (entry === null) {
|
|
2562
|
-
return null;
|
|
2563
|
-
}
|
|
2564
1979
|
return de_StreamSummary(entry, context);
|
|
2565
1980
|
});
|
|
2566
1981
|
return retVal;
|
|
2567
1982
|
};
|
|
2568
1983
|
const de_SubscribeToShardEvent = (output, context) => {
|
|
2569
|
-
return {
|
|
2570
|
-
ChildShards:
|
|
2571
|
-
ContinuationSequenceNumber:
|
|
2572
|
-
MillisBehindLatest:
|
|
2573
|
-
Records:
|
|
2574
|
-
};
|
|
2575
|
-
};
|
|
2576
|
-
const de_Tag = (output, context) => {
|
|
2577
|
-
return {
|
|
2578
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2579
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2580
|
-
};
|
|
2581
|
-
};
|
|
2582
|
-
const de_TagList = (output, context) => {
|
|
2583
|
-
const retVal = (output || [])
|
|
2584
|
-
.filter((e) => e != null)
|
|
2585
|
-
.map((entry) => {
|
|
2586
|
-
if (entry === null) {
|
|
2587
|
-
return null;
|
|
2588
|
-
}
|
|
2589
|
-
return de_Tag(entry, context);
|
|
1984
|
+
return (0, smithy_client_1.take)(output, {
|
|
1985
|
+
ChildShards: smithy_client_1._json,
|
|
1986
|
+
ContinuationSequenceNumber: smithy_client_1.expectString,
|
|
1987
|
+
MillisBehindLatest: smithy_client_1.expectLong,
|
|
1988
|
+
Records: (_) => de_RecordList(_, context),
|
|
2590
1989
|
});
|
|
2591
|
-
return retVal;
|
|
2592
|
-
};
|
|
2593
|
-
const de_UpdateShardCountOutput = (output, context) => {
|
|
2594
|
-
return {
|
|
2595
|
-
CurrentShardCount: (0, smithy_client_1.expectInt32)(output.CurrentShardCount),
|
|
2596
|
-
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2597
|
-
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2598
|
-
TargetShardCount: (0, smithy_client_1.expectInt32)(output.TargetShardCount),
|
|
2599
|
-
};
|
|
2600
|
-
};
|
|
2601
|
-
const de_ValidationException = (output, context) => {
|
|
2602
|
-
return {
|
|
2603
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2604
|
-
};
|
|
2605
1990
|
};
|
|
2606
1991
|
const deserializeMetadata = (output) => ({
|
|
2607
1992
|
httpStatusCode: output.statusCode,
|
|
@@ -2616,6 +2001,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2616
2001
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2617
2002
|
};
|
|
2618
2003
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2004
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisServiceException_1.KinesisServiceException);
|
|
2619
2005
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2620
2006
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2621
2007
|
const contents = {
|
|
@@ -2634,6 +2020,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2634
2020
|
}
|
|
2635
2021
|
return new protocol_http_1.HttpRequest(contents);
|
|
2636
2022
|
};
|
|
2023
|
+
function sharedHeaders(operation) {
|
|
2024
|
+
return {
|
|
2025
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2026
|
+
"x-amz-target": `Kinesis_20131202.${operation}`,
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2637
2029
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2638
2030
|
if (encoded.length) {
|
|
2639
2031
|
return JSON.parse(encoded);
|