@aws-sdk/client-kinesis 3.303.0 → 3.309.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/commands/AddTagsToStreamCommand.js +2 -2
- package/dist-cjs/commands/CreateStreamCommand.js +2 -2
- package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +2 -2
- package/dist-cjs/commands/DeleteStreamCommand.js +2 -2
- package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +2 -2
- package/dist-cjs/commands/DescribeLimitsCommand.js +2 -2
- package/dist-cjs/commands/DescribeStreamCommand.js +2 -2
- package/dist-cjs/commands/DescribeStreamConsumerCommand.js +2 -2
- package/dist-cjs/commands/DescribeStreamSummaryCommand.js +2 -2
- package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +2 -2
- package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +2 -2
- package/dist-cjs/commands/GetRecordsCommand.js +2 -2
- package/dist-cjs/commands/GetShardIteratorCommand.js +2 -2
- package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +2 -2
- package/dist-cjs/commands/ListShardsCommand.js +2 -2
- package/dist-cjs/commands/ListStreamConsumersCommand.js +2 -2
- package/dist-cjs/commands/ListStreamsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForStreamCommand.js +2 -2
- package/dist-cjs/commands/MergeShardsCommand.js +2 -2
- package/dist-cjs/commands/PutRecordCommand.js +2 -2
- package/dist-cjs/commands/PutRecordsCommand.js +2 -2
- package/dist-cjs/commands/RegisterStreamConsumerCommand.js +2 -2
- package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +2 -2
- package/dist-cjs/commands/SplitShardCommand.js +2 -2
- package/dist-cjs/commands/StartStreamEncryptionCommand.js +2 -2
- package/dist-cjs/commands/StopStreamEncryptionCommand.js +2 -2
- package/dist-cjs/commands/SubscribeToShardCommand.js +2 -2
- package/dist-cjs/commands/UpdateShardCountCommand.js +2 -2
- package/dist-cjs/commands/UpdateStreamModeCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +577 -603
- package/dist-es/commands/AddTagsToStreamCommand.js +3 -3
- package/dist-es/commands/CreateStreamCommand.js +3 -3
- package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist-es/commands/DeleteStreamCommand.js +3 -3
- package/dist-es/commands/DeregisterStreamConsumerCommand.js +3 -3
- package/dist-es/commands/DescribeLimitsCommand.js +3 -3
- package/dist-es/commands/DescribeStreamCommand.js +3 -3
- package/dist-es/commands/DescribeStreamConsumerCommand.js +3 -3
- package/dist-es/commands/DescribeStreamSummaryCommand.js +3 -3
- package/dist-es/commands/DisableEnhancedMonitoringCommand.js +3 -3
- package/dist-es/commands/EnableEnhancedMonitoringCommand.js +3 -3
- package/dist-es/commands/GetRecordsCommand.js +3 -3
- package/dist-es/commands/GetShardIteratorCommand.js +3 -3
- package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist-es/commands/ListShardsCommand.js +3 -3
- package/dist-es/commands/ListStreamConsumersCommand.js +3 -3
- package/dist-es/commands/ListStreamsCommand.js +3 -3
- package/dist-es/commands/ListTagsForStreamCommand.js +3 -3
- package/dist-es/commands/MergeShardsCommand.js +3 -3
- package/dist-es/commands/PutRecordCommand.js +3 -3
- package/dist-es/commands/PutRecordsCommand.js +3 -3
- package/dist-es/commands/RegisterStreamConsumerCommand.js +3 -3
- package/dist-es/commands/RemoveTagsFromStreamCommand.js +3 -3
- package/dist-es/commands/SplitShardCommand.js +3 -3
- package/dist-es/commands/StartStreamEncryptionCommand.js +3 -3
- package/dist-es/commands/StopStreamEncryptionCommand.js +3 -3
- package/dist-es/commands/SubscribeToShardCommand.js +3 -3
- package/dist-es/commands/UpdateShardCountCommand.js +3 -3
- package/dist-es/commands/UpdateStreamModeCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +517 -543
- package/dist-types/protocols/Aws_json1_1.d.ts +232 -58
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +58 -58
- package/package.json +33 -33
|
@@ -1,304 +1,304 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_PutRecordsCommand = exports.de_PutRecordCommand = exports.de_MergeShardsCommand = exports.de_ListTagsForStreamCommand = exports.de_ListStreamsCommand = exports.de_ListStreamConsumersCommand = exports.de_ListShardsCommand = exports.de_IncreaseStreamRetentionPeriodCommand = exports.de_GetShardIteratorCommand = exports.de_GetRecordsCommand = exports.de_EnableEnhancedMonitoringCommand = exports.de_DisableEnhancedMonitoringCommand = exports.de_DescribeStreamSummaryCommand = exports.de_DescribeStreamConsumerCommand = exports.de_DescribeStreamCommand = exports.de_DescribeLimitsCommand = exports.de_DeregisterStreamConsumerCommand = exports.de_DeleteStreamCommand = exports.de_DecreaseStreamRetentionPeriodCommand = exports.de_CreateStreamCommand = exports.de_AddTagsToStreamCommand = exports.se_UpdateStreamModeCommand = exports.se_UpdateShardCountCommand = exports.se_SubscribeToShardCommand = exports.se_StopStreamEncryptionCommand = exports.se_StartStreamEncryptionCommand = exports.se_SplitShardCommand = exports.se_RemoveTagsFromStreamCommand = exports.se_RegisterStreamConsumerCommand = exports.se_PutRecordsCommand = exports.se_PutRecordCommand = exports.se_MergeShardsCommand = exports.se_ListTagsForStreamCommand = exports.se_ListStreamsCommand = exports.se_ListStreamConsumersCommand = exports.se_ListShardsCommand = exports.se_IncreaseStreamRetentionPeriodCommand = exports.se_GetShardIteratorCommand = exports.se_GetRecordsCommand = exports.se_EnableEnhancedMonitoringCommand = exports.se_DisableEnhancedMonitoringCommand = exports.se_DescribeStreamSummaryCommand = exports.se_DescribeStreamConsumerCommand = exports.se_DescribeStreamCommand = exports.se_DescribeLimitsCommand = exports.se_DeregisterStreamConsumerCommand = exports.se_DeleteStreamCommand = exports.se_DecreaseStreamRetentionPeriodCommand = exports.se_CreateStreamCommand = exports.se_AddTagsToStreamCommand = void 0;
|
|
4
|
+
exports.de_UpdateStreamModeCommand = exports.de_UpdateShardCountCommand = exports.de_SubscribeToShardCommand = exports.de_StopStreamEncryptionCommand = exports.de_StartStreamEncryptionCommand = exports.de_SplitShardCommand = exports.de_RemoveTagsFromStreamCommand = exports.de_RegisterStreamConsumerCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
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
|
-
const
|
|
9
|
+
const se_AddTagsToStreamCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "Kinesis_20131202.AddTagsToStream",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_AddTagsToStreamInput(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_AddTagsToStreamCommand = se_AddTagsToStreamCommand;
|
|
19
|
+
const se_CreateStreamCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "Kinesis_20131202.CreateStream",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CreateStreamInput(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CreateStreamCommand = se_CreateStreamCommand;
|
|
29
|
+
const se_DecreaseStreamRetentionPeriodCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "Kinesis_20131202.DecreaseStreamRetentionPeriod",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_DecreaseStreamRetentionPeriodInput(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_DecreaseStreamRetentionPeriodCommand = se_DecreaseStreamRetentionPeriodCommand;
|
|
39
|
+
const se_DeleteStreamCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "Kinesis_20131202.DeleteStream",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_DeleteStreamInput(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_DeleteStreamCommand = se_DeleteStreamCommand;
|
|
49
|
+
const se_DeregisterStreamConsumerCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "Kinesis_20131202.DeregisterStreamConsumer",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_DeregisterStreamConsumerInput(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_DeregisterStreamConsumerCommand = se_DeregisterStreamConsumerCommand;
|
|
59
|
+
const se_DescribeLimitsCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "Kinesis_20131202.DescribeLimits",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DescribeLimitsInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_DescribeLimitsCommand = se_DescribeLimitsCommand;
|
|
69
|
+
const se_DescribeStreamCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "Kinesis_20131202.DescribeStream",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DescribeStreamInput(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_DescribeStreamCommand = se_DescribeStreamCommand;
|
|
79
|
+
const se_DescribeStreamConsumerCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "Kinesis_20131202.DescribeStreamConsumer",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_DescribeStreamConsumerInput(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_DescribeStreamConsumerCommand = se_DescribeStreamConsumerCommand;
|
|
89
|
+
const se_DescribeStreamSummaryCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "Kinesis_20131202.DescribeStreamSummary",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_DescribeStreamSummaryInput(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_DescribeStreamSummaryCommand = se_DescribeStreamSummaryCommand;
|
|
99
|
+
const se_DisableEnhancedMonitoringCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "Kinesis_20131202.DisableEnhancedMonitoring",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DisableEnhancedMonitoringInput(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DisableEnhancedMonitoringCommand = se_DisableEnhancedMonitoringCommand;
|
|
109
|
+
const se_EnableEnhancedMonitoringCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "Kinesis_20131202.EnableEnhancedMonitoring",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_EnableEnhancedMonitoringInput(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_EnableEnhancedMonitoringCommand = se_EnableEnhancedMonitoringCommand;
|
|
119
|
+
const se_GetRecordsCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "Kinesis_20131202.GetRecords",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_GetRecordsInput(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_GetRecordsCommand = se_GetRecordsCommand;
|
|
129
|
+
const se_GetShardIteratorCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "Kinesis_20131202.GetShardIterator",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_GetShardIteratorInput(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_GetShardIteratorCommand = se_GetShardIteratorCommand;
|
|
139
|
+
const se_IncreaseStreamRetentionPeriodCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "Kinesis_20131202.IncreaseStreamRetentionPeriod",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_IncreaseStreamRetentionPeriodInput(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_IncreaseStreamRetentionPeriodCommand = se_IncreaseStreamRetentionPeriodCommand;
|
|
149
|
+
const se_ListShardsCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "Kinesis_20131202.ListShards",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_ListShardsInput(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_ListShardsCommand = se_ListShardsCommand;
|
|
159
|
+
const se_ListStreamConsumersCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "Kinesis_20131202.ListStreamConsumers",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_ListStreamConsumersInput(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_ListStreamConsumersCommand = se_ListStreamConsumersCommand;
|
|
169
|
+
const se_ListStreamsCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "Kinesis_20131202.ListStreams",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_ListStreamsInput(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_ListStreamsCommand = se_ListStreamsCommand;
|
|
179
|
+
const se_ListTagsForStreamCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "Kinesis_20131202.ListTagsForStream",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_ListTagsForStreamInput(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_ListTagsForStreamCommand = se_ListTagsForStreamCommand;
|
|
189
|
+
const se_MergeShardsCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "Kinesis_20131202.MergeShards",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_MergeShardsInput(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_MergeShardsCommand = se_MergeShardsCommand;
|
|
199
|
+
const se_PutRecordCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "Kinesis_20131202.PutRecord",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_PutRecordInput(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_PutRecordCommand = se_PutRecordCommand;
|
|
209
|
+
const se_PutRecordsCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "Kinesis_20131202.PutRecords",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_PutRecordsInput(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_PutRecordsCommand = se_PutRecordsCommand;
|
|
219
|
+
const se_RegisterStreamConsumerCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "Kinesis_20131202.RegisterStreamConsumer",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_RegisterStreamConsumerInput(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_RegisterStreamConsumerCommand = se_RegisterStreamConsumerCommand;
|
|
229
|
+
const se_RemoveTagsFromStreamCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "Kinesis_20131202.RemoveTagsFromStream",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_RemoveTagsFromStreamInput(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_RemoveTagsFromStreamCommand = se_RemoveTagsFromStreamCommand;
|
|
239
|
+
const se_SplitShardCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "Kinesis_20131202.SplitShard",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_SplitShardInput(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_SplitShardCommand = se_SplitShardCommand;
|
|
249
|
+
const se_StartStreamEncryptionCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "Kinesis_20131202.StartStreamEncryption",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_StartStreamEncryptionInput(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_StartStreamEncryptionCommand = se_StartStreamEncryptionCommand;
|
|
259
|
+
const se_StopStreamEncryptionCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "Kinesis_20131202.StopStreamEncryption",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_StopStreamEncryptionInput(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_StopStreamEncryptionCommand = se_StopStreamEncryptionCommand;
|
|
269
|
+
const se_SubscribeToShardCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "Kinesis_20131202.SubscribeToShard",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_SubscribeToShardInput(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_SubscribeToShardCommand = se_SubscribeToShardCommand;
|
|
279
|
+
const se_UpdateShardCountCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "Kinesis_20131202.UpdateShardCount",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_UpdateShardCountInput(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_UpdateShardCountCommand = se_UpdateShardCountCommand;
|
|
289
|
+
const se_UpdateStreamModeCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "Kinesis_20131202.UpdateStreamMode",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_UpdateStreamModeInput(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_UpdateStreamModeCommand = se_UpdateStreamModeCommand;
|
|
299
|
+
const de_AddTagsToStreamCommand = async (output, context) => {
|
|
300
300
|
if (output.statusCode >= 300) {
|
|
301
|
-
return
|
|
301
|
+
return de_AddTagsToStreamCommandError(output, context);
|
|
302
302
|
}
|
|
303
303
|
await collectBody(output.body, context);
|
|
304
304
|
const response = {
|
|
@@ -306,8 +306,8 @@ const deserializeAws_json1_1AddTagsToStreamCommand = async (output, context) =>
|
|
|
306
306
|
};
|
|
307
307
|
return Promise.resolve(response);
|
|
308
308
|
};
|
|
309
|
-
exports.
|
|
310
|
-
const
|
|
309
|
+
exports.de_AddTagsToStreamCommand = de_AddTagsToStreamCommand;
|
|
310
|
+
const de_AddTagsToStreamCommandError = async (output, context) => {
|
|
311
311
|
const parsedOutput = {
|
|
312
312
|
...output,
|
|
313
313
|
body: await parseErrorBody(output.body, context),
|
|
@@ -316,19 +316,19 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
316
316
|
switch (errorCode) {
|
|
317
317
|
case "AccessDeniedException":
|
|
318
318
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
319
|
-
throw await
|
|
319
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
320
320
|
case "InvalidArgumentException":
|
|
321
321
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
322
|
-
throw await
|
|
322
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
323
323
|
case "LimitExceededException":
|
|
324
324
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
326
326
|
case "ResourceInUseException":
|
|
327
327
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
329
329
|
case "ResourceNotFoundException":
|
|
330
330
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
332
332
|
default:
|
|
333
333
|
const parsedBody = parsedOutput.body;
|
|
334
334
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -339,9 +339,9 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
const
|
|
342
|
+
const de_CreateStreamCommand = async (output, context) => {
|
|
343
343
|
if (output.statusCode >= 300) {
|
|
344
|
-
return
|
|
344
|
+
return de_CreateStreamCommandError(output, context);
|
|
345
345
|
}
|
|
346
346
|
await collectBody(output.body, context);
|
|
347
347
|
const response = {
|
|
@@ -349,8 +349,8 @@ const deserializeAws_json1_1CreateStreamCommand = async (output, context) => {
|
|
|
349
349
|
};
|
|
350
350
|
return Promise.resolve(response);
|
|
351
351
|
};
|
|
352
|
-
exports.
|
|
353
|
-
const
|
|
352
|
+
exports.de_CreateStreamCommand = de_CreateStreamCommand;
|
|
353
|
+
const de_CreateStreamCommandError = async (output, context) => {
|
|
354
354
|
const parsedOutput = {
|
|
355
355
|
...output,
|
|
356
356
|
body: await parseErrorBody(output.body, context),
|
|
@@ -359,13 +359,13 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
359
359
|
switch (errorCode) {
|
|
360
360
|
case "InvalidArgumentException":
|
|
361
361
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
363
363
|
case "LimitExceededException":
|
|
364
364
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
365
|
-
throw await
|
|
365
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
366
366
|
case "ResourceInUseException":
|
|
367
367
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
368
|
-
throw await
|
|
368
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
369
369
|
default:
|
|
370
370
|
const parsedBody = parsedOutput.body;
|
|
371
371
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -376,9 +376,9 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
const
|
|
379
|
+
const de_DecreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
380
380
|
if (output.statusCode >= 300) {
|
|
381
|
-
return
|
|
381
|
+
return de_DecreaseStreamRetentionPeriodCommandError(output, context);
|
|
382
382
|
}
|
|
383
383
|
await collectBody(output.body, context);
|
|
384
384
|
const response = {
|
|
@@ -386,8 +386,8 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = async (output
|
|
|
386
386
|
};
|
|
387
387
|
return Promise.resolve(response);
|
|
388
388
|
};
|
|
389
|
-
exports.
|
|
390
|
-
const
|
|
389
|
+
exports.de_DecreaseStreamRetentionPeriodCommand = de_DecreaseStreamRetentionPeriodCommand;
|
|
390
|
+
const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
391
391
|
const parsedOutput = {
|
|
392
392
|
...output,
|
|
393
393
|
body: await parseErrorBody(output.body, context),
|
|
@@ -396,19 +396,19 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
396
396
|
switch (errorCode) {
|
|
397
397
|
case "AccessDeniedException":
|
|
398
398
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
400
400
|
case "InvalidArgumentException":
|
|
401
401
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
403
403
|
case "LimitExceededException":
|
|
404
404
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
406
406
|
case "ResourceInUseException":
|
|
407
407
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
409
409
|
case "ResourceNotFoundException":
|
|
410
410
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
412
412
|
default:
|
|
413
413
|
const parsedBody = parsedOutput.body;
|
|
414
414
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -419,9 +419,9 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
const
|
|
422
|
+
const de_DeleteStreamCommand = async (output, context) => {
|
|
423
423
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
424
|
+
return de_DeleteStreamCommandError(output, context);
|
|
425
425
|
}
|
|
426
426
|
await collectBody(output.body, context);
|
|
427
427
|
const response = {
|
|
@@ -429,8 +429,8 @@ const deserializeAws_json1_1DeleteStreamCommand = async (output, context) => {
|
|
|
429
429
|
};
|
|
430
430
|
return Promise.resolve(response);
|
|
431
431
|
};
|
|
432
|
-
exports.
|
|
433
|
-
const
|
|
432
|
+
exports.de_DeleteStreamCommand = de_DeleteStreamCommand;
|
|
433
|
+
const de_DeleteStreamCommandError = async (output, context) => {
|
|
434
434
|
const parsedOutput = {
|
|
435
435
|
...output,
|
|
436
436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -439,19 +439,19 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
439
439
|
switch (errorCode) {
|
|
440
440
|
case "AccessDeniedException":
|
|
441
441
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
442
|
-
throw await
|
|
442
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
443
443
|
case "InvalidArgumentException":
|
|
444
444
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
445
|
-
throw await
|
|
445
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
446
446
|
case "LimitExceededException":
|
|
447
447
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
449
449
|
case "ResourceInUseException":
|
|
450
450
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
452
452
|
case "ResourceNotFoundException":
|
|
453
453
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
455
|
default:
|
|
456
456
|
const parsedBody = parsedOutput.body;
|
|
457
457
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -462,9 +462,9 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
const
|
|
465
|
+
const de_DeregisterStreamConsumerCommand = async (output, context) => {
|
|
466
466
|
if (output.statusCode >= 300) {
|
|
467
|
-
return
|
|
467
|
+
return de_DeregisterStreamConsumerCommandError(output, context);
|
|
468
468
|
}
|
|
469
469
|
await collectBody(output.body, context);
|
|
470
470
|
const response = {
|
|
@@ -472,8 +472,8 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommand = async (output, con
|
|
|
472
472
|
};
|
|
473
473
|
return Promise.resolve(response);
|
|
474
474
|
};
|
|
475
|
-
exports.
|
|
476
|
-
const
|
|
475
|
+
exports.de_DeregisterStreamConsumerCommand = de_DeregisterStreamConsumerCommand;
|
|
476
|
+
const de_DeregisterStreamConsumerCommandError = async (output, context) => {
|
|
477
477
|
const parsedOutput = {
|
|
478
478
|
...output,
|
|
479
479
|
body: await parseErrorBody(output.body, context),
|
|
@@ -482,13 +482,13 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
482
482
|
switch (errorCode) {
|
|
483
483
|
case "InvalidArgumentException":
|
|
484
484
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
485
|
-
throw await
|
|
485
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
486
486
|
case "LimitExceededException":
|
|
487
487
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
488
|
-
throw await
|
|
488
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
489
489
|
case "ResourceNotFoundException":
|
|
490
490
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
491
|
-
throw await
|
|
491
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
492
492
|
default:
|
|
493
493
|
const parsedBody = parsedOutput.body;
|
|
494
494
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -499,21 +499,21 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
|
-
const
|
|
502
|
+
const de_DescribeLimitsCommand = async (output, context) => {
|
|
503
503
|
if (output.statusCode >= 300) {
|
|
504
|
-
return
|
|
504
|
+
return de_DescribeLimitsCommandError(output, context);
|
|
505
505
|
}
|
|
506
506
|
const data = await parseBody(output.body, context);
|
|
507
507
|
let contents = {};
|
|
508
|
-
contents =
|
|
508
|
+
contents = de_DescribeLimitsOutput(data, context);
|
|
509
509
|
const response = {
|
|
510
510
|
$metadata: deserializeMetadata(output),
|
|
511
511
|
...contents,
|
|
512
512
|
};
|
|
513
513
|
return Promise.resolve(response);
|
|
514
514
|
};
|
|
515
|
-
exports.
|
|
516
|
-
const
|
|
515
|
+
exports.de_DescribeLimitsCommand = de_DescribeLimitsCommand;
|
|
516
|
+
const de_DescribeLimitsCommandError = async (output, context) => {
|
|
517
517
|
const parsedOutput = {
|
|
518
518
|
...output,
|
|
519
519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -522,7 +522,7 @@ const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context)
|
|
|
522
522
|
switch (errorCode) {
|
|
523
523
|
case "LimitExceededException":
|
|
524
524
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
526
526
|
default:
|
|
527
527
|
const parsedBody = parsedOutput.body;
|
|
528
528
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -533,21 +533,21 @@ const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context)
|
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
const
|
|
536
|
+
const de_DescribeStreamCommand = async (output, context) => {
|
|
537
537
|
if (output.statusCode >= 300) {
|
|
538
|
-
return
|
|
538
|
+
return de_DescribeStreamCommandError(output, context);
|
|
539
539
|
}
|
|
540
540
|
const data = await parseBody(output.body, context);
|
|
541
541
|
let contents = {};
|
|
542
|
-
contents =
|
|
542
|
+
contents = de_DescribeStreamOutput(data, context);
|
|
543
543
|
const response = {
|
|
544
544
|
$metadata: deserializeMetadata(output),
|
|
545
545
|
...contents,
|
|
546
546
|
};
|
|
547
547
|
return Promise.resolve(response);
|
|
548
548
|
};
|
|
549
|
-
exports.
|
|
550
|
-
const
|
|
549
|
+
exports.de_DescribeStreamCommand = de_DescribeStreamCommand;
|
|
550
|
+
const de_DescribeStreamCommandError = async (output, context) => {
|
|
551
551
|
const parsedOutput = {
|
|
552
552
|
...output,
|
|
553
553
|
body: await parseErrorBody(output.body, context),
|
|
@@ -556,16 +556,16 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
556
556
|
switch (errorCode) {
|
|
557
557
|
case "AccessDeniedException":
|
|
558
558
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
559
|
-
throw await
|
|
559
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
560
|
case "InvalidArgumentException":
|
|
561
561
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
562
|
-
throw await
|
|
562
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
563
563
|
case "LimitExceededException":
|
|
564
564
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
565
|
-
throw await
|
|
565
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
566
566
|
case "ResourceNotFoundException":
|
|
567
567
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
568
|
-
throw await
|
|
568
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
569
|
default:
|
|
570
570
|
const parsedBody = parsedOutput.body;
|
|
571
571
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -576,21 +576,21 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
const
|
|
579
|
+
const de_DescribeStreamConsumerCommand = async (output, context) => {
|
|
580
580
|
if (output.statusCode >= 300) {
|
|
581
|
-
return
|
|
581
|
+
return de_DescribeStreamConsumerCommandError(output, context);
|
|
582
582
|
}
|
|
583
583
|
const data = await parseBody(output.body, context);
|
|
584
584
|
let contents = {};
|
|
585
|
-
contents =
|
|
585
|
+
contents = de_DescribeStreamConsumerOutput(data, context);
|
|
586
586
|
const response = {
|
|
587
587
|
$metadata: deserializeMetadata(output),
|
|
588
588
|
...contents,
|
|
589
589
|
};
|
|
590
590
|
return Promise.resolve(response);
|
|
591
591
|
};
|
|
592
|
-
exports.
|
|
593
|
-
const
|
|
592
|
+
exports.de_DescribeStreamConsumerCommand = de_DescribeStreamConsumerCommand;
|
|
593
|
+
const de_DescribeStreamConsumerCommandError = async (output, context) => {
|
|
594
594
|
const parsedOutput = {
|
|
595
595
|
...output,
|
|
596
596
|
body: await parseErrorBody(output.body, context),
|
|
@@ -599,13 +599,13 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
599
599
|
switch (errorCode) {
|
|
600
600
|
case "InvalidArgumentException":
|
|
601
601
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
602
|
-
throw await
|
|
602
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
603
603
|
case "LimitExceededException":
|
|
604
604
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
605
|
-
throw await
|
|
605
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
606
606
|
case "ResourceNotFoundException":
|
|
607
607
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
608
|
-
throw await
|
|
608
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
609
|
default:
|
|
610
610
|
const parsedBody = parsedOutput.body;
|
|
611
611
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -616,21 +616,21 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
const
|
|
619
|
+
const de_DescribeStreamSummaryCommand = async (output, context) => {
|
|
620
620
|
if (output.statusCode >= 300) {
|
|
621
|
-
return
|
|
621
|
+
return de_DescribeStreamSummaryCommandError(output, context);
|
|
622
622
|
}
|
|
623
623
|
const data = await parseBody(output.body, context);
|
|
624
624
|
let contents = {};
|
|
625
|
-
contents =
|
|
625
|
+
contents = de_DescribeStreamSummaryOutput(data, context);
|
|
626
626
|
const response = {
|
|
627
627
|
$metadata: deserializeMetadata(output),
|
|
628
628
|
...contents,
|
|
629
629
|
};
|
|
630
630
|
return Promise.resolve(response);
|
|
631
631
|
};
|
|
632
|
-
exports.
|
|
633
|
-
const
|
|
632
|
+
exports.de_DescribeStreamSummaryCommand = de_DescribeStreamSummaryCommand;
|
|
633
|
+
const de_DescribeStreamSummaryCommandError = async (output, context) => {
|
|
634
634
|
const parsedOutput = {
|
|
635
635
|
...output,
|
|
636
636
|
body: await parseErrorBody(output.body, context),
|
|
@@ -639,16 +639,16 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
639
639
|
switch (errorCode) {
|
|
640
640
|
case "AccessDeniedException":
|
|
641
641
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
643
643
|
case "InvalidArgumentException":
|
|
644
644
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
645
|
-
throw await
|
|
645
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
646
646
|
case "LimitExceededException":
|
|
647
647
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
648
|
-
throw await
|
|
648
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
649
649
|
case "ResourceNotFoundException":
|
|
650
650
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
651
|
-
throw await
|
|
651
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
652
|
default:
|
|
653
653
|
const parsedBody = parsedOutput.body;
|
|
654
654
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -659,21 +659,21 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
const
|
|
662
|
+
const de_DisableEnhancedMonitoringCommand = async (output, context) => {
|
|
663
663
|
if (output.statusCode >= 300) {
|
|
664
|
-
return
|
|
664
|
+
return de_DisableEnhancedMonitoringCommandError(output, context);
|
|
665
665
|
}
|
|
666
666
|
const data = await parseBody(output.body, context);
|
|
667
667
|
let contents = {};
|
|
668
|
-
contents =
|
|
668
|
+
contents = de_EnhancedMonitoringOutput(data, context);
|
|
669
669
|
const response = {
|
|
670
670
|
$metadata: deserializeMetadata(output),
|
|
671
671
|
...contents,
|
|
672
672
|
};
|
|
673
673
|
return Promise.resolve(response);
|
|
674
674
|
};
|
|
675
|
-
exports.
|
|
676
|
-
const
|
|
675
|
+
exports.de_DisableEnhancedMonitoringCommand = de_DisableEnhancedMonitoringCommand;
|
|
676
|
+
const de_DisableEnhancedMonitoringCommandError = async (output, context) => {
|
|
677
677
|
const parsedOutput = {
|
|
678
678
|
...output,
|
|
679
679
|
body: await parseErrorBody(output.body, context),
|
|
@@ -682,19 +682,19 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
682
682
|
switch (errorCode) {
|
|
683
683
|
case "AccessDeniedException":
|
|
684
684
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
685
|
-
throw await
|
|
685
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
686
686
|
case "InvalidArgumentException":
|
|
687
687
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
688
|
-
throw await
|
|
688
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
689
689
|
case "LimitExceededException":
|
|
690
690
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
691
|
-
throw await
|
|
691
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
692
692
|
case "ResourceInUseException":
|
|
693
693
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
694
|
-
throw await
|
|
694
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
695
695
|
case "ResourceNotFoundException":
|
|
696
696
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
697
|
-
throw await
|
|
697
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
698
|
default:
|
|
699
699
|
const parsedBody = parsedOutput.body;
|
|
700
700
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -705,21 +705,21 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
const
|
|
708
|
+
const de_EnableEnhancedMonitoringCommand = async (output, context) => {
|
|
709
709
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
710
|
+
return de_EnableEnhancedMonitoringCommandError(output, context);
|
|
711
711
|
}
|
|
712
712
|
const data = await parseBody(output.body, context);
|
|
713
713
|
let contents = {};
|
|
714
|
-
contents =
|
|
714
|
+
contents = de_EnhancedMonitoringOutput(data, context);
|
|
715
715
|
const response = {
|
|
716
716
|
$metadata: deserializeMetadata(output),
|
|
717
717
|
...contents,
|
|
718
718
|
};
|
|
719
719
|
return Promise.resolve(response);
|
|
720
720
|
};
|
|
721
|
-
exports.
|
|
722
|
-
const
|
|
721
|
+
exports.de_EnableEnhancedMonitoringCommand = de_EnableEnhancedMonitoringCommand;
|
|
722
|
+
const de_EnableEnhancedMonitoringCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -728,19 +728,19 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
728
728
|
switch (errorCode) {
|
|
729
729
|
case "AccessDeniedException":
|
|
730
730
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
731
|
-
throw await
|
|
731
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
732
|
case "InvalidArgumentException":
|
|
733
733
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
734
|
-
throw await
|
|
734
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
735
735
|
case "LimitExceededException":
|
|
736
736
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
737
|
-
throw await
|
|
737
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
738
738
|
case "ResourceInUseException":
|
|
739
739
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
740
|
-
throw await
|
|
740
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
741
741
|
case "ResourceNotFoundException":
|
|
742
742
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
743
|
-
throw await
|
|
743
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
744
|
default:
|
|
745
745
|
const parsedBody = parsedOutput.body;
|
|
746
746
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -751,21 +751,21 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
const
|
|
754
|
+
const de_GetRecordsCommand = async (output, context) => {
|
|
755
755
|
if (output.statusCode >= 300) {
|
|
756
|
-
return
|
|
756
|
+
return de_GetRecordsCommandError(output, context);
|
|
757
757
|
}
|
|
758
758
|
const data = await parseBody(output.body, context);
|
|
759
759
|
let contents = {};
|
|
760
|
-
contents =
|
|
760
|
+
contents = de_GetRecordsOutput(data, context);
|
|
761
761
|
const response = {
|
|
762
762
|
$metadata: deserializeMetadata(output),
|
|
763
763
|
...contents,
|
|
764
764
|
};
|
|
765
765
|
return Promise.resolve(response);
|
|
766
766
|
};
|
|
767
|
-
exports.
|
|
768
|
-
const
|
|
767
|
+
exports.de_GetRecordsCommand = de_GetRecordsCommand;
|
|
768
|
+
const de_GetRecordsCommandError = async (output, context) => {
|
|
769
769
|
const parsedOutput = {
|
|
770
770
|
...output,
|
|
771
771
|
body: await parseErrorBody(output.body, context),
|
|
@@ -774,37 +774,37 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
774
774
|
switch (errorCode) {
|
|
775
775
|
case "AccessDeniedException":
|
|
776
776
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
777
|
-
throw await
|
|
777
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
778
|
case "ExpiredIteratorException":
|
|
779
779
|
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
780
|
-
throw await
|
|
780
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
781
781
|
case "InvalidArgumentException":
|
|
782
782
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
784
784
|
case "KMSAccessDeniedException":
|
|
785
785
|
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
787
787
|
case "KMSDisabledException":
|
|
788
788
|
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
789
|
-
throw await
|
|
789
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
790
790
|
case "KMSInvalidStateException":
|
|
791
791
|
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
793
793
|
case "KMSNotFoundException":
|
|
794
794
|
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
796
796
|
case "KMSOptInRequired":
|
|
797
797
|
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
799
799
|
case "KMSThrottlingException":
|
|
800
800
|
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
802
802
|
case "ProvisionedThroughputExceededException":
|
|
803
803
|
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
805
805
|
case "ResourceNotFoundException":
|
|
806
806
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
808
|
default:
|
|
809
809
|
const parsedBody = parsedOutput.body;
|
|
810
810
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -815,21 +815,21 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
|
-
const
|
|
818
|
+
const de_GetShardIteratorCommand = async (output, context) => {
|
|
819
819
|
if (output.statusCode >= 300) {
|
|
820
|
-
return
|
|
820
|
+
return de_GetShardIteratorCommandError(output, context);
|
|
821
821
|
}
|
|
822
822
|
const data = await parseBody(output.body, context);
|
|
823
823
|
let contents = {};
|
|
824
|
-
contents =
|
|
824
|
+
contents = de_GetShardIteratorOutput(data, context);
|
|
825
825
|
const response = {
|
|
826
826
|
$metadata: deserializeMetadata(output),
|
|
827
827
|
...contents,
|
|
828
828
|
};
|
|
829
829
|
return Promise.resolve(response);
|
|
830
830
|
};
|
|
831
|
-
exports.
|
|
832
|
-
const
|
|
831
|
+
exports.de_GetShardIteratorCommand = de_GetShardIteratorCommand;
|
|
832
|
+
const de_GetShardIteratorCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -838,16 +838,16 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
838
838
|
switch (errorCode) {
|
|
839
839
|
case "AccessDeniedException":
|
|
840
840
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
842
842
|
case "InvalidArgumentException":
|
|
843
843
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
845
845
|
case "ProvisionedThroughputExceededException":
|
|
846
846
|
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
848
848
|
case "ResourceNotFoundException":
|
|
849
849
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
851
|
default:
|
|
852
852
|
const parsedBody = parsedOutput.body;
|
|
853
853
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -858,9 +858,9 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
|
-
const
|
|
861
|
+
const de_IncreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
862
862
|
if (output.statusCode >= 300) {
|
|
863
|
-
return
|
|
863
|
+
return de_IncreaseStreamRetentionPeriodCommandError(output, context);
|
|
864
864
|
}
|
|
865
865
|
await collectBody(output.body, context);
|
|
866
866
|
const response = {
|
|
@@ -868,8 +868,8 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = async (output
|
|
|
868
868
|
};
|
|
869
869
|
return Promise.resolve(response);
|
|
870
870
|
};
|
|
871
|
-
exports.
|
|
872
|
-
const
|
|
871
|
+
exports.de_IncreaseStreamRetentionPeriodCommand = de_IncreaseStreamRetentionPeriodCommand;
|
|
872
|
+
const de_IncreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -878,19 +878,19 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
878
878
|
switch (errorCode) {
|
|
879
879
|
case "AccessDeniedException":
|
|
880
880
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
882
|
case "InvalidArgumentException":
|
|
883
883
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
884
|
-
throw await
|
|
884
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
885
885
|
case "LimitExceededException":
|
|
886
886
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
887
|
-
throw await
|
|
887
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
888
888
|
case "ResourceInUseException":
|
|
889
889
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
890
|
-
throw await
|
|
890
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
891
891
|
case "ResourceNotFoundException":
|
|
892
892
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
893
|
-
throw await
|
|
893
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
894
|
default:
|
|
895
895
|
const parsedBody = parsedOutput.body;
|
|
896
896
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -901,21 +901,21 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
|
-
const
|
|
904
|
+
const de_ListShardsCommand = async (output, context) => {
|
|
905
905
|
if (output.statusCode >= 300) {
|
|
906
|
-
return
|
|
906
|
+
return de_ListShardsCommandError(output, context);
|
|
907
907
|
}
|
|
908
908
|
const data = await parseBody(output.body, context);
|
|
909
909
|
let contents = {};
|
|
910
|
-
contents =
|
|
910
|
+
contents = de_ListShardsOutput(data, context);
|
|
911
911
|
const response = {
|
|
912
912
|
$metadata: deserializeMetadata(output),
|
|
913
913
|
...contents,
|
|
914
914
|
};
|
|
915
915
|
return Promise.resolve(response);
|
|
916
916
|
};
|
|
917
|
-
exports.
|
|
918
|
-
const
|
|
917
|
+
exports.de_ListShardsCommand = de_ListShardsCommand;
|
|
918
|
+
const de_ListShardsCommandError = async (output, context) => {
|
|
919
919
|
const parsedOutput = {
|
|
920
920
|
...output,
|
|
921
921
|
body: await parseErrorBody(output.body, context),
|
|
@@ -924,22 +924,22 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
924
924
|
switch (errorCode) {
|
|
925
925
|
case "AccessDeniedException":
|
|
926
926
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
928
|
case "ExpiredNextTokenException":
|
|
929
929
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
931
931
|
case "InvalidArgumentException":
|
|
932
932
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
934
934
|
case "LimitExceededException":
|
|
935
935
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
937
937
|
case "ResourceInUseException":
|
|
938
938
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
940
940
|
case "ResourceNotFoundException":
|
|
941
941
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
942
|
-
throw await
|
|
942
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
943
|
default:
|
|
944
944
|
const parsedBody = parsedOutput.body;
|
|
945
945
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -950,21 +950,21 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
};
|
|
953
|
-
const
|
|
953
|
+
const de_ListStreamConsumersCommand = async (output, context) => {
|
|
954
954
|
if (output.statusCode >= 300) {
|
|
955
|
-
return
|
|
955
|
+
return de_ListStreamConsumersCommandError(output, context);
|
|
956
956
|
}
|
|
957
957
|
const data = await parseBody(output.body, context);
|
|
958
958
|
let contents = {};
|
|
959
|
-
contents =
|
|
959
|
+
contents = de_ListStreamConsumersOutput(data, context);
|
|
960
960
|
const response = {
|
|
961
961
|
$metadata: deserializeMetadata(output),
|
|
962
962
|
...contents,
|
|
963
963
|
};
|
|
964
964
|
return Promise.resolve(response);
|
|
965
965
|
};
|
|
966
|
-
exports.
|
|
967
|
-
const
|
|
966
|
+
exports.de_ListStreamConsumersCommand = de_ListStreamConsumersCommand;
|
|
967
|
+
const de_ListStreamConsumersCommandError = async (output, context) => {
|
|
968
968
|
const parsedOutput = {
|
|
969
969
|
...output,
|
|
970
970
|
body: await parseErrorBody(output.body, context),
|
|
@@ -973,19 +973,19 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
973
973
|
switch (errorCode) {
|
|
974
974
|
case "ExpiredNextTokenException":
|
|
975
975
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
976
|
-
throw await
|
|
976
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
977
977
|
case "InvalidArgumentException":
|
|
978
978
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
979
|
-
throw await
|
|
979
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
980
980
|
case "LimitExceededException":
|
|
981
981
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
982
|
-
throw await
|
|
982
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
983
983
|
case "ResourceInUseException":
|
|
984
984
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
985
|
-
throw await
|
|
985
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
986
986
|
case "ResourceNotFoundException":
|
|
987
987
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
989
989
|
default:
|
|
990
990
|
const parsedBody = parsedOutput.body;
|
|
991
991
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -996,21 +996,21 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
998
|
};
|
|
999
|
-
const
|
|
999
|
+
const de_ListStreamsCommand = async (output, context) => {
|
|
1000
1000
|
if (output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
1001
|
+
return de_ListStreamsCommandError(output, context);
|
|
1002
1002
|
}
|
|
1003
1003
|
const data = await parseBody(output.body, context);
|
|
1004
1004
|
let contents = {};
|
|
1005
|
-
contents =
|
|
1005
|
+
contents = de_ListStreamsOutput(data, context);
|
|
1006
1006
|
const response = {
|
|
1007
1007
|
$metadata: deserializeMetadata(output),
|
|
1008
1008
|
...contents,
|
|
1009
1009
|
};
|
|
1010
1010
|
return Promise.resolve(response);
|
|
1011
1011
|
};
|
|
1012
|
-
exports.
|
|
1013
|
-
const
|
|
1012
|
+
exports.de_ListStreamsCommand = de_ListStreamsCommand;
|
|
1013
|
+
const de_ListStreamsCommandError = async (output, context) => {
|
|
1014
1014
|
const parsedOutput = {
|
|
1015
1015
|
...output,
|
|
1016
1016
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1019,13 +1019,13 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
1019
1019
|
switch (errorCode) {
|
|
1020
1020
|
case "ExpiredNextTokenException":
|
|
1021
1021
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1022
|
-
throw await
|
|
1022
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1023
1023
|
case "InvalidArgumentException":
|
|
1024
1024
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1025
|
-
throw await
|
|
1025
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1026
1026
|
case "LimitExceededException":
|
|
1027
1027
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1028
|
-
throw await
|
|
1028
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1029
1029
|
default:
|
|
1030
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
1031
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1036,21 +1036,21 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
1036
1036
|
});
|
|
1037
1037
|
}
|
|
1038
1038
|
};
|
|
1039
|
-
const
|
|
1039
|
+
const de_ListTagsForStreamCommand = async (output, context) => {
|
|
1040
1040
|
if (output.statusCode >= 300) {
|
|
1041
|
-
return
|
|
1041
|
+
return de_ListTagsForStreamCommandError(output, context);
|
|
1042
1042
|
}
|
|
1043
1043
|
const data = await parseBody(output.body, context);
|
|
1044
1044
|
let contents = {};
|
|
1045
|
-
contents =
|
|
1045
|
+
contents = de_ListTagsForStreamOutput(data, context);
|
|
1046
1046
|
const response = {
|
|
1047
1047
|
$metadata: deserializeMetadata(output),
|
|
1048
1048
|
...contents,
|
|
1049
1049
|
};
|
|
1050
1050
|
return Promise.resolve(response);
|
|
1051
1051
|
};
|
|
1052
|
-
exports.
|
|
1053
|
-
const
|
|
1052
|
+
exports.de_ListTagsForStreamCommand = de_ListTagsForStreamCommand;
|
|
1053
|
+
const de_ListTagsForStreamCommandError = async (output, context) => {
|
|
1054
1054
|
const parsedOutput = {
|
|
1055
1055
|
...output,
|
|
1056
1056
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1059,16 +1059,16 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1059
1059
|
switch (errorCode) {
|
|
1060
1060
|
case "AccessDeniedException":
|
|
1061
1061
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1062
|
-
throw await
|
|
1062
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
1063
|
case "InvalidArgumentException":
|
|
1064
1064
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1065
|
-
throw await
|
|
1065
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1066
1066
|
case "LimitExceededException":
|
|
1067
1067
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "ResourceNotFoundException":
|
|
1070
1070
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
1072
|
default:
|
|
1073
1073
|
const parsedBody = parsedOutput.body;
|
|
1074
1074
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1079,9 +1079,9 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
|
-
const
|
|
1082
|
+
const de_MergeShardsCommand = async (output, context) => {
|
|
1083
1083
|
if (output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
1084
|
+
return de_MergeShardsCommandError(output, context);
|
|
1085
1085
|
}
|
|
1086
1086
|
await collectBody(output.body, context);
|
|
1087
1087
|
const response = {
|
|
@@ -1089,8 +1089,8 @@ const deserializeAws_json1_1MergeShardsCommand = async (output, context) => {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
return Promise.resolve(response);
|
|
1091
1091
|
};
|
|
1092
|
-
exports.
|
|
1093
|
-
const
|
|
1092
|
+
exports.de_MergeShardsCommand = de_MergeShardsCommand;
|
|
1093
|
+
const de_MergeShardsCommandError = async (output, context) => {
|
|
1094
1094
|
const parsedOutput = {
|
|
1095
1095
|
...output,
|
|
1096
1096
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1099,22 +1099,22 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1099
1099
|
switch (errorCode) {
|
|
1100
1100
|
case "AccessDeniedException":
|
|
1101
1101
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1102
|
-
throw await
|
|
1102
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1103
1103
|
case "InvalidArgumentException":
|
|
1104
1104
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1105
|
-
throw await
|
|
1105
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1106
1106
|
case "LimitExceededException":
|
|
1107
1107
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1108
|
-
throw await
|
|
1108
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1109
1109
|
case "ResourceInUseException":
|
|
1110
1110
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1111
|
-
throw await
|
|
1111
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1112
1112
|
case "ResourceNotFoundException":
|
|
1113
1113
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1114
|
-
throw await
|
|
1114
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
1115
|
case "ValidationException":
|
|
1116
1116
|
case "com.amazonaws.kinesis#ValidationException":
|
|
1117
|
-
throw await
|
|
1117
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1118
1118
|
default:
|
|
1119
1119
|
const parsedBody = parsedOutput.body;
|
|
1120
1120
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1125,21 +1125,21 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1125
1125
|
});
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
|
-
const
|
|
1128
|
+
const de_PutRecordCommand = async (output, context) => {
|
|
1129
1129
|
if (output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
1130
|
+
return de_PutRecordCommandError(output, context);
|
|
1131
1131
|
}
|
|
1132
1132
|
const data = await parseBody(output.body, context);
|
|
1133
1133
|
let contents = {};
|
|
1134
|
-
contents =
|
|
1134
|
+
contents = de_PutRecordOutput(data, context);
|
|
1135
1135
|
const response = {
|
|
1136
1136
|
$metadata: deserializeMetadata(output),
|
|
1137
1137
|
...contents,
|
|
1138
1138
|
};
|
|
1139
1139
|
return Promise.resolve(response);
|
|
1140
1140
|
};
|
|
1141
|
-
exports.
|
|
1142
|
-
const
|
|
1141
|
+
exports.de_PutRecordCommand = de_PutRecordCommand;
|
|
1142
|
+
const de_PutRecordCommandError = async (output, context) => {
|
|
1143
1143
|
const parsedOutput = {
|
|
1144
1144
|
...output,
|
|
1145
1145
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1148,34 +1148,34 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1148
1148
|
switch (errorCode) {
|
|
1149
1149
|
case "AccessDeniedException":
|
|
1150
1150
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1151
|
-
throw await
|
|
1151
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
1152
|
case "InvalidArgumentException":
|
|
1153
1153
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1154
|
-
throw await
|
|
1154
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1155
1155
|
case "KMSAccessDeniedException":
|
|
1156
1156
|
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1158
1158
|
case "KMSDisabledException":
|
|
1159
1159
|
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1160
|
-
throw await
|
|
1160
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1161
1161
|
case "KMSInvalidStateException":
|
|
1162
1162
|
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1163
|
-
throw await
|
|
1163
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1164
1164
|
case "KMSNotFoundException":
|
|
1165
1165
|
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1166
|
-
throw await
|
|
1166
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1167
1167
|
case "KMSOptInRequired":
|
|
1168
1168
|
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1169
|
-
throw await
|
|
1169
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1170
1170
|
case "KMSThrottlingException":
|
|
1171
1171
|
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1172
|
-
throw await
|
|
1172
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1173
1173
|
case "ProvisionedThroughputExceededException":
|
|
1174
1174
|
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1175
|
-
throw await
|
|
1175
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1176
1176
|
case "ResourceNotFoundException":
|
|
1177
1177
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1178
|
-
throw await
|
|
1178
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
1179
|
default:
|
|
1180
1180
|
const parsedBody = parsedOutput.body;
|
|
1181
1181
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1186,21 +1186,21 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
|
-
const
|
|
1189
|
+
const de_PutRecordsCommand = async (output, context) => {
|
|
1190
1190
|
if (output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
1191
|
+
return de_PutRecordsCommandError(output, context);
|
|
1192
1192
|
}
|
|
1193
1193
|
const data = await parseBody(output.body, context);
|
|
1194
1194
|
let contents = {};
|
|
1195
|
-
contents =
|
|
1195
|
+
contents = de_PutRecordsOutput(data, context);
|
|
1196
1196
|
const response = {
|
|
1197
1197
|
$metadata: deserializeMetadata(output),
|
|
1198
1198
|
...contents,
|
|
1199
1199
|
};
|
|
1200
1200
|
return Promise.resolve(response);
|
|
1201
1201
|
};
|
|
1202
|
-
exports.
|
|
1203
|
-
const
|
|
1202
|
+
exports.de_PutRecordsCommand = de_PutRecordsCommand;
|
|
1203
|
+
const de_PutRecordsCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
1206
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1209,34 +1209,34 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1209
1209
|
switch (errorCode) {
|
|
1210
1210
|
case "AccessDeniedException":
|
|
1211
1211
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1212
|
-
throw await
|
|
1212
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1213
1213
|
case "InvalidArgumentException":
|
|
1214
1214
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1215
|
-
throw await
|
|
1215
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1216
1216
|
case "KMSAccessDeniedException":
|
|
1217
1217
|
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1218
|
-
throw await
|
|
1218
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1219
1219
|
case "KMSDisabledException":
|
|
1220
1220
|
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1221
|
-
throw await
|
|
1221
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1222
1222
|
case "KMSInvalidStateException":
|
|
1223
1223
|
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1224
|
-
throw await
|
|
1224
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1225
1225
|
case "KMSNotFoundException":
|
|
1226
1226
|
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1228
1228
|
case "KMSOptInRequired":
|
|
1229
1229
|
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1230
|
-
throw await
|
|
1230
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1231
1231
|
case "KMSThrottlingException":
|
|
1232
1232
|
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1233
|
-
throw await
|
|
1233
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1234
1234
|
case "ProvisionedThroughputExceededException":
|
|
1235
1235
|
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1237
1237
|
case "ResourceNotFoundException":
|
|
1238
1238
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1240
1240
|
default:
|
|
1241
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1247,21 +1247,21 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
|
-
const
|
|
1250
|
+
const de_RegisterStreamConsumerCommand = async (output, context) => {
|
|
1251
1251
|
if (output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
1252
|
+
return de_RegisterStreamConsumerCommandError(output, context);
|
|
1253
1253
|
}
|
|
1254
1254
|
const data = await parseBody(output.body, context);
|
|
1255
1255
|
let contents = {};
|
|
1256
|
-
contents =
|
|
1256
|
+
contents = de_RegisterStreamConsumerOutput(data, context);
|
|
1257
1257
|
const response = {
|
|
1258
1258
|
$metadata: deserializeMetadata(output),
|
|
1259
1259
|
...contents,
|
|
1260
1260
|
};
|
|
1261
1261
|
return Promise.resolve(response);
|
|
1262
1262
|
};
|
|
1263
|
-
exports.
|
|
1264
|
-
const
|
|
1263
|
+
exports.de_RegisterStreamConsumerCommand = de_RegisterStreamConsumerCommand;
|
|
1264
|
+
const de_RegisterStreamConsumerCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
1267
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1270,16 +1270,16 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1270
1270
|
switch (errorCode) {
|
|
1271
1271
|
case "InvalidArgumentException":
|
|
1272
1272
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1273
|
-
throw await
|
|
1273
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1274
1274
|
case "LimitExceededException":
|
|
1275
1275
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1276
|
-
throw await
|
|
1276
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1277
1277
|
case "ResourceInUseException":
|
|
1278
1278
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1279
|
-
throw await
|
|
1279
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1280
1280
|
case "ResourceNotFoundException":
|
|
1281
1281
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1282
|
-
throw await
|
|
1282
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1283
1283
|
default:
|
|
1284
1284
|
const parsedBody = parsedOutput.body;
|
|
1285
1285
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1290,9 +1290,9 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1290
1290
|
});
|
|
1291
1291
|
}
|
|
1292
1292
|
};
|
|
1293
|
-
const
|
|
1293
|
+
const de_RemoveTagsFromStreamCommand = async (output, context) => {
|
|
1294
1294
|
if (output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
1295
|
+
return de_RemoveTagsFromStreamCommandError(output, context);
|
|
1296
1296
|
}
|
|
1297
1297
|
await collectBody(output.body, context);
|
|
1298
1298
|
const response = {
|
|
@@ -1300,8 +1300,8 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommand = async (output, context
|
|
|
1300
1300
|
};
|
|
1301
1301
|
return Promise.resolve(response);
|
|
1302
1302
|
};
|
|
1303
|
-
exports.
|
|
1304
|
-
const
|
|
1303
|
+
exports.de_RemoveTagsFromStreamCommand = de_RemoveTagsFromStreamCommand;
|
|
1304
|
+
const de_RemoveTagsFromStreamCommandError = async (output, context) => {
|
|
1305
1305
|
const parsedOutput = {
|
|
1306
1306
|
...output,
|
|
1307
1307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1310,19 +1310,19 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1310
1310
|
switch (errorCode) {
|
|
1311
1311
|
case "AccessDeniedException":
|
|
1312
1312
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1313
|
-
throw await
|
|
1313
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1314
1314
|
case "InvalidArgumentException":
|
|
1315
1315
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1316
|
-
throw await
|
|
1316
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1317
1317
|
case "LimitExceededException":
|
|
1318
1318
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1319
|
-
throw await
|
|
1319
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1320
1320
|
case "ResourceInUseException":
|
|
1321
1321
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1322
|
-
throw await
|
|
1322
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1323
1323
|
case "ResourceNotFoundException":
|
|
1324
1324
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1325
|
-
throw await
|
|
1325
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
1326
|
default:
|
|
1327
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
1328
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1333,9 +1333,9 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1333
1333
|
});
|
|
1334
1334
|
}
|
|
1335
1335
|
};
|
|
1336
|
-
const
|
|
1336
|
+
const de_SplitShardCommand = async (output, context) => {
|
|
1337
1337
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
1338
|
+
return de_SplitShardCommandError(output, context);
|
|
1339
1339
|
}
|
|
1340
1340
|
await collectBody(output.body, context);
|
|
1341
1341
|
const response = {
|
|
@@ -1343,8 +1343,8 @@ const deserializeAws_json1_1SplitShardCommand = async (output, context) => {
|
|
|
1343
1343
|
};
|
|
1344
1344
|
return Promise.resolve(response);
|
|
1345
1345
|
};
|
|
1346
|
-
exports.
|
|
1347
|
-
const
|
|
1346
|
+
exports.de_SplitShardCommand = de_SplitShardCommand;
|
|
1347
|
+
const de_SplitShardCommandError = async (output, context) => {
|
|
1348
1348
|
const parsedOutput = {
|
|
1349
1349
|
...output,
|
|
1350
1350
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1353,22 +1353,22 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1353
1353
|
switch (errorCode) {
|
|
1354
1354
|
case "AccessDeniedException":
|
|
1355
1355
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1356
|
-
throw await
|
|
1356
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1357
1357
|
case "InvalidArgumentException":
|
|
1358
1358
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1359
|
-
throw await
|
|
1359
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1360
1360
|
case "LimitExceededException":
|
|
1361
1361
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1362
|
-
throw await
|
|
1362
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1363
1363
|
case "ResourceInUseException":
|
|
1364
1364
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1365
|
-
throw await
|
|
1365
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1366
1366
|
case "ResourceNotFoundException":
|
|
1367
1367
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1368
|
-
throw await
|
|
1368
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
1369
|
case "ValidationException":
|
|
1370
1370
|
case "com.amazonaws.kinesis#ValidationException":
|
|
1371
|
-
throw await
|
|
1371
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
1372
|
default:
|
|
1373
1373
|
const parsedBody = parsedOutput.body;
|
|
1374
1374
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1379,9 +1379,9 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1379
1379
|
});
|
|
1380
1380
|
}
|
|
1381
1381
|
};
|
|
1382
|
-
const
|
|
1382
|
+
const de_StartStreamEncryptionCommand = async (output, context) => {
|
|
1383
1383
|
if (output.statusCode >= 300) {
|
|
1384
|
-
return
|
|
1384
|
+
return de_StartStreamEncryptionCommandError(output, context);
|
|
1385
1385
|
}
|
|
1386
1386
|
await collectBody(output.body, context);
|
|
1387
1387
|
const response = {
|
|
@@ -1389,8 +1389,8 @@ const deserializeAws_json1_1StartStreamEncryptionCommand = async (output, contex
|
|
|
1389
1389
|
};
|
|
1390
1390
|
return Promise.resolve(response);
|
|
1391
1391
|
};
|
|
1392
|
-
exports.
|
|
1393
|
-
const
|
|
1392
|
+
exports.de_StartStreamEncryptionCommand = de_StartStreamEncryptionCommand;
|
|
1393
|
+
const de_StartStreamEncryptionCommandError = async (output, context) => {
|
|
1394
1394
|
const parsedOutput = {
|
|
1395
1395
|
...output,
|
|
1396
1396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1399,37 +1399,37 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1399
1399
|
switch (errorCode) {
|
|
1400
1400
|
case "AccessDeniedException":
|
|
1401
1401
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1402
|
-
throw await
|
|
1402
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1403
1403
|
case "InvalidArgumentException":
|
|
1404
1404
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1405
|
-
throw await
|
|
1405
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1406
1406
|
case "KMSAccessDeniedException":
|
|
1407
1407
|
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1408
|
-
throw await
|
|
1408
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1409
1409
|
case "KMSDisabledException":
|
|
1410
1410
|
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1411
|
-
throw await
|
|
1411
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1412
1412
|
case "KMSInvalidStateException":
|
|
1413
1413
|
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1414
|
-
throw await
|
|
1414
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1415
1415
|
case "KMSNotFoundException":
|
|
1416
1416
|
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1417
|
-
throw await
|
|
1417
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1418
1418
|
case "KMSOptInRequired":
|
|
1419
1419
|
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1420
|
-
throw await
|
|
1420
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1421
1421
|
case "KMSThrottlingException":
|
|
1422
1422
|
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1423
|
-
throw await
|
|
1423
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1424
1424
|
case "LimitExceededException":
|
|
1425
1425
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1426
|
-
throw await
|
|
1426
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1427
1427
|
case "ResourceInUseException":
|
|
1428
1428
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1429
|
-
throw await
|
|
1429
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1430
1430
|
case "ResourceNotFoundException":
|
|
1431
1431
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1432
|
-
throw await
|
|
1432
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
1433
|
default:
|
|
1434
1434
|
const parsedBody = parsedOutput.body;
|
|
1435
1435
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1440,9 +1440,9 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
|
-
const
|
|
1443
|
+
const de_StopStreamEncryptionCommand = async (output, context) => {
|
|
1444
1444
|
if (output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
1445
|
+
return de_StopStreamEncryptionCommandError(output, context);
|
|
1446
1446
|
}
|
|
1447
1447
|
await collectBody(output.body, context);
|
|
1448
1448
|
const response = {
|
|
@@ -1450,8 +1450,8 @@ const deserializeAws_json1_1StopStreamEncryptionCommand = async (output, context
|
|
|
1450
1450
|
};
|
|
1451
1451
|
return Promise.resolve(response);
|
|
1452
1452
|
};
|
|
1453
|
-
exports.
|
|
1454
|
-
const
|
|
1453
|
+
exports.de_StopStreamEncryptionCommand = de_StopStreamEncryptionCommand;
|
|
1454
|
+
const de_StopStreamEncryptionCommandError = async (output, context) => {
|
|
1455
1455
|
const parsedOutput = {
|
|
1456
1456
|
...output,
|
|
1457
1457
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1460,19 +1460,19 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1460
1460
|
switch (errorCode) {
|
|
1461
1461
|
case "AccessDeniedException":
|
|
1462
1462
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1463
|
-
throw await
|
|
1463
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1464
1464
|
case "InvalidArgumentException":
|
|
1465
1465
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1466
|
-
throw await
|
|
1466
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1467
1467
|
case "LimitExceededException":
|
|
1468
1468
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1469
|
-
throw await
|
|
1469
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1470
1470
|
case "ResourceInUseException":
|
|
1471
1471
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1472
|
-
throw await
|
|
1472
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1473
1473
|
case "ResourceNotFoundException":
|
|
1474
1474
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1475
|
-
throw await
|
|
1475
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1476
1476
|
default:
|
|
1477
1477
|
const parsedBody = parsedOutput.body;
|
|
1478
1478
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1483,19 +1483,19 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1483
1483
|
});
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
const
|
|
1486
|
+
const de_SubscribeToShardCommand = async (output, context) => {
|
|
1487
1487
|
if (output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
1488
|
+
return de_SubscribeToShardCommandError(output, context);
|
|
1489
1489
|
}
|
|
1490
|
-
const contents = { EventStream:
|
|
1490
|
+
const contents = { EventStream: de_SubscribeToShardEventStream(output.body, context) };
|
|
1491
1491
|
const response = {
|
|
1492
1492
|
$metadata: deserializeMetadata(output),
|
|
1493
1493
|
...contents,
|
|
1494
1494
|
};
|
|
1495
1495
|
return Promise.resolve(response);
|
|
1496
1496
|
};
|
|
1497
|
-
exports.
|
|
1498
|
-
const
|
|
1497
|
+
exports.de_SubscribeToShardCommand = de_SubscribeToShardCommand;
|
|
1498
|
+
const de_SubscribeToShardCommandError = async (output, context) => {
|
|
1499
1499
|
const parsedOutput = {
|
|
1500
1500
|
...output,
|
|
1501
1501
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1504,19 +1504,19 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1504
1504
|
switch (errorCode) {
|
|
1505
1505
|
case "AccessDeniedException":
|
|
1506
1506
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1507
|
-
throw await
|
|
1507
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1508
1508
|
case "InvalidArgumentException":
|
|
1509
1509
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1510
|
-
throw await
|
|
1510
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1511
1511
|
case "LimitExceededException":
|
|
1512
1512
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1513
|
-
throw await
|
|
1513
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1514
1514
|
case "ResourceInUseException":
|
|
1515
1515
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1516
|
-
throw await
|
|
1516
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1517
1517
|
case "ResourceNotFoundException":
|
|
1518
1518
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1519
|
-
throw await
|
|
1519
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1520
1520
|
default:
|
|
1521
1521
|
const parsedBody = parsedOutput.body;
|
|
1522
1522
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1527,21 +1527,21 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1527
1527
|
});
|
|
1528
1528
|
}
|
|
1529
1529
|
};
|
|
1530
|
-
const
|
|
1530
|
+
const de_UpdateShardCountCommand = async (output, context) => {
|
|
1531
1531
|
if (output.statusCode >= 300) {
|
|
1532
|
-
return
|
|
1532
|
+
return de_UpdateShardCountCommandError(output, context);
|
|
1533
1533
|
}
|
|
1534
1534
|
const data = await parseBody(output.body, context);
|
|
1535
1535
|
let contents = {};
|
|
1536
|
-
contents =
|
|
1536
|
+
contents = de_UpdateShardCountOutput(data, context);
|
|
1537
1537
|
const response = {
|
|
1538
1538
|
$metadata: deserializeMetadata(output),
|
|
1539
1539
|
...contents,
|
|
1540
1540
|
};
|
|
1541
1541
|
return Promise.resolve(response);
|
|
1542
1542
|
};
|
|
1543
|
-
exports.
|
|
1544
|
-
const
|
|
1543
|
+
exports.de_UpdateShardCountCommand = de_UpdateShardCountCommand;
|
|
1544
|
+
const de_UpdateShardCountCommandError = async (output, context) => {
|
|
1545
1545
|
const parsedOutput = {
|
|
1546
1546
|
...output,
|
|
1547
1547
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1550,22 +1550,22 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1550
1550
|
switch (errorCode) {
|
|
1551
1551
|
case "AccessDeniedException":
|
|
1552
1552
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1553
|
-
throw await
|
|
1553
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1554
1554
|
case "InvalidArgumentException":
|
|
1555
1555
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1556
|
-
throw await
|
|
1556
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1557
1557
|
case "LimitExceededException":
|
|
1558
1558
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1559
|
-
throw await
|
|
1559
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1560
1560
|
case "ResourceInUseException":
|
|
1561
1561
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1562
|
-
throw await
|
|
1562
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1563
1563
|
case "ResourceNotFoundException":
|
|
1564
1564
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1565
|
-
throw await
|
|
1565
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1566
1566
|
case "ValidationException":
|
|
1567
1567
|
case "com.amazonaws.kinesis#ValidationException":
|
|
1568
|
-
throw await
|
|
1568
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1569
1569
|
default:
|
|
1570
1570
|
const parsedBody = parsedOutput.body;
|
|
1571
1571
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1576,9 +1576,9 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1576
1576
|
});
|
|
1577
1577
|
}
|
|
1578
1578
|
};
|
|
1579
|
-
const
|
|
1579
|
+
const de_UpdateStreamModeCommand = async (output, context) => {
|
|
1580
1580
|
if (output.statusCode >= 300) {
|
|
1581
|
-
return
|
|
1581
|
+
return de_UpdateStreamModeCommandError(output, context);
|
|
1582
1582
|
}
|
|
1583
1583
|
await collectBody(output.body, context);
|
|
1584
1584
|
const response = {
|
|
@@ -1586,8 +1586,8 @@ const deserializeAws_json1_1UpdateStreamModeCommand = async (output, context) =>
|
|
|
1586
1586
|
};
|
|
1587
1587
|
return Promise.resolve(response);
|
|
1588
1588
|
};
|
|
1589
|
-
exports.
|
|
1590
|
-
const
|
|
1589
|
+
exports.de_UpdateStreamModeCommand = de_UpdateStreamModeCommand;
|
|
1590
|
+
const de_UpdateStreamModeCommandError = async (output, context) => {
|
|
1591
1591
|
const parsedOutput = {
|
|
1592
1592
|
...output,
|
|
1593
1593
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1596,16 +1596,16 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1596
1596
|
switch (errorCode) {
|
|
1597
1597
|
case "InvalidArgumentException":
|
|
1598
1598
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1599
|
-
throw await
|
|
1599
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1600
1600
|
case "LimitExceededException":
|
|
1601
1601
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1602
|
-
throw await
|
|
1602
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1603
1603
|
case "ResourceInUseException":
|
|
1604
1604
|
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1605
|
-
throw await
|
|
1605
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1606
1606
|
case "ResourceNotFoundException":
|
|
1607
1607
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1608
|
-
throw await
|
|
1608
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
1609
|
default:
|
|
1610
1610
|
const parsedBody = parsedOutput.body;
|
|
1611
1611
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1616,322 +1616,322 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
|
-
const
|
|
1619
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1620
1620
|
const body = parsedOutput.body;
|
|
1621
|
-
const deserialized =
|
|
1621
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1622
1622
|
const exception = new models_0_1.AccessDeniedException({
|
|
1623
1623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1624
1624
|
...deserialized,
|
|
1625
1625
|
});
|
|
1626
1626
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1627
1627
|
};
|
|
1628
|
-
const
|
|
1628
|
+
const de_ExpiredIteratorExceptionRes = async (parsedOutput, context) => {
|
|
1629
1629
|
const body = parsedOutput.body;
|
|
1630
|
-
const deserialized =
|
|
1630
|
+
const deserialized = de_ExpiredIteratorException(body, context);
|
|
1631
1631
|
const exception = new models_0_1.ExpiredIteratorException({
|
|
1632
1632
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1633
1633
|
...deserialized,
|
|
1634
1634
|
});
|
|
1635
1635
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1636
1636
|
};
|
|
1637
|
-
const
|
|
1637
|
+
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1638
1638
|
const body = parsedOutput.body;
|
|
1639
|
-
const deserialized =
|
|
1639
|
+
const deserialized = de_ExpiredNextTokenException(body, context);
|
|
1640
1640
|
const exception = new models_0_1.ExpiredNextTokenException({
|
|
1641
1641
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1642
1642
|
...deserialized,
|
|
1643
1643
|
});
|
|
1644
1644
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1645
1645
|
};
|
|
1646
|
-
const
|
|
1646
|
+
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1647
1647
|
const body = parsedOutput.body;
|
|
1648
|
-
const deserialized =
|
|
1648
|
+
const deserialized = de_InvalidArgumentException(body, context);
|
|
1649
1649
|
const exception = new models_0_1.InvalidArgumentException({
|
|
1650
1650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
1651
|
...deserialized,
|
|
1652
1652
|
});
|
|
1653
1653
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1654
1654
|
};
|
|
1655
|
-
const
|
|
1655
|
+
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1656
1656
|
const body = parsedOutput.body;
|
|
1657
|
-
const deserialized =
|
|
1657
|
+
const deserialized = de_KMSAccessDeniedException(body, context);
|
|
1658
1658
|
const exception = new models_0_1.KMSAccessDeniedException({
|
|
1659
1659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1660
1660
|
...deserialized,
|
|
1661
1661
|
});
|
|
1662
1662
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1663
1663
|
};
|
|
1664
|
-
const
|
|
1664
|
+
const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1665
1665
|
const body = parsedOutput.body;
|
|
1666
|
-
const deserialized =
|
|
1666
|
+
const deserialized = de_KMSDisabledException(body, context);
|
|
1667
1667
|
const exception = new models_0_1.KMSDisabledException({
|
|
1668
1668
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1669
1669
|
...deserialized,
|
|
1670
1670
|
});
|
|
1671
1671
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1673
|
+
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1674
1674
|
const body = parsedOutput.body;
|
|
1675
|
-
const deserialized =
|
|
1675
|
+
const deserialized = de_KMSInvalidStateException(body, context);
|
|
1676
1676
|
const exception = new models_0_1.KMSInvalidStateException({
|
|
1677
1677
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1678
1678
|
...deserialized,
|
|
1679
1679
|
});
|
|
1680
1680
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1681
1681
|
};
|
|
1682
|
-
const
|
|
1682
|
+
const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1683
1683
|
const body = parsedOutput.body;
|
|
1684
|
-
const deserialized =
|
|
1684
|
+
const deserialized = de_KMSNotFoundException(body, context);
|
|
1685
1685
|
const exception = new models_0_1.KMSNotFoundException({
|
|
1686
1686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1687
1687
|
...deserialized,
|
|
1688
1688
|
});
|
|
1689
1689
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1690
1690
|
};
|
|
1691
|
-
const
|
|
1691
|
+
const de_KMSOptInRequiredRes = async (parsedOutput, context) => {
|
|
1692
1692
|
const body = parsedOutput.body;
|
|
1693
|
-
const deserialized =
|
|
1693
|
+
const deserialized = de_KMSOptInRequired(body, context);
|
|
1694
1694
|
const exception = new models_0_1.KMSOptInRequired({
|
|
1695
1695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1696
1696
|
...deserialized,
|
|
1697
1697
|
});
|
|
1698
1698
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1699
1699
|
};
|
|
1700
|
-
const
|
|
1700
|
+
const de_KMSThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1701
1701
|
const body = parsedOutput.body;
|
|
1702
|
-
const deserialized =
|
|
1702
|
+
const deserialized = de_KMSThrottlingException(body, context);
|
|
1703
1703
|
const exception = new models_0_1.KMSThrottlingException({
|
|
1704
1704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1705
1705
|
...deserialized,
|
|
1706
1706
|
});
|
|
1707
1707
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1708
1708
|
};
|
|
1709
|
-
const
|
|
1709
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1710
1710
|
const body = parsedOutput.body;
|
|
1711
|
-
const deserialized =
|
|
1711
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1712
1712
|
const exception = new models_0_1.LimitExceededException({
|
|
1713
1713
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
1714
|
...deserialized,
|
|
1715
1715
|
});
|
|
1716
1716
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1717
1717
|
};
|
|
1718
|
-
const
|
|
1718
|
+
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1719
1719
|
const body = parsedOutput.body;
|
|
1720
|
-
const deserialized =
|
|
1720
|
+
const deserialized = de_ProvisionedThroughputExceededException(body, context);
|
|
1721
1721
|
const exception = new models_0_1.ProvisionedThroughputExceededException({
|
|
1722
1722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1723
1723
|
...deserialized,
|
|
1724
1724
|
});
|
|
1725
1725
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1726
1726
|
};
|
|
1727
|
-
const
|
|
1727
|
+
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1728
1728
|
const body = parsedOutput.body;
|
|
1729
|
-
const deserialized =
|
|
1729
|
+
const deserialized = de_ResourceInUseException(body, context);
|
|
1730
1730
|
const exception = new models_0_1.ResourceInUseException({
|
|
1731
1731
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
1732
|
...deserialized,
|
|
1733
1733
|
});
|
|
1734
1734
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1735
1735
|
};
|
|
1736
|
-
const
|
|
1736
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1737
1737
|
const body = parsedOutput.body;
|
|
1738
|
-
const deserialized =
|
|
1738
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1739
1739
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1740
1740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1741
1741
|
...deserialized,
|
|
1742
1742
|
});
|
|
1743
1743
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1744
1744
|
};
|
|
1745
|
-
const
|
|
1745
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1746
1746
|
const body = parsedOutput.body;
|
|
1747
|
-
const deserialized =
|
|
1747
|
+
const deserialized = de_ValidationException(body, context);
|
|
1748
1748
|
const exception = new models_0_1.ValidationException({
|
|
1749
1749
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1750
1750
|
...deserialized,
|
|
1751
1751
|
});
|
|
1752
1752
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1753
1753
|
};
|
|
1754
|
-
const
|
|
1754
|
+
const de_SubscribeToShardEventStream = (output, context) => {
|
|
1755
1755
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1756
1756
|
if (event["SubscribeToShardEvent"] != null) {
|
|
1757
1757
|
return {
|
|
1758
|
-
SubscribeToShardEvent: await
|
|
1758
|
+
SubscribeToShardEvent: await de_SubscribeToShardEvent_event(event["SubscribeToShardEvent"], context),
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
if (event["ResourceNotFoundException"] != null) {
|
|
1762
1762
|
return {
|
|
1763
|
-
ResourceNotFoundException: await
|
|
1763
|
+
ResourceNotFoundException: await de_ResourceNotFoundException_event(event["ResourceNotFoundException"], context),
|
|
1764
1764
|
};
|
|
1765
1765
|
}
|
|
1766
1766
|
if (event["ResourceInUseException"] != null) {
|
|
1767
1767
|
return {
|
|
1768
|
-
ResourceInUseException: await
|
|
1768
|
+
ResourceInUseException: await de_ResourceInUseException_event(event["ResourceInUseException"], context),
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
if (event["KMSDisabledException"] != null) {
|
|
1772
1772
|
return {
|
|
1773
|
-
KMSDisabledException: await
|
|
1773
|
+
KMSDisabledException: await de_KMSDisabledException_event(event["KMSDisabledException"], context),
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
1776
1776
|
if (event["KMSInvalidStateException"] != null) {
|
|
1777
1777
|
return {
|
|
1778
|
-
KMSInvalidStateException: await
|
|
1778
|
+
KMSInvalidStateException: await de_KMSInvalidStateException_event(event["KMSInvalidStateException"], context),
|
|
1779
1779
|
};
|
|
1780
1780
|
}
|
|
1781
1781
|
if (event["KMSAccessDeniedException"] != null) {
|
|
1782
1782
|
return {
|
|
1783
|
-
KMSAccessDeniedException: await
|
|
1783
|
+
KMSAccessDeniedException: await de_KMSAccessDeniedException_event(event["KMSAccessDeniedException"], context),
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
1786
|
if (event["KMSNotFoundException"] != null) {
|
|
1787
1787
|
return {
|
|
1788
|
-
KMSNotFoundException: await
|
|
1788
|
+
KMSNotFoundException: await de_KMSNotFoundException_event(event["KMSNotFoundException"], context),
|
|
1789
1789
|
};
|
|
1790
1790
|
}
|
|
1791
1791
|
if (event["KMSOptInRequired"] != null) {
|
|
1792
1792
|
return {
|
|
1793
|
-
KMSOptInRequired: await
|
|
1793
|
+
KMSOptInRequired: await de_KMSOptInRequired_event(event["KMSOptInRequired"], context),
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
1796
|
if (event["KMSThrottlingException"] != null) {
|
|
1797
1797
|
return {
|
|
1798
|
-
KMSThrottlingException: await
|
|
1798
|
+
KMSThrottlingException: await de_KMSThrottlingException_event(event["KMSThrottlingException"], context),
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
1801
1801
|
if (event["InternalFailureException"] != null) {
|
|
1802
1802
|
return {
|
|
1803
|
-
InternalFailureException: await
|
|
1803
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
1806
|
return { $unknown: output };
|
|
1807
1807
|
});
|
|
1808
1808
|
};
|
|
1809
|
-
const
|
|
1809
|
+
const de_InternalFailureException_event = async (output, context) => {
|
|
1810
1810
|
const parsedOutput = {
|
|
1811
1811
|
...output,
|
|
1812
1812
|
body: await parseBody(output.body, context),
|
|
1813
1813
|
};
|
|
1814
|
-
return
|
|
1814
|
+
return de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1815
1815
|
};
|
|
1816
|
-
const
|
|
1816
|
+
const de_KMSAccessDeniedException_event = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
1819
|
body: await parseBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
|
-
return
|
|
1821
|
+
return de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
1822
|
};
|
|
1823
|
-
const
|
|
1823
|
+
const de_KMSDisabledException_event = async (output, context) => {
|
|
1824
1824
|
const parsedOutput = {
|
|
1825
1825
|
...output,
|
|
1826
1826
|
body: await parseBody(output.body, context),
|
|
1827
1827
|
};
|
|
1828
|
-
return
|
|
1828
|
+
return de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1829
1829
|
};
|
|
1830
|
-
const
|
|
1830
|
+
const de_KMSInvalidStateException_event = async (output, context) => {
|
|
1831
1831
|
const parsedOutput = {
|
|
1832
1832
|
...output,
|
|
1833
1833
|
body: await parseBody(output.body, context),
|
|
1834
1834
|
};
|
|
1835
|
-
return
|
|
1835
|
+
return de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1836
1836
|
};
|
|
1837
|
-
const
|
|
1837
|
+
const de_KMSNotFoundException_event = async (output, context) => {
|
|
1838
1838
|
const parsedOutput = {
|
|
1839
1839
|
...output,
|
|
1840
1840
|
body: await parseBody(output.body, context),
|
|
1841
1841
|
};
|
|
1842
|
-
return
|
|
1842
|
+
return de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1843
1843
|
};
|
|
1844
|
-
const
|
|
1844
|
+
const de_KMSOptInRequired_event = async (output, context) => {
|
|
1845
1845
|
const parsedOutput = {
|
|
1846
1846
|
...output,
|
|
1847
1847
|
body: await parseBody(output.body, context),
|
|
1848
1848
|
};
|
|
1849
|
-
return
|
|
1849
|
+
return de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1850
1850
|
};
|
|
1851
|
-
const
|
|
1851
|
+
const de_KMSThrottlingException_event = async (output, context) => {
|
|
1852
1852
|
const parsedOutput = {
|
|
1853
1853
|
...output,
|
|
1854
1854
|
body: await parseBody(output.body, context),
|
|
1855
1855
|
};
|
|
1856
|
-
return
|
|
1856
|
+
return de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1857
1857
|
};
|
|
1858
|
-
const
|
|
1858
|
+
const de_ResourceInUseException_event = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
1861
|
body: await parseBody(output.body, context),
|
|
1862
1862
|
};
|
|
1863
|
-
return
|
|
1863
|
+
return de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1864
1864
|
};
|
|
1865
|
-
const
|
|
1865
|
+
const de_ResourceNotFoundException_event = async (output, context) => {
|
|
1866
1866
|
const parsedOutput = {
|
|
1867
1867
|
...output,
|
|
1868
1868
|
body: await parseBody(output.body, context),
|
|
1869
1869
|
};
|
|
1870
|
-
return
|
|
1870
|
+
return de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1871
1871
|
};
|
|
1872
|
-
const
|
|
1872
|
+
const de_SubscribeToShardEvent_event = async (output, context) => {
|
|
1873
1873
|
const contents = {};
|
|
1874
1874
|
const data = await parseBody(output.body, context);
|
|
1875
|
-
Object.assign(contents,
|
|
1875
|
+
Object.assign(contents, de_SubscribeToShardEvent(data, context));
|
|
1876
1876
|
return contents;
|
|
1877
1877
|
};
|
|
1878
|
-
const
|
|
1878
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1879
1879
|
const body = parsedOutput.body;
|
|
1880
|
-
const deserialized =
|
|
1880
|
+
const deserialized = de_InternalFailureException(body, context);
|
|
1881
1881
|
const exception = new models_0_1.InternalFailureException({
|
|
1882
1882
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1883
1883
|
...deserialized,
|
|
1884
1884
|
});
|
|
1885
1885
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1886
1886
|
};
|
|
1887
|
-
const
|
|
1887
|
+
const se_AddTagsToStreamInput = (input, context) => {
|
|
1888
1888
|
return {
|
|
1889
1889
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1890
1890
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1891
|
-
...(input.Tags != null && { Tags:
|
|
1891
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
1892
1892
|
};
|
|
1893
1893
|
};
|
|
1894
|
-
const
|
|
1894
|
+
const se_CreateStreamInput = (input, context) => {
|
|
1895
1895
|
return {
|
|
1896
1896
|
...(input.ShardCount != null && { ShardCount: input.ShardCount }),
|
|
1897
1897
|
...(input.StreamModeDetails != null && {
|
|
1898
|
-
StreamModeDetails:
|
|
1898
|
+
StreamModeDetails: se_StreamModeDetails(input.StreamModeDetails, context),
|
|
1899
1899
|
}),
|
|
1900
1900
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1901
1901
|
};
|
|
1902
1902
|
};
|
|
1903
|
-
const
|
|
1903
|
+
const se_DecreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1904
1904
|
return {
|
|
1905
1905
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1906
1906
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1907
1907
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1908
1908
|
};
|
|
1909
1909
|
};
|
|
1910
|
-
const
|
|
1910
|
+
const se_DeleteStreamInput = (input, context) => {
|
|
1911
1911
|
return {
|
|
1912
1912
|
...(input.EnforceConsumerDeletion != null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion }),
|
|
1913
1913
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1914
1914
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1915
1915
|
};
|
|
1916
1916
|
};
|
|
1917
|
-
const
|
|
1917
|
+
const se_DeregisterStreamConsumerInput = (input, context) => {
|
|
1918
1918
|
return {
|
|
1919
1919
|
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1920
1920
|
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1921
1921
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1922
1922
|
};
|
|
1923
1923
|
};
|
|
1924
|
-
const
|
|
1924
|
+
const se_DescribeLimitsInput = (input, context) => {
|
|
1925
1925
|
return {};
|
|
1926
1926
|
};
|
|
1927
|
-
const
|
|
1927
|
+
const se_DescribeStreamConsumerInput = (input, context) => {
|
|
1928
1928
|
return {
|
|
1929
1929
|
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1930
1930
|
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1931
1931
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1932
1932
|
};
|
|
1933
1933
|
};
|
|
1934
|
-
const
|
|
1934
|
+
const se_DescribeStreamInput = (input, context) => {
|
|
1935
1935
|
return {
|
|
1936
1936
|
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1937
1937
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
@@ -1939,38 +1939,34 @@ const serializeAws_json1_1DescribeStreamInput = (input, context) => {
|
|
|
1939
1939
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1940
1940
|
};
|
|
1941
1941
|
};
|
|
1942
|
-
const
|
|
1942
|
+
const se_DescribeStreamSummaryInput = (input, context) => {
|
|
1943
1943
|
return {
|
|
1944
1944
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1945
1945
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1946
1946
|
};
|
|
1947
1947
|
};
|
|
1948
|
-
const
|
|
1948
|
+
const se_DisableEnhancedMonitoringInput = (input, context) => {
|
|
1949
1949
|
return {
|
|
1950
|
-
...(input.ShardLevelMetrics != null && {
|
|
1951
|
-
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1952
|
-
}),
|
|
1950
|
+
...(input.ShardLevelMetrics != null && { ShardLevelMetrics: se_MetricsNameList(input.ShardLevelMetrics, context) }),
|
|
1953
1951
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1954
1952
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1955
1953
|
};
|
|
1956
1954
|
};
|
|
1957
|
-
const
|
|
1955
|
+
const se_EnableEnhancedMonitoringInput = (input, context) => {
|
|
1958
1956
|
return {
|
|
1959
|
-
...(input.ShardLevelMetrics != null && {
|
|
1960
|
-
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1961
|
-
}),
|
|
1957
|
+
...(input.ShardLevelMetrics != null && { ShardLevelMetrics: se_MetricsNameList(input.ShardLevelMetrics, context) }),
|
|
1962
1958
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1963
1959
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1964
1960
|
};
|
|
1965
1961
|
};
|
|
1966
|
-
const
|
|
1962
|
+
const se_GetRecordsInput = (input, context) => {
|
|
1967
1963
|
return {
|
|
1968
1964
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1969
1965
|
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
1970
1966
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1971
1967
|
};
|
|
1972
1968
|
};
|
|
1973
|
-
const
|
|
1969
|
+
const se_GetShardIteratorInput = (input, context) => {
|
|
1974
1970
|
return {
|
|
1975
1971
|
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1976
1972
|
...(input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType }),
|
|
@@ -1980,19 +1976,19 @@ const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
|
1980
1976
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1981
1977
|
};
|
|
1982
1978
|
};
|
|
1983
|
-
const
|
|
1979
|
+
const se_IncreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1984
1980
|
return {
|
|
1985
1981
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1986
1982
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1987
1983
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1988
1984
|
};
|
|
1989
1985
|
};
|
|
1990
|
-
const
|
|
1986
|
+
const se_ListShardsInput = (input, context) => {
|
|
1991
1987
|
return {
|
|
1992
1988
|
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1993
1989
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1994
1990
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1995
|
-
...(input.ShardFilter != null && { ShardFilter:
|
|
1991
|
+
...(input.ShardFilter != null && { ShardFilter: se_ShardFilter(input.ShardFilter, context) }),
|
|
1996
1992
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1997
1993
|
...(input.StreamCreationTimestamp != null && {
|
|
1998
1994
|
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
@@ -2000,7 +1996,7 @@ const serializeAws_json1_1ListShardsInput = (input, context) => {
|
|
|
2000
1996
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2001
1997
|
};
|
|
2002
1998
|
};
|
|
2003
|
-
const
|
|
1999
|
+
const se_ListStreamConsumersInput = (input, context) => {
|
|
2004
2000
|
return {
|
|
2005
2001
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2006
2002
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -2010,14 +2006,14 @@ const serializeAws_json1_1ListStreamConsumersInput = (input, context) => {
|
|
|
2010
2006
|
}),
|
|
2011
2007
|
};
|
|
2012
2008
|
};
|
|
2013
|
-
const
|
|
2009
|
+
const se_ListStreamsInput = (input, context) => {
|
|
2014
2010
|
return {
|
|
2015
2011
|
...(input.ExclusiveStartStreamName != null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName }),
|
|
2016
2012
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
2017
2013
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2018
2014
|
};
|
|
2019
2015
|
};
|
|
2020
|
-
const
|
|
2016
|
+
const se_ListTagsForStreamInput = (input, context) => {
|
|
2021
2017
|
return {
|
|
2022
2018
|
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
2023
2019
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
@@ -2025,7 +2021,7 @@ const serializeAws_json1_1ListTagsForStreamInput = (input, context) => {
|
|
|
2025
2021
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2026
2022
|
};
|
|
2027
2023
|
};
|
|
2028
|
-
const
|
|
2024
|
+
const se_MergeShardsInput = (input, context) => {
|
|
2029
2025
|
return {
|
|
2030
2026
|
...(input.AdjacentShardToMerge != null && { AdjacentShardToMerge: input.AdjacentShardToMerge }),
|
|
2031
2027
|
...(input.ShardToMerge != null && { ShardToMerge: input.ShardToMerge }),
|
|
@@ -2033,14 +2029,14 @@ const serializeAws_json1_1MergeShardsInput = (input, context) => {
|
|
|
2033
2029
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2034
2030
|
};
|
|
2035
2031
|
};
|
|
2036
|
-
const
|
|
2032
|
+
const se_MetricsNameList = (input, context) => {
|
|
2037
2033
|
return input
|
|
2038
2034
|
.filter((e) => e != null)
|
|
2039
2035
|
.map((entry) => {
|
|
2040
2036
|
return entry;
|
|
2041
2037
|
});
|
|
2042
2038
|
};
|
|
2043
|
-
const
|
|
2039
|
+
const se_PutRecordInput = (input, context) => {
|
|
2044
2040
|
return {
|
|
2045
2041
|
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
2046
2042
|
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
@@ -2050,48 +2046,48 @@ const serializeAws_json1_1PutRecordInput = (input, context) => {
|
|
|
2050
2046
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2051
2047
|
};
|
|
2052
2048
|
};
|
|
2053
|
-
const
|
|
2049
|
+
const se_PutRecordsInput = (input, context) => {
|
|
2054
2050
|
return {
|
|
2055
|
-
...(input.Records != null && { Records:
|
|
2051
|
+
...(input.Records != null && { Records: se_PutRecordsRequestEntryList(input.Records, context) }),
|
|
2056
2052
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2057
2053
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2058
2054
|
};
|
|
2059
2055
|
};
|
|
2060
|
-
const
|
|
2056
|
+
const se_PutRecordsRequestEntry = (input, context) => {
|
|
2061
2057
|
return {
|
|
2062
2058
|
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
2063
2059
|
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
2064
2060
|
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
2065
2061
|
};
|
|
2066
2062
|
};
|
|
2067
|
-
const
|
|
2063
|
+
const se_PutRecordsRequestEntryList = (input, context) => {
|
|
2068
2064
|
return input
|
|
2069
2065
|
.filter((e) => e != null)
|
|
2070
2066
|
.map((entry) => {
|
|
2071
|
-
return
|
|
2067
|
+
return se_PutRecordsRequestEntry(entry, context);
|
|
2072
2068
|
});
|
|
2073
2069
|
};
|
|
2074
|
-
const
|
|
2070
|
+
const se_RegisterStreamConsumerInput = (input, context) => {
|
|
2075
2071
|
return {
|
|
2076
2072
|
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
2077
2073
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2078
2074
|
};
|
|
2079
2075
|
};
|
|
2080
|
-
const
|
|
2076
|
+
const se_RemoveTagsFromStreamInput = (input, context) => {
|
|
2081
2077
|
return {
|
|
2082
2078
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2083
2079
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2084
|
-
...(input.TagKeys != null && { TagKeys:
|
|
2080
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2085
2081
|
};
|
|
2086
2082
|
};
|
|
2087
|
-
const
|
|
2083
|
+
const se_ShardFilter = (input, context) => {
|
|
2088
2084
|
return {
|
|
2089
2085
|
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
2090
2086
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
2091
2087
|
...(input.Type != null && { Type: input.Type }),
|
|
2092
2088
|
};
|
|
2093
2089
|
};
|
|
2094
|
-
const
|
|
2090
|
+
const se_SplitShardInput = (input, context) => {
|
|
2095
2091
|
return {
|
|
2096
2092
|
...(input.NewStartingHashKey != null && { NewStartingHashKey: input.NewStartingHashKey }),
|
|
2097
2093
|
...(input.ShardToSplit != null && { ShardToSplit: input.ShardToSplit }),
|
|
@@ -2099,14 +2095,14 @@ const serializeAws_json1_1SplitShardInput = (input, context) => {
|
|
|
2099
2095
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2100
2096
|
};
|
|
2101
2097
|
};
|
|
2102
|
-
const
|
|
2098
|
+
const se_StartingPosition = (input, context) => {
|
|
2103
2099
|
return {
|
|
2104
2100
|
...(input.SequenceNumber != null && { SequenceNumber: input.SequenceNumber }),
|
|
2105
2101
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
2106
2102
|
...(input.Type != null && { Type: input.Type }),
|
|
2107
2103
|
};
|
|
2108
2104
|
};
|
|
2109
|
-
const
|
|
2105
|
+
const se_StartStreamEncryptionInput = (input, context) => {
|
|
2110
2106
|
return {
|
|
2111
2107
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2112
2108
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
@@ -2114,7 +2110,7 @@ const serializeAws_json1_1StartStreamEncryptionInput = (input, context) => {
|
|
|
2114
2110
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2115
2111
|
};
|
|
2116
2112
|
};
|
|
2117
|
-
const
|
|
2113
|
+
const se_StopStreamEncryptionInput = (input, context) => {
|
|
2118
2114
|
return {
|
|
2119
2115
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2120
2116
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
@@ -2122,28 +2118,26 @@ const serializeAws_json1_1StopStreamEncryptionInput = (input, context) => {
|
|
|
2122
2118
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2123
2119
|
};
|
|
2124
2120
|
};
|
|
2125
|
-
const
|
|
2121
|
+
const se_StreamModeDetails = (input, context) => {
|
|
2126
2122
|
return {
|
|
2127
2123
|
...(input.StreamMode != null && { StreamMode: input.StreamMode }),
|
|
2128
2124
|
};
|
|
2129
2125
|
};
|
|
2130
|
-
const
|
|
2126
|
+
const se_SubscribeToShardInput = (input, context) => {
|
|
2131
2127
|
return {
|
|
2132
2128
|
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
2133
2129
|
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
2134
|
-
...(input.StartingPosition != null && {
|
|
2135
|
-
StartingPosition: serializeAws_json1_1StartingPosition(input.StartingPosition, context),
|
|
2136
|
-
}),
|
|
2130
|
+
...(input.StartingPosition != null && { StartingPosition: se_StartingPosition(input.StartingPosition, context) }),
|
|
2137
2131
|
};
|
|
2138
2132
|
};
|
|
2139
|
-
const
|
|
2133
|
+
const se_TagKeyList = (input, context) => {
|
|
2140
2134
|
return input
|
|
2141
2135
|
.filter((e) => e != null)
|
|
2142
2136
|
.map((entry) => {
|
|
2143
2137
|
return entry;
|
|
2144
2138
|
});
|
|
2145
2139
|
};
|
|
2146
|
-
const
|
|
2140
|
+
const se_TagMap = (input, context) => {
|
|
2147
2141
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2148
2142
|
if (value === null) {
|
|
2149
2143
|
return acc;
|
|
@@ -2152,7 +2146,7 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
2152
2146
|
return acc;
|
|
2153
2147
|
}, {});
|
|
2154
2148
|
};
|
|
2155
|
-
const
|
|
2149
|
+
const se_UpdateShardCountInput = (input, context) => {
|
|
2156
2150
|
return {
|
|
2157
2151
|
...(input.ScalingType != null && { ScalingType: input.ScalingType }),
|
|
2158
2152
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
@@ -2160,38 +2154,38 @@ const serializeAws_json1_1UpdateShardCountInput = (input, context) => {
|
|
|
2160
2154
|
...(input.TargetShardCount != null && { TargetShardCount: input.TargetShardCount }),
|
|
2161
2155
|
};
|
|
2162
2156
|
};
|
|
2163
|
-
const
|
|
2157
|
+
const se_UpdateStreamModeInput = (input, context) => {
|
|
2164
2158
|
return {
|
|
2165
2159
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2166
2160
|
...(input.StreamModeDetails != null && {
|
|
2167
|
-
StreamModeDetails:
|
|
2161
|
+
StreamModeDetails: se_StreamModeDetails(input.StreamModeDetails, context),
|
|
2168
2162
|
}),
|
|
2169
2163
|
};
|
|
2170
2164
|
};
|
|
2171
|
-
const
|
|
2165
|
+
const de_AccessDeniedException = (output, context) => {
|
|
2172
2166
|
return {
|
|
2173
2167
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2174
2168
|
};
|
|
2175
2169
|
};
|
|
2176
|
-
const
|
|
2170
|
+
const de_ChildShard = (output, context) => {
|
|
2177
2171
|
return {
|
|
2178
|
-
HashKeyRange: output.HashKeyRange != null ?
|
|
2179
|
-
ParentShards: output.ParentShards != null ?
|
|
2172
|
+
HashKeyRange: output.HashKeyRange != null ? de_HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2173
|
+
ParentShards: output.ParentShards != null ? de_ShardIdList(output.ParentShards, context) : undefined,
|
|
2180
2174
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2181
2175
|
};
|
|
2182
2176
|
};
|
|
2183
|
-
const
|
|
2177
|
+
const de_ChildShardList = (output, context) => {
|
|
2184
2178
|
const retVal = (output || [])
|
|
2185
2179
|
.filter((e) => e != null)
|
|
2186
2180
|
.map((entry) => {
|
|
2187
2181
|
if (entry === null) {
|
|
2188
2182
|
return null;
|
|
2189
2183
|
}
|
|
2190
|
-
return
|
|
2184
|
+
return de_ChildShard(entry, context);
|
|
2191
2185
|
});
|
|
2192
2186
|
return retVal;
|
|
2193
2187
|
};
|
|
2194
|
-
const
|
|
2188
|
+
const de_Consumer = (output, context) => {
|
|
2195
2189
|
return {
|
|
2196
2190
|
ConsumerARN: (0, smithy_client_1.expectString)(output.ConsumerARN),
|
|
2197
2191
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp != null
|
|
@@ -2201,7 +2195,7 @@ const deserializeAws_json1_1Consumer = (output, context) => {
|
|
|
2201
2195
|
ConsumerStatus: (0, smithy_client_1.expectString)(output.ConsumerStatus),
|
|
2202
2196
|
};
|
|
2203
2197
|
};
|
|
2204
|
-
const
|
|
2198
|
+
const de_ConsumerDescription = (output, context) => {
|
|
2205
2199
|
return {
|
|
2206
2200
|
ConsumerARN: (0, smithy_client_1.expectString)(output.ConsumerARN),
|
|
2207
2201
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp != null
|
|
@@ -2212,18 +2206,18 @@ const deserializeAws_json1_1ConsumerDescription = (output, context) => {
|
|
|
2212
2206
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2213
2207
|
};
|
|
2214
2208
|
};
|
|
2215
|
-
const
|
|
2209
|
+
const de_ConsumerList = (output, context) => {
|
|
2216
2210
|
const retVal = (output || [])
|
|
2217
2211
|
.filter((e) => e != null)
|
|
2218
2212
|
.map((entry) => {
|
|
2219
2213
|
if (entry === null) {
|
|
2220
2214
|
return null;
|
|
2221
2215
|
}
|
|
2222
|
-
return
|
|
2216
|
+
return de_Consumer(entry, context);
|
|
2223
2217
|
});
|
|
2224
2218
|
return retVal;
|
|
2225
2219
|
};
|
|
2226
|
-
const
|
|
2220
|
+
const de_DescribeLimitsOutput = (output, context) => {
|
|
2227
2221
|
return {
|
|
2228
2222
|
OnDemandStreamCount: (0, smithy_client_1.expectInt32)(output.OnDemandStreamCount),
|
|
2229
2223
|
OnDemandStreamCountLimit: (0, smithy_client_1.expectInt32)(output.OnDemandStreamCountLimit),
|
|
@@ -2231,160 +2225,152 @@ const deserializeAws_json1_1DescribeLimitsOutput = (output, context) => {
|
|
|
2231
2225
|
ShardLimit: (0, smithy_client_1.expectInt32)(output.ShardLimit),
|
|
2232
2226
|
};
|
|
2233
2227
|
};
|
|
2234
|
-
const
|
|
2228
|
+
const de_DescribeStreamConsumerOutput = (output, context) => {
|
|
2235
2229
|
return {
|
|
2236
|
-
ConsumerDescription: output.ConsumerDescription != null
|
|
2237
|
-
? deserializeAws_json1_1ConsumerDescription(output.ConsumerDescription, context)
|
|
2238
|
-
: undefined,
|
|
2230
|
+
ConsumerDescription: output.ConsumerDescription != null ? de_ConsumerDescription(output.ConsumerDescription, context) : undefined,
|
|
2239
2231
|
};
|
|
2240
2232
|
};
|
|
2241
|
-
const
|
|
2233
|
+
const de_DescribeStreamOutput = (output, context) => {
|
|
2242
2234
|
return {
|
|
2243
|
-
StreamDescription: output.StreamDescription != null
|
|
2244
|
-
? deserializeAws_json1_1StreamDescription(output.StreamDescription, context)
|
|
2245
|
-
: undefined,
|
|
2235
|
+
StreamDescription: output.StreamDescription != null ? de_StreamDescription(output.StreamDescription, context) : undefined,
|
|
2246
2236
|
};
|
|
2247
2237
|
};
|
|
2248
|
-
const
|
|
2238
|
+
const de_DescribeStreamSummaryOutput = (output, context) => {
|
|
2249
2239
|
return {
|
|
2250
2240
|
StreamDescriptionSummary: output.StreamDescriptionSummary != null
|
|
2251
|
-
?
|
|
2241
|
+
? de_StreamDescriptionSummary(output.StreamDescriptionSummary, context)
|
|
2252
2242
|
: undefined,
|
|
2253
2243
|
};
|
|
2254
2244
|
};
|
|
2255
|
-
const
|
|
2245
|
+
const de_EnhancedMetrics = (output, context) => {
|
|
2256
2246
|
return {
|
|
2257
|
-
ShardLevelMetrics: output.ShardLevelMetrics != null
|
|
2258
|
-
? deserializeAws_json1_1MetricsNameList(output.ShardLevelMetrics, context)
|
|
2259
|
-
: undefined,
|
|
2247
|
+
ShardLevelMetrics: output.ShardLevelMetrics != null ? de_MetricsNameList(output.ShardLevelMetrics, context) : undefined,
|
|
2260
2248
|
};
|
|
2261
2249
|
};
|
|
2262
|
-
const
|
|
2250
|
+
const de_EnhancedMonitoringList = (output, context) => {
|
|
2263
2251
|
const retVal = (output || [])
|
|
2264
2252
|
.filter((e) => e != null)
|
|
2265
2253
|
.map((entry) => {
|
|
2266
2254
|
if (entry === null) {
|
|
2267
2255
|
return null;
|
|
2268
2256
|
}
|
|
2269
|
-
return
|
|
2257
|
+
return de_EnhancedMetrics(entry, context);
|
|
2270
2258
|
});
|
|
2271
2259
|
return retVal;
|
|
2272
2260
|
};
|
|
2273
|
-
const
|
|
2261
|
+
const de_EnhancedMonitoringOutput = (output, context) => {
|
|
2274
2262
|
return {
|
|
2275
2263
|
CurrentShardLevelMetrics: output.CurrentShardLevelMetrics != null
|
|
2276
|
-
?
|
|
2264
|
+
? de_MetricsNameList(output.CurrentShardLevelMetrics, context)
|
|
2277
2265
|
: undefined,
|
|
2278
2266
|
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics != null
|
|
2279
|
-
?
|
|
2267
|
+
? de_MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2280
2268
|
: undefined,
|
|
2281
2269
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2282
2270
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2283
2271
|
};
|
|
2284
2272
|
};
|
|
2285
|
-
const
|
|
2273
|
+
const de_ExpiredIteratorException = (output, context) => {
|
|
2286
2274
|
return {
|
|
2287
2275
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2288
2276
|
};
|
|
2289
2277
|
};
|
|
2290
|
-
const
|
|
2278
|
+
const de_ExpiredNextTokenException = (output, context) => {
|
|
2291
2279
|
return {
|
|
2292
2280
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2293
2281
|
};
|
|
2294
2282
|
};
|
|
2295
|
-
const
|
|
2283
|
+
const de_GetRecordsOutput = (output, context) => {
|
|
2296
2284
|
return {
|
|
2297
|
-
ChildShards: output.ChildShards != null ?
|
|
2285
|
+
ChildShards: output.ChildShards != null ? de_ChildShardList(output.ChildShards, context) : undefined,
|
|
2298
2286
|
MillisBehindLatest: (0, smithy_client_1.expectLong)(output.MillisBehindLatest),
|
|
2299
2287
|
NextShardIterator: (0, smithy_client_1.expectString)(output.NextShardIterator),
|
|
2300
|
-
Records: output.Records != null ?
|
|
2288
|
+
Records: output.Records != null ? de_RecordList(output.Records, context) : undefined,
|
|
2301
2289
|
};
|
|
2302
2290
|
};
|
|
2303
|
-
const
|
|
2291
|
+
const de_GetShardIteratorOutput = (output, context) => {
|
|
2304
2292
|
return {
|
|
2305
2293
|
ShardIterator: (0, smithy_client_1.expectString)(output.ShardIterator),
|
|
2306
2294
|
};
|
|
2307
2295
|
};
|
|
2308
|
-
const
|
|
2296
|
+
const de_HashKeyRange = (output, context) => {
|
|
2309
2297
|
return {
|
|
2310
2298
|
EndingHashKey: (0, smithy_client_1.expectString)(output.EndingHashKey),
|
|
2311
2299
|
StartingHashKey: (0, smithy_client_1.expectString)(output.StartingHashKey),
|
|
2312
2300
|
};
|
|
2313
2301
|
};
|
|
2314
|
-
const
|
|
2302
|
+
const de_InternalFailureException = (output, context) => {
|
|
2315
2303
|
return {
|
|
2316
2304
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2317
2305
|
};
|
|
2318
2306
|
};
|
|
2319
|
-
const
|
|
2307
|
+
const de_InvalidArgumentException = (output, context) => {
|
|
2320
2308
|
return {
|
|
2321
2309
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2322
2310
|
};
|
|
2323
2311
|
};
|
|
2324
|
-
const
|
|
2312
|
+
const de_KMSAccessDeniedException = (output, context) => {
|
|
2325
2313
|
return {
|
|
2326
2314
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2327
2315
|
};
|
|
2328
2316
|
};
|
|
2329
|
-
const
|
|
2317
|
+
const de_KMSDisabledException = (output, context) => {
|
|
2330
2318
|
return {
|
|
2331
2319
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2332
2320
|
};
|
|
2333
2321
|
};
|
|
2334
|
-
const
|
|
2322
|
+
const de_KMSInvalidStateException = (output, context) => {
|
|
2335
2323
|
return {
|
|
2336
2324
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2337
2325
|
};
|
|
2338
2326
|
};
|
|
2339
|
-
const
|
|
2327
|
+
const de_KMSNotFoundException = (output, context) => {
|
|
2340
2328
|
return {
|
|
2341
2329
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2342
2330
|
};
|
|
2343
2331
|
};
|
|
2344
|
-
const
|
|
2332
|
+
const de_KMSOptInRequired = (output, context) => {
|
|
2345
2333
|
return {
|
|
2346
2334
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2347
2335
|
};
|
|
2348
2336
|
};
|
|
2349
|
-
const
|
|
2337
|
+
const de_KMSThrottlingException = (output, context) => {
|
|
2350
2338
|
return {
|
|
2351
2339
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2352
2340
|
};
|
|
2353
2341
|
};
|
|
2354
|
-
const
|
|
2342
|
+
const de_LimitExceededException = (output, context) => {
|
|
2355
2343
|
return {
|
|
2356
2344
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2357
2345
|
};
|
|
2358
2346
|
};
|
|
2359
|
-
const
|
|
2347
|
+
const de_ListShardsOutput = (output, context) => {
|
|
2360
2348
|
return {
|
|
2361
2349
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2362
|
-
Shards: output.Shards != null ?
|
|
2350
|
+
Shards: output.Shards != null ? de_ShardList(output.Shards, context) : undefined,
|
|
2363
2351
|
};
|
|
2364
2352
|
};
|
|
2365
|
-
const
|
|
2353
|
+
const de_ListStreamConsumersOutput = (output, context) => {
|
|
2366
2354
|
return {
|
|
2367
|
-
Consumers: output.Consumers != null ?
|
|
2355
|
+
Consumers: output.Consumers != null ? de_ConsumerList(output.Consumers, context) : undefined,
|
|
2368
2356
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2369
2357
|
};
|
|
2370
2358
|
};
|
|
2371
|
-
const
|
|
2359
|
+
const de_ListStreamsOutput = (output, context) => {
|
|
2372
2360
|
return {
|
|
2373
2361
|
HasMoreStreams: (0, smithy_client_1.expectBoolean)(output.HasMoreStreams),
|
|
2374
2362
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2375
|
-
StreamNames: output.StreamNames != null ?
|
|
2376
|
-
StreamSummaries: output.StreamSummaries != null
|
|
2377
|
-
? deserializeAws_json1_1StreamSummaryList(output.StreamSummaries, context)
|
|
2378
|
-
: undefined,
|
|
2363
|
+
StreamNames: output.StreamNames != null ? de_StreamNameList(output.StreamNames, context) : undefined,
|
|
2364
|
+
StreamSummaries: output.StreamSummaries != null ? de_StreamSummaryList(output.StreamSummaries, context) : undefined,
|
|
2379
2365
|
};
|
|
2380
2366
|
};
|
|
2381
|
-
const
|
|
2367
|
+
const de_ListTagsForStreamOutput = (output, context) => {
|
|
2382
2368
|
return {
|
|
2383
2369
|
HasMoreTags: (0, smithy_client_1.expectBoolean)(output.HasMoreTags),
|
|
2384
|
-
Tags: output.Tags != null ?
|
|
2370
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2385
2371
|
};
|
|
2386
2372
|
};
|
|
2387
|
-
const
|
|
2373
|
+
const de_MetricsNameList = (output, context) => {
|
|
2388
2374
|
const retVal = (output || [])
|
|
2389
2375
|
.filter((e) => e != null)
|
|
2390
2376
|
.map((entry) => {
|
|
@@ -2395,26 +2381,26 @@ const deserializeAws_json1_1MetricsNameList = (output, context) => {
|
|
|
2395
2381
|
});
|
|
2396
2382
|
return retVal;
|
|
2397
2383
|
};
|
|
2398
|
-
const
|
|
2384
|
+
const de_ProvisionedThroughputExceededException = (output, context) => {
|
|
2399
2385
|
return {
|
|
2400
2386
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2401
2387
|
};
|
|
2402
2388
|
};
|
|
2403
|
-
const
|
|
2389
|
+
const de_PutRecordOutput = (output, context) => {
|
|
2404
2390
|
return {
|
|
2405
2391
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2406
2392
|
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
2407
2393
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2408
2394
|
};
|
|
2409
2395
|
};
|
|
2410
|
-
const
|
|
2396
|
+
const de_PutRecordsOutput = (output, context) => {
|
|
2411
2397
|
return {
|
|
2412
2398
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2413
2399
|
FailedRecordCount: (0, smithy_client_1.expectInt32)(output.FailedRecordCount),
|
|
2414
|
-
Records: output.Records != null ?
|
|
2400
|
+
Records: output.Records != null ? de_PutRecordsResultEntryList(output.Records, context) : undefined,
|
|
2415
2401
|
};
|
|
2416
2402
|
};
|
|
2417
|
-
const
|
|
2403
|
+
const de_PutRecordsResultEntry = (output, context) => {
|
|
2418
2404
|
return {
|
|
2419
2405
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
2420
2406
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
@@ -2422,18 +2408,18 @@ const deserializeAws_json1_1PutRecordsResultEntry = (output, context) => {
|
|
|
2422
2408
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2423
2409
|
};
|
|
2424
2410
|
};
|
|
2425
|
-
const
|
|
2411
|
+
const de_PutRecordsResultEntryList = (output, context) => {
|
|
2426
2412
|
const retVal = (output || [])
|
|
2427
2413
|
.filter((e) => e != null)
|
|
2428
2414
|
.map((entry) => {
|
|
2429
2415
|
if (entry === null) {
|
|
2430
2416
|
return null;
|
|
2431
2417
|
}
|
|
2432
|
-
return
|
|
2418
|
+
return de_PutRecordsResultEntry(entry, context);
|
|
2433
2419
|
});
|
|
2434
2420
|
return retVal;
|
|
2435
2421
|
};
|
|
2436
|
-
const
|
|
2422
|
+
const de__Record = (output, context) => {
|
|
2437
2423
|
return {
|
|
2438
2424
|
ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp != null
|
|
2439
2425
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateArrivalTimestamp)))
|
|
@@ -2444,50 +2430,48 @@ const deserializeAws_json1_1_Record = (output, context) => {
|
|
|
2444
2430
|
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
2445
2431
|
};
|
|
2446
2432
|
};
|
|
2447
|
-
const
|
|
2433
|
+
const de_RecordList = (output, context) => {
|
|
2448
2434
|
const retVal = (output || [])
|
|
2449
2435
|
.filter((e) => e != null)
|
|
2450
2436
|
.map((entry) => {
|
|
2451
2437
|
if (entry === null) {
|
|
2452
2438
|
return null;
|
|
2453
2439
|
}
|
|
2454
|
-
return
|
|
2440
|
+
return de__Record(entry, context);
|
|
2455
2441
|
});
|
|
2456
2442
|
return retVal;
|
|
2457
2443
|
};
|
|
2458
|
-
const
|
|
2444
|
+
const de_RegisterStreamConsumerOutput = (output, context) => {
|
|
2459
2445
|
return {
|
|
2460
|
-
Consumer: output.Consumer != null ?
|
|
2446
|
+
Consumer: output.Consumer != null ? de_Consumer(output.Consumer, context) : undefined,
|
|
2461
2447
|
};
|
|
2462
2448
|
};
|
|
2463
|
-
const
|
|
2449
|
+
const de_ResourceInUseException = (output, context) => {
|
|
2464
2450
|
return {
|
|
2465
2451
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2466
2452
|
};
|
|
2467
2453
|
};
|
|
2468
|
-
const
|
|
2454
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2469
2455
|
return {
|
|
2470
2456
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2471
2457
|
};
|
|
2472
2458
|
};
|
|
2473
|
-
const
|
|
2459
|
+
const de_SequenceNumberRange = (output, context) => {
|
|
2474
2460
|
return {
|
|
2475
2461
|
EndingSequenceNumber: (0, smithy_client_1.expectString)(output.EndingSequenceNumber),
|
|
2476
2462
|
StartingSequenceNumber: (0, smithy_client_1.expectString)(output.StartingSequenceNumber),
|
|
2477
2463
|
};
|
|
2478
2464
|
};
|
|
2479
|
-
const
|
|
2465
|
+
const de_Shard = (output, context) => {
|
|
2480
2466
|
return {
|
|
2481
2467
|
AdjacentParentShardId: (0, smithy_client_1.expectString)(output.AdjacentParentShardId),
|
|
2482
|
-
HashKeyRange: output.HashKeyRange != null ?
|
|
2468
|
+
HashKeyRange: output.HashKeyRange != null ? de_HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2483
2469
|
ParentShardId: (0, smithy_client_1.expectString)(output.ParentShardId),
|
|
2484
|
-
SequenceNumberRange: output.SequenceNumberRange != null
|
|
2485
|
-
? deserializeAws_json1_1SequenceNumberRange(output.SequenceNumberRange, context)
|
|
2486
|
-
: undefined,
|
|
2470
|
+
SequenceNumberRange: output.SequenceNumberRange != null ? de_SequenceNumberRange(output.SequenceNumberRange, context) : undefined,
|
|
2487
2471
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2488
2472
|
};
|
|
2489
2473
|
};
|
|
2490
|
-
const
|
|
2474
|
+
const de_ShardIdList = (output, context) => {
|
|
2491
2475
|
const retVal = (output || [])
|
|
2492
2476
|
.filter((e) => e != null)
|
|
2493
2477
|
.map((entry) => {
|
|
@@ -2498,45 +2482,39 @@ const deserializeAws_json1_1ShardIdList = (output, context) => {
|
|
|
2498
2482
|
});
|
|
2499
2483
|
return retVal;
|
|
2500
2484
|
};
|
|
2501
|
-
const
|
|
2485
|
+
const de_ShardList = (output, context) => {
|
|
2502
2486
|
const retVal = (output || [])
|
|
2503
2487
|
.filter((e) => e != null)
|
|
2504
2488
|
.map((entry) => {
|
|
2505
2489
|
if (entry === null) {
|
|
2506
2490
|
return null;
|
|
2507
2491
|
}
|
|
2508
|
-
return
|
|
2492
|
+
return de_Shard(entry, context);
|
|
2509
2493
|
});
|
|
2510
2494
|
return retVal;
|
|
2511
2495
|
};
|
|
2512
|
-
const
|
|
2496
|
+
const de_StreamDescription = (output, context) => {
|
|
2513
2497
|
return {
|
|
2514
2498
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2515
|
-
EnhancedMonitoring: output.EnhancedMonitoring != null
|
|
2516
|
-
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
2517
|
-
: undefined,
|
|
2499
|
+
EnhancedMonitoring: output.EnhancedMonitoring != null ? de_EnhancedMonitoringList(output.EnhancedMonitoring, context) : undefined,
|
|
2518
2500
|
HasMoreShards: (0, smithy_client_1.expectBoolean)(output.HasMoreShards),
|
|
2519
2501
|
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2520
2502
|
RetentionPeriodHours: (0, smithy_client_1.expectInt32)(output.RetentionPeriodHours),
|
|
2521
|
-
Shards: output.Shards != null ?
|
|
2503
|
+
Shards: output.Shards != null ? de_ShardList(output.Shards, context) : undefined,
|
|
2522
2504
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2523
2505
|
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2524
2506
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2525
2507
|
: undefined,
|
|
2526
|
-
StreamModeDetails: output.StreamModeDetails != null
|
|
2527
|
-
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2528
|
-
: undefined,
|
|
2508
|
+
StreamModeDetails: output.StreamModeDetails != null ? de_StreamModeDetails(output.StreamModeDetails, context) : undefined,
|
|
2529
2509
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2530
2510
|
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2531
2511
|
};
|
|
2532
2512
|
};
|
|
2533
|
-
const
|
|
2513
|
+
const de_StreamDescriptionSummary = (output, context) => {
|
|
2534
2514
|
return {
|
|
2535
2515
|
ConsumerCount: (0, smithy_client_1.expectInt32)(output.ConsumerCount),
|
|
2536
2516
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2537
|
-
EnhancedMonitoring: output.EnhancedMonitoring != null
|
|
2538
|
-
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
2539
|
-
: undefined,
|
|
2517
|
+
EnhancedMonitoring: output.EnhancedMonitoring != null ? de_EnhancedMonitoringList(output.EnhancedMonitoring, context) : undefined,
|
|
2540
2518
|
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2541
2519
|
OpenShardCount: (0, smithy_client_1.expectInt32)(output.OpenShardCount),
|
|
2542
2520
|
RetentionPeriodHours: (0, smithy_client_1.expectInt32)(output.RetentionPeriodHours),
|
|
@@ -2544,19 +2522,17 @@ const deserializeAws_json1_1StreamDescriptionSummary = (output, context) => {
|
|
|
2544
2522
|
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2545
2523
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2546
2524
|
: undefined,
|
|
2547
|
-
StreamModeDetails: output.StreamModeDetails != null
|
|
2548
|
-
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2549
|
-
: undefined,
|
|
2525
|
+
StreamModeDetails: output.StreamModeDetails != null ? de_StreamModeDetails(output.StreamModeDetails, context) : undefined,
|
|
2550
2526
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2551
2527
|
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2552
2528
|
};
|
|
2553
2529
|
};
|
|
2554
|
-
const
|
|
2530
|
+
const de_StreamModeDetails = (output, context) => {
|
|
2555
2531
|
return {
|
|
2556
2532
|
StreamMode: (0, smithy_client_1.expectString)(output.StreamMode),
|
|
2557
2533
|
};
|
|
2558
2534
|
};
|
|
2559
|
-
const
|
|
2535
|
+
const de_StreamNameList = (output, context) => {
|
|
2560
2536
|
const retVal = (output || [])
|
|
2561
2537
|
.filter((e) => e != null)
|
|
2562
2538
|
.map((entry) => {
|
|
@@ -2567,56 +2543,54 @@ const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
|
2567
2543
|
});
|
|
2568
2544
|
return retVal;
|
|
2569
2545
|
};
|
|
2570
|
-
const
|
|
2546
|
+
const de_StreamSummary = (output, context) => {
|
|
2571
2547
|
return {
|
|
2572
2548
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2573
2549
|
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2574
2550
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2575
2551
|
: undefined,
|
|
2576
|
-
StreamModeDetails: output.StreamModeDetails != null
|
|
2577
|
-
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2578
|
-
: undefined,
|
|
2552
|
+
StreamModeDetails: output.StreamModeDetails != null ? de_StreamModeDetails(output.StreamModeDetails, context) : undefined,
|
|
2579
2553
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2580
2554
|
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2581
2555
|
};
|
|
2582
2556
|
};
|
|
2583
|
-
const
|
|
2557
|
+
const de_StreamSummaryList = (output, context) => {
|
|
2584
2558
|
const retVal = (output || [])
|
|
2585
2559
|
.filter((e) => e != null)
|
|
2586
2560
|
.map((entry) => {
|
|
2587
2561
|
if (entry === null) {
|
|
2588
2562
|
return null;
|
|
2589
2563
|
}
|
|
2590
|
-
return
|
|
2564
|
+
return de_StreamSummary(entry, context);
|
|
2591
2565
|
});
|
|
2592
2566
|
return retVal;
|
|
2593
2567
|
};
|
|
2594
|
-
const
|
|
2568
|
+
const de_SubscribeToShardEvent = (output, context) => {
|
|
2595
2569
|
return {
|
|
2596
|
-
ChildShards: output.ChildShards != null ?
|
|
2570
|
+
ChildShards: output.ChildShards != null ? de_ChildShardList(output.ChildShards, context) : undefined,
|
|
2597
2571
|
ContinuationSequenceNumber: (0, smithy_client_1.expectString)(output.ContinuationSequenceNumber),
|
|
2598
2572
|
MillisBehindLatest: (0, smithy_client_1.expectLong)(output.MillisBehindLatest),
|
|
2599
|
-
Records: output.Records != null ?
|
|
2573
|
+
Records: output.Records != null ? de_RecordList(output.Records, context) : undefined,
|
|
2600
2574
|
};
|
|
2601
2575
|
};
|
|
2602
|
-
const
|
|
2576
|
+
const de_Tag = (output, context) => {
|
|
2603
2577
|
return {
|
|
2604
2578
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2605
2579
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2606
2580
|
};
|
|
2607
2581
|
};
|
|
2608
|
-
const
|
|
2582
|
+
const de_TagList = (output, context) => {
|
|
2609
2583
|
const retVal = (output || [])
|
|
2610
2584
|
.filter((e) => e != null)
|
|
2611
2585
|
.map((entry) => {
|
|
2612
2586
|
if (entry === null) {
|
|
2613
2587
|
return null;
|
|
2614
2588
|
}
|
|
2615
|
-
return
|
|
2589
|
+
return de_Tag(entry, context);
|
|
2616
2590
|
});
|
|
2617
2591
|
return retVal;
|
|
2618
2592
|
};
|
|
2619
|
-
const
|
|
2593
|
+
const de_UpdateShardCountOutput = (output, context) => {
|
|
2620
2594
|
return {
|
|
2621
2595
|
CurrentShardCount: (0, smithy_client_1.expectInt32)(output.CurrentShardCount),
|
|
2622
2596
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
@@ -2624,7 +2598,7 @@ const deserializeAws_json1_1UpdateShardCountOutput = (output, context) => {
|
|
|
2624
2598
|
TargetShardCount: (0, smithy_client_1.expectInt32)(output.TargetShardCount),
|
|
2625
2599
|
};
|
|
2626
2600
|
};
|
|
2627
|
-
const
|
|
2601
|
+
const de_ValidationException = (output, context) => {
|
|
2628
2602
|
return {
|
|
2629
2603
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2630
2604
|
};
|