@aws-sdk/client-kinesis 3.30.0 → 3.34.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/CHANGELOG.md +35 -0
- package/dist/cjs/KinesisClient.js +14 -14
- package/dist/cjs/KinesisClient.js.map +1 -1
- package/dist/cjs/commands/AddTagsToStreamCommand.js +3 -3
- package/dist/cjs/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/cjs/commands/CreateStreamCommand.js +3 -3
- package/dist/cjs/commands/CreateStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStreamCommand.js +3 -3
- package/dist/cjs/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLimitsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/GetRecordsCommand.js +3 -3
- package/dist/cjs/commands/GetRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/GetShardIteratorCommand.js +3 -3
- package/dist/cjs/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/ListShardsCommand.js +3 -3
- package/dist/cjs/commands/ListShardsCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamConsumersCommand.js +3 -3
- package/dist/cjs/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamsCommand.js +3 -3
- package/dist/cjs/commands/ListStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForStreamCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/cjs/commands/MergeShardsCommand.js +3 -3
- package/dist/cjs/commands/MergeShardsCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordCommand.js +3 -3
- package/dist/cjs/commands/PutRecordCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordsCommand.js +3 -3
- package/dist/cjs/commands/PutRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js +3 -3
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/cjs/commands/SplitShardCommand.js +3 -3
- package/dist/cjs/commands/SplitShardCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/StopStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/SubscribeToShardCommand.js +3 -3
- package/dist/cjs/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateShardCountCommand.js +3 -3
- package/dist/cjs/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +43 -43
- package/dist/cjs/protocols/Aws_json1_1.js +82 -82
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamExists.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamNotExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/es/Kinesis.js +1 -6
- package/dist/es/Kinesis.js.map +1 -1
- package/dist/es/KinesisClient.js +1 -11
- package/dist/es/KinesisClient.js.map +1 -1
- package/dist/es/commands/AddTagsToStreamCommand.js +2 -35
- package/dist/es/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/es/commands/CreateStreamCommand.js +2 -67
- package/dist/es/commands/CreateStreamCommand.js.map +1 -1
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -32
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/DeleteStreamCommand.js +2 -45
- package/dist/es/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/es/commands/DeregisterStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeLimitsCommand.js +2 -30
- package/dist/es/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamCommand.js +2 -43
- package/dist/es/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamSummaryCommand.js +2 -34
- package/dist/es/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/GetRecordsCommand.js +2 -73
- package/dist/es/commands/GetRecordsCommand.js.map +1 -1
- package/dist/es/commands/GetShardIteratorCommand.js +2 -60
- package/dist/es/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -35
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/ListShardsCommand.js +2 -35
- package/dist/es/commands/ListShardsCommand.js.map +1 -1
- package/dist/es/commands/ListStreamConsumersCommand.js +2 -29
- package/dist/es/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/es/commands/ListStreamsCommand.js +2 -42
- package/dist/es/commands/ListStreamsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForStreamCommand.js +2 -28
- package/dist/es/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/es/commands/MergeShardsCommand.js +2 -62
- package/dist/es/commands/MergeShardsCommand.js.map +1 -1
- package/dist/es/commands/PutRecordCommand.js +2 -62
- package/dist/es/commands/PutRecordCommand.js.map +1 -1
- package/dist/es/commands/PutRecordsCommand.js +2 -82
- package/dist/es/commands/PutRecordsCommand.js.map +1 -1
- package/dist/es/commands/RegisterStreamConsumerCommand.js +2 -40
- package/dist/es/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/RemoveTagsFromStreamCommand.js +2 -32
- package/dist/es/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/es/commands/SplitShardCommand.js +2 -68
- package/dist/es/commands/SplitShardCommand.js.map +1 -1
- package/dist/es/commands/StartStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/StopStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/SubscribeToShardCommand.js +2 -48
- package/dist/es/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/es/commands/UpdateShardCountCommand.js +2 -70
- package/dist/es/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -225
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +43 -43
- package/dist/es/pagination/ListStreamConsumersPaginator.js +16 -28
- package/dist/es/pagination/ListStreamConsumersPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +698 -703
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForStreamExists.js +8 -17
- package/dist/es/waiters/waitForStreamExists.js.map +1 -1
- package/dist/es/waiters/waitForStreamNotExists.js +8 -17
- package/dist/es/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +43 -43
- package/protocols/Aws_json1_1.ts +10 -6
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_1AddTagsToStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AddTagsToStreamCommand = function (input, context
|
|
|
9
9
|
"x-amz-target": "Kinesis_20131202.AddTagsToStream",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AddTagsToStreamInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateStreamCommand = function (input, context) {
|
|
|
20
20
|
"x-amz-target": "Kinesis_20131202.CreateStream",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateStreamInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (
|
|
|
31
31
|
"x-amz-target": "Kinesis_20131202.DecreaseStreamRetentionPeriod",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1DecreaseStreamRetentionPeriodInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeleteStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeleteStreamCommand = function (input, context) {
|
|
|
42
42
|
"x-amz-target": "Kinesis_20131202.DeleteStream",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeleteStreamInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeregisterStreamConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeregisterStreamConsumerCommand = function (input
|
|
|
53
53
|
"x-amz-target": "Kinesis_20131202.DeregisterStreamConsumer",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeregisterStreamConsumerInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DescribeLimitsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DescribeLimitsCommand = function (input, context)
|
|
|
64
64
|
"x-amz-target": "Kinesis_20131202.DescribeLimits",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DescribeLimitsInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeStreamCommand = function (input, context)
|
|
|
75
75
|
"x-amz-target": "Kinesis_20131202.DescribeStream",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeStreamInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DescribeStreamConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DescribeStreamConsumerCommand = function (input,
|
|
|
86
86
|
"x-amz-target": "Kinesis_20131202.DescribeStreamConsumer",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DescribeStreamConsumerInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeStreamSummaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeStreamSummaryCommand = function (input, c
|
|
|
97
97
|
"x-amz-target": "Kinesis_20131202.DescribeStreamSummary",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeStreamSummaryInput(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DisableEnhancedMonitoringCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DisableEnhancedMonitoringCommand = function (inpu
|
|
|
108
108
|
"x-amz-target": "Kinesis_20131202.DisableEnhancedMonitoring",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DisableEnhancedMonitoringInput(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1EnableEnhancedMonitoringCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1EnableEnhancedMonitoringCommand = function (input
|
|
|
119
119
|
"x-amz-target": "Kinesis_20131202.EnableEnhancedMonitoring",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1EnableEnhancedMonitoringInput(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1GetRecordsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1GetRecordsCommand = function (input, context) { r
|
|
|
130
130
|
"x-amz-target": "Kinesis_20131202.GetRecords",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1GetRecordsInput(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1GetShardIteratorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1GetShardIteratorCommand = function (input, contex
|
|
|
141
141
|
"x-amz-target": "Kinesis_20131202.GetShardIterator",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1GetShardIteratorInput(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (
|
|
|
152
152
|
"x-amz-target": "Kinesis_20131202.IncreaseStreamRetentionPeriod",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1IncreaseStreamRetentionPeriodInput(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1ListShardsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1ListShardsCommand = function (input, context) { r
|
|
|
163
163
|
"x-amz-target": "Kinesis_20131202.ListShards",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1ListShardsInput(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ListStreamConsumersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ListStreamConsumersCommand = function (input, con
|
|
|
174
174
|
"x-amz-target": "Kinesis_20131202.ListStreamConsumers",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ListStreamConsumersInput(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1ListStreamsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1ListStreamsCommand = function (input, context) {
|
|
|
185
185
|
"x-amz-target": "Kinesis_20131202.ListStreams",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1ListStreamsInput(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1ListTagsForStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1ListTagsForStreamCommand = function (input, conte
|
|
|
196
196
|
"x-amz-target": "Kinesis_20131202.ListTagsForStream",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1ListTagsForStreamInput(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1MergeShardsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1MergeShardsCommand = function (input, context) {
|
|
|
207
207
|
"x-amz-target": "Kinesis_20131202.MergeShards",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1MergeShardsInput(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1PutRecordCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1PutRecordCommand = function (input, context) { re
|
|
|
218
218
|
"x-amz-target": "Kinesis_20131202.PutRecord",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1PutRecordsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1PutRecordsCommand = function (input, context) { r
|
|
|
229
229
|
"x-amz-target": "Kinesis_20131202.PutRecords",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1PutRecordsInput(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1RegisterStreamConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1RegisterStreamConsumerCommand = function (input,
|
|
|
240
240
|
"x-amz-target": "Kinesis_20131202.RegisterStreamConsumer",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1RegisterStreamConsumerInput(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1RemoveTagsFromStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1RemoveTagsFromStreamCommand = function (input, co
|
|
|
251
251
|
"x-amz-target": "Kinesis_20131202.RemoveTagsFromStream",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1RemoveTagsFromStreamInput(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1SplitShardCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1SplitShardCommand = function (input, context) { r
|
|
|
262
262
|
"x-amz-target": "Kinesis_20131202.SplitShard",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1SplitShardInput(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1StartStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1StartStreamEncryptionCommand = function (input, c
|
|
|
273
273
|
"x-amz-target": "Kinesis_20131202.StartStreamEncryption",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1StartStreamEncryptionInput(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1StopStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1StopStreamEncryptionCommand = function (input, co
|
|
|
284
284
|
"x-amz-target": "Kinesis_20131202.StopStreamEncryption",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1StopStreamEncryptionInput(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1SubscribeToShardCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1SubscribeToShardCommand = function (input, contex
|
|
|
295
295
|
"x-amz-target": "Kinesis_20131202.SubscribeToShard",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1SubscribeToShardInput(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1UpdateShardCountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1UpdateShardCountCommand = function (input, contex
|
|
|
306
306
|
"x-amz-target": "Kinesis_20131202.UpdateShardCount",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1UpdateShardCountInput(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var deserializeAws_json1_1AddTagsToStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -315,15 +315,15 @@ export var deserializeAws_json1_1AddTagsToStreamCommand = function (output, cont
|
|
|
315
315
|
switch (_a.label) {
|
|
316
316
|
case 0:
|
|
317
317
|
if (output.statusCode >= 300) {
|
|
318
|
-
return [2
|
|
318
|
+
return [2, deserializeAws_json1_1AddTagsToStreamCommandError(output, context)];
|
|
319
319
|
}
|
|
320
|
-
return [4
|
|
320
|
+
return [4, collectBody(output.body, context)];
|
|
321
321
|
case 1:
|
|
322
322
|
_a.sent();
|
|
323
323
|
response = {
|
|
324
324
|
$metadata: deserializeMetadata(output),
|
|
325
325
|
};
|
|
326
|
-
return [2
|
|
326
|
+
return [2, Promise.resolve(response)];
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}); };
|
|
@@ -335,47 +335,47 @@ var deserializeAws_json1_1AddTagsToStreamCommandError = function (output, contex
|
|
|
335
335
|
case 0:
|
|
336
336
|
_a = [__assign({}, output)];
|
|
337
337
|
_g = {};
|
|
338
|
-
return [4
|
|
338
|
+
return [4, parseBody(output.body, context)];
|
|
339
339
|
case 1:
|
|
340
340
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
341
341
|
errorCode = "UnknownError";
|
|
342
342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
343
|
_b = errorCode;
|
|
344
344
|
switch (_b) {
|
|
345
|
-
case "InvalidArgumentException": return [3
|
|
346
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
347
|
-
case "LimitExceededException": return [3
|
|
348
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
349
|
-
case "ResourceInUseException": return [3
|
|
350
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
351
|
-
case "ResourceNotFoundException": return [3
|
|
352
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
345
|
+
case "InvalidArgumentException": return [3, 2];
|
|
346
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
347
|
+
case "LimitExceededException": return [3, 4];
|
|
348
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
349
|
+
case "ResourceInUseException": return [3, 6];
|
|
350
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
351
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
352
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
353
353
|
}
|
|
354
|
-
return [3
|
|
354
|
+
return [3, 10];
|
|
355
355
|
case 2:
|
|
356
356
|
_c = [{}];
|
|
357
|
-
return [4
|
|
357
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
358
358
|
case 3:
|
|
359
359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
360
|
-
return [3
|
|
360
|
+
return [3, 11];
|
|
361
361
|
case 4:
|
|
362
362
|
_d = [{}];
|
|
363
|
-
return [4
|
|
363
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
364
364
|
case 5:
|
|
365
365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
366
|
-
return [3
|
|
366
|
+
return [3, 11];
|
|
367
367
|
case 6:
|
|
368
368
|
_e = [{}];
|
|
369
|
-
return [4
|
|
369
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
370
370
|
case 7:
|
|
371
371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
372
|
-
return [3
|
|
372
|
+
return [3, 11];
|
|
373
373
|
case 8:
|
|
374
374
|
_f = [{}];
|
|
375
|
-
return [4
|
|
375
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
376
376
|
case 9:
|
|
377
377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
378
|
-
return [3
|
|
378
|
+
return [3, 11];
|
|
379
379
|
case 10:
|
|
380
380
|
parsedBody = parsedOutput.body;
|
|
381
381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -385,7 +385,7 @@ var deserializeAws_json1_1AddTagsToStreamCommandError = function (output, contex
|
|
|
385
385
|
message = response.message || response.Message || errorCode;
|
|
386
386
|
response.message = message;
|
|
387
387
|
delete response.Message;
|
|
388
|
-
return [2
|
|
388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}); };
|
|
@@ -395,15 +395,15 @@ export var deserializeAws_json1_1CreateStreamCommand = function (output, context
|
|
|
395
395
|
switch (_a.label) {
|
|
396
396
|
case 0:
|
|
397
397
|
if (output.statusCode >= 300) {
|
|
398
|
-
return [2
|
|
398
|
+
return [2, deserializeAws_json1_1CreateStreamCommandError(output, context)];
|
|
399
399
|
}
|
|
400
|
-
return [4
|
|
400
|
+
return [4, collectBody(output.body, context)];
|
|
401
401
|
case 1:
|
|
402
402
|
_a.sent();
|
|
403
403
|
response = {
|
|
404
404
|
$metadata: deserializeMetadata(output),
|
|
405
405
|
};
|
|
406
|
-
return [2
|
|
406
|
+
return [2, Promise.resolve(response)];
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
}); };
|
|
@@ -415,39 +415,39 @@ var deserializeAws_json1_1CreateStreamCommandError = function (output, context)
|
|
|
415
415
|
case 0:
|
|
416
416
|
_a = [__assign({}, output)];
|
|
417
417
|
_f = {};
|
|
418
|
-
return [4
|
|
418
|
+
return [4, parseBody(output.body, context)];
|
|
419
419
|
case 1:
|
|
420
420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
421
421
|
errorCode = "UnknownError";
|
|
422
422
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
423
|
_b = errorCode;
|
|
424
424
|
switch (_b) {
|
|
425
|
-
case "InvalidArgumentException": return [3
|
|
426
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
427
|
-
case "LimitExceededException": return [3
|
|
428
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
429
|
-
case "ResourceInUseException": return [3
|
|
430
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
425
|
+
case "InvalidArgumentException": return [3, 2];
|
|
426
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
427
|
+
case "LimitExceededException": return [3, 4];
|
|
428
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
429
|
+
case "ResourceInUseException": return [3, 6];
|
|
430
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
431
431
|
}
|
|
432
|
-
return [3
|
|
432
|
+
return [3, 8];
|
|
433
433
|
case 2:
|
|
434
434
|
_c = [{}];
|
|
435
|
-
return [4
|
|
435
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
436
436
|
case 3:
|
|
437
437
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
438
|
-
return [3
|
|
438
|
+
return [3, 9];
|
|
439
439
|
case 4:
|
|
440
440
|
_d = [{}];
|
|
441
|
-
return [4
|
|
441
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
442
442
|
case 5:
|
|
443
443
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
444
|
-
return [3
|
|
444
|
+
return [3, 9];
|
|
445
445
|
case 6:
|
|
446
446
|
_e = [{}];
|
|
447
|
-
return [4
|
|
447
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
448
448
|
case 7:
|
|
449
449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
450
|
-
return [3
|
|
450
|
+
return [3, 9];
|
|
451
451
|
case 8:
|
|
452
452
|
parsedBody = parsedOutput.body;
|
|
453
453
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -457,7 +457,7 @@ var deserializeAws_json1_1CreateStreamCommandError = function (output, context)
|
|
|
457
457
|
message = response.message || response.Message || errorCode;
|
|
458
458
|
response.message = message;
|
|
459
459
|
delete response.Message;
|
|
460
|
-
return [2
|
|
460
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
}); };
|
|
@@ -467,15 +467,15 @@ export var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function
|
|
|
467
467
|
switch (_a.label) {
|
|
468
468
|
case 0:
|
|
469
469
|
if (output.statusCode >= 300) {
|
|
470
|
-
return [2
|
|
470
|
+
return [2, deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError(output, context)];
|
|
471
471
|
}
|
|
472
|
-
return [4
|
|
472
|
+
return [4, collectBody(output.body, context)];
|
|
473
473
|
case 1:
|
|
474
474
|
_a.sent();
|
|
475
475
|
response = {
|
|
476
476
|
$metadata: deserializeMetadata(output),
|
|
477
477
|
};
|
|
478
|
-
return [2
|
|
478
|
+
return [2, Promise.resolve(response)];
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}); };
|
|
@@ -487,47 +487,47 @@ var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = function (
|
|
|
487
487
|
case 0:
|
|
488
488
|
_a = [__assign({}, output)];
|
|
489
489
|
_g = {};
|
|
490
|
-
return [4
|
|
490
|
+
return [4, parseBody(output.body, context)];
|
|
491
491
|
case 1:
|
|
492
492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
493
493
|
errorCode = "UnknownError";
|
|
494
494
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
495
|
_b = errorCode;
|
|
496
496
|
switch (_b) {
|
|
497
|
-
case "InvalidArgumentException": return [3
|
|
498
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
499
|
-
case "LimitExceededException": return [3
|
|
500
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
501
|
-
case "ResourceInUseException": return [3
|
|
502
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
503
|
-
case "ResourceNotFoundException": return [3
|
|
504
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
497
|
+
case "InvalidArgumentException": return [3, 2];
|
|
498
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
499
|
+
case "LimitExceededException": return [3, 4];
|
|
500
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
501
|
+
case "ResourceInUseException": return [3, 6];
|
|
502
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
503
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
504
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
505
505
|
}
|
|
506
|
-
return [3
|
|
506
|
+
return [3, 10];
|
|
507
507
|
case 2:
|
|
508
508
|
_c = [{}];
|
|
509
|
-
return [4
|
|
509
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
510
510
|
case 3:
|
|
511
511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 11];
|
|
513
513
|
case 4:
|
|
514
514
|
_d = [{}];
|
|
515
|
-
return [4
|
|
515
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
516
516
|
case 5:
|
|
517
517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 11];
|
|
519
519
|
case 6:
|
|
520
520
|
_e = [{}];
|
|
521
|
-
return [4
|
|
521
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
522
522
|
case 7:
|
|
523
523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
524
|
-
return [3
|
|
524
|
+
return [3, 11];
|
|
525
525
|
case 8:
|
|
526
526
|
_f = [{}];
|
|
527
|
-
return [4
|
|
527
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
528
528
|
case 9:
|
|
529
529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
530
|
-
return [3
|
|
530
|
+
return [3, 11];
|
|
531
531
|
case 10:
|
|
532
532
|
parsedBody = parsedOutput.body;
|
|
533
533
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -537,7 +537,7 @@ var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = function (
|
|
|
537
537
|
message = response.message || response.Message || errorCode;
|
|
538
538
|
response.message = message;
|
|
539
539
|
delete response.Message;
|
|
540
|
-
return [2
|
|
540
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
}); };
|
|
@@ -547,15 +547,15 @@ export var deserializeAws_json1_1DeleteStreamCommand = function (output, context
|
|
|
547
547
|
switch (_a.label) {
|
|
548
548
|
case 0:
|
|
549
549
|
if (output.statusCode >= 300) {
|
|
550
|
-
return [2
|
|
550
|
+
return [2, deserializeAws_json1_1DeleteStreamCommandError(output, context)];
|
|
551
551
|
}
|
|
552
|
-
return [4
|
|
552
|
+
return [4, collectBody(output.body, context)];
|
|
553
553
|
case 1:
|
|
554
554
|
_a.sent();
|
|
555
555
|
response = {
|
|
556
556
|
$metadata: deserializeMetadata(output),
|
|
557
557
|
};
|
|
558
|
-
return [2
|
|
558
|
+
return [2, Promise.resolve(response)];
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
561
|
}); };
|
|
@@ -567,39 +567,39 @@ var deserializeAws_json1_1DeleteStreamCommandError = function (output, context)
|
|
|
567
567
|
case 0:
|
|
568
568
|
_a = [__assign({}, output)];
|
|
569
569
|
_f = {};
|
|
570
|
-
return [4
|
|
570
|
+
return [4, parseBody(output.body, context)];
|
|
571
571
|
case 1:
|
|
572
572
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
573
573
|
errorCode = "UnknownError";
|
|
574
574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
575
|
_b = errorCode;
|
|
576
576
|
switch (_b) {
|
|
577
|
-
case "LimitExceededException": return [3
|
|
578
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
579
|
-
case "ResourceInUseException": return [3
|
|
580
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
581
|
-
case "ResourceNotFoundException": return [3
|
|
582
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
577
|
+
case "LimitExceededException": return [3, 2];
|
|
578
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 2];
|
|
579
|
+
case "ResourceInUseException": return [3, 4];
|
|
580
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 4];
|
|
581
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
582
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 6];
|
|
583
583
|
}
|
|
584
|
-
return [3
|
|
584
|
+
return [3, 8];
|
|
585
585
|
case 2:
|
|
586
586
|
_c = [{}];
|
|
587
|
-
return [4
|
|
587
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
588
588
|
case 3:
|
|
589
589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
590
|
-
return [3
|
|
590
|
+
return [3, 9];
|
|
591
591
|
case 4:
|
|
592
592
|
_d = [{}];
|
|
593
|
-
return [4
|
|
593
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
594
594
|
case 5:
|
|
595
595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
596
|
-
return [3
|
|
596
|
+
return [3, 9];
|
|
597
597
|
case 6:
|
|
598
598
|
_e = [{}];
|
|
599
|
-
return [4
|
|
599
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
600
600
|
case 7:
|
|
601
601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
602
|
-
return [3
|
|
602
|
+
return [3, 9];
|
|
603
603
|
case 8:
|
|
604
604
|
parsedBody = parsedOutput.body;
|
|
605
605
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -609,7 +609,7 @@ var deserializeAws_json1_1DeleteStreamCommandError = function (output, context)
|
|
|
609
609
|
message = response.message || response.Message || errorCode;
|
|
610
610
|
response.message = message;
|
|
611
611
|
delete response.Message;
|
|
612
|
-
return [2
|
|
612
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
}); };
|
|
@@ -619,15 +619,15 @@ export var deserializeAws_json1_1DeregisterStreamConsumerCommand = function (out
|
|
|
619
619
|
switch (_a.label) {
|
|
620
620
|
case 0:
|
|
621
621
|
if (output.statusCode >= 300) {
|
|
622
|
-
return [2
|
|
622
|
+
return [2, deserializeAws_json1_1DeregisterStreamConsumerCommandError(output, context)];
|
|
623
623
|
}
|
|
624
|
-
return [4
|
|
624
|
+
return [4, collectBody(output.body, context)];
|
|
625
625
|
case 1:
|
|
626
626
|
_a.sent();
|
|
627
627
|
response = {
|
|
628
628
|
$metadata: deserializeMetadata(output),
|
|
629
629
|
};
|
|
630
|
-
return [2
|
|
630
|
+
return [2, Promise.resolve(response)];
|
|
631
631
|
}
|
|
632
632
|
});
|
|
633
633
|
}); };
|
|
@@ -639,39 +639,39 @@ var deserializeAws_json1_1DeregisterStreamConsumerCommandError = function (outpu
|
|
|
639
639
|
case 0:
|
|
640
640
|
_a = [__assign({}, output)];
|
|
641
641
|
_f = {};
|
|
642
|
-
return [4
|
|
642
|
+
return [4, parseBody(output.body, context)];
|
|
643
643
|
case 1:
|
|
644
644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
645
645
|
errorCode = "UnknownError";
|
|
646
646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
647
|
_b = errorCode;
|
|
648
648
|
switch (_b) {
|
|
649
|
-
case "InvalidArgumentException": return [3
|
|
650
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
651
|
-
case "LimitExceededException": return [3
|
|
652
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
653
|
-
case "ResourceNotFoundException": return [3
|
|
654
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
649
|
+
case "InvalidArgumentException": return [3, 2];
|
|
650
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
651
|
+
case "LimitExceededException": return [3, 4];
|
|
652
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
653
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
654
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 6];
|
|
655
655
|
}
|
|
656
|
-
return [3
|
|
656
|
+
return [3, 8];
|
|
657
657
|
case 2:
|
|
658
658
|
_c = [{}];
|
|
659
|
-
return [4
|
|
659
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
660
660
|
case 3:
|
|
661
661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
-
return [3
|
|
662
|
+
return [3, 9];
|
|
663
663
|
case 4:
|
|
664
664
|
_d = [{}];
|
|
665
|
-
return [4
|
|
665
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
666
666
|
case 5:
|
|
667
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
-
return [3
|
|
668
|
+
return [3, 9];
|
|
669
669
|
case 6:
|
|
670
670
|
_e = [{}];
|
|
671
|
-
return [4
|
|
671
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
672
672
|
case 7:
|
|
673
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
-
return [3
|
|
674
|
+
return [3, 9];
|
|
675
675
|
case 8:
|
|
676
676
|
parsedBody = parsedOutput.body;
|
|
677
677
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -681,7 +681,7 @@ var deserializeAws_json1_1DeregisterStreamConsumerCommandError = function (outpu
|
|
|
681
681
|
message = response.message || response.Message || errorCode;
|
|
682
682
|
response.message = message;
|
|
683
683
|
delete response.Message;
|
|
684
|
-
return [2
|
|
684
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
}); };
|
|
@@ -691,15 +691,15 @@ export var deserializeAws_json1_1DescribeLimitsCommand = function (output, conte
|
|
|
691
691
|
switch (_a.label) {
|
|
692
692
|
case 0:
|
|
693
693
|
if (output.statusCode >= 300) {
|
|
694
|
-
return [2
|
|
694
|
+
return [2, deserializeAws_json1_1DescribeLimitsCommandError(output, context)];
|
|
695
695
|
}
|
|
696
|
-
return [4
|
|
696
|
+
return [4, parseBody(output.body, context)];
|
|
697
697
|
case 1:
|
|
698
698
|
data = _a.sent();
|
|
699
699
|
contents = {};
|
|
700
700
|
contents = deserializeAws_json1_1DescribeLimitsOutput(data, context);
|
|
701
701
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
702
|
-
return [2
|
|
702
|
+
return [2, Promise.resolve(response)];
|
|
703
703
|
}
|
|
704
704
|
});
|
|
705
705
|
}); };
|
|
@@ -711,23 +711,23 @@ var deserializeAws_json1_1DescribeLimitsCommandError = function (output, context
|
|
|
711
711
|
case 0:
|
|
712
712
|
_a = [__assign({}, output)];
|
|
713
713
|
_d = {};
|
|
714
|
-
return [4
|
|
714
|
+
return [4, parseBody(output.body, context)];
|
|
715
715
|
case 1:
|
|
716
716
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
717
717
|
errorCode = "UnknownError";
|
|
718
718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
719
|
_b = errorCode;
|
|
720
720
|
switch (_b) {
|
|
721
|
-
case "LimitExceededException": return [3
|
|
722
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
721
|
+
case "LimitExceededException": return [3, 2];
|
|
722
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 2];
|
|
723
723
|
}
|
|
724
|
-
return [3
|
|
724
|
+
return [3, 4];
|
|
725
725
|
case 2:
|
|
726
726
|
_c = [{}];
|
|
727
|
-
return [4
|
|
727
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
728
728
|
case 3:
|
|
729
729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
730
|
-
return [3
|
|
730
|
+
return [3, 5];
|
|
731
731
|
case 4:
|
|
732
732
|
parsedBody = parsedOutput.body;
|
|
733
733
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -737,7 +737,7 @@ var deserializeAws_json1_1DescribeLimitsCommandError = function (output, context
|
|
|
737
737
|
message = response.message || response.Message || errorCode;
|
|
738
738
|
response.message = message;
|
|
739
739
|
delete response.Message;
|
|
740
|
-
return [2
|
|
740
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
743
|
}); };
|
|
@@ -747,15 +747,15 @@ export var deserializeAws_json1_1DescribeStreamCommand = function (output, conte
|
|
|
747
747
|
switch (_a.label) {
|
|
748
748
|
case 0:
|
|
749
749
|
if (output.statusCode >= 300) {
|
|
750
|
-
return [2
|
|
750
|
+
return [2, deserializeAws_json1_1DescribeStreamCommandError(output, context)];
|
|
751
751
|
}
|
|
752
|
-
return [4
|
|
752
|
+
return [4, parseBody(output.body, context)];
|
|
753
753
|
case 1:
|
|
754
754
|
data = _a.sent();
|
|
755
755
|
contents = {};
|
|
756
756
|
contents = deserializeAws_json1_1DescribeStreamOutput(data, context);
|
|
757
757
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
758
|
-
return [2
|
|
758
|
+
return [2, Promise.resolve(response)];
|
|
759
759
|
}
|
|
760
760
|
});
|
|
761
761
|
}); };
|
|
@@ -767,31 +767,31 @@ var deserializeAws_json1_1DescribeStreamCommandError = function (output, context
|
|
|
767
767
|
case 0:
|
|
768
768
|
_a = [__assign({}, output)];
|
|
769
769
|
_e = {};
|
|
770
|
-
return [4
|
|
770
|
+
return [4, parseBody(output.body, context)];
|
|
771
771
|
case 1:
|
|
772
772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
773
773
|
errorCode = "UnknownError";
|
|
774
774
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
775
|
_b = errorCode;
|
|
776
776
|
switch (_b) {
|
|
777
|
-
case "LimitExceededException": return [3
|
|
778
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
779
|
-
case "ResourceNotFoundException": return [3
|
|
780
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
777
|
+
case "LimitExceededException": return [3, 2];
|
|
778
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 2];
|
|
779
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
780
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 4];
|
|
781
781
|
}
|
|
782
|
-
return [3
|
|
782
|
+
return [3, 6];
|
|
783
783
|
case 2:
|
|
784
784
|
_c = [{}];
|
|
785
|
-
return [4
|
|
785
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
786
786
|
case 3:
|
|
787
787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
788
|
-
return [3
|
|
788
|
+
return [3, 7];
|
|
789
789
|
case 4:
|
|
790
790
|
_d = [{}];
|
|
791
|
-
return [4
|
|
791
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
792
792
|
case 5:
|
|
793
793
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
794
|
-
return [3
|
|
794
|
+
return [3, 7];
|
|
795
795
|
case 6:
|
|
796
796
|
parsedBody = parsedOutput.body;
|
|
797
797
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -801,7 +801,7 @@ var deserializeAws_json1_1DescribeStreamCommandError = function (output, context
|
|
|
801
801
|
message = response.message || response.Message || errorCode;
|
|
802
802
|
response.message = message;
|
|
803
803
|
delete response.Message;
|
|
804
|
-
return [2
|
|
804
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
}); };
|
|
@@ -811,15 +811,15 @@ export var deserializeAws_json1_1DescribeStreamConsumerCommand = function (outpu
|
|
|
811
811
|
switch (_a.label) {
|
|
812
812
|
case 0:
|
|
813
813
|
if (output.statusCode >= 300) {
|
|
814
|
-
return [2
|
|
814
|
+
return [2, deserializeAws_json1_1DescribeStreamConsumerCommandError(output, context)];
|
|
815
815
|
}
|
|
816
|
-
return [4
|
|
816
|
+
return [4, parseBody(output.body, context)];
|
|
817
817
|
case 1:
|
|
818
818
|
data = _a.sent();
|
|
819
819
|
contents = {};
|
|
820
820
|
contents = deserializeAws_json1_1DescribeStreamConsumerOutput(data, context);
|
|
821
821
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
822
|
-
return [2
|
|
822
|
+
return [2, Promise.resolve(response)];
|
|
823
823
|
}
|
|
824
824
|
});
|
|
825
825
|
}); };
|
|
@@ -831,39 +831,39 @@ var deserializeAws_json1_1DescribeStreamConsumerCommandError = function (output,
|
|
|
831
831
|
case 0:
|
|
832
832
|
_a = [__assign({}, output)];
|
|
833
833
|
_f = {};
|
|
834
|
-
return [4
|
|
834
|
+
return [4, parseBody(output.body, context)];
|
|
835
835
|
case 1:
|
|
836
836
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
837
837
|
errorCode = "UnknownError";
|
|
838
838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
839
|
_b = errorCode;
|
|
840
840
|
switch (_b) {
|
|
841
|
-
case "InvalidArgumentException": return [3
|
|
842
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
843
|
-
case "LimitExceededException": return [3
|
|
844
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
845
|
-
case "ResourceNotFoundException": return [3
|
|
846
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
841
|
+
case "InvalidArgumentException": return [3, 2];
|
|
842
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
843
|
+
case "LimitExceededException": return [3, 4];
|
|
844
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
845
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
846
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 6];
|
|
847
847
|
}
|
|
848
|
-
return [3
|
|
848
|
+
return [3, 8];
|
|
849
849
|
case 2:
|
|
850
850
|
_c = [{}];
|
|
851
|
-
return [4
|
|
851
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
852
852
|
case 3:
|
|
853
853
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
854
|
-
return [3
|
|
854
|
+
return [3, 9];
|
|
855
855
|
case 4:
|
|
856
856
|
_d = [{}];
|
|
857
|
-
return [4
|
|
857
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
858
858
|
case 5:
|
|
859
859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
860
|
-
return [3
|
|
860
|
+
return [3, 9];
|
|
861
861
|
case 6:
|
|
862
862
|
_e = [{}];
|
|
863
|
-
return [4
|
|
863
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
864
864
|
case 7:
|
|
865
865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
866
|
-
return [3
|
|
866
|
+
return [3, 9];
|
|
867
867
|
case 8:
|
|
868
868
|
parsedBody = parsedOutput.body;
|
|
869
869
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -873,7 +873,7 @@ var deserializeAws_json1_1DescribeStreamConsumerCommandError = function (output,
|
|
|
873
873
|
message = response.message || response.Message || errorCode;
|
|
874
874
|
response.message = message;
|
|
875
875
|
delete response.Message;
|
|
876
|
-
return [2
|
|
876
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
}); };
|
|
@@ -883,15 +883,15 @@ export var deserializeAws_json1_1DescribeStreamSummaryCommand = function (output
|
|
|
883
883
|
switch (_a.label) {
|
|
884
884
|
case 0:
|
|
885
885
|
if (output.statusCode >= 300) {
|
|
886
|
-
return [2
|
|
886
|
+
return [2, deserializeAws_json1_1DescribeStreamSummaryCommandError(output, context)];
|
|
887
887
|
}
|
|
888
|
-
return [4
|
|
888
|
+
return [4, parseBody(output.body, context)];
|
|
889
889
|
case 1:
|
|
890
890
|
data = _a.sent();
|
|
891
891
|
contents = {};
|
|
892
892
|
contents = deserializeAws_json1_1DescribeStreamSummaryOutput(data, context);
|
|
893
893
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
894
|
-
return [2
|
|
894
|
+
return [2, Promise.resolve(response)];
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
}); };
|
|
@@ -903,31 +903,31 @@ var deserializeAws_json1_1DescribeStreamSummaryCommandError = function (output,
|
|
|
903
903
|
case 0:
|
|
904
904
|
_a = [__assign({}, output)];
|
|
905
905
|
_e = {};
|
|
906
|
-
return [4
|
|
906
|
+
return [4, parseBody(output.body, context)];
|
|
907
907
|
case 1:
|
|
908
908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
909
909
|
errorCode = "UnknownError";
|
|
910
910
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
911
|
_b = errorCode;
|
|
912
912
|
switch (_b) {
|
|
913
|
-
case "LimitExceededException": return [3
|
|
914
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
915
|
-
case "ResourceNotFoundException": return [3
|
|
916
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
913
|
+
case "LimitExceededException": return [3, 2];
|
|
914
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 2];
|
|
915
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
916
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 4];
|
|
917
917
|
}
|
|
918
|
-
return [3
|
|
918
|
+
return [3, 6];
|
|
919
919
|
case 2:
|
|
920
920
|
_c = [{}];
|
|
921
|
-
return [4
|
|
921
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
922
922
|
case 3:
|
|
923
923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
924
|
-
return [3
|
|
924
|
+
return [3, 7];
|
|
925
925
|
case 4:
|
|
926
926
|
_d = [{}];
|
|
927
|
-
return [4
|
|
927
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
928
928
|
case 5:
|
|
929
929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
930
|
-
return [3
|
|
930
|
+
return [3, 7];
|
|
931
931
|
case 6:
|
|
932
932
|
parsedBody = parsedOutput.body;
|
|
933
933
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -937,7 +937,7 @@ var deserializeAws_json1_1DescribeStreamSummaryCommandError = function (output,
|
|
|
937
937
|
message = response.message || response.Message || errorCode;
|
|
938
938
|
response.message = message;
|
|
939
939
|
delete response.Message;
|
|
940
|
-
return [2
|
|
940
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
941
941
|
}
|
|
942
942
|
});
|
|
943
943
|
}); };
|
|
@@ -947,15 +947,15 @@ export var deserializeAws_json1_1DisableEnhancedMonitoringCommand = function (ou
|
|
|
947
947
|
switch (_a.label) {
|
|
948
948
|
case 0:
|
|
949
949
|
if (output.statusCode >= 300) {
|
|
950
|
-
return [2
|
|
950
|
+
return [2, deserializeAws_json1_1DisableEnhancedMonitoringCommandError(output, context)];
|
|
951
951
|
}
|
|
952
|
-
return [4
|
|
952
|
+
return [4, parseBody(output.body, context)];
|
|
953
953
|
case 1:
|
|
954
954
|
data = _a.sent();
|
|
955
955
|
contents = {};
|
|
956
956
|
contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
|
|
957
957
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
958
|
-
return [2
|
|
958
|
+
return [2, Promise.resolve(response)];
|
|
959
959
|
}
|
|
960
960
|
});
|
|
961
961
|
}); };
|
|
@@ -967,47 +967,47 @@ var deserializeAws_json1_1DisableEnhancedMonitoringCommandError = function (outp
|
|
|
967
967
|
case 0:
|
|
968
968
|
_a = [__assign({}, output)];
|
|
969
969
|
_g = {};
|
|
970
|
-
return [4
|
|
970
|
+
return [4, parseBody(output.body, context)];
|
|
971
971
|
case 1:
|
|
972
972
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
973
973
|
errorCode = "UnknownError";
|
|
974
974
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
975
|
_b = errorCode;
|
|
976
976
|
switch (_b) {
|
|
977
|
-
case "InvalidArgumentException": return [3
|
|
978
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
979
|
-
case "LimitExceededException": return [3
|
|
980
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
981
|
-
case "ResourceInUseException": return [3
|
|
982
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
983
|
-
case "ResourceNotFoundException": return [3
|
|
984
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
977
|
+
case "InvalidArgumentException": return [3, 2];
|
|
978
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
979
|
+
case "LimitExceededException": return [3, 4];
|
|
980
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
981
|
+
case "ResourceInUseException": return [3, 6];
|
|
982
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
983
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
984
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
985
985
|
}
|
|
986
|
-
return [3
|
|
986
|
+
return [3, 10];
|
|
987
987
|
case 2:
|
|
988
988
|
_c = [{}];
|
|
989
|
-
return [4
|
|
989
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
990
990
|
case 3:
|
|
991
991
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
992
|
-
return [3
|
|
992
|
+
return [3, 11];
|
|
993
993
|
case 4:
|
|
994
994
|
_d = [{}];
|
|
995
|
-
return [4
|
|
995
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
996
996
|
case 5:
|
|
997
997
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
998
|
-
return [3
|
|
998
|
+
return [3, 11];
|
|
999
999
|
case 6:
|
|
1000
1000
|
_e = [{}];
|
|
1001
|
-
return [4
|
|
1001
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1002
1002
|
case 7:
|
|
1003
1003
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1004
|
-
return [3
|
|
1004
|
+
return [3, 11];
|
|
1005
1005
|
case 8:
|
|
1006
1006
|
_f = [{}];
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1008
1008
|
case 9:
|
|
1009
1009
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1010
|
-
return [3
|
|
1010
|
+
return [3, 11];
|
|
1011
1011
|
case 10:
|
|
1012
1012
|
parsedBody = parsedOutput.body;
|
|
1013
1013
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1017,7 +1017,7 @@ var deserializeAws_json1_1DisableEnhancedMonitoringCommandError = function (outp
|
|
|
1017
1017
|
message = response.message || response.Message || errorCode;
|
|
1018
1018
|
response.message = message;
|
|
1019
1019
|
delete response.Message;
|
|
1020
|
-
return [2
|
|
1020
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}); };
|
|
@@ -1027,15 +1027,15 @@ export var deserializeAws_json1_1EnableEnhancedMonitoringCommand = function (out
|
|
|
1027
1027
|
switch (_a.label) {
|
|
1028
1028
|
case 0:
|
|
1029
1029
|
if (output.statusCode >= 300) {
|
|
1030
|
-
return [2
|
|
1030
|
+
return [2, deserializeAws_json1_1EnableEnhancedMonitoringCommandError(output, context)];
|
|
1031
1031
|
}
|
|
1032
|
-
return [4
|
|
1032
|
+
return [4, parseBody(output.body, context)];
|
|
1033
1033
|
case 1:
|
|
1034
1034
|
data = _a.sent();
|
|
1035
1035
|
contents = {};
|
|
1036
1036
|
contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
|
|
1037
1037
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1038
|
-
return [2
|
|
1038
|
+
return [2, Promise.resolve(response)];
|
|
1039
1039
|
}
|
|
1040
1040
|
});
|
|
1041
1041
|
}); };
|
|
@@ -1047,47 +1047,47 @@ var deserializeAws_json1_1EnableEnhancedMonitoringCommandError = function (outpu
|
|
|
1047
1047
|
case 0:
|
|
1048
1048
|
_a = [__assign({}, output)];
|
|
1049
1049
|
_g = {};
|
|
1050
|
-
return [4
|
|
1050
|
+
return [4, parseBody(output.body, context)];
|
|
1051
1051
|
case 1:
|
|
1052
1052
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1053
1053
|
errorCode = "UnknownError";
|
|
1054
1054
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1055
|
_b = errorCode;
|
|
1056
1056
|
switch (_b) {
|
|
1057
|
-
case "InvalidArgumentException": return [3
|
|
1058
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1059
|
-
case "LimitExceededException": return [3
|
|
1060
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1061
|
-
case "ResourceInUseException": return [3
|
|
1062
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
1063
|
-
case "ResourceNotFoundException": return [3
|
|
1064
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1057
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1058
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1059
|
+
case "LimitExceededException": return [3, 4];
|
|
1060
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
1061
|
+
case "ResourceInUseException": return [3, 6];
|
|
1062
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
1063
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1064
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
1065
1065
|
}
|
|
1066
|
-
return [3
|
|
1066
|
+
return [3, 10];
|
|
1067
1067
|
case 2:
|
|
1068
1068
|
_c = [{}];
|
|
1069
|
-
return [4
|
|
1069
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1070
1070
|
case 3:
|
|
1071
1071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1072
|
-
return [3
|
|
1072
|
+
return [3, 11];
|
|
1073
1073
|
case 4:
|
|
1074
1074
|
_d = [{}];
|
|
1075
|
-
return [4
|
|
1075
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1076
1076
|
case 5:
|
|
1077
1077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1078
|
-
return [3
|
|
1078
|
+
return [3, 11];
|
|
1079
1079
|
case 6:
|
|
1080
1080
|
_e = [{}];
|
|
1081
|
-
return [4
|
|
1081
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1082
1082
|
case 7:
|
|
1083
1083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1084
|
-
return [3
|
|
1084
|
+
return [3, 11];
|
|
1085
1085
|
case 8:
|
|
1086
1086
|
_f = [{}];
|
|
1087
|
-
return [4
|
|
1087
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1088
1088
|
case 9:
|
|
1089
1089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1090
|
-
return [3
|
|
1090
|
+
return [3, 11];
|
|
1091
1091
|
case 10:
|
|
1092
1092
|
parsedBody = parsedOutput.body;
|
|
1093
1093
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1097,7 +1097,7 @@ var deserializeAws_json1_1EnableEnhancedMonitoringCommandError = function (outpu
|
|
|
1097
1097
|
message = response.message || response.Message || errorCode;
|
|
1098
1098
|
response.message = message;
|
|
1099
1099
|
delete response.Message;
|
|
1100
|
-
return [2
|
|
1100
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1101
1101
|
}
|
|
1102
1102
|
});
|
|
1103
1103
|
}); };
|
|
@@ -1107,15 +1107,15 @@ export var deserializeAws_json1_1GetRecordsCommand = function (output, context)
|
|
|
1107
1107
|
switch (_a.label) {
|
|
1108
1108
|
case 0:
|
|
1109
1109
|
if (output.statusCode >= 300) {
|
|
1110
|
-
return [2
|
|
1110
|
+
return [2, deserializeAws_json1_1GetRecordsCommandError(output, context)];
|
|
1111
1111
|
}
|
|
1112
|
-
return [4
|
|
1112
|
+
return [4, parseBody(output.body, context)];
|
|
1113
1113
|
case 1:
|
|
1114
1114
|
data = _a.sent();
|
|
1115
1115
|
contents = {};
|
|
1116
1116
|
contents = deserializeAws_json1_1GetRecordsOutput(data, context);
|
|
1117
1117
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1118
|
-
return [2
|
|
1118
|
+
return [2, Promise.resolve(response)];
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
}); };
|
|
@@ -1127,95 +1127,95 @@ var deserializeAws_json1_1GetRecordsCommandError = function (output, context) {
|
|
|
1127
1127
|
case 0:
|
|
1128
1128
|
_a = [__assign({}, output)];
|
|
1129
1129
|
_o = {};
|
|
1130
|
-
return [4
|
|
1130
|
+
return [4, parseBody(output.body, context)];
|
|
1131
1131
|
case 1:
|
|
1132
1132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
1133
1133
|
errorCode = "UnknownError";
|
|
1134
1134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1135
|
_b = errorCode;
|
|
1136
1136
|
switch (_b) {
|
|
1137
|
-
case "ExpiredIteratorException": return [3
|
|
1138
|
-
case "com.amazonaws.kinesis#ExpiredIteratorException": return [3
|
|
1139
|
-
case "InvalidArgumentException": return [3
|
|
1140
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1141
|
-
case "KMSAccessDeniedException": return [3
|
|
1142
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3
|
|
1143
|
-
case "KMSDisabledException": return [3
|
|
1144
|
-
case "com.amazonaws.kinesis#KMSDisabledException": return [3
|
|
1145
|
-
case "KMSInvalidStateException": return [3
|
|
1146
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3
|
|
1147
|
-
case "KMSNotFoundException": return [3
|
|
1148
|
-
case "com.amazonaws.kinesis#KMSNotFoundException": return [3
|
|
1149
|
-
case "KMSOptInRequired": return [3
|
|
1150
|
-
case "com.amazonaws.kinesis#KMSOptInRequired": return [3
|
|
1151
|
-
case "KMSThrottlingException": return [3
|
|
1152
|
-
case "com.amazonaws.kinesis#KMSThrottlingException": return [3
|
|
1153
|
-
case "ProvisionedThroughputExceededException": return [3
|
|
1154
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3
|
|
1155
|
-
case "ResourceNotFoundException": return [3
|
|
1156
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1137
|
+
case "ExpiredIteratorException": return [3, 2];
|
|
1138
|
+
case "com.amazonaws.kinesis#ExpiredIteratorException": return [3, 2];
|
|
1139
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1140
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 4];
|
|
1141
|
+
case "KMSAccessDeniedException": return [3, 6];
|
|
1142
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3, 6];
|
|
1143
|
+
case "KMSDisabledException": return [3, 8];
|
|
1144
|
+
case "com.amazonaws.kinesis#KMSDisabledException": return [3, 8];
|
|
1145
|
+
case "KMSInvalidStateException": return [3, 10];
|
|
1146
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3, 10];
|
|
1147
|
+
case "KMSNotFoundException": return [3, 12];
|
|
1148
|
+
case "com.amazonaws.kinesis#KMSNotFoundException": return [3, 12];
|
|
1149
|
+
case "KMSOptInRequired": return [3, 14];
|
|
1150
|
+
case "com.amazonaws.kinesis#KMSOptInRequired": return [3, 14];
|
|
1151
|
+
case "KMSThrottlingException": return [3, 16];
|
|
1152
|
+
case "com.amazonaws.kinesis#KMSThrottlingException": return [3, 16];
|
|
1153
|
+
case "ProvisionedThroughputExceededException": return [3, 18];
|
|
1154
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3, 18];
|
|
1155
|
+
case "ResourceNotFoundException": return [3, 20];
|
|
1156
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 20];
|
|
1157
1157
|
}
|
|
1158
|
-
return [3
|
|
1158
|
+
return [3, 22];
|
|
1159
1159
|
case 2:
|
|
1160
1160
|
_c = [{}];
|
|
1161
|
-
return [4
|
|
1161
|
+
return [4, deserializeAws_json1_1ExpiredIteratorExceptionResponse(parsedOutput, context)];
|
|
1162
1162
|
case 3:
|
|
1163
1163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1164
|
-
return [3
|
|
1164
|
+
return [3, 23];
|
|
1165
1165
|
case 4:
|
|
1166
1166
|
_d = [{}];
|
|
1167
|
-
return [4
|
|
1167
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1168
1168
|
case 5:
|
|
1169
1169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1170
|
-
return [3
|
|
1170
|
+
return [3, 23];
|
|
1171
1171
|
case 6:
|
|
1172
1172
|
_e = [{}];
|
|
1173
|
-
return [4
|
|
1173
|
+
return [4, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1174
1174
|
case 7:
|
|
1175
1175
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1176
|
-
return [3
|
|
1176
|
+
return [3, 23];
|
|
1177
1177
|
case 8:
|
|
1178
1178
|
_f = [{}];
|
|
1179
|
-
return [4
|
|
1179
|
+
return [4, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
|
|
1180
1180
|
case 9:
|
|
1181
1181
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1182
|
-
return [3
|
|
1182
|
+
return [3, 23];
|
|
1183
1183
|
case 10:
|
|
1184
1184
|
_g = [{}];
|
|
1185
|
-
return [4
|
|
1185
|
+
return [4, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
1186
1186
|
case 11:
|
|
1187
1187
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1188
|
-
return [3
|
|
1188
|
+
return [3, 23];
|
|
1189
1189
|
case 12:
|
|
1190
1190
|
_h = [{}];
|
|
1191
|
-
return [4
|
|
1191
|
+
return [4, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
1192
1192
|
case 13:
|
|
1193
1193
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1194
|
-
return [3
|
|
1194
|
+
return [3, 23];
|
|
1195
1195
|
case 14:
|
|
1196
1196
|
_j = [{}];
|
|
1197
|
-
return [4
|
|
1197
|
+
return [4, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
|
|
1198
1198
|
case 15:
|
|
1199
1199
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1200
|
-
return [3
|
|
1200
|
+
return [3, 23];
|
|
1201
1201
|
case 16:
|
|
1202
1202
|
_k = [{}];
|
|
1203
|
-
return [4
|
|
1203
|
+
return [4, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
1204
1204
|
case 17:
|
|
1205
1205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3
|
|
1206
|
+
return [3, 23];
|
|
1207
1207
|
case 18:
|
|
1208
1208
|
_l = [{}];
|
|
1209
|
-
return [4
|
|
1209
|
+
return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
1210
1210
|
case 19:
|
|
1211
1211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 23];
|
|
1213
1213
|
case 20:
|
|
1214
1214
|
_m = [{}];
|
|
1215
|
-
return [4
|
|
1215
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1216
1216
|
case 21:
|
|
1217
1217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3
|
|
1218
|
+
return [3, 23];
|
|
1219
1219
|
case 22:
|
|
1220
1220
|
parsedBody = parsedOutput.body;
|
|
1221
1221
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1225,7 +1225,7 @@ var deserializeAws_json1_1GetRecordsCommandError = function (output, context) {
|
|
|
1225
1225
|
message = response.message || response.Message || errorCode;
|
|
1226
1226
|
response.message = message;
|
|
1227
1227
|
delete response.Message;
|
|
1228
|
-
return [2
|
|
1228
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
}); };
|
|
@@ -1235,15 +1235,15 @@ export var deserializeAws_json1_1GetShardIteratorCommand = function (output, con
|
|
|
1235
1235
|
switch (_a.label) {
|
|
1236
1236
|
case 0:
|
|
1237
1237
|
if (output.statusCode >= 300) {
|
|
1238
|
-
return [2
|
|
1238
|
+
return [2, deserializeAws_json1_1GetShardIteratorCommandError(output, context)];
|
|
1239
1239
|
}
|
|
1240
|
-
return [4
|
|
1240
|
+
return [4, parseBody(output.body, context)];
|
|
1241
1241
|
case 1:
|
|
1242
1242
|
data = _a.sent();
|
|
1243
1243
|
contents = {};
|
|
1244
1244
|
contents = deserializeAws_json1_1GetShardIteratorOutput(data, context);
|
|
1245
1245
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1246
|
-
return [2
|
|
1246
|
+
return [2, Promise.resolve(response)];
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}); };
|
|
@@ -1255,39 +1255,39 @@ var deserializeAws_json1_1GetShardIteratorCommandError = function (output, conte
|
|
|
1255
1255
|
case 0:
|
|
1256
1256
|
_a = [__assign({}, output)];
|
|
1257
1257
|
_f = {};
|
|
1258
|
-
return [4
|
|
1258
|
+
return [4, parseBody(output.body, context)];
|
|
1259
1259
|
case 1:
|
|
1260
1260
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1261
1261
|
errorCode = "UnknownError";
|
|
1262
1262
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
_b = errorCode;
|
|
1264
1264
|
switch (_b) {
|
|
1265
|
-
case "InvalidArgumentException": return [3
|
|
1266
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1267
|
-
case "ProvisionedThroughputExceededException": return [3
|
|
1268
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3
|
|
1269
|
-
case "ResourceNotFoundException": return [3
|
|
1270
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1265
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1266
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1267
|
+
case "ProvisionedThroughputExceededException": return [3, 4];
|
|
1268
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3, 4];
|
|
1269
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1270
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 6];
|
|
1271
1271
|
}
|
|
1272
|
-
return [3
|
|
1272
|
+
return [3, 8];
|
|
1273
1273
|
case 2:
|
|
1274
1274
|
_c = [{}];
|
|
1275
|
-
return [4
|
|
1275
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1276
1276
|
case 3:
|
|
1277
1277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1278
|
-
return [3
|
|
1278
|
+
return [3, 9];
|
|
1279
1279
|
case 4:
|
|
1280
1280
|
_d = [{}];
|
|
1281
|
-
return [4
|
|
1281
|
+
return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
1282
1282
|
case 5:
|
|
1283
1283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1284
|
-
return [3
|
|
1284
|
+
return [3, 9];
|
|
1285
1285
|
case 6:
|
|
1286
1286
|
_e = [{}];
|
|
1287
|
-
return [4
|
|
1287
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1288
1288
|
case 7:
|
|
1289
1289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1290
|
-
return [3
|
|
1290
|
+
return [3, 9];
|
|
1291
1291
|
case 8:
|
|
1292
1292
|
parsedBody = parsedOutput.body;
|
|
1293
1293
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1297,7 +1297,7 @@ var deserializeAws_json1_1GetShardIteratorCommandError = function (output, conte
|
|
|
1297
1297
|
message = response.message || response.Message || errorCode;
|
|
1298
1298
|
response.message = message;
|
|
1299
1299
|
delete response.Message;
|
|
1300
|
-
return [2
|
|
1300
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
1303
1303
|
}); };
|
|
@@ -1307,15 +1307,15 @@ export var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function
|
|
|
1307
1307
|
switch (_a.label) {
|
|
1308
1308
|
case 0:
|
|
1309
1309
|
if (output.statusCode >= 300) {
|
|
1310
|
-
return [2
|
|
1310
|
+
return [2, deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError(output, context)];
|
|
1311
1311
|
}
|
|
1312
|
-
return [4
|
|
1312
|
+
return [4, collectBody(output.body, context)];
|
|
1313
1313
|
case 1:
|
|
1314
1314
|
_a.sent();
|
|
1315
1315
|
response = {
|
|
1316
1316
|
$metadata: deserializeMetadata(output),
|
|
1317
1317
|
};
|
|
1318
|
-
return [2
|
|
1318
|
+
return [2, Promise.resolve(response)];
|
|
1319
1319
|
}
|
|
1320
1320
|
});
|
|
1321
1321
|
}); };
|
|
@@ -1327,47 +1327,47 @@ var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = function (
|
|
|
1327
1327
|
case 0:
|
|
1328
1328
|
_a = [__assign({}, output)];
|
|
1329
1329
|
_g = {};
|
|
1330
|
-
return [4
|
|
1330
|
+
return [4, parseBody(output.body, context)];
|
|
1331
1331
|
case 1:
|
|
1332
1332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1333
1333
|
errorCode = "UnknownError";
|
|
1334
1334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1335
|
_b = errorCode;
|
|
1336
1336
|
switch (_b) {
|
|
1337
|
-
case "InvalidArgumentException": return [3
|
|
1338
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1339
|
-
case "LimitExceededException": return [3
|
|
1340
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1341
|
-
case "ResourceInUseException": return [3
|
|
1342
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
1343
|
-
case "ResourceNotFoundException": return [3
|
|
1344
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1337
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1338
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1339
|
+
case "LimitExceededException": return [3, 4];
|
|
1340
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
1341
|
+
case "ResourceInUseException": return [3, 6];
|
|
1342
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
1343
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1344
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
1345
1345
|
}
|
|
1346
|
-
return [3
|
|
1346
|
+
return [3, 10];
|
|
1347
1347
|
case 2:
|
|
1348
1348
|
_c = [{}];
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1350
1350
|
case 3:
|
|
1351
1351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1352
|
+
return [3, 11];
|
|
1353
1353
|
case 4:
|
|
1354
1354
|
_d = [{}];
|
|
1355
|
-
return [4
|
|
1355
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1356
1356
|
case 5:
|
|
1357
1357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1358
|
-
return [3
|
|
1358
|
+
return [3, 11];
|
|
1359
1359
|
case 6:
|
|
1360
1360
|
_e = [{}];
|
|
1361
|
-
return [4
|
|
1361
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1362
1362
|
case 7:
|
|
1363
1363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1364
|
-
return [3
|
|
1364
|
+
return [3, 11];
|
|
1365
1365
|
case 8:
|
|
1366
1366
|
_f = [{}];
|
|
1367
|
-
return [4
|
|
1367
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1368
1368
|
case 9:
|
|
1369
1369
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1370
|
-
return [3
|
|
1370
|
+
return [3, 11];
|
|
1371
1371
|
case 10:
|
|
1372
1372
|
parsedBody = parsedOutput.body;
|
|
1373
1373
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1377,7 +1377,7 @@ var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = function (
|
|
|
1377
1377
|
message = response.message || response.Message || errorCode;
|
|
1378
1378
|
response.message = message;
|
|
1379
1379
|
delete response.Message;
|
|
1380
|
-
return [2
|
|
1380
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
1383
1383
|
}); };
|
|
@@ -1387,15 +1387,15 @@ export var deserializeAws_json1_1ListShardsCommand = function (output, context)
|
|
|
1387
1387
|
switch (_a.label) {
|
|
1388
1388
|
case 0:
|
|
1389
1389
|
if (output.statusCode >= 300) {
|
|
1390
|
-
return [2
|
|
1390
|
+
return [2, deserializeAws_json1_1ListShardsCommandError(output, context)];
|
|
1391
1391
|
}
|
|
1392
|
-
return [4
|
|
1392
|
+
return [4, parseBody(output.body, context)];
|
|
1393
1393
|
case 1:
|
|
1394
1394
|
data = _a.sent();
|
|
1395
1395
|
contents = {};
|
|
1396
1396
|
contents = deserializeAws_json1_1ListShardsOutput(data, context);
|
|
1397
1397
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1398
|
-
return [2
|
|
1398
|
+
return [2, Promise.resolve(response)];
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}); };
|
|
@@ -1407,55 +1407,55 @@ var deserializeAws_json1_1ListShardsCommandError = function (output, context) {
|
|
|
1407
1407
|
case 0:
|
|
1408
1408
|
_a = [__assign({}, output)];
|
|
1409
1409
|
_h = {};
|
|
1410
|
-
return [4
|
|
1410
|
+
return [4, parseBody(output.body, context)];
|
|
1411
1411
|
case 1:
|
|
1412
1412
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1413
1413
|
errorCode = "UnknownError";
|
|
1414
1414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1415
|
_b = errorCode;
|
|
1416
1416
|
switch (_b) {
|
|
1417
|
-
case "ExpiredNextTokenException": return [3
|
|
1418
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3
|
|
1419
|
-
case "InvalidArgumentException": return [3
|
|
1420
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1421
|
-
case "LimitExceededException": return [3
|
|
1422
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1423
|
-
case "ResourceInUseException": return [3
|
|
1424
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
1425
|
-
case "ResourceNotFoundException": return [3
|
|
1426
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1417
|
+
case "ExpiredNextTokenException": return [3, 2];
|
|
1418
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3, 2];
|
|
1419
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1420
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 4];
|
|
1421
|
+
case "LimitExceededException": return [3, 6];
|
|
1422
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 6];
|
|
1423
|
+
case "ResourceInUseException": return [3, 8];
|
|
1424
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 8];
|
|
1425
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1426
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 10];
|
|
1427
1427
|
}
|
|
1428
|
-
return [3
|
|
1428
|
+
return [3, 12];
|
|
1429
1429
|
case 2:
|
|
1430
1430
|
_c = [{}];
|
|
1431
|
-
return [4
|
|
1431
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1432
1432
|
case 3:
|
|
1433
1433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1434
|
-
return [3
|
|
1434
|
+
return [3, 13];
|
|
1435
1435
|
case 4:
|
|
1436
1436
|
_d = [{}];
|
|
1437
|
-
return [4
|
|
1437
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1438
1438
|
case 5:
|
|
1439
1439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1440
|
-
return [3
|
|
1440
|
+
return [3, 13];
|
|
1441
1441
|
case 6:
|
|
1442
1442
|
_e = [{}];
|
|
1443
|
-
return [4
|
|
1443
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1444
1444
|
case 7:
|
|
1445
1445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1446
|
-
return [3
|
|
1446
|
+
return [3, 13];
|
|
1447
1447
|
case 8:
|
|
1448
1448
|
_f = [{}];
|
|
1449
|
-
return [4
|
|
1449
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1450
1450
|
case 9:
|
|
1451
1451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3
|
|
1452
|
+
return [3, 13];
|
|
1453
1453
|
case 10:
|
|
1454
1454
|
_g = [{}];
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1456
1456
|
case 11:
|
|
1457
1457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3
|
|
1458
|
+
return [3, 13];
|
|
1459
1459
|
case 12:
|
|
1460
1460
|
parsedBody = parsedOutput.body;
|
|
1461
1461
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1465,7 +1465,7 @@ var deserializeAws_json1_1ListShardsCommandError = function (output, context) {
|
|
|
1465
1465
|
message = response.message || response.Message || errorCode;
|
|
1466
1466
|
response.message = message;
|
|
1467
1467
|
delete response.Message;
|
|
1468
|
-
return [2
|
|
1468
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
}); };
|
|
@@ -1475,15 +1475,15 @@ export var deserializeAws_json1_1ListStreamConsumersCommand = function (output,
|
|
|
1475
1475
|
switch (_a.label) {
|
|
1476
1476
|
case 0:
|
|
1477
1477
|
if (output.statusCode >= 300) {
|
|
1478
|
-
return [2
|
|
1478
|
+
return [2, deserializeAws_json1_1ListStreamConsumersCommandError(output, context)];
|
|
1479
1479
|
}
|
|
1480
|
-
return [4
|
|
1480
|
+
return [4, parseBody(output.body, context)];
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
data = _a.sent();
|
|
1483
1483
|
contents = {};
|
|
1484
1484
|
contents = deserializeAws_json1_1ListStreamConsumersOutput(data, context);
|
|
1485
1485
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1486
|
-
return [2
|
|
1486
|
+
return [2, Promise.resolve(response)];
|
|
1487
1487
|
}
|
|
1488
1488
|
});
|
|
1489
1489
|
}); };
|
|
@@ -1495,55 +1495,55 @@ var deserializeAws_json1_1ListStreamConsumersCommandError = function (output, co
|
|
|
1495
1495
|
case 0:
|
|
1496
1496
|
_a = [__assign({}, output)];
|
|
1497
1497
|
_h = {};
|
|
1498
|
-
return [4
|
|
1498
|
+
return [4, parseBody(output.body, context)];
|
|
1499
1499
|
case 1:
|
|
1500
1500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1501
1501
|
errorCode = "UnknownError";
|
|
1502
1502
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
1503
|
_b = errorCode;
|
|
1504
1504
|
switch (_b) {
|
|
1505
|
-
case "ExpiredNextTokenException": return [3
|
|
1506
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3
|
|
1507
|
-
case "InvalidArgumentException": return [3
|
|
1508
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1509
|
-
case "LimitExceededException": return [3
|
|
1510
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1511
|
-
case "ResourceInUseException": return [3
|
|
1512
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
1513
|
-
case "ResourceNotFoundException": return [3
|
|
1514
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1505
|
+
case "ExpiredNextTokenException": return [3, 2];
|
|
1506
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3, 2];
|
|
1507
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1508
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 4];
|
|
1509
|
+
case "LimitExceededException": return [3, 6];
|
|
1510
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 6];
|
|
1511
|
+
case "ResourceInUseException": return [3, 8];
|
|
1512
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 8];
|
|
1513
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1514
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 10];
|
|
1515
1515
|
}
|
|
1516
|
-
return [3
|
|
1516
|
+
return [3, 12];
|
|
1517
1517
|
case 2:
|
|
1518
1518
|
_c = [{}];
|
|
1519
|
-
return [4
|
|
1519
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1520
1520
|
case 3:
|
|
1521
1521
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1522
|
-
return [3
|
|
1522
|
+
return [3, 13];
|
|
1523
1523
|
case 4:
|
|
1524
1524
|
_d = [{}];
|
|
1525
|
-
return [4
|
|
1525
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1526
1526
|
case 5:
|
|
1527
1527
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1528
|
-
return [3
|
|
1528
|
+
return [3, 13];
|
|
1529
1529
|
case 6:
|
|
1530
1530
|
_e = [{}];
|
|
1531
|
-
return [4
|
|
1531
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1532
1532
|
case 7:
|
|
1533
1533
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1534
|
-
return [3
|
|
1534
|
+
return [3, 13];
|
|
1535
1535
|
case 8:
|
|
1536
1536
|
_f = [{}];
|
|
1537
|
-
return [4
|
|
1537
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1538
1538
|
case 9:
|
|
1539
1539
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1540
|
-
return [3
|
|
1540
|
+
return [3, 13];
|
|
1541
1541
|
case 10:
|
|
1542
1542
|
_g = [{}];
|
|
1543
|
-
return [4
|
|
1543
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1544
1544
|
case 11:
|
|
1545
1545
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1546
|
-
return [3
|
|
1546
|
+
return [3, 13];
|
|
1547
1547
|
case 12:
|
|
1548
1548
|
parsedBody = parsedOutput.body;
|
|
1549
1549
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1553,7 +1553,7 @@ var deserializeAws_json1_1ListStreamConsumersCommandError = function (output, co
|
|
|
1553
1553
|
message = response.message || response.Message || errorCode;
|
|
1554
1554
|
response.message = message;
|
|
1555
1555
|
delete response.Message;
|
|
1556
|
-
return [2
|
|
1556
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1557
1557
|
}
|
|
1558
1558
|
});
|
|
1559
1559
|
}); };
|
|
@@ -1563,15 +1563,15 @@ export var deserializeAws_json1_1ListStreamsCommand = function (output, context)
|
|
|
1563
1563
|
switch (_a.label) {
|
|
1564
1564
|
case 0:
|
|
1565
1565
|
if (output.statusCode >= 300) {
|
|
1566
|
-
return [2
|
|
1566
|
+
return [2, deserializeAws_json1_1ListStreamsCommandError(output, context)];
|
|
1567
1567
|
}
|
|
1568
|
-
return [4
|
|
1568
|
+
return [4, parseBody(output.body, context)];
|
|
1569
1569
|
case 1:
|
|
1570
1570
|
data = _a.sent();
|
|
1571
1571
|
contents = {};
|
|
1572
1572
|
contents = deserializeAws_json1_1ListStreamsOutput(data, context);
|
|
1573
1573
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1574
|
-
return [2
|
|
1574
|
+
return [2, Promise.resolve(response)];
|
|
1575
1575
|
}
|
|
1576
1576
|
});
|
|
1577
1577
|
}); };
|
|
@@ -1583,23 +1583,23 @@ var deserializeAws_json1_1ListStreamsCommandError = function (output, context) {
|
|
|
1583
1583
|
case 0:
|
|
1584
1584
|
_a = [__assign({}, output)];
|
|
1585
1585
|
_d = {};
|
|
1586
|
-
return [4
|
|
1586
|
+
return [4, parseBody(output.body, context)];
|
|
1587
1587
|
case 1:
|
|
1588
1588
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1589
1589
|
errorCode = "UnknownError";
|
|
1590
1590
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1591
|
_b = errorCode;
|
|
1592
1592
|
switch (_b) {
|
|
1593
|
-
case "LimitExceededException": return [3
|
|
1594
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1593
|
+
case "LimitExceededException": return [3, 2];
|
|
1594
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 2];
|
|
1595
1595
|
}
|
|
1596
|
-
return [3
|
|
1596
|
+
return [3, 4];
|
|
1597
1597
|
case 2:
|
|
1598
1598
|
_c = [{}];
|
|
1599
|
-
return [4
|
|
1599
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1600
1600
|
case 3:
|
|
1601
1601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1602
|
-
return [3
|
|
1602
|
+
return [3, 5];
|
|
1603
1603
|
case 4:
|
|
1604
1604
|
parsedBody = parsedOutput.body;
|
|
1605
1605
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1609,7 +1609,7 @@ var deserializeAws_json1_1ListStreamsCommandError = function (output, context) {
|
|
|
1609
1609
|
message = response.message || response.Message || errorCode;
|
|
1610
1610
|
response.message = message;
|
|
1611
1611
|
delete response.Message;
|
|
1612
|
-
return [2
|
|
1612
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1613
1613
|
}
|
|
1614
1614
|
});
|
|
1615
1615
|
}); };
|
|
@@ -1619,15 +1619,15 @@ export var deserializeAws_json1_1ListTagsForStreamCommand = function (output, co
|
|
|
1619
1619
|
switch (_a.label) {
|
|
1620
1620
|
case 0:
|
|
1621
1621
|
if (output.statusCode >= 300) {
|
|
1622
|
-
return [2
|
|
1622
|
+
return [2, deserializeAws_json1_1ListTagsForStreamCommandError(output, context)];
|
|
1623
1623
|
}
|
|
1624
|
-
return [4
|
|
1624
|
+
return [4, parseBody(output.body, context)];
|
|
1625
1625
|
case 1:
|
|
1626
1626
|
data = _a.sent();
|
|
1627
1627
|
contents = {};
|
|
1628
1628
|
contents = deserializeAws_json1_1ListTagsForStreamOutput(data, context);
|
|
1629
1629
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1630
|
-
return [2
|
|
1630
|
+
return [2, Promise.resolve(response)];
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
1633
|
}); };
|
|
@@ -1639,39 +1639,39 @@ var deserializeAws_json1_1ListTagsForStreamCommandError = function (output, cont
|
|
|
1639
1639
|
case 0:
|
|
1640
1640
|
_a = [__assign({}, output)];
|
|
1641
1641
|
_f = {};
|
|
1642
|
-
return [4
|
|
1642
|
+
return [4, parseBody(output.body, context)];
|
|
1643
1643
|
case 1:
|
|
1644
1644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1645
1645
|
errorCode = "UnknownError";
|
|
1646
1646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
1647
|
_b = errorCode;
|
|
1648
1648
|
switch (_b) {
|
|
1649
|
-
case "InvalidArgumentException": return [3
|
|
1650
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1651
|
-
case "LimitExceededException": return [3
|
|
1652
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1653
|
-
case "ResourceNotFoundException": return [3
|
|
1654
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1649
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1650
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1651
|
+
case "LimitExceededException": return [3, 4];
|
|
1652
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
1653
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1654
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 6];
|
|
1655
1655
|
}
|
|
1656
|
-
return [3
|
|
1656
|
+
return [3, 8];
|
|
1657
1657
|
case 2:
|
|
1658
1658
|
_c = [{}];
|
|
1659
|
-
return [4
|
|
1659
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1660
1660
|
case 3:
|
|
1661
1661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1662
|
-
return [3
|
|
1662
|
+
return [3, 9];
|
|
1663
1663
|
case 4:
|
|
1664
1664
|
_d = [{}];
|
|
1665
|
-
return [4
|
|
1665
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1666
1666
|
case 5:
|
|
1667
1667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1668
|
-
return [3
|
|
1668
|
+
return [3, 9];
|
|
1669
1669
|
case 6:
|
|
1670
1670
|
_e = [{}];
|
|
1671
|
-
return [4
|
|
1671
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1672
1672
|
case 7:
|
|
1673
1673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1674
|
-
return [3
|
|
1674
|
+
return [3, 9];
|
|
1675
1675
|
case 8:
|
|
1676
1676
|
parsedBody = parsedOutput.body;
|
|
1677
1677
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1681,7 +1681,7 @@ var deserializeAws_json1_1ListTagsForStreamCommandError = function (output, cont
|
|
|
1681
1681
|
message = response.message || response.Message || errorCode;
|
|
1682
1682
|
response.message = message;
|
|
1683
1683
|
delete response.Message;
|
|
1684
|
-
return [2
|
|
1684
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
}); };
|
|
@@ -1691,15 +1691,15 @@ export var deserializeAws_json1_1MergeShardsCommand = function (output, context)
|
|
|
1691
1691
|
switch (_a.label) {
|
|
1692
1692
|
case 0:
|
|
1693
1693
|
if (output.statusCode >= 300) {
|
|
1694
|
-
return [2
|
|
1694
|
+
return [2, deserializeAws_json1_1MergeShardsCommandError(output, context)];
|
|
1695
1695
|
}
|
|
1696
|
-
return [4
|
|
1696
|
+
return [4, collectBody(output.body, context)];
|
|
1697
1697
|
case 1:
|
|
1698
1698
|
_a.sent();
|
|
1699
1699
|
response = {
|
|
1700
1700
|
$metadata: deserializeMetadata(output),
|
|
1701
1701
|
};
|
|
1702
|
-
return [2
|
|
1702
|
+
return [2, Promise.resolve(response)];
|
|
1703
1703
|
}
|
|
1704
1704
|
});
|
|
1705
1705
|
}); };
|
|
@@ -1711,47 +1711,47 @@ var deserializeAws_json1_1MergeShardsCommandError = function (output, context) {
|
|
|
1711
1711
|
case 0:
|
|
1712
1712
|
_a = [__assign({}, output)];
|
|
1713
1713
|
_g = {};
|
|
1714
|
-
return [4
|
|
1714
|
+
return [4, parseBody(output.body, context)];
|
|
1715
1715
|
case 1:
|
|
1716
1716
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1717
1717
|
errorCode = "UnknownError";
|
|
1718
1718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1719
|
_b = errorCode;
|
|
1720
1720
|
switch (_b) {
|
|
1721
|
-
case "InvalidArgumentException": return [3
|
|
1722
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1723
|
-
case "LimitExceededException": return [3
|
|
1724
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
1725
|
-
case "ResourceInUseException": return [3
|
|
1726
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
1727
|
-
case "ResourceNotFoundException": return [3
|
|
1728
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1721
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1722
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1723
|
+
case "LimitExceededException": return [3, 4];
|
|
1724
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
1725
|
+
case "ResourceInUseException": return [3, 6];
|
|
1726
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
1727
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1728
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
1729
1729
|
}
|
|
1730
|
-
return [3
|
|
1730
|
+
return [3, 10];
|
|
1731
1731
|
case 2:
|
|
1732
1732
|
_c = [{}];
|
|
1733
|
-
return [4
|
|
1733
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1734
1734
|
case 3:
|
|
1735
1735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1736
|
-
return [3
|
|
1736
|
+
return [3, 11];
|
|
1737
1737
|
case 4:
|
|
1738
1738
|
_d = [{}];
|
|
1739
|
-
return [4
|
|
1739
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1740
1740
|
case 5:
|
|
1741
1741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1742
|
-
return [3
|
|
1742
|
+
return [3, 11];
|
|
1743
1743
|
case 6:
|
|
1744
1744
|
_e = [{}];
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1746
1746
|
case 7:
|
|
1747
1747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1748
|
+
return [3, 11];
|
|
1749
1749
|
case 8:
|
|
1750
1750
|
_f = [{}];
|
|
1751
|
-
return [4
|
|
1751
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1752
1752
|
case 9:
|
|
1753
1753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1754
|
-
return [3
|
|
1754
|
+
return [3, 11];
|
|
1755
1755
|
case 10:
|
|
1756
1756
|
parsedBody = parsedOutput.body;
|
|
1757
1757
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1761,7 +1761,7 @@ var deserializeAws_json1_1MergeShardsCommandError = function (output, context) {
|
|
|
1761
1761
|
message = response.message || response.Message || errorCode;
|
|
1762
1762
|
response.message = message;
|
|
1763
1763
|
delete response.Message;
|
|
1764
|
-
return [2
|
|
1764
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
1767
|
}); };
|
|
@@ -1771,15 +1771,15 @@ export var deserializeAws_json1_1PutRecordCommand = function (output, context) {
|
|
|
1771
1771
|
switch (_a.label) {
|
|
1772
1772
|
case 0:
|
|
1773
1773
|
if (output.statusCode >= 300) {
|
|
1774
|
-
return [2
|
|
1774
|
+
return [2, deserializeAws_json1_1PutRecordCommandError(output, context)];
|
|
1775
1775
|
}
|
|
1776
|
-
return [4
|
|
1776
|
+
return [4, parseBody(output.body, context)];
|
|
1777
1777
|
case 1:
|
|
1778
1778
|
data = _a.sent();
|
|
1779
1779
|
contents = {};
|
|
1780
1780
|
contents = deserializeAws_json1_1PutRecordOutput(data, context);
|
|
1781
1781
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1782
|
-
return [2
|
|
1782
|
+
return [2, Promise.resolve(response)];
|
|
1783
1783
|
}
|
|
1784
1784
|
});
|
|
1785
1785
|
}); };
|
|
@@ -1791,87 +1791,87 @@ var deserializeAws_json1_1PutRecordCommandError = function (output, context) { r
|
|
|
1791
1791
|
case 0:
|
|
1792
1792
|
_a = [__assign({}, output)];
|
|
1793
1793
|
_m = {};
|
|
1794
|
-
return [4
|
|
1794
|
+
return [4, parseBody(output.body, context)];
|
|
1795
1795
|
case 1:
|
|
1796
1796
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1797
1797
|
errorCode = "UnknownError";
|
|
1798
1798
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
1799
|
_b = errorCode;
|
|
1800
1800
|
switch (_b) {
|
|
1801
|
-
case "InvalidArgumentException": return [3
|
|
1802
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1803
|
-
case "KMSAccessDeniedException": return [3
|
|
1804
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3
|
|
1805
|
-
case "KMSDisabledException": return [3
|
|
1806
|
-
case "com.amazonaws.kinesis#KMSDisabledException": return [3
|
|
1807
|
-
case "KMSInvalidStateException": return [3
|
|
1808
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3
|
|
1809
|
-
case "KMSNotFoundException": return [3
|
|
1810
|
-
case "com.amazonaws.kinesis#KMSNotFoundException": return [3
|
|
1811
|
-
case "KMSOptInRequired": return [3
|
|
1812
|
-
case "com.amazonaws.kinesis#KMSOptInRequired": return [3
|
|
1813
|
-
case "KMSThrottlingException": return [3
|
|
1814
|
-
case "com.amazonaws.kinesis#KMSThrottlingException": return [3
|
|
1815
|
-
case "ProvisionedThroughputExceededException": return [3
|
|
1816
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3
|
|
1817
|
-
case "ResourceNotFoundException": return [3
|
|
1818
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1801
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1802
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1803
|
+
case "KMSAccessDeniedException": return [3, 4];
|
|
1804
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3, 4];
|
|
1805
|
+
case "KMSDisabledException": return [3, 6];
|
|
1806
|
+
case "com.amazonaws.kinesis#KMSDisabledException": return [3, 6];
|
|
1807
|
+
case "KMSInvalidStateException": return [3, 8];
|
|
1808
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3, 8];
|
|
1809
|
+
case "KMSNotFoundException": return [3, 10];
|
|
1810
|
+
case "com.amazonaws.kinesis#KMSNotFoundException": return [3, 10];
|
|
1811
|
+
case "KMSOptInRequired": return [3, 12];
|
|
1812
|
+
case "com.amazonaws.kinesis#KMSOptInRequired": return [3, 12];
|
|
1813
|
+
case "KMSThrottlingException": return [3, 14];
|
|
1814
|
+
case "com.amazonaws.kinesis#KMSThrottlingException": return [3, 14];
|
|
1815
|
+
case "ProvisionedThroughputExceededException": return [3, 16];
|
|
1816
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3, 16];
|
|
1817
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
1818
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 18];
|
|
1819
1819
|
}
|
|
1820
|
-
return [3
|
|
1820
|
+
return [3, 20];
|
|
1821
1821
|
case 2:
|
|
1822
1822
|
_c = [{}];
|
|
1823
|
-
return [4
|
|
1823
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1824
1824
|
case 3:
|
|
1825
1825
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1826
|
-
return [3
|
|
1826
|
+
return [3, 21];
|
|
1827
1827
|
case 4:
|
|
1828
1828
|
_d = [{}];
|
|
1829
|
-
return [4
|
|
1829
|
+
return [4, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1830
1830
|
case 5:
|
|
1831
1831
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1832
|
-
return [3
|
|
1832
|
+
return [3, 21];
|
|
1833
1833
|
case 6:
|
|
1834
1834
|
_e = [{}];
|
|
1835
|
-
return [4
|
|
1835
|
+
return [4, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
|
|
1836
1836
|
case 7:
|
|
1837
1837
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1838
|
-
return [3
|
|
1838
|
+
return [3, 21];
|
|
1839
1839
|
case 8:
|
|
1840
1840
|
_f = [{}];
|
|
1841
|
-
return [4
|
|
1841
|
+
return [4, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
1842
1842
|
case 9:
|
|
1843
1843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1844
|
-
return [3
|
|
1844
|
+
return [3, 21];
|
|
1845
1845
|
case 10:
|
|
1846
1846
|
_g = [{}];
|
|
1847
|
-
return [4
|
|
1847
|
+
return [4, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
1848
1848
|
case 11:
|
|
1849
1849
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1850
|
-
return [3
|
|
1850
|
+
return [3, 21];
|
|
1851
1851
|
case 12:
|
|
1852
1852
|
_h = [{}];
|
|
1853
|
-
return [4
|
|
1853
|
+
return [4, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
|
|
1854
1854
|
case 13:
|
|
1855
1855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1856
|
-
return [3
|
|
1856
|
+
return [3, 21];
|
|
1857
1857
|
case 14:
|
|
1858
1858
|
_j = [{}];
|
|
1859
|
-
return [4
|
|
1859
|
+
return [4, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
1860
1860
|
case 15:
|
|
1861
1861
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1862
|
-
return [3
|
|
1862
|
+
return [3, 21];
|
|
1863
1863
|
case 16:
|
|
1864
1864
|
_k = [{}];
|
|
1865
|
-
return [4
|
|
1865
|
+
return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
1866
1866
|
case 17:
|
|
1867
1867
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1868
|
-
return [3
|
|
1868
|
+
return [3, 21];
|
|
1869
1869
|
case 18:
|
|
1870
1870
|
_l = [{}];
|
|
1871
|
-
return [4
|
|
1871
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1872
1872
|
case 19:
|
|
1873
1873
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1874
|
-
return [3
|
|
1874
|
+
return [3, 21];
|
|
1875
1875
|
case 20:
|
|
1876
1876
|
parsedBody = parsedOutput.body;
|
|
1877
1877
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1881,7 +1881,7 @@ var deserializeAws_json1_1PutRecordCommandError = function (output, context) { r
|
|
|
1881
1881
|
message = response.message || response.Message || errorCode;
|
|
1882
1882
|
response.message = message;
|
|
1883
1883
|
delete response.Message;
|
|
1884
|
-
return [2
|
|
1884
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1885
1885
|
}
|
|
1886
1886
|
});
|
|
1887
1887
|
}); };
|
|
@@ -1891,15 +1891,15 @@ export var deserializeAws_json1_1PutRecordsCommand = function (output, context)
|
|
|
1891
1891
|
switch (_a.label) {
|
|
1892
1892
|
case 0:
|
|
1893
1893
|
if (output.statusCode >= 300) {
|
|
1894
|
-
return [2
|
|
1894
|
+
return [2, deserializeAws_json1_1PutRecordsCommandError(output, context)];
|
|
1895
1895
|
}
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, parseBody(output.body, context)];
|
|
1897
1897
|
case 1:
|
|
1898
1898
|
data = _a.sent();
|
|
1899
1899
|
contents = {};
|
|
1900
1900
|
contents = deserializeAws_json1_1PutRecordsOutput(data, context);
|
|
1901
1901
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1902
|
-
return [2
|
|
1902
|
+
return [2, Promise.resolve(response)];
|
|
1903
1903
|
}
|
|
1904
1904
|
});
|
|
1905
1905
|
}); };
|
|
@@ -1911,87 +1911,87 @@ var deserializeAws_json1_1PutRecordsCommandError = function (output, context) {
|
|
|
1911
1911
|
case 0:
|
|
1912
1912
|
_a = [__assign({}, output)];
|
|
1913
1913
|
_m = {};
|
|
1914
|
-
return [4
|
|
1914
|
+
return [4, parseBody(output.body, context)];
|
|
1915
1915
|
case 1:
|
|
1916
1916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1917
1917
|
errorCode = "UnknownError";
|
|
1918
1918
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
_b = errorCode;
|
|
1920
1920
|
switch (_b) {
|
|
1921
|
-
case "InvalidArgumentException": return [3
|
|
1922
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
1923
|
-
case "KMSAccessDeniedException": return [3
|
|
1924
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3
|
|
1925
|
-
case "KMSDisabledException": return [3
|
|
1926
|
-
case "com.amazonaws.kinesis#KMSDisabledException": return [3
|
|
1927
|
-
case "KMSInvalidStateException": return [3
|
|
1928
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3
|
|
1929
|
-
case "KMSNotFoundException": return [3
|
|
1930
|
-
case "com.amazonaws.kinesis#KMSNotFoundException": return [3
|
|
1931
|
-
case "KMSOptInRequired": return [3
|
|
1932
|
-
case "com.amazonaws.kinesis#KMSOptInRequired": return [3
|
|
1933
|
-
case "KMSThrottlingException": return [3
|
|
1934
|
-
case "com.amazonaws.kinesis#KMSThrottlingException": return [3
|
|
1935
|
-
case "ProvisionedThroughputExceededException": return [3
|
|
1936
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3
|
|
1937
|
-
case "ResourceNotFoundException": return [3
|
|
1938
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
1921
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1922
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
1923
|
+
case "KMSAccessDeniedException": return [3, 4];
|
|
1924
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3, 4];
|
|
1925
|
+
case "KMSDisabledException": return [3, 6];
|
|
1926
|
+
case "com.amazonaws.kinesis#KMSDisabledException": return [3, 6];
|
|
1927
|
+
case "KMSInvalidStateException": return [3, 8];
|
|
1928
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3, 8];
|
|
1929
|
+
case "KMSNotFoundException": return [3, 10];
|
|
1930
|
+
case "com.amazonaws.kinesis#KMSNotFoundException": return [3, 10];
|
|
1931
|
+
case "KMSOptInRequired": return [3, 12];
|
|
1932
|
+
case "com.amazonaws.kinesis#KMSOptInRequired": return [3, 12];
|
|
1933
|
+
case "KMSThrottlingException": return [3, 14];
|
|
1934
|
+
case "com.amazonaws.kinesis#KMSThrottlingException": return [3, 14];
|
|
1935
|
+
case "ProvisionedThroughputExceededException": return [3, 16];
|
|
1936
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3, 16];
|
|
1937
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
1938
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 18];
|
|
1939
1939
|
}
|
|
1940
|
-
return [3
|
|
1940
|
+
return [3, 20];
|
|
1941
1941
|
case 2:
|
|
1942
1942
|
_c = [{}];
|
|
1943
|
-
return [4
|
|
1943
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1944
1944
|
case 3:
|
|
1945
1945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1946
|
-
return [3
|
|
1946
|
+
return [3, 21];
|
|
1947
1947
|
case 4:
|
|
1948
1948
|
_d = [{}];
|
|
1949
|
-
return [4
|
|
1949
|
+
return [4, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1950
1950
|
case 5:
|
|
1951
1951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1952
|
-
return [3
|
|
1952
|
+
return [3, 21];
|
|
1953
1953
|
case 6:
|
|
1954
1954
|
_e = [{}];
|
|
1955
|
-
return [4
|
|
1955
|
+
return [4, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
|
|
1956
1956
|
case 7:
|
|
1957
1957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1958
|
-
return [3
|
|
1958
|
+
return [3, 21];
|
|
1959
1959
|
case 8:
|
|
1960
1960
|
_f = [{}];
|
|
1961
|
-
return [4
|
|
1961
|
+
return [4, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
1962
1962
|
case 9:
|
|
1963
1963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1964
|
-
return [3
|
|
1964
|
+
return [3, 21];
|
|
1965
1965
|
case 10:
|
|
1966
1966
|
_g = [{}];
|
|
1967
|
-
return [4
|
|
1967
|
+
return [4, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
1968
1968
|
case 11:
|
|
1969
1969
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1970
|
-
return [3
|
|
1970
|
+
return [3, 21];
|
|
1971
1971
|
case 12:
|
|
1972
1972
|
_h = [{}];
|
|
1973
|
-
return [4
|
|
1973
|
+
return [4, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
|
|
1974
1974
|
case 13:
|
|
1975
1975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1976
|
-
return [3
|
|
1976
|
+
return [3, 21];
|
|
1977
1977
|
case 14:
|
|
1978
1978
|
_j = [{}];
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
1980
1980
|
case 15:
|
|
1981
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1982
|
-
return [3
|
|
1982
|
+
return [3, 21];
|
|
1983
1983
|
case 16:
|
|
1984
1984
|
_k = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 17:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 21];
|
|
1989
1989
|
case 18:
|
|
1990
1990
|
_l = [{}];
|
|
1991
|
-
return [4
|
|
1991
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1992
1992
|
case 19:
|
|
1993
1993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1994
|
-
return [3
|
|
1994
|
+
return [3, 21];
|
|
1995
1995
|
case 20:
|
|
1996
1996
|
parsedBody = parsedOutput.body;
|
|
1997
1997
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2001,7 +2001,7 @@ var deserializeAws_json1_1PutRecordsCommandError = function (output, context) {
|
|
|
2001
2001
|
message = response.message || response.Message || errorCode;
|
|
2002
2002
|
response.message = message;
|
|
2003
2003
|
delete response.Message;
|
|
2004
|
-
return [2
|
|
2004
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2005
2005
|
}
|
|
2006
2006
|
});
|
|
2007
2007
|
}); };
|
|
@@ -2011,15 +2011,15 @@ export var deserializeAws_json1_1RegisterStreamConsumerCommand = function (outpu
|
|
|
2011
2011
|
switch (_a.label) {
|
|
2012
2012
|
case 0:
|
|
2013
2013
|
if (output.statusCode >= 300) {
|
|
2014
|
-
return [2
|
|
2014
|
+
return [2, deserializeAws_json1_1RegisterStreamConsumerCommandError(output, context)];
|
|
2015
2015
|
}
|
|
2016
|
-
return [4
|
|
2016
|
+
return [4, parseBody(output.body, context)];
|
|
2017
2017
|
case 1:
|
|
2018
2018
|
data = _a.sent();
|
|
2019
2019
|
contents = {};
|
|
2020
2020
|
contents = deserializeAws_json1_1RegisterStreamConsumerOutput(data, context);
|
|
2021
2021
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2022
|
-
return [2
|
|
2022
|
+
return [2, Promise.resolve(response)];
|
|
2023
2023
|
}
|
|
2024
2024
|
});
|
|
2025
2025
|
}); };
|
|
@@ -2031,47 +2031,47 @@ var deserializeAws_json1_1RegisterStreamConsumerCommandError = function (output,
|
|
|
2031
2031
|
case 0:
|
|
2032
2032
|
_a = [__assign({}, output)];
|
|
2033
2033
|
_g = {};
|
|
2034
|
-
return [4
|
|
2034
|
+
return [4, parseBody(output.body, context)];
|
|
2035
2035
|
case 1:
|
|
2036
2036
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2037
2037
|
errorCode = "UnknownError";
|
|
2038
2038
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
2039
|
_b = errorCode;
|
|
2040
2040
|
switch (_b) {
|
|
2041
|
-
case "InvalidArgumentException": return [3
|
|
2042
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2043
|
-
case "LimitExceededException": return [3
|
|
2044
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2045
|
-
case "ResourceInUseException": return [3
|
|
2046
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2047
|
-
case "ResourceNotFoundException": return [3
|
|
2048
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2041
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2042
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2043
|
+
case "LimitExceededException": return [3, 4];
|
|
2044
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2045
|
+
case "ResourceInUseException": return [3, 6];
|
|
2046
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2047
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2048
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2049
2049
|
}
|
|
2050
|
-
return [3
|
|
2050
|
+
return [3, 10];
|
|
2051
2051
|
case 2:
|
|
2052
2052
|
_c = [{}];
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2054
2054
|
case 3:
|
|
2055
2055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2056
|
-
return [3
|
|
2056
|
+
return [3, 11];
|
|
2057
2057
|
case 4:
|
|
2058
2058
|
_d = [{}];
|
|
2059
|
-
return [4
|
|
2059
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2060
2060
|
case 5:
|
|
2061
2061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3
|
|
2062
|
+
return [3, 11];
|
|
2063
2063
|
case 6:
|
|
2064
2064
|
_e = [{}];
|
|
2065
|
-
return [4
|
|
2065
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2066
2066
|
case 7:
|
|
2067
2067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2068
|
-
return [3
|
|
2068
|
+
return [3, 11];
|
|
2069
2069
|
case 8:
|
|
2070
2070
|
_f = [{}];
|
|
2071
|
-
return [4
|
|
2071
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2072
2072
|
case 9:
|
|
2073
2073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2074
|
-
return [3
|
|
2074
|
+
return [3, 11];
|
|
2075
2075
|
case 10:
|
|
2076
2076
|
parsedBody = parsedOutput.body;
|
|
2077
2077
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2081,7 +2081,7 @@ var deserializeAws_json1_1RegisterStreamConsumerCommandError = function (output,
|
|
|
2081
2081
|
message = response.message || response.Message || errorCode;
|
|
2082
2082
|
response.message = message;
|
|
2083
2083
|
delete response.Message;
|
|
2084
|
-
return [2
|
|
2084
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
2087
|
}); };
|
|
@@ -2091,15 +2091,15 @@ export var deserializeAws_json1_1RemoveTagsFromStreamCommand = function (output,
|
|
|
2091
2091
|
switch (_a.label) {
|
|
2092
2092
|
case 0:
|
|
2093
2093
|
if (output.statusCode >= 300) {
|
|
2094
|
-
return [2
|
|
2094
|
+
return [2, deserializeAws_json1_1RemoveTagsFromStreamCommandError(output, context)];
|
|
2095
2095
|
}
|
|
2096
|
-
return [4
|
|
2096
|
+
return [4, collectBody(output.body, context)];
|
|
2097
2097
|
case 1:
|
|
2098
2098
|
_a.sent();
|
|
2099
2099
|
response = {
|
|
2100
2100
|
$metadata: deserializeMetadata(output),
|
|
2101
2101
|
};
|
|
2102
|
-
return [2
|
|
2102
|
+
return [2, Promise.resolve(response)];
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
2105
|
}); };
|
|
@@ -2111,47 +2111,47 @@ var deserializeAws_json1_1RemoveTagsFromStreamCommandError = function (output, c
|
|
|
2111
2111
|
case 0:
|
|
2112
2112
|
_a = [__assign({}, output)];
|
|
2113
2113
|
_g = {};
|
|
2114
|
-
return [4
|
|
2114
|
+
return [4, parseBody(output.body, context)];
|
|
2115
2115
|
case 1:
|
|
2116
2116
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2117
2117
|
errorCode = "UnknownError";
|
|
2118
2118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2119
|
_b = errorCode;
|
|
2120
2120
|
switch (_b) {
|
|
2121
|
-
case "InvalidArgumentException": return [3
|
|
2122
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2123
|
-
case "LimitExceededException": return [3
|
|
2124
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2125
|
-
case "ResourceInUseException": return [3
|
|
2126
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2127
|
-
case "ResourceNotFoundException": return [3
|
|
2128
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2121
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2122
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2123
|
+
case "LimitExceededException": return [3, 4];
|
|
2124
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2125
|
+
case "ResourceInUseException": return [3, 6];
|
|
2126
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2127
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2128
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2129
2129
|
}
|
|
2130
|
-
return [3
|
|
2130
|
+
return [3, 10];
|
|
2131
2131
|
case 2:
|
|
2132
2132
|
_c = [{}];
|
|
2133
|
-
return [4
|
|
2133
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2134
2134
|
case 3:
|
|
2135
2135
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2136
|
-
return [3
|
|
2136
|
+
return [3, 11];
|
|
2137
2137
|
case 4:
|
|
2138
2138
|
_d = [{}];
|
|
2139
|
-
return [4
|
|
2139
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2140
2140
|
case 5:
|
|
2141
2141
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2142
|
-
return [3
|
|
2142
|
+
return [3, 11];
|
|
2143
2143
|
case 6:
|
|
2144
2144
|
_e = [{}];
|
|
2145
|
-
return [4
|
|
2145
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2146
2146
|
case 7:
|
|
2147
2147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2148
|
-
return [3
|
|
2148
|
+
return [3, 11];
|
|
2149
2149
|
case 8:
|
|
2150
2150
|
_f = [{}];
|
|
2151
|
-
return [4
|
|
2151
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2152
2152
|
case 9:
|
|
2153
2153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2154
|
-
return [3
|
|
2154
|
+
return [3, 11];
|
|
2155
2155
|
case 10:
|
|
2156
2156
|
parsedBody = parsedOutput.body;
|
|
2157
2157
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2161,7 +2161,7 @@ var deserializeAws_json1_1RemoveTagsFromStreamCommandError = function (output, c
|
|
|
2161
2161
|
message = response.message || response.Message || errorCode;
|
|
2162
2162
|
response.message = message;
|
|
2163
2163
|
delete response.Message;
|
|
2164
|
-
return [2
|
|
2164
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2165
2165
|
}
|
|
2166
2166
|
});
|
|
2167
2167
|
}); };
|
|
@@ -2171,15 +2171,15 @@ export var deserializeAws_json1_1SplitShardCommand = function (output, context)
|
|
|
2171
2171
|
switch (_a.label) {
|
|
2172
2172
|
case 0:
|
|
2173
2173
|
if (output.statusCode >= 300) {
|
|
2174
|
-
return [2
|
|
2174
|
+
return [2, deserializeAws_json1_1SplitShardCommandError(output, context)];
|
|
2175
2175
|
}
|
|
2176
|
-
return [4
|
|
2176
|
+
return [4, collectBody(output.body, context)];
|
|
2177
2177
|
case 1:
|
|
2178
2178
|
_a.sent();
|
|
2179
2179
|
response = {
|
|
2180
2180
|
$metadata: deserializeMetadata(output),
|
|
2181
2181
|
};
|
|
2182
|
-
return [2
|
|
2182
|
+
return [2, Promise.resolve(response)];
|
|
2183
2183
|
}
|
|
2184
2184
|
});
|
|
2185
2185
|
}); };
|
|
@@ -2191,47 +2191,47 @@ var deserializeAws_json1_1SplitShardCommandError = function (output, context) {
|
|
|
2191
2191
|
case 0:
|
|
2192
2192
|
_a = [__assign({}, output)];
|
|
2193
2193
|
_g = {};
|
|
2194
|
-
return [4
|
|
2194
|
+
return [4, parseBody(output.body, context)];
|
|
2195
2195
|
case 1:
|
|
2196
2196
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2197
2197
|
errorCode = "UnknownError";
|
|
2198
2198
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2199
|
_b = errorCode;
|
|
2200
2200
|
switch (_b) {
|
|
2201
|
-
case "InvalidArgumentException": return [3
|
|
2202
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2203
|
-
case "LimitExceededException": return [3
|
|
2204
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2205
|
-
case "ResourceInUseException": return [3
|
|
2206
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2207
|
-
case "ResourceNotFoundException": return [3
|
|
2208
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2201
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2202
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2203
|
+
case "LimitExceededException": return [3, 4];
|
|
2204
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2205
|
+
case "ResourceInUseException": return [3, 6];
|
|
2206
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2207
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2208
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2209
2209
|
}
|
|
2210
|
-
return [3
|
|
2210
|
+
return [3, 10];
|
|
2211
2211
|
case 2:
|
|
2212
2212
|
_c = [{}];
|
|
2213
|
-
return [4
|
|
2213
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2214
2214
|
case 3:
|
|
2215
2215
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2216
|
-
return [3
|
|
2216
|
+
return [3, 11];
|
|
2217
2217
|
case 4:
|
|
2218
2218
|
_d = [{}];
|
|
2219
|
-
return [4
|
|
2219
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2220
2220
|
case 5:
|
|
2221
2221
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2222
|
-
return [3
|
|
2222
|
+
return [3, 11];
|
|
2223
2223
|
case 6:
|
|
2224
2224
|
_e = [{}];
|
|
2225
|
-
return [4
|
|
2225
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2226
2226
|
case 7:
|
|
2227
2227
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2228
|
-
return [3
|
|
2228
|
+
return [3, 11];
|
|
2229
2229
|
case 8:
|
|
2230
2230
|
_f = [{}];
|
|
2231
|
-
return [4
|
|
2231
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2232
2232
|
case 9:
|
|
2233
2233
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2234
|
-
return [3
|
|
2234
|
+
return [3, 11];
|
|
2235
2235
|
case 10:
|
|
2236
2236
|
parsedBody = parsedOutput.body;
|
|
2237
2237
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2241,7 +2241,7 @@ var deserializeAws_json1_1SplitShardCommandError = function (output, context) {
|
|
|
2241
2241
|
message = response.message || response.Message || errorCode;
|
|
2242
2242
|
response.message = message;
|
|
2243
2243
|
delete response.Message;
|
|
2244
|
-
return [2
|
|
2244
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2245
2245
|
}
|
|
2246
2246
|
});
|
|
2247
2247
|
}); };
|
|
@@ -2251,15 +2251,15 @@ export var deserializeAws_json1_1StartStreamEncryptionCommand = function (output
|
|
|
2251
2251
|
switch (_a.label) {
|
|
2252
2252
|
case 0:
|
|
2253
2253
|
if (output.statusCode >= 300) {
|
|
2254
|
-
return [2
|
|
2254
|
+
return [2, deserializeAws_json1_1StartStreamEncryptionCommandError(output, context)];
|
|
2255
2255
|
}
|
|
2256
|
-
return [4
|
|
2256
|
+
return [4, collectBody(output.body, context)];
|
|
2257
2257
|
case 1:
|
|
2258
2258
|
_a.sent();
|
|
2259
2259
|
response = {
|
|
2260
2260
|
$metadata: deserializeMetadata(output),
|
|
2261
2261
|
};
|
|
2262
|
-
return [2
|
|
2262
|
+
return [2, Promise.resolve(response)];
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
}); };
|
|
@@ -2271,95 +2271,95 @@ var deserializeAws_json1_1StartStreamEncryptionCommandError = function (output,
|
|
|
2271
2271
|
case 0:
|
|
2272
2272
|
_a = [__assign({}, output)];
|
|
2273
2273
|
_o = {};
|
|
2274
|
-
return [4
|
|
2274
|
+
return [4, parseBody(output.body, context)];
|
|
2275
2275
|
case 1:
|
|
2276
2276
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
2277
2277
|
errorCode = "UnknownError";
|
|
2278
2278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
2279
|
_b = errorCode;
|
|
2280
2280
|
switch (_b) {
|
|
2281
|
-
case "InvalidArgumentException": return [3
|
|
2282
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2283
|
-
case "KMSAccessDeniedException": return [3
|
|
2284
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3
|
|
2285
|
-
case "KMSDisabledException": return [3
|
|
2286
|
-
case "com.amazonaws.kinesis#KMSDisabledException": return [3
|
|
2287
|
-
case "KMSInvalidStateException": return [3
|
|
2288
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3
|
|
2289
|
-
case "KMSNotFoundException": return [3
|
|
2290
|
-
case "com.amazonaws.kinesis#KMSNotFoundException": return [3
|
|
2291
|
-
case "KMSOptInRequired": return [3
|
|
2292
|
-
case "com.amazonaws.kinesis#KMSOptInRequired": return [3
|
|
2293
|
-
case "KMSThrottlingException": return [3
|
|
2294
|
-
case "com.amazonaws.kinesis#KMSThrottlingException": return [3
|
|
2295
|
-
case "LimitExceededException": return [3
|
|
2296
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2297
|
-
case "ResourceInUseException": return [3
|
|
2298
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2299
|
-
case "ResourceNotFoundException": return [3
|
|
2300
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2281
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2282
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2283
|
+
case "KMSAccessDeniedException": return [3, 4];
|
|
2284
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3, 4];
|
|
2285
|
+
case "KMSDisabledException": return [3, 6];
|
|
2286
|
+
case "com.amazonaws.kinesis#KMSDisabledException": return [3, 6];
|
|
2287
|
+
case "KMSInvalidStateException": return [3, 8];
|
|
2288
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException": return [3, 8];
|
|
2289
|
+
case "KMSNotFoundException": return [3, 10];
|
|
2290
|
+
case "com.amazonaws.kinesis#KMSNotFoundException": return [3, 10];
|
|
2291
|
+
case "KMSOptInRequired": return [3, 12];
|
|
2292
|
+
case "com.amazonaws.kinesis#KMSOptInRequired": return [3, 12];
|
|
2293
|
+
case "KMSThrottlingException": return [3, 14];
|
|
2294
|
+
case "com.amazonaws.kinesis#KMSThrottlingException": return [3, 14];
|
|
2295
|
+
case "LimitExceededException": return [3, 16];
|
|
2296
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 16];
|
|
2297
|
+
case "ResourceInUseException": return [3, 18];
|
|
2298
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 18];
|
|
2299
|
+
case "ResourceNotFoundException": return [3, 20];
|
|
2300
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 20];
|
|
2301
2301
|
}
|
|
2302
|
-
return [3
|
|
2302
|
+
return [3, 22];
|
|
2303
2303
|
case 2:
|
|
2304
2304
|
_c = [{}];
|
|
2305
|
-
return [4
|
|
2305
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2306
2306
|
case 3:
|
|
2307
2307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2308
|
-
return [3
|
|
2308
|
+
return [3, 23];
|
|
2309
2309
|
case 4:
|
|
2310
2310
|
_d = [{}];
|
|
2311
|
-
return [4
|
|
2311
|
+
return [4, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2312
2312
|
case 5:
|
|
2313
2313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2314
|
-
return [3
|
|
2314
|
+
return [3, 23];
|
|
2315
2315
|
case 6:
|
|
2316
2316
|
_e = [{}];
|
|
2317
|
-
return [4
|
|
2317
|
+
return [4, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2318
2318
|
case 7:
|
|
2319
2319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2320
|
-
return [3
|
|
2320
|
+
return [3, 23];
|
|
2321
2321
|
case 8:
|
|
2322
2322
|
_f = [{}];
|
|
2323
|
-
return [4
|
|
2323
|
+
return [4, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2324
2324
|
case 9:
|
|
2325
2325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2326
|
-
return [3
|
|
2326
|
+
return [3, 23];
|
|
2327
2327
|
case 10:
|
|
2328
2328
|
_g = [{}];
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2330
2330
|
case 11:
|
|
2331
2331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2332
|
-
return [3
|
|
2332
|
+
return [3, 23];
|
|
2333
2333
|
case 12:
|
|
2334
2334
|
_h = [{}];
|
|
2335
|
-
return [4
|
|
2335
|
+
return [4, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
|
|
2336
2336
|
case 13:
|
|
2337
2337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2338
|
-
return [3
|
|
2338
|
+
return [3, 23];
|
|
2339
2339
|
case 14:
|
|
2340
2340
|
_j = [{}];
|
|
2341
|
-
return [4
|
|
2341
|
+
return [4, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2342
2342
|
case 15:
|
|
2343
2343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2344
|
-
return [3
|
|
2344
|
+
return [3, 23];
|
|
2345
2345
|
case 16:
|
|
2346
2346
|
_k = [{}];
|
|
2347
|
-
return [4
|
|
2347
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2348
2348
|
case 17:
|
|
2349
2349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2350
|
-
return [3
|
|
2350
|
+
return [3, 23];
|
|
2351
2351
|
case 18:
|
|
2352
2352
|
_l = [{}];
|
|
2353
|
-
return [4
|
|
2353
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2354
2354
|
case 19:
|
|
2355
2355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2356
|
-
return [3
|
|
2356
|
+
return [3, 23];
|
|
2357
2357
|
case 20:
|
|
2358
2358
|
_m = [{}];
|
|
2359
|
-
return [4
|
|
2359
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2360
2360
|
case 21:
|
|
2361
2361
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2362
|
-
return [3
|
|
2362
|
+
return [3, 23];
|
|
2363
2363
|
case 22:
|
|
2364
2364
|
parsedBody = parsedOutput.body;
|
|
2365
2365
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2369,7 +2369,7 @@ var deserializeAws_json1_1StartStreamEncryptionCommandError = function (output,
|
|
|
2369
2369
|
message = response.message || response.Message || errorCode;
|
|
2370
2370
|
response.message = message;
|
|
2371
2371
|
delete response.Message;
|
|
2372
|
-
return [2
|
|
2372
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2373
2373
|
}
|
|
2374
2374
|
});
|
|
2375
2375
|
}); };
|
|
@@ -2379,15 +2379,15 @@ export var deserializeAws_json1_1StopStreamEncryptionCommand = function (output,
|
|
|
2379
2379
|
switch (_a.label) {
|
|
2380
2380
|
case 0:
|
|
2381
2381
|
if (output.statusCode >= 300) {
|
|
2382
|
-
return [2
|
|
2382
|
+
return [2, deserializeAws_json1_1StopStreamEncryptionCommandError(output, context)];
|
|
2383
2383
|
}
|
|
2384
|
-
return [4
|
|
2384
|
+
return [4, collectBody(output.body, context)];
|
|
2385
2385
|
case 1:
|
|
2386
2386
|
_a.sent();
|
|
2387
2387
|
response = {
|
|
2388
2388
|
$metadata: deserializeMetadata(output),
|
|
2389
2389
|
};
|
|
2390
|
-
return [2
|
|
2390
|
+
return [2, Promise.resolve(response)];
|
|
2391
2391
|
}
|
|
2392
2392
|
});
|
|
2393
2393
|
}); };
|
|
@@ -2399,47 +2399,47 @@ var deserializeAws_json1_1StopStreamEncryptionCommandError = function (output, c
|
|
|
2399
2399
|
case 0:
|
|
2400
2400
|
_a = [__assign({}, output)];
|
|
2401
2401
|
_g = {};
|
|
2402
|
-
return [4
|
|
2402
|
+
return [4, parseBody(output.body, context)];
|
|
2403
2403
|
case 1:
|
|
2404
2404
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2405
2405
|
errorCode = "UnknownError";
|
|
2406
2406
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
2407
|
_b = errorCode;
|
|
2408
2408
|
switch (_b) {
|
|
2409
|
-
case "InvalidArgumentException": return [3
|
|
2410
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2411
|
-
case "LimitExceededException": return [3
|
|
2412
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2413
|
-
case "ResourceInUseException": return [3
|
|
2414
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2415
|
-
case "ResourceNotFoundException": return [3
|
|
2416
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2409
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2410
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2411
|
+
case "LimitExceededException": return [3, 4];
|
|
2412
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2413
|
+
case "ResourceInUseException": return [3, 6];
|
|
2414
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2415
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2416
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2417
2417
|
}
|
|
2418
|
-
return [3
|
|
2418
|
+
return [3, 10];
|
|
2419
2419
|
case 2:
|
|
2420
2420
|
_c = [{}];
|
|
2421
|
-
return [4
|
|
2421
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2422
2422
|
case 3:
|
|
2423
2423
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2424
|
-
return [3
|
|
2424
|
+
return [3, 11];
|
|
2425
2425
|
case 4:
|
|
2426
2426
|
_d = [{}];
|
|
2427
|
-
return [4
|
|
2427
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2428
2428
|
case 5:
|
|
2429
2429
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2430
|
-
return [3
|
|
2430
|
+
return [3, 11];
|
|
2431
2431
|
case 6:
|
|
2432
2432
|
_e = [{}];
|
|
2433
|
-
return [4
|
|
2433
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2434
2434
|
case 7:
|
|
2435
2435
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2436
|
-
return [3
|
|
2436
|
+
return [3, 11];
|
|
2437
2437
|
case 8:
|
|
2438
2438
|
_f = [{}];
|
|
2439
|
-
return [4
|
|
2439
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2440
2440
|
case 9:
|
|
2441
2441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2442
|
-
return [3
|
|
2442
|
+
return [3, 11];
|
|
2443
2443
|
case 10:
|
|
2444
2444
|
parsedBody = parsedOutput.body;
|
|
2445
2445
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2449,7 +2449,7 @@ var deserializeAws_json1_1StopStreamEncryptionCommandError = function (output, c
|
|
|
2449
2449
|
message = response.message || response.Message || errorCode;
|
|
2450
2450
|
response.message = message;
|
|
2451
2451
|
delete response.Message;
|
|
2452
|
-
return [2
|
|
2452
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2453
2453
|
}
|
|
2454
2454
|
});
|
|
2455
2455
|
}); };
|
|
@@ -2459,15 +2459,15 @@ export var deserializeAws_json1_1SubscribeToShardCommand = function (output, con
|
|
|
2459
2459
|
switch (_a.label) {
|
|
2460
2460
|
case 0:
|
|
2461
2461
|
if (output.statusCode >= 300) {
|
|
2462
|
-
return [2
|
|
2462
|
+
return [2, deserializeAws_json1_1SubscribeToShardCommandError(output, context)];
|
|
2463
2463
|
}
|
|
2464
|
-
return [4
|
|
2464
|
+
return [4, parseBody(output.body, context)];
|
|
2465
2465
|
case 1:
|
|
2466
2466
|
data = _a.sent();
|
|
2467
2467
|
contents = {};
|
|
2468
2468
|
contents = deserializeAws_json1_1SubscribeToShardOutput(data, context);
|
|
2469
2469
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2470
|
-
return [2
|
|
2470
|
+
return [2, Promise.resolve(response)];
|
|
2471
2471
|
}
|
|
2472
2472
|
});
|
|
2473
2473
|
}); };
|
|
@@ -2479,47 +2479,47 @@ var deserializeAws_json1_1SubscribeToShardCommandError = function (output, conte
|
|
|
2479
2479
|
case 0:
|
|
2480
2480
|
_a = [__assign({}, output)];
|
|
2481
2481
|
_g = {};
|
|
2482
|
-
return [4
|
|
2482
|
+
return [4, parseBody(output.body, context)];
|
|
2483
2483
|
case 1:
|
|
2484
2484
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2485
2485
|
errorCode = "UnknownError";
|
|
2486
2486
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2487
2487
|
_b = errorCode;
|
|
2488
2488
|
switch (_b) {
|
|
2489
|
-
case "InvalidArgumentException": return [3
|
|
2490
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2491
|
-
case "LimitExceededException": return [3
|
|
2492
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2493
|
-
case "ResourceInUseException": return [3
|
|
2494
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2495
|
-
case "ResourceNotFoundException": return [3
|
|
2496
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2489
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2490
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2491
|
+
case "LimitExceededException": return [3, 4];
|
|
2492
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2493
|
+
case "ResourceInUseException": return [3, 6];
|
|
2494
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2495
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2496
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2497
2497
|
}
|
|
2498
|
-
return [3
|
|
2498
|
+
return [3, 10];
|
|
2499
2499
|
case 2:
|
|
2500
2500
|
_c = [{}];
|
|
2501
|
-
return [4
|
|
2501
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2502
2502
|
case 3:
|
|
2503
2503
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2504
|
-
return [3
|
|
2504
|
+
return [3, 11];
|
|
2505
2505
|
case 4:
|
|
2506
2506
|
_d = [{}];
|
|
2507
|
-
return [4
|
|
2507
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2508
2508
|
case 5:
|
|
2509
2509
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2510
|
-
return [3
|
|
2510
|
+
return [3, 11];
|
|
2511
2511
|
case 6:
|
|
2512
2512
|
_e = [{}];
|
|
2513
|
-
return [4
|
|
2513
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2514
2514
|
case 7:
|
|
2515
2515
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2516
|
-
return [3
|
|
2516
|
+
return [3, 11];
|
|
2517
2517
|
case 8:
|
|
2518
2518
|
_f = [{}];
|
|
2519
|
-
return [4
|
|
2519
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2520
2520
|
case 9:
|
|
2521
2521
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2522
|
-
return [3
|
|
2522
|
+
return [3, 11];
|
|
2523
2523
|
case 10:
|
|
2524
2524
|
parsedBody = parsedOutput.body;
|
|
2525
2525
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2529,7 +2529,7 @@ var deserializeAws_json1_1SubscribeToShardCommandError = function (output, conte
|
|
|
2529
2529
|
message = response.message || response.Message || errorCode;
|
|
2530
2530
|
response.message = message;
|
|
2531
2531
|
delete response.Message;
|
|
2532
|
-
return [2
|
|
2532
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2533
2533
|
}
|
|
2534
2534
|
});
|
|
2535
2535
|
}); };
|
|
@@ -2539,15 +2539,15 @@ export var deserializeAws_json1_1UpdateShardCountCommand = function (output, con
|
|
|
2539
2539
|
switch (_a.label) {
|
|
2540
2540
|
case 0:
|
|
2541
2541
|
if (output.statusCode >= 300) {
|
|
2542
|
-
return [2
|
|
2542
|
+
return [2, deserializeAws_json1_1UpdateShardCountCommandError(output, context)];
|
|
2543
2543
|
}
|
|
2544
|
-
return [4
|
|
2544
|
+
return [4, parseBody(output.body, context)];
|
|
2545
2545
|
case 1:
|
|
2546
2546
|
data = _a.sent();
|
|
2547
2547
|
contents = {};
|
|
2548
2548
|
contents = deserializeAws_json1_1UpdateShardCountOutput(data, context);
|
|
2549
2549
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2550
|
-
return [2
|
|
2550
|
+
return [2, Promise.resolve(response)];
|
|
2551
2551
|
}
|
|
2552
2552
|
});
|
|
2553
2553
|
}); };
|
|
@@ -2559,47 +2559,47 @@ var deserializeAws_json1_1UpdateShardCountCommandError = function (output, conte
|
|
|
2559
2559
|
case 0:
|
|
2560
2560
|
_a = [__assign({}, output)];
|
|
2561
2561
|
_g = {};
|
|
2562
|
-
return [4
|
|
2562
|
+
return [4, parseBody(output.body, context)];
|
|
2563
2563
|
case 1:
|
|
2564
2564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2565
2565
|
errorCode = "UnknownError";
|
|
2566
2566
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
2567
|
_b = errorCode;
|
|
2568
2568
|
switch (_b) {
|
|
2569
|
-
case "InvalidArgumentException": return [3
|
|
2570
|
-
case "com.amazonaws.kinesis#InvalidArgumentException": return [3
|
|
2571
|
-
case "LimitExceededException": return [3
|
|
2572
|
-
case "com.amazonaws.kinesis#LimitExceededException": return [3
|
|
2573
|
-
case "ResourceInUseException": return [3
|
|
2574
|
-
case "com.amazonaws.kinesis#ResourceInUseException": return [3
|
|
2575
|
-
case "ResourceNotFoundException": return [3
|
|
2576
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3
|
|
2569
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2570
|
+
case "com.amazonaws.kinesis#InvalidArgumentException": return [3, 2];
|
|
2571
|
+
case "LimitExceededException": return [3, 4];
|
|
2572
|
+
case "com.amazonaws.kinesis#LimitExceededException": return [3, 4];
|
|
2573
|
+
case "ResourceInUseException": return [3, 6];
|
|
2574
|
+
case "com.amazonaws.kinesis#ResourceInUseException": return [3, 6];
|
|
2575
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2576
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException": return [3, 8];
|
|
2577
2577
|
}
|
|
2578
|
-
return [3
|
|
2578
|
+
return [3, 10];
|
|
2579
2579
|
case 2:
|
|
2580
2580
|
_c = [{}];
|
|
2581
|
-
return [4
|
|
2581
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2582
2582
|
case 3:
|
|
2583
2583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2584
|
-
return [3
|
|
2584
|
+
return [3, 11];
|
|
2585
2585
|
case 4:
|
|
2586
2586
|
_d = [{}];
|
|
2587
|
-
return [4
|
|
2587
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2588
2588
|
case 5:
|
|
2589
2589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2590
|
-
return [3
|
|
2590
|
+
return [3, 11];
|
|
2591
2591
|
case 6:
|
|
2592
2592
|
_e = [{}];
|
|
2593
|
-
return [4
|
|
2593
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2594
2594
|
case 7:
|
|
2595
2595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2596
|
-
return [3
|
|
2596
|
+
return [3, 11];
|
|
2597
2597
|
case 8:
|
|
2598
2598
|
_f = [{}];
|
|
2599
|
-
return [4
|
|
2599
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2600
2600
|
case 9:
|
|
2601
2601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2602
|
-
return [3
|
|
2602
|
+
return [3, 11];
|
|
2603
2603
|
case 10:
|
|
2604
2604
|
parsedBody = parsedOutput.body;
|
|
2605
2605
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2609,7 +2609,7 @@ var deserializeAws_json1_1UpdateShardCountCommandError = function (output, conte
|
|
|
2609
2609
|
message = response.message || response.Message || errorCode;
|
|
2610
2610
|
response.message = message;
|
|
2611
2611
|
delete response.Message;
|
|
2612
|
-
return [2
|
|
2612
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
2615
|
}); };
|
|
@@ -2619,7 +2619,7 @@ var deserializeAws_json1_1ExpiredIteratorExceptionResponse = function (parsedOut
|
|
|
2619
2619
|
body = parsedOutput.body;
|
|
2620
2620
|
deserialized = deserializeAws_json1_1ExpiredIteratorException(body, context);
|
|
2621
2621
|
contents = __assign({ name: "ExpiredIteratorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2622
|
-
return [2
|
|
2622
|
+
return [2, contents];
|
|
2623
2623
|
});
|
|
2624
2624
|
}); };
|
|
2625
2625
|
var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2628,7 +2628,7 @@ var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOu
|
|
|
2628
2628
|
body = parsedOutput.body;
|
|
2629
2629
|
deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
|
|
2630
2630
|
contents = __assign({ name: "ExpiredNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2631
|
-
return [2
|
|
2631
|
+
return [2, contents];
|
|
2632
2632
|
});
|
|
2633
2633
|
}); };
|
|
2634
2634
|
var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2637,7 +2637,7 @@ var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOut
|
|
|
2637
2637
|
body = parsedOutput.body;
|
|
2638
2638
|
deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
2639
2639
|
contents = __assign({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2640
|
-
return [2
|
|
2640
|
+
return [2, contents];
|
|
2641
2641
|
});
|
|
2642
2642
|
}); };
|
|
2643
2643
|
var deserializeAws_json1_1KMSAccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2646,7 +2646,7 @@ var deserializeAws_json1_1KMSAccessDeniedExceptionResponse = function (parsedOut
|
|
|
2646
2646
|
body = parsedOutput.body;
|
|
2647
2647
|
deserialized = deserializeAws_json1_1KMSAccessDeniedException(body, context);
|
|
2648
2648
|
contents = __assign({ name: "KMSAccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2649
|
-
return [2
|
|
2649
|
+
return [2, contents];
|
|
2650
2650
|
});
|
|
2651
2651
|
}); };
|
|
2652
2652
|
var deserializeAws_json1_1KMSDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2655,7 +2655,7 @@ var deserializeAws_json1_1KMSDisabledExceptionResponse = function (parsedOutput,
|
|
|
2655
2655
|
body = parsedOutput.body;
|
|
2656
2656
|
deserialized = deserializeAws_json1_1KMSDisabledException(body, context);
|
|
2657
2657
|
contents = __assign({ name: "KMSDisabledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2658
|
-
return [2
|
|
2658
|
+
return [2, contents];
|
|
2659
2659
|
});
|
|
2660
2660
|
}); };
|
|
2661
2661
|
var deserializeAws_json1_1KMSInvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2664,7 +2664,7 @@ var deserializeAws_json1_1KMSInvalidStateExceptionResponse = function (parsedOut
|
|
|
2664
2664
|
body = parsedOutput.body;
|
|
2665
2665
|
deserialized = deserializeAws_json1_1KMSInvalidStateException(body, context);
|
|
2666
2666
|
contents = __assign({ name: "KMSInvalidStateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2667
|
-
return [2
|
|
2667
|
+
return [2, contents];
|
|
2668
2668
|
});
|
|
2669
2669
|
}); };
|
|
2670
2670
|
var deserializeAws_json1_1KMSNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2673,7 +2673,7 @@ var deserializeAws_json1_1KMSNotFoundExceptionResponse = function (parsedOutput,
|
|
|
2673
2673
|
body = parsedOutput.body;
|
|
2674
2674
|
deserialized = deserializeAws_json1_1KMSNotFoundException(body, context);
|
|
2675
2675
|
contents = __assign({ name: "KMSNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2676
|
-
return [2
|
|
2676
|
+
return [2, contents];
|
|
2677
2677
|
});
|
|
2678
2678
|
}); };
|
|
2679
2679
|
var deserializeAws_json1_1KMSOptInRequiredResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2682,7 +2682,7 @@ var deserializeAws_json1_1KMSOptInRequiredResponse = function (parsedOutput, con
|
|
|
2682
2682
|
body = parsedOutput.body;
|
|
2683
2683
|
deserialized = deserializeAws_json1_1KMSOptInRequired(body, context);
|
|
2684
2684
|
contents = __assign({ name: "KMSOptInRequired", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2685
|
-
return [2
|
|
2685
|
+
return [2, contents];
|
|
2686
2686
|
});
|
|
2687
2687
|
}); };
|
|
2688
2688
|
var deserializeAws_json1_1KMSThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2691,7 +2691,7 @@ var deserializeAws_json1_1KMSThrottlingExceptionResponse = function (parsedOutpu
|
|
|
2691
2691
|
body = parsedOutput.body;
|
|
2692
2692
|
deserialized = deserializeAws_json1_1KMSThrottlingException(body, context);
|
|
2693
2693
|
contents = __assign({ name: "KMSThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2694
|
-
return [2
|
|
2694
|
+
return [2, contents];
|
|
2695
2695
|
});
|
|
2696
2696
|
}); };
|
|
2697
2697
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2700,7 +2700,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2700
2700
|
body = parsedOutput.body;
|
|
2701
2701
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2702
2702
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2703
|
-
return [2
|
|
2703
|
+
return [2, contents];
|
|
2704
2704
|
});
|
|
2705
2705
|
}); };
|
|
2706
2706
|
var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2709,7 +2709,7 @@ var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = funct
|
|
|
2709
2709
|
body = parsedOutput.body;
|
|
2710
2710
|
deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context);
|
|
2711
2711
|
contents = __assign({ name: "ProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2712
|
-
return [2
|
|
2712
|
+
return [2, contents];
|
|
2713
2713
|
});
|
|
2714
2714
|
}); };
|
|
2715
2715
|
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2718,7 +2718,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
|
|
|
2718
2718
|
body = parsedOutput.body;
|
|
2719
2719
|
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2720
2720
|
contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2721
|
-
return [2
|
|
2721
|
+
return [2, contents];
|
|
2722
2722
|
});
|
|
2723
2723
|
}); };
|
|
2724
2724
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2727,7 +2727,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2727
2727
|
body = parsedOutput.body;
|
|
2728
2728
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2729
2729
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2730
|
-
return [2
|
|
2730
|
+
return [2, contents];
|
|
2731
2731
|
});
|
|
2732
2732
|
}); };
|
|
2733
2733
|
var serializeAws_json1_1AddTagsToStreamInput = function (input, context) {
|
|
@@ -2927,7 +2927,7 @@ var deserializeAws_json1_1Consumer = function (output, context) {
|
|
|
2927
2927
|
return {
|
|
2928
2928
|
ConsumerARN: __expectString(output.ConsumerARN),
|
|
2929
2929
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
2930
|
-
?
|
|
2930
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConsumerCreationTimestamp)))
|
|
2931
2931
|
: undefined,
|
|
2932
2932
|
ConsumerName: __expectString(output.ConsumerName),
|
|
2933
2933
|
ConsumerStatus: __expectString(output.ConsumerStatus),
|
|
@@ -2937,7 +2937,7 @@ var deserializeAws_json1_1ConsumerDescription = function (output, context) {
|
|
|
2937
2937
|
return {
|
|
2938
2938
|
ConsumerARN: __expectString(output.ConsumerARN),
|
|
2939
2939
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
2940
|
-
?
|
|
2940
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConsumerCreationTimestamp)))
|
|
2941
2941
|
: undefined,
|
|
2942
2942
|
ConsumerName: __expectString(output.ConsumerName),
|
|
2943
2943
|
ConsumerStatus: __expectString(output.ConsumerStatus),
|
|
@@ -3171,7 +3171,7 @@ var deserializeAws_json1_1PutRecordsResultEntryList = function (output, context)
|
|
|
3171
3171
|
var deserializeAws_json1_1_Record = function (output, context) {
|
|
3172
3172
|
return {
|
|
3173
3173
|
ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp !== undefined && output.ApproximateArrivalTimestamp !== null
|
|
3174
|
-
?
|
|
3174
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateArrivalTimestamp)))
|
|
3175
3175
|
: undefined,
|
|
3176
3176
|
Data: output.Data !== undefined && output.Data !== null ? context.base64Decoder(output.Data) : undefined,
|
|
3177
3177
|
EncryptionType: __expectString(output.EncryptionType),
|
|
@@ -3259,7 +3259,7 @@ var deserializeAws_json1_1StreamDescription = function (output, context) {
|
|
|
3259
3259
|
: undefined,
|
|
3260
3260
|
StreamARN: __expectString(output.StreamARN),
|
|
3261
3261
|
StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3262
|
-
?
|
|
3262
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StreamCreationTimestamp)))
|
|
3263
3263
|
: undefined,
|
|
3264
3264
|
StreamName: __expectString(output.StreamName),
|
|
3265
3265
|
StreamStatus: __expectString(output.StreamStatus),
|
|
@@ -3277,7 +3277,7 @@ var deserializeAws_json1_1StreamDescriptionSummary = function (output, context)
|
|
|
3277
3277
|
RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours),
|
|
3278
3278
|
StreamARN: __expectString(output.StreamARN),
|
|
3279
3279
|
StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3280
|
-
?
|
|
3280
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StreamCreationTimestamp)))
|
|
3281
3281
|
: undefined,
|
|
3282
3282
|
StreamName: __expectString(output.StreamName),
|
|
3283
3283
|
StreamStatus: __expectString(output.StreamStatus),
|
|
@@ -3361,7 +3361,7 @@ var deserializeAws_json1_1SubscribeToShardEventStream = function (output, contex
|
|
|
3361
3361
|
var deserializeAws_json1_1SubscribeToShardOutput = function (output, context) {
|
|
3362
3362
|
return {
|
|
3363
3363
|
EventStream: output.EventStream !== undefined && output.EventStream !== null
|
|
3364
|
-
? deserializeAws_json1_1SubscribeToShardEventStream(output.EventStream, context)
|
|
3364
|
+
? deserializeAws_json1_1SubscribeToShardEventStream(__expectUnion(output.EventStream), context)
|
|
3365
3365
|
: undefined,
|
|
3366
3366
|
};
|
|
3367
3367
|
};
|
|
@@ -3397,7 +3397,6 @@ var deserializeMetadata = function (output) {
|
|
|
3397
3397
|
cfId: output.headers["x-amz-cf-id"],
|
|
3398
3398
|
});
|
|
3399
3399
|
};
|
|
3400
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3401
3400
|
var collectBody = function (streamBody, context) {
|
|
3402
3401
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3403
3402
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3405,7 +3404,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3405
3404
|
}
|
|
3406
3405
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3407
3406
|
};
|
|
3408
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3409
3407
|
var collectBodyString = function (streamBody, context) {
|
|
3410
3408
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3411
3409
|
};
|
|
@@ -3413,7 +3411,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3413
3411
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3414
3412
|
return __generator(this, function (_c) {
|
|
3415
3413
|
switch (_c.label) {
|
|
3416
|
-
case 0: return [4
|
|
3414
|
+
case 0: return [4, context.endpoint()];
|
|
3417
3415
|
case 1:
|
|
3418
3416
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3419
3417
|
contents = {
|
|
@@ -3430,7 +3428,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3430
3428
|
if (body !== undefined) {
|
|
3431
3429
|
contents.body = body;
|
|
3432
3430
|
}
|
|
3433
|
-
return [2
|
|
3431
|
+
return [2, new __HttpRequest(contents)];
|
|
3434
3432
|
}
|
|
3435
3433
|
});
|
|
3436
3434
|
}); };
|
|
@@ -3442,9 +3440,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3442
3440
|
return {};
|
|
3443
3441
|
});
|
|
3444
3442
|
};
|
|
3445
|
-
/**
|
|
3446
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3447
|
-
*/
|
|
3448
3443
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3449
3444
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3450
3445
|
var sanitizeErrorCode = function (rawValue) {
|