@aws-sdk/client-firehose 3.32.0 → 3.36.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 +45 -0
- package/{dist/cjs → dist-cjs}/Firehose.js +1 -2
- package/{dist/cjs → dist-cjs}/FirehoseClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDeliveryStreamsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutRecordBatchCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutRecordCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartDeliveryStreamEncryptionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StopDeliveryStreamEncryptionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagDeliveryStreamCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateDestinationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +150 -93
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +132 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/Firehose.js +2 -9
- package/{dist/es → dist-es}/FirehoseClient.js +2 -14
- package/dist-es/commands/CreateDeliveryStreamCommand.js +39 -0
- package/dist-es/commands/DeleteDeliveryStreamCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeDeliveryStreamCommand.js +4 -36
- package/{dist/es → dist-es}/commands/ListDeliveryStreamsCommand.js +4 -37
- package/{dist/es → dist-es}/commands/ListTagsForDeliveryStreamCommand.js +4 -31
- package/dist-es/commands/PutRecordBatchCommand.js +39 -0
- package/dist-es/commands/PutRecordCommand.js +39 -0
- package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +39 -0
- package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +39 -0
- package/dist-es/commands/TagDeliveryStreamCommand.js +39 -0
- package/{dist/es → dist-es}/commands/UntagDeliveryStreamCommand.js +4 -33
- package/dist-es/commands/UpdateDestinationCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +87 -331
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +349 -256
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/Firehose.d.ts +2 -2
- package/{dist/types → dist-types}/FirehoseClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDeliveryStreamsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRecordBatchCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRecordCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartDeliveryStreamEncryptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopDeliveryStreamEncryptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDestinationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +524 -397
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Firehose.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/FirehoseClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDeliveryStreamsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutRecordBatchCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutRecordCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartDeliveryStreamEncryptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopDeliveryStreamEncryptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagDeliveryStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDestinationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +524 -397
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/Firehose.ts +0 -704
- package/FirehoseClient.ts +0 -298
- package/commands/CreateDeliveryStreamCommand.ts +0 -162
- package/commands/DeleteDeliveryStreamCommand.ts +0 -103
- package/commands/DescribeDeliveryStreamCommand.ts +0 -100
- package/commands/ListDeliveryStreamsCommand.ts +0 -101
- package/commands/ListTagsForDeliveryStreamCommand.ts +0 -98
- package/commands/PutRecordBatchCommand.ts +0 -144
- package/commands/PutRecordCommand.ts +0 -122
- package/commands/StartDeliveryStreamEncryptionCommand.ts +0 -134
- package/commands/StopDeliveryStreamEncryptionCommand.ts +0 -118
- package/commands/TagDeliveryStreamCommand.ts +0 -102
- package/commands/UntagDeliveryStreamCommand.ts +0 -97
- package/commands/UpdateDestinationCommand.ts +0 -117
- package/dist/cjs/Firehose.js.map +0 -1
- package/dist/cjs/FirehoseClient.js.map +0 -1
- package/dist/cjs/commands/CreateDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/ListDeliveryStreamsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/PutRecordBatchCommand.js.map +0 -1
- package/dist/cjs/commands/PutRecordCommand.js.map +0 -1
- package/dist/cjs/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
- package/dist/cjs/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
- package/dist/cjs/commands/TagDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/UntagDeliveryStreamCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDestinationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Firehose.js.map +0 -1
- package/dist/es/FirehoseClient.js.map +0 -1
- package/dist/es/commands/CreateDeliveryStreamCommand.js +0 -133
- package/dist/es/commands/CreateDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/DeleteDeliveryStreamCommand.js +0 -74
- package/dist/es/commands/DeleteDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/DescribeDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/ListDeliveryStreamsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/PutRecordBatchCommand.js +0 -115
- package/dist/es/commands/PutRecordBatchCommand.js.map +0 -1
- package/dist/es/commands/PutRecordCommand.js +0 -96
- package/dist/es/commands/PutRecordCommand.js.map +0 -1
- package/dist/es/commands/StartDeliveryStreamEncryptionCommand.js +0 -100
- package/dist/es/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
- package/dist/es/commands/StopDeliveryStreamEncryptionCommand.js +0 -84
- package/dist/es/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
- package/dist/es/commands/TagDeliveryStreamCommand.js +0 -73
- package/dist/es/commands/TagDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/UntagDeliveryStreamCommand.js.map +0 -1
- package/dist/es/commands/UpdateDestinationCommand.js +0 -88
- package/dist/es/commands/UpdateDestinationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -16
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -86
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3952
- package/protocols/Aws_json1_1.ts +0 -3513
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CreateDeliveryStreamCommand = function (input, co
|
|
|
9
9
|
"x-amz-target": "Firehose_20150804.CreateDeliveryStream",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, co
|
|
|
20
20
|
"x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input,
|
|
|
31
31
|
"x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, con
|
|
|
42
42
|
"x-amz-target": "Firehose_20150804.ListDeliveryStreams",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (inpu
|
|
|
53
53
|
"x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1PutRecordCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1PutRecordCommand = function (input, context) { re
|
|
|
64
64
|
"x-amz-target": "Firehose_20150804.PutRecord",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1PutRecordBatchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1PutRecordBatchCommand = function (input, context)
|
|
|
75
75
|
"x-amz-target": "Firehose_20150804.PutRecordBatch",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (
|
|
|
86
86
|
"x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (i
|
|
|
97
97
|
"x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1TagDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1TagDeliveryStreamCommand = function (input, conte
|
|
|
108
108
|
"x-amz-target": "Firehose_20150804.TagDeliveryStream",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, con
|
|
|
119
119
|
"x-amz-target": "Firehose_20150804.UntagDeliveryStream",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1UpdateDestinationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1UpdateDestinationCommand = function (input, conte
|
|
|
130
130
|
"x-amz-target": "Firehose_20150804.UpdateDestination",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -139,15 +139,15 @@ export var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output,
|
|
|
139
139
|
switch (_a.label) {
|
|
140
140
|
case 0:
|
|
141
141
|
if (output.statusCode >= 300) {
|
|
142
|
-
return [2
|
|
142
|
+
return [2, deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context)];
|
|
143
143
|
}
|
|
144
|
-
return [4
|
|
144
|
+
return [4, parseBody(output.body, context)];
|
|
145
145
|
case 1:
|
|
146
146
|
data = _a.sent();
|
|
147
147
|
contents = {};
|
|
148
148
|
contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
|
|
149
149
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
150
|
-
return [2
|
|
150
|
+
return [2, Promise.resolve(response)];
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}); };
|
|
@@ -159,47 +159,47 @@ var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, c
|
|
|
159
159
|
case 0:
|
|
160
160
|
_a = [__assign({}, output)];
|
|
161
161
|
_g = {};
|
|
162
|
-
return [4
|
|
162
|
+
return [4, parseBody(output.body, context)];
|
|
163
163
|
case 1:
|
|
164
164
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
165
165
|
errorCode = "UnknownError";
|
|
166
166
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
167
167
|
_b = errorCode;
|
|
168
168
|
switch (_b) {
|
|
169
|
-
case "InvalidArgumentException": return [3
|
|
170
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
171
|
-
case "InvalidKMSResourceException": return [3
|
|
172
|
-
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3
|
|
173
|
-
case "LimitExceededException": return [3
|
|
174
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
175
|
-
case "ResourceInUseException": return [3
|
|
176
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
169
|
+
case "InvalidArgumentException": return [3, 2];
|
|
170
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
171
|
+
case "InvalidKMSResourceException": return [3, 4];
|
|
172
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
|
|
173
|
+
case "LimitExceededException": return [3, 6];
|
|
174
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 6];
|
|
175
|
+
case "ResourceInUseException": return [3, 8];
|
|
176
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 8];
|
|
177
177
|
}
|
|
178
|
-
return [3
|
|
178
|
+
return [3, 10];
|
|
179
179
|
case 2:
|
|
180
180
|
_c = [{}];
|
|
181
|
-
return [4
|
|
181
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
182
182
|
case 3:
|
|
183
183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
184
|
-
return [3
|
|
184
|
+
return [3, 11];
|
|
185
185
|
case 4:
|
|
186
186
|
_d = [{}];
|
|
187
|
-
return [4
|
|
187
|
+
return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
|
|
188
188
|
case 5:
|
|
189
189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
190
|
-
return [3
|
|
190
|
+
return [3, 11];
|
|
191
191
|
case 6:
|
|
192
192
|
_e = [{}];
|
|
193
|
-
return [4
|
|
193
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
194
194
|
case 7:
|
|
195
195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
196
|
-
return [3
|
|
196
|
+
return [3, 11];
|
|
197
197
|
case 8:
|
|
198
198
|
_f = [{}];
|
|
199
|
-
return [4
|
|
199
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
200
200
|
case 9:
|
|
201
201
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
202
|
-
return [3
|
|
202
|
+
return [3, 11];
|
|
203
203
|
case 10:
|
|
204
204
|
parsedBody = parsedOutput.body;
|
|
205
205
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -209,7 +209,7 @@ var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, c
|
|
|
209
209
|
message = response.message || response.Message || errorCode;
|
|
210
210
|
response.message = message;
|
|
211
211
|
delete response.Message;
|
|
212
|
-
return [2
|
|
212
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
215
|
}); };
|
|
@@ -219,15 +219,15 @@ export var deserializeAws_json1_1DeleteDeliveryStreamCommand = function (output,
|
|
|
219
219
|
switch (_a.label) {
|
|
220
220
|
case 0:
|
|
221
221
|
if (output.statusCode >= 300) {
|
|
222
|
-
return [2
|
|
222
|
+
return [2, deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context)];
|
|
223
223
|
}
|
|
224
|
-
return [4
|
|
224
|
+
return [4, parseBody(output.body, context)];
|
|
225
225
|
case 1:
|
|
226
226
|
data = _a.sent();
|
|
227
227
|
contents = {};
|
|
228
228
|
contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
|
|
229
229
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
230
|
-
return [2
|
|
230
|
+
return [2, Promise.resolve(response)];
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
}); };
|
|
@@ -239,31 +239,31 @@ var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, c
|
|
|
239
239
|
case 0:
|
|
240
240
|
_a = [__assign({}, output)];
|
|
241
241
|
_e = {};
|
|
242
|
-
return [4
|
|
242
|
+
return [4, parseBody(output.body, context)];
|
|
243
243
|
case 1:
|
|
244
244
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
245
245
|
errorCode = "UnknownError";
|
|
246
246
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
247
|
_b = errorCode;
|
|
248
248
|
switch (_b) {
|
|
249
|
-
case "ResourceInUseException": return [3
|
|
250
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
251
|
-
case "ResourceNotFoundException": return [3
|
|
252
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
249
|
+
case "ResourceInUseException": return [3, 2];
|
|
250
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 2];
|
|
251
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
252
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 4];
|
|
253
253
|
}
|
|
254
|
-
return [3
|
|
254
|
+
return [3, 6];
|
|
255
255
|
case 2:
|
|
256
256
|
_c = [{}];
|
|
257
|
-
return [4
|
|
257
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
258
258
|
case 3:
|
|
259
259
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
260
|
-
return [3
|
|
260
|
+
return [3, 7];
|
|
261
261
|
case 4:
|
|
262
262
|
_d = [{}];
|
|
263
|
-
return [4
|
|
263
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
264
264
|
case 5:
|
|
265
265
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
266
|
-
return [3
|
|
266
|
+
return [3, 7];
|
|
267
267
|
case 6:
|
|
268
268
|
parsedBody = parsedOutput.body;
|
|
269
269
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -273,7 +273,7 @@ var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, c
|
|
|
273
273
|
message = response.message || response.Message || errorCode;
|
|
274
274
|
response.message = message;
|
|
275
275
|
delete response.Message;
|
|
276
|
-
return [2
|
|
276
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
}); };
|
|
@@ -283,15 +283,15 @@ export var deserializeAws_json1_1DescribeDeliveryStreamCommand = function (outpu
|
|
|
283
283
|
switch (_a.label) {
|
|
284
284
|
case 0:
|
|
285
285
|
if (output.statusCode >= 300) {
|
|
286
|
-
return [2
|
|
286
|
+
return [2, deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context)];
|
|
287
287
|
}
|
|
288
|
-
return [4
|
|
288
|
+
return [4, parseBody(output.body, context)];
|
|
289
289
|
case 1:
|
|
290
290
|
data = _a.sent();
|
|
291
291
|
contents = {};
|
|
292
292
|
contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
|
|
293
293
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
294
|
-
return [2
|
|
294
|
+
return [2, Promise.resolve(response)];
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
}); };
|
|
@@ -303,23 +303,23 @@ var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output,
|
|
|
303
303
|
case 0:
|
|
304
304
|
_a = [__assign({}, output)];
|
|
305
305
|
_d = {};
|
|
306
|
-
return [4
|
|
306
|
+
return [4, parseBody(output.body, context)];
|
|
307
307
|
case 1:
|
|
308
308
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
309
309
|
errorCode = "UnknownError";
|
|
310
310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
311
311
|
_b = errorCode;
|
|
312
312
|
switch (_b) {
|
|
313
|
-
case "ResourceNotFoundException": return [3
|
|
314
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
313
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
314
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 2];
|
|
315
315
|
}
|
|
316
|
-
return [3
|
|
316
|
+
return [3, 4];
|
|
317
317
|
case 2:
|
|
318
318
|
_c = [{}];
|
|
319
|
-
return [4
|
|
319
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
320
320
|
case 3:
|
|
321
321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
322
|
-
return [3
|
|
322
|
+
return [3, 5];
|
|
323
323
|
case 4:
|
|
324
324
|
parsedBody = parsedOutput.body;
|
|
325
325
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -329,7 +329,7 @@ var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output,
|
|
|
329
329
|
message = response.message || response.Message || errorCode;
|
|
330
330
|
response.message = message;
|
|
331
331
|
delete response.Message;
|
|
332
|
-
return [2
|
|
332
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
}); };
|
|
@@ -339,15 +339,15 @@ export var deserializeAws_json1_1ListDeliveryStreamsCommand = function (output,
|
|
|
339
339
|
switch (_a.label) {
|
|
340
340
|
case 0:
|
|
341
341
|
if (output.statusCode >= 300) {
|
|
342
|
-
return [2
|
|
342
|
+
return [2, deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context)];
|
|
343
343
|
}
|
|
344
|
-
return [4
|
|
344
|
+
return [4, parseBody(output.body, context)];
|
|
345
345
|
case 1:
|
|
346
346
|
data = _a.sent();
|
|
347
347
|
contents = {};
|
|
348
348
|
contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
|
|
349
349
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
350
|
-
return [2
|
|
350
|
+
return [2, Promise.resolve(response)];
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}); };
|
|
@@ -359,7 +359,7 @@ var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, co
|
|
|
359
359
|
case 0:
|
|
360
360
|
_a = [__assign({}, output)];
|
|
361
361
|
_b = {};
|
|
362
|
-
return [4
|
|
362
|
+
return [4, parseBody(output.body, context)];
|
|
363
363
|
case 1:
|
|
364
364
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
365
365
|
errorCode = "UnknownError";
|
|
@@ -373,7 +373,7 @@ var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, co
|
|
|
373
373
|
message = response.message || response.Message || errorCode;
|
|
374
374
|
response.message = message;
|
|
375
375
|
delete response.Message;
|
|
376
|
-
return [2
|
|
376
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
}); };
|
|
@@ -383,15 +383,15 @@ export var deserializeAws_json1_1ListTagsForDeliveryStreamCommand = function (ou
|
|
|
383
383
|
switch (_a.label) {
|
|
384
384
|
case 0:
|
|
385
385
|
if (output.statusCode >= 300) {
|
|
386
|
-
return [2
|
|
386
|
+
return [2, deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context)];
|
|
387
387
|
}
|
|
388
|
-
return [4
|
|
388
|
+
return [4, parseBody(output.body, context)];
|
|
389
389
|
case 1:
|
|
390
390
|
data = _a.sent();
|
|
391
391
|
contents = {};
|
|
392
392
|
contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
|
|
393
393
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
394
|
-
return [2
|
|
394
|
+
return [2, Promise.resolve(response)];
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}); };
|
|
@@ -403,39 +403,39 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (outp
|
|
|
403
403
|
case 0:
|
|
404
404
|
_a = [__assign({}, output)];
|
|
405
405
|
_f = {};
|
|
406
|
-
return [4
|
|
406
|
+
return [4, parseBody(output.body, context)];
|
|
407
407
|
case 1:
|
|
408
408
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
409
409
|
errorCode = "UnknownError";
|
|
410
410
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
411
|
_b = errorCode;
|
|
412
412
|
switch (_b) {
|
|
413
|
-
case "InvalidArgumentException": return [3
|
|
414
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
415
|
-
case "LimitExceededException": return [3
|
|
416
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
417
|
-
case "ResourceNotFoundException": return [3
|
|
418
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
413
|
+
case "InvalidArgumentException": return [3, 2];
|
|
414
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
415
|
+
case "LimitExceededException": return [3, 4];
|
|
416
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
|
|
417
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
418
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
|
|
419
419
|
}
|
|
420
|
-
return [3
|
|
420
|
+
return [3, 8];
|
|
421
421
|
case 2:
|
|
422
422
|
_c = [{}];
|
|
423
|
-
return [4
|
|
423
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
424
424
|
case 3:
|
|
425
425
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
426
|
-
return [3
|
|
426
|
+
return [3, 9];
|
|
427
427
|
case 4:
|
|
428
428
|
_d = [{}];
|
|
429
|
-
return [4
|
|
429
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
430
430
|
case 5:
|
|
431
431
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
432
|
-
return [3
|
|
432
|
+
return [3, 9];
|
|
433
433
|
case 6:
|
|
434
434
|
_e = [{}];
|
|
435
|
-
return [4
|
|
435
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
436
436
|
case 7:
|
|
437
437
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
438
|
-
return [3
|
|
438
|
+
return [3, 9];
|
|
439
439
|
case 8:
|
|
440
440
|
parsedBody = parsedOutput.body;
|
|
441
441
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -445,7 +445,7 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (outp
|
|
|
445
445
|
message = response.message || response.Message || errorCode;
|
|
446
446
|
response.message = message;
|
|
447
447
|
delete response.Message;
|
|
448
|
-
return [2
|
|
448
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
}); };
|
|
@@ -455,15 +455,15 @@ export var deserializeAws_json1_1PutRecordCommand = function (output, context) {
|
|
|
455
455
|
switch (_a.label) {
|
|
456
456
|
case 0:
|
|
457
457
|
if (output.statusCode >= 300) {
|
|
458
|
-
return [2
|
|
458
|
+
return [2, deserializeAws_json1_1PutRecordCommandError(output, context)];
|
|
459
459
|
}
|
|
460
|
-
return [4
|
|
460
|
+
return [4, parseBody(output.body, context)];
|
|
461
461
|
case 1:
|
|
462
462
|
data = _a.sent();
|
|
463
463
|
contents = {};
|
|
464
464
|
contents = deserializeAws_json1_1PutRecordOutput(data, context);
|
|
465
465
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
466
|
-
return [2
|
|
466
|
+
return [2, Promise.resolve(response)];
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
}); };
|
|
@@ -475,47 +475,47 @@ var deserializeAws_json1_1PutRecordCommandError = function (output, context) { r
|
|
|
475
475
|
case 0:
|
|
476
476
|
_a = [__assign({}, output)];
|
|
477
477
|
_g = {};
|
|
478
|
-
return [4
|
|
478
|
+
return [4, parseBody(output.body, context)];
|
|
479
479
|
case 1:
|
|
480
480
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
481
481
|
errorCode = "UnknownError";
|
|
482
482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
483
|
_b = errorCode;
|
|
484
484
|
switch (_b) {
|
|
485
|
-
case "InvalidArgumentException": return [3
|
|
486
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
487
|
-
case "InvalidKMSResourceException": return [3
|
|
488
|
-
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3
|
|
489
|
-
case "ResourceNotFoundException": return [3
|
|
490
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
491
|
-
case "ServiceUnavailableException": return [3
|
|
492
|
-
case "com.amazonaws.firehose#ServiceUnavailableException": return [3
|
|
485
|
+
case "InvalidArgumentException": return [3, 2];
|
|
486
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
487
|
+
case "InvalidKMSResourceException": return [3, 4];
|
|
488
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
|
|
489
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
490
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
|
|
491
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
492
|
+
case "com.amazonaws.firehose#ServiceUnavailableException": return [3, 8];
|
|
493
493
|
}
|
|
494
|
-
return [3
|
|
494
|
+
return [3, 10];
|
|
495
495
|
case 2:
|
|
496
496
|
_c = [{}];
|
|
497
|
-
return [4
|
|
497
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
498
498
|
case 3:
|
|
499
499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
500
|
-
return [3
|
|
500
|
+
return [3, 11];
|
|
501
501
|
case 4:
|
|
502
502
|
_d = [{}];
|
|
503
|
-
return [4
|
|
503
|
+
return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
|
|
504
504
|
case 5:
|
|
505
505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
506
|
-
return [3
|
|
506
|
+
return [3, 11];
|
|
507
507
|
case 6:
|
|
508
508
|
_e = [{}];
|
|
509
|
-
return [4
|
|
509
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
510
510
|
case 7:
|
|
511
511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 11];
|
|
513
513
|
case 8:
|
|
514
514
|
_f = [{}];
|
|
515
|
-
return [4
|
|
515
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
516
516
|
case 9:
|
|
517
517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 11];
|
|
519
519
|
case 10:
|
|
520
520
|
parsedBody = parsedOutput.body;
|
|
521
521
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -525,7 +525,7 @@ var deserializeAws_json1_1PutRecordCommandError = function (output, context) { r
|
|
|
525
525
|
message = response.message || response.Message || errorCode;
|
|
526
526
|
response.message = message;
|
|
527
527
|
delete response.Message;
|
|
528
|
-
return [2
|
|
528
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
531
|
}); };
|
|
@@ -535,15 +535,15 @@ export var deserializeAws_json1_1PutRecordBatchCommand = function (output, conte
|
|
|
535
535
|
switch (_a.label) {
|
|
536
536
|
case 0:
|
|
537
537
|
if (output.statusCode >= 300) {
|
|
538
|
-
return [2
|
|
538
|
+
return [2, deserializeAws_json1_1PutRecordBatchCommandError(output, context)];
|
|
539
539
|
}
|
|
540
|
-
return [4
|
|
540
|
+
return [4, parseBody(output.body, context)];
|
|
541
541
|
case 1:
|
|
542
542
|
data = _a.sent();
|
|
543
543
|
contents = {};
|
|
544
544
|
contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
|
|
545
545
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
546
|
-
return [2
|
|
546
|
+
return [2, Promise.resolve(response)];
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
}); };
|
|
@@ -555,47 +555,47 @@ var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context
|
|
|
555
555
|
case 0:
|
|
556
556
|
_a = [__assign({}, output)];
|
|
557
557
|
_g = {};
|
|
558
|
-
return [4
|
|
558
|
+
return [4, parseBody(output.body, context)];
|
|
559
559
|
case 1:
|
|
560
560
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
561
561
|
errorCode = "UnknownError";
|
|
562
562
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
563
|
_b = errorCode;
|
|
564
564
|
switch (_b) {
|
|
565
|
-
case "InvalidArgumentException": return [3
|
|
566
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
567
|
-
case "InvalidKMSResourceException": return [3
|
|
568
|
-
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3
|
|
569
|
-
case "ResourceNotFoundException": return [3
|
|
570
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
571
|
-
case "ServiceUnavailableException": return [3
|
|
572
|
-
case "com.amazonaws.firehose#ServiceUnavailableException": return [3
|
|
565
|
+
case "InvalidArgumentException": return [3, 2];
|
|
566
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
567
|
+
case "InvalidKMSResourceException": return [3, 4];
|
|
568
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
|
|
569
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
570
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
|
|
571
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
572
|
+
case "com.amazonaws.firehose#ServiceUnavailableException": return [3, 8];
|
|
573
573
|
}
|
|
574
|
-
return [3
|
|
574
|
+
return [3, 10];
|
|
575
575
|
case 2:
|
|
576
576
|
_c = [{}];
|
|
577
|
-
return [4
|
|
577
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
578
578
|
case 3:
|
|
579
579
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
580
|
-
return [3
|
|
580
|
+
return [3, 11];
|
|
581
581
|
case 4:
|
|
582
582
|
_d = [{}];
|
|
583
|
-
return [4
|
|
583
|
+
return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
|
|
584
584
|
case 5:
|
|
585
585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
586
|
-
return [3
|
|
586
|
+
return [3, 11];
|
|
587
587
|
case 6:
|
|
588
588
|
_e = [{}];
|
|
589
|
-
return [4
|
|
589
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
590
590
|
case 7:
|
|
591
591
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
592
|
-
return [3
|
|
592
|
+
return [3, 11];
|
|
593
593
|
case 8:
|
|
594
594
|
_f = [{}];
|
|
595
|
-
return [4
|
|
595
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
596
596
|
case 9:
|
|
597
597
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
598
|
-
return [3
|
|
598
|
+
return [3, 11];
|
|
599
599
|
case 10:
|
|
600
600
|
parsedBody = parsedOutput.body;
|
|
601
601
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -605,7 +605,7 @@ var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context
|
|
|
605
605
|
message = response.message || response.Message || errorCode;
|
|
606
606
|
response.message = message;
|
|
607
607
|
delete response.Message;
|
|
608
|
-
return [2
|
|
608
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
611
|
}); };
|
|
@@ -615,15 +615,15 @@ export var deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = function
|
|
|
615
615
|
switch (_a.label) {
|
|
616
616
|
case 0:
|
|
617
617
|
if (output.statusCode >= 300) {
|
|
618
|
-
return [2
|
|
618
|
+
return [2, deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context)];
|
|
619
619
|
}
|
|
620
|
-
return [4
|
|
620
|
+
return [4, parseBody(output.body, context)];
|
|
621
621
|
case 1:
|
|
622
622
|
data = _a.sent();
|
|
623
623
|
contents = {};
|
|
624
624
|
contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
|
|
625
625
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
626
|
-
return [2
|
|
626
|
+
return [2, Promise.resolve(response)];
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
629
|
}); };
|
|
@@ -635,55 +635,55 @@ var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (
|
|
|
635
635
|
case 0:
|
|
636
636
|
_a = [__assign({}, output)];
|
|
637
637
|
_h = {};
|
|
638
|
-
return [4
|
|
638
|
+
return [4, parseBody(output.body, context)];
|
|
639
639
|
case 1:
|
|
640
640
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
641
641
|
errorCode = "UnknownError";
|
|
642
642
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
643
|
_b = errorCode;
|
|
644
644
|
switch (_b) {
|
|
645
|
-
case "InvalidArgumentException": return [3
|
|
646
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
647
|
-
case "InvalidKMSResourceException": return [3
|
|
648
|
-
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3
|
|
649
|
-
case "LimitExceededException": return [3
|
|
650
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
651
|
-
case "ResourceInUseException": return [3
|
|
652
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
653
|
-
case "ResourceNotFoundException": return [3
|
|
654
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
645
|
+
case "InvalidArgumentException": return [3, 2];
|
|
646
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
647
|
+
case "InvalidKMSResourceException": return [3, 4];
|
|
648
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
|
|
649
|
+
case "LimitExceededException": return [3, 6];
|
|
650
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 6];
|
|
651
|
+
case "ResourceInUseException": return [3, 8];
|
|
652
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 8];
|
|
653
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
654
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 10];
|
|
655
655
|
}
|
|
656
|
-
return [3
|
|
656
|
+
return [3, 12];
|
|
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([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
-
return [3
|
|
662
|
+
return [3, 13];
|
|
663
663
|
case 4:
|
|
664
664
|
_d = [{}];
|
|
665
|
-
return [4
|
|
665
|
+
return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
|
|
666
666
|
case 5:
|
|
667
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
-
return [3
|
|
668
|
+
return [3, 13];
|
|
669
669
|
case 6:
|
|
670
670
|
_e = [{}];
|
|
671
|
-
return [4
|
|
671
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
672
672
|
case 7:
|
|
673
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
-
return [3
|
|
674
|
+
return [3, 13];
|
|
675
675
|
case 8:
|
|
676
676
|
_f = [{}];
|
|
677
|
-
return [4
|
|
677
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
678
678
|
case 9:
|
|
679
679
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
680
|
-
return [3
|
|
680
|
+
return [3, 13];
|
|
681
681
|
case 10:
|
|
682
682
|
_g = [{}];
|
|
683
|
-
return [4
|
|
683
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
684
684
|
case 11:
|
|
685
685
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
686
|
-
return [3
|
|
686
|
+
return [3, 13];
|
|
687
687
|
case 12:
|
|
688
688
|
parsedBody = parsedOutput.body;
|
|
689
689
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -693,7 +693,7 @@ var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (
|
|
|
693
693
|
message = response.message || response.Message || errorCode;
|
|
694
694
|
response.message = message;
|
|
695
695
|
delete response.Message;
|
|
696
|
-
return [2
|
|
696
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
699
|
}); };
|
|
@@ -703,15 +703,15 @@ export var deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = function
|
|
|
703
703
|
switch (_a.label) {
|
|
704
704
|
case 0:
|
|
705
705
|
if (output.statusCode >= 300) {
|
|
706
|
-
return [2
|
|
706
|
+
return [2, deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context)];
|
|
707
707
|
}
|
|
708
|
-
return [4
|
|
708
|
+
return [4, parseBody(output.body, context)];
|
|
709
709
|
case 1:
|
|
710
710
|
data = _a.sent();
|
|
711
711
|
contents = {};
|
|
712
712
|
contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
|
|
713
713
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
714
|
-
return [2
|
|
714
|
+
return [2, Promise.resolve(response)];
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
717
|
}); };
|
|
@@ -723,47 +723,47 @@ var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (o
|
|
|
723
723
|
case 0:
|
|
724
724
|
_a = [__assign({}, output)];
|
|
725
725
|
_g = {};
|
|
726
|
-
return [4
|
|
726
|
+
return [4, parseBody(output.body, context)];
|
|
727
727
|
case 1:
|
|
728
728
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
729
729
|
errorCode = "UnknownError";
|
|
730
730
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
731
|
_b = errorCode;
|
|
732
732
|
switch (_b) {
|
|
733
|
-
case "InvalidArgumentException": return [3
|
|
734
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
735
|
-
case "LimitExceededException": return [3
|
|
736
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
737
|
-
case "ResourceInUseException": return [3
|
|
738
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
739
|
-
case "ResourceNotFoundException": return [3
|
|
740
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
733
|
+
case "InvalidArgumentException": return [3, 2];
|
|
734
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
735
|
+
case "LimitExceededException": return [3, 4];
|
|
736
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
|
|
737
|
+
case "ResourceInUseException": return [3, 6];
|
|
738
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
739
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
740
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
741
741
|
}
|
|
742
|
-
return [3
|
|
742
|
+
return [3, 10];
|
|
743
743
|
case 2:
|
|
744
744
|
_c = [{}];
|
|
745
|
-
return [4
|
|
745
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
746
746
|
case 3:
|
|
747
747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
748
|
-
return [3
|
|
748
|
+
return [3, 11];
|
|
749
749
|
case 4:
|
|
750
750
|
_d = [{}];
|
|
751
|
-
return [4
|
|
751
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
752
752
|
case 5:
|
|
753
753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
754
|
-
return [3
|
|
754
|
+
return [3, 11];
|
|
755
755
|
case 6:
|
|
756
756
|
_e = [{}];
|
|
757
|
-
return [4
|
|
757
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
758
758
|
case 7:
|
|
759
759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
760
|
-
return [3
|
|
760
|
+
return [3, 11];
|
|
761
761
|
case 8:
|
|
762
762
|
_f = [{}];
|
|
763
|
-
return [4
|
|
763
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
764
764
|
case 9:
|
|
765
765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
766
|
-
return [3
|
|
766
|
+
return [3, 11];
|
|
767
767
|
case 10:
|
|
768
768
|
parsedBody = parsedOutput.body;
|
|
769
769
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -773,7 +773,7 @@ var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (o
|
|
|
773
773
|
message = response.message || response.Message || errorCode;
|
|
774
774
|
response.message = message;
|
|
775
775
|
delete response.Message;
|
|
776
|
-
return [2
|
|
776
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
779
|
}); };
|
|
@@ -783,15 +783,15 @@ export var deserializeAws_json1_1TagDeliveryStreamCommand = function (output, co
|
|
|
783
783
|
switch (_a.label) {
|
|
784
784
|
case 0:
|
|
785
785
|
if (output.statusCode >= 300) {
|
|
786
|
-
return [2
|
|
786
|
+
return [2, deserializeAws_json1_1TagDeliveryStreamCommandError(output, context)];
|
|
787
787
|
}
|
|
788
|
-
return [4
|
|
788
|
+
return [4, parseBody(output.body, context)];
|
|
789
789
|
case 1:
|
|
790
790
|
data = _a.sent();
|
|
791
791
|
contents = {};
|
|
792
792
|
contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
|
|
793
793
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
794
|
-
return [2
|
|
794
|
+
return [2, Promise.resolve(response)];
|
|
795
795
|
}
|
|
796
796
|
});
|
|
797
797
|
}); };
|
|
@@ -803,47 +803,47 @@ var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, cont
|
|
|
803
803
|
case 0:
|
|
804
804
|
_a = [__assign({}, output)];
|
|
805
805
|
_g = {};
|
|
806
|
-
return [4
|
|
806
|
+
return [4, parseBody(output.body, context)];
|
|
807
807
|
case 1:
|
|
808
808
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
809
809
|
errorCode = "UnknownError";
|
|
810
810
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
811
|
_b = errorCode;
|
|
812
812
|
switch (_b) {
|
|
813
|
-
case "InvalidArgumentException": return [3
|
|
814
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
815
|
-
case "LimitExceededException": return [3
|
|
816
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
817
|
-
case "ResourceInUseException": return [3
|
|
818
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
819
|
-
case "ResourceNotFoundException": return [3
|
|
820
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
813
|
+
case "InvalidArgumentException": return [3, 2];
|
|
814
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
815
|
+
case "LimitExceededException": return [3, 4];
|
|
816
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
|
|
817
|
+
case "ResourceInUseException": return [3, 6];
|
|
818
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
819
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
820
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
821
821
|
}
|
|
822
|
-
return [3
|
|
822
|
+
return [3, 10];
|
|
823
823
|
case 2:
|
|
824
824
|
_c = [{}];
|
|
825
|
-
return [4
|
|
825
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
826
826
|
case 3:
|
|
827
827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
828
|
-
return [3
|
|
828
|
+
return [3, 11];
|
|
829
829
|
case 4:
|
|
830
830
|
_d = [{}];
|
|
831
|
-
return [4
|
|
831
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
832
832
|
case 5:
|
|
833
833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
834
|
-
return [3
|
|
834
|
+
return [3, 11];
|
|
835
835
|
case 6:
|
|
836
836
|
_e = [{}];
|
|
837
|
-
return [4
|
|
837
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
838
838
|
case 7:
|
|
839
839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 11];
|
|
841
841
|
case 8:
|
|
842
842
|
_f = [{}];
|
|
843
|
-
return [4
|
|
843
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
844
844
|
case 9:
|
|
845
845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
846
|
-
return [3
|
|
846
|
+
return [3, 11];
|
|
847
847
|
case 10:
|
|
848
848
|
parsedBody = parsedOutput.body;
|
|
849
849
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -853,7 +853,7 @@ var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, cont
|
|
|
853
853
|
message = response.message || response.Message || errorCode;
|
|
854
854
|
response.message = message;
|
|
855
855
|
delete response.Message;
|
|
856
|
-
return [2
|
|
856
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}); };
|
|
@@ -863,15 +863,15 @@ export var deserializeAws_json1_1UntagDeliveryStreamCommand = function (output,
|
|
|
863
863
|
switch (_a.label) {
|
|
864
864
|
case 0:
|
|
865
865
|
if (output.statusCode >= 300) {
|
|
866
|
-
return [2
|
|
866
|
+
return [2, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)];
|
|
867
867
|
}
|
|
868
|
-
return [4
|
|
868
|
+
return [4, parseBody(output.body, context)];
|
|
869
869
|
case 1:
|
|
870
870
|
data = _a.sent();
|
|
871
871
|
contents = {};
|
|
872
872
|
contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
|
|
873
873
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
874
|
-
return [2
|
|
874
|
+
return [2, Promise.resolve(response)];
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
877
|
}); };
|
|
@@ -883,47 +883,47 @@ var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, co
|
|
|
883
883
|
case 0:
|
|
884
884
|
_a = [__assign({}, output)];
|
|
885
885
|
_g = {};
|
|
886
|
-
return [4
|
|
886
|
+
return [4, parseBody(output.body, context)];
|
|
887
887
|
case 1:
|
|
888
888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
889
889
|
errorCode = "UnknownError";
|
|
890
890
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
891
|
_b = errorCode;
|
|
892
892
|
switch (_b) {
|
|
893
|
-
case "InvalidArgumentException": return [3
|
|
894
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
895
|
-
case "LimitExceededException": return [3
|
|
896
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3
|
|
897
|
-
case "ResourceInUseException": return [3
|
|
898
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
899
|
-
case "ResourceNotFoundException": return [3
|
|
900
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
893
|
+
case "InvalidArgumentException": return [3, 2];
|
|
894
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
895
|
+
case "LimitExceededException": return [3, 4];
|
|
896
|
+
case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
|
|
897
|
+
case "ResourceInUseException": return [3, 6];
|
|
898
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
899
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
900
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
901
901
|
}
|
|
902
|
-
return [3
|
|
902
|
+
return [3, 10];
|
|
903
903
|
case 2:
|
|
904
904
|
_c = [{}];
|
|
905
|
-
return [4
|
|
905
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
906
906
|
case 3:
|
|
907
907
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
908
|
-
return [3
|
|
908
|
+
return [3, 11];
|
|
909
909
|
case 4:
|
|
910
910
|
_d = [{}];
|
|
911
|
-
return [4
|
|
911
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
912
912
|
case 5:
|
|
913
913
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
914
|
-
return [3
|
|
914
|
+
return [3, 11];
|
|
915
915
|
case 6:
|
|
916
916
|
_e = [{}];
|
|
917
|
-
return [4
|
|
917
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
918
918
|
case 7:
|
|
919
919
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
920
|
-
return [3
|
|
920
|
+
return [3, 11];
|
|
921
921
|
case 8:
|
|
922
922
|
_f = [{}];
|
|
923
|
-
return [4
|
|
923
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
924
924
|
case 9:
|
|
925
925
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
926
|
-
return [3
|
|
926
|
+
return [3, 11];
|
|
927
927
|
case 10:
|
|
928
928
|
parsedBody = parsedOutput.body;
|
|
929
929
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -933,7 +933,7 @@ var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, co
|
|
|
933
933
|
message = response.message || response.Message || errorCode;
|
|
934
934
|
response.message = message;
|
|
935
935
|
delete response.Message;
|
|
936
|
-
return [2
|
|
936
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
939
|
}); };
|
|
@@ -943,15 +943,15 @@ export var deserializeAws_json1_1UpdateDestinationCommand = function (output, co
|
|
|
943
943
|
switch (_a.label) {
|
|
944
944
|
case 0:
|
|
945
945
|
if (output.statusCode >= 300) {
|
|
946
|
-
return [2
|
|
946
|
+
return [2, deserializeAws_json1_1UpdateDestinationCommandError(output, context)];
|
|
947
947
|
}
|
|
948
|
-
return [4
|
|
948
|
+
return [4, parseBody(output.body, context)];
|
|
949
949
|
case 1:
|
|
950
950
|
data = _a.sent();
|
|
951
951
|
contents = {};
|
|
952
952
|
contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
|
|
953
953
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
954
|
-
return [2
|
|
954
|
+
return [2, Promise.resolve(response)];
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
957
|
}); };
|
|
@@ -963,47 +963,47 @@ var deserializeAws_json1_1UpdateDestinationCommandError = function (output, cont
|
|
|
963
963
|
case 0:
|
|
964
964
|
_a = [__assign({}, output)];
|
|
965
965
|
_g = {};
|
|
966
|
-
return [4
|
|
966
|
+
return [4, parseBody(output.body, context)];
|
|
967
967
|
case 1:
|
|
968
968
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
969
969
|
errorCode = "UnknownError";
|
|
970
970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
971
|
_b = errorCode;
|
|
972
972
|
switch (_b) {
|
|
973
|
-
case "ConcurrentModificationException": return [3
|
|
974
|
-
case "com.amazonaws.firehose#ConcurrentModificationException": return [3
|
|
975
|
-
case "InvalidArgumentException": return [3
|
|
976
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3
|
|
977
|
-
case "ResourceInUseException": return [3
|
|
978
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3
|
|
979
|
-
case "ResourceNotFoundException": return [3
|
|
980
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3
|
|
973
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
974
|
+
case "com.amazonaws.firehose#ConcurrentModificationException": return [3, 2];
|
|
975
|
+
case "InvalidArgumentException": return [3, 4];
|
|
976
|
+
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 4];
|
|
977
|
+
case "ResourceInUseException": return [3, 6];
|
|
978
|
+
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
979
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
980
|
+
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
981
981
|
}
|
|
982
|
-
return [3
|
|
982
|
+
return [3, 10];
|
|
983
983
|
case 2:
|
|
984
984
|
_c = [{}];
|
|
985
|
-
return [4
|
|
985
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
986
986
|
case 3:
|
|
987
987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
988
|
-
return [3
|
|
988
|
+
return [3, 11];
|
|
989
989
|
case 4:
|
|
990
990
|
_d = [{}];
|
|
991
|
-
return [4
|
|
991
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
992
992
|
case 5:
|
|
993
993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
994
|
-
return [3
|
|
994
|
+
return [3, 11];
|
|
995
995
|
case 6:
|
|
996
996
|
_e = [{}];
|
|
997
|
-
return [4
|
|
997
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
998
998
|
case 7:
|
|
999
999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1000
|
-
return [3
|
|
1000
|
+
return [3, 11];
|
|
1001
1001
|
case 8:
|
|
1002
1002
|
_f = [{}];
|
|
1003
|
-
return [4
|
|
1003
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1004
1004
|
case 9:
|
|
1005
1005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1006
|
-
return [3
|
|
1006
|
+
return [3, 11];
|
|
1007
1007
|
case 10:
|
|
1008
1008
|
parsedBody = parsedOutput.body;
|
|
1009
1009
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1013,7 +1013,7 @@ var deserializeAws_json1_1UpdateDestinationCommandError = function (output, cont
|
|
|
1013
1013
|
message = response.message || response.Message || errorCode;
|
|
1014
1014
|
response.message = message;
|
|
1015
1015
|
delete response.Message;
|
|
1016
|
-
return [2
|
|
1016
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
1019
1019
|
}); };
|
|
@@ -1023,7 +1023,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
1023
1023
|
body = parsedOutput.body;
|
|
1024
1024
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1025
1025
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1026
|
-
return [2
|
|
1026
|
+
return [2, contents];
|
|
1027
1027
|
});
|
|
1028
1028
|
}); };
|
|
1029
1029
|
var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1032,7 +1032,7 @@ var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOut
|
|
|
1032
1032
|
body = parsedOutput.body;
|
|
1033
1033
|
deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
1034
1034
|
contents = __assign({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1035
|
-
return [2
|
|
1035
|
+
return [2, contents];
|
|
1036
1036
|
});
|
|
1037
1037
|
}); };
|
|
1038
1038
|
var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1041,7 +1041,7 @@ var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsed
|
|
|
1041
1041
|
body = parsedOutput.body;
|
|
1042
1042
|
deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
|
|
1043
1043
|
contents = __assign({ name: "InvalidKMSResourceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, contents];
|
|
1045
1045
|
});
|
|
1046
1046
|
}); };
|
|
1047
1047
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1050,7 +1050,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
1050
1050
|
body = parsedOutput.body;
|
|
1051
1051
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1052
1052
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1053
|
-
return [2
|
|
1053
|
+
return [2, contents];
|
|
1054
1054
|
});
|
|
1055
1055
|
}); };
|
|
1056
1056
|
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1059,7 +1059,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
|
|
|
1059
1059
|
body = parsedOutput.body;
|
|
1060
1060
|
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
1061
1061
|
contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1062
|
-
return [2
|
|
1062
|
+
return [2, contents];
|
|
1063
1063
|
});
|
|
1064
1064
|
}); };
|
|
1065
1065
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1068,7 +1068,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
1068
1068
|
body = parsedOutput.body;
|
|
1069
1069
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1070
1070
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1071
|
-
return [2
|
|
1071
|
+
return [2, contents];
|
|
1072
1072
|
});
|
|
1073
1073
|
}); };
|
|
1074
1074
|
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1077,9 +1077,58 @@ var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsed
|
|
|
1077
1077
|
body = parsedOutput.body;
|
|
1078
1078
|
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
1079
1079
|
contents = __assign({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1080
|
-
return [2
|
|
1080
|
+
return [2, contents];
|
|
1081
1081
|
});
|
|
1082
1082
|
}); };
|
|
1083
|
+
var serializeAws_json1_1AmazonopensearchserviceBufferingHints = function (input, context) {
|
|
1084
|
+
return __assign(__assign({}, (input.IntervalInSeconds !== undefined &&
|
|
1085
|
+
input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
|
|
1086
|
+
};
|
|
1087
|
+
var serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration = function (input, context) {
|
|
1088
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints !== undefined &&
|
|
1089
|
+
input.BufferingHints !== null && {
|
|
1090
|
+
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
1091
|
+
})), (input.CloudWatchLoggingOptions !== undefined &&
|
|
1092
|
+
input.CloudWatchLoggingOptions !== null && {
|
|
1093
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1094
|
+
})), (input.ClusterEndpoint !== undefined &&
|
|
1095
|
+
input.ClusterEndpoint !== null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && input.DomainARN !== null && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined &&
|
|
1096
|
+
input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
|
|
1097
|
+
input.ProcessingConfiguration !== null && {
|
|
1098
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1099
|
+
})), (input.RetryOptions !== undefined &&
|
|
1100
|
+
input.RetryOptions !== null && {
|
|
1101
|
+
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
1102
|
+
})), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
|
|
1103
|
+
input.S3Configuration !== null && {
|
|
1104
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
1105
|
+
})), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName })), (input.VpcConfiguration !== undefined &&
|
|
1106
|
+
input.VpcConfiguration !== null && {
|
|
1107
|
+
VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
|
|
1108
|
+
}));
|
|
1109
|
+
};
|
|
1110
|
+
var serializeAws_json1_1AmazonopensearchserviceDestinationUpdate = function (input, context) {
|
|
1111
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints !== undefined &&
|
|
1112
|
+
input.BufferingHints !== null && {
|
|
1113
|
+
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
1114
|
+
})), (input.CloudWatchLoggingOptions !== undefined &&
|
|
1115
|
+
input.CloudWatchLoggingOptions !== null && {
|
|
1116
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1117
|
+
})), (input.ClusterEndpoint !== undefined &&
|
|
1118
|
+
input.ClusterEndpoint !== null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && input.DomainARN !== null && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined &&
|
|
1119
|
+
input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
|
|
1120
|
+
input.ProcessingConfiguration !== null && {
|
|
1121
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1122
|
+
})), (input.RetryOptions !== undefined &&
|
|
1123
|
+
input.RetryOptions !== null && {
|
|
1124
|
+
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
1125
|
+
})), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3Update !== undefined &&
|
|
1126
|
+
input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName }));
|
|
1127
|
+
};
|
|
1128
|
+
var serializeAws_json1_1AmazonopensearchserviceRetryOptions = function (input, context) {
|
|
1129
|
+
return __assign({}, (input.DurationInSeconds !== undefined &&
|
|
1130
|
+
input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
|
|
1131
|
+
};
|
|
1083
1132
|
var serializeAws_json1_1BufferingHints = function (input, context) {
|
|
1084
1133
|
return __assign(__assign({}, (input.IntervalInSeconds !== undefined &&
|
|
1085
1134
|
input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
|
|
@@ -1102,7 +1151,10 @@ var serializeAws_json1_1CopyCommand = function (input, context) {
|
|
|
1102
1151
|
input.DataTableColumns !== null && { DataTableColumns: input.DataTableColumns })), (input.DataTableName !== undefined && input.DataTableName !== null && { DataTableName: input.DataTableName }));
|
|
1103
1152
|
};
|
|
1104
1153
|
var serializeAws_json1_1CreateDeliveryStreamInput = function (input, context) {
|
|
1105
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
1154
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AmazonopensearchserviceDestinationConfiguration !== undefined &&
|
|
1155
|
+
input.AmazonopensearchserviceDestinationConfiguration !== null && {
|
|
1156
|
+
AmazonopensearchserviceDestinationConfiguration: serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration(input.AmazonopensearchserviceDestinationConfiguration, context),
|
|
1157
|
+
})), (input.DeliveryStreamEncryptionConfigurationInput !== undefined &&
|
|
1106
1158
|
input.DeliveryStreamEncryptionConfigurationInput !== null && {
|
|
1107
1159
|
DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
|
|
1108
1160
|
})), (input.DeliveryStreamName !== undefined &&
|
|
@@ -1686,7 +1738,10 @@ var serializeAws_json1_1UntagDeliveryStreamInput = function (input, context) {
|
|
|
1686
1738
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
1687
1739
|
};
|
|
1688
1740
|
var serializeAws_json1_1UpdateDestinationInput = function (input, context) {
|
|
1689
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
1741
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AmazonopensearchserviceDestinationUpdate !== undefined &&
|
|
1742
|
+
input.AmazonopensearchserviceDestinationUpdate !== null && {
|
|
1743
|
+
AmazonopensearchserviceDestinationUpdate: serializeAws_json1_1AmazonopensearchserviceDestinationUpdate(input.AmazonopensearchserviceDestinationUpdate, context),
|
|
1744
|
+
})), (input.CurrentDeliveryStreamVersionId !== undefined &&
|
|
1690
1745
|
input.CurrentDeliveryStreamVersionId !== null && {
|
|
1691
1746
|
CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
|
|
1692
1747
|
})), (input.DeliveryStreamName !== undefined &&
|
|
@@ -1717,6 +1772,46 @@ var serializeAws_json1_1VpcConfiguration = function (input, context) {
|
|
|
1717
1772
|
})), (input.SubnetIds !== undefined &&
|
|
1718
1773
|
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }));
|
|
1719
1774
|
};
|
|
1775
|
+
var deserializeAws_json1_1AmazonopensearchserviceBufferingHints = function (output, context) {
|
|
1776
|
+
return {
|
|
1777
|
+
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
1778
|
+
SizeInMBs: __expectInt32(output.SizeInMBs),
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
var deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = function (output, context) {
|
|
1782
|
+
return {
|
|
1783
|
+
BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
|
|
1784
|
+
? deserializeAws_json1_1AmazonopensearchserviceBufferingHints(output.BufferingHints, context)
|
|
1785
|
+
: undefined,
|
|
1786
|
+
CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
|
|
1787
|
+
? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
|
|
1788
|
+
: undefined,
|
|
1789
|
+
ClusterEndpoint: __expectString(output.ClusterEndpoint),
|
|
1790
|
+
DomainARN: __expectString(output.DomainARN),
|
|
1791
|
+
IndexName: __expectString(output.IndexName),
|
|
1792
|
+
IndexRotationPeriod: __expectString(output.IndexRotationPeriod),
|
|
1793
|
+
ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
|
|
1794
|
+
? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
|
|
1795
|
+
: undefined,
|
|
1796
|
+
RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
|
|
1797
|
+
? deserializeAws_json1_1AmazonopensearchserviceRetryOptions(output.RetryOptions, context)
|
|
1798
|
+
: undefined,
|
|
1799
|
+
RoleARN: __expectString(output.RoleARN),
|
|
1800
|
+
S3BackupMode: __expectString(output.S3BackupMode),
|
|
1801
|
+
S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
|
|
1802
|
+
? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
|
|
1803
|
+
: undefined,
|
|
1804
|
+
TypeName: __expectString(output.TypeName),
|
|
1805
|
+
VpcConfigurationDescription: output.VpcConfigurationDescription !== undefined && output.VpcConfigurationDescription !== null
|
|
1806
|
+
? deserializeAws_json1_1VpcConfigurationDescription(output.VpcConfigurationDescription, context)
|
|
1807
|
+
: undefined,
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
var deserializeAws_json1_1AmazonopensearchserviceRetryOptions = function (output, context) {
|
|
1811
|
+
return {
|
|
1812
|
+
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1813
|
+
};
|
|
1814
|
+
};
|
|
1720
1815
|
var deserializeAws_json1_1BufferingHints = function (output, context) {
|
|
1721
1816
|
return {
|
|
1722
1817
|
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
@@ -1842,6 +1937,10 @@ var deserializeAws_json1_1Deserializer = function (output, context) {
|
|
|
1842
1937
|
};
|
|
1843
1938
|
var deserializeAws_json1_1DestinationDescription = function (output, context) {
|
|
1844
1939
|
return {
|
|
1940
|
+
AmazonopensearchserviceDestinationDescription: output.AmazonopensearchserviceDestinationDescription !== undefined &&
|
|
1941
|
+
output.AmazonopensearchserviceDestinationDescription !== null
|
|
1942
|
+
? deserializeAws_json1_1AmazonopensearchserviceDestinationDescription(output.AmazonopensearchserviceDestinationDescription, context)
|
|
1943
|
+
: undefined,
|
|
1845
1944
|
DestinationId: __expectString(output.DestinationId),
|
|
1846
1945
|
ElasticsearchDestinationDescription: output.ElasticsearchDestinationDescription !== undefined && output.ElasticsearchDestinationDescription !== null
|
|
1847
1946
|
? deserializeAws_json1_1ElasticsearchDestinationDescription(output.ElasticsearchDestinationDescription, context)
|
|
@@ -2424,7 +2523,6 @@ var deserializeMetadata = function (output) {
|
|
|
2424
2523
|
cfId: output.headers["x-amz-cf-id"],
|
|
2425
2524
|
});
|
|
2426
2525
|
};
|
|
2427
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2428
2526
|
var collectBody = function (streamBody, context) {
|
|
2429
2527
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2430
2528
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2432,7 +2530,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2432
2530
|
}
|
|
2433
2531
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2434
2532
|
};
|
|
2435
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2436
2533
|
var collectBodyString = function (streamBody, context) {
|
|
2437
2534
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2438
2535
|
};
|
|
@@ -2440,7 +2537,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2440
2537
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2441
2538
|
return __generator(this, function (_c) {
|
|
2442
2539
|
switch (_c.label) {
|
|
2443
|
-
case 0: return [4
|
|
2540
|
+
case 0: return [4, context.endpoint()];
|
|
2444
2541
|
case 1:
|
|
2445
2542
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2446
2543
|
contents = {
|
|
@@ -2457,7 +2554,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2457
2554
|
if (body !== undefined) {
|
|
2458
2555
|
contents.body = body;
|
|
2459
2556
|
}
|
|
2460
|
-
return [2
|
|
2557
|
+
return [2, new __HttpRequest(contents)];
|
|
2461
2558
|
}
|
|
2462
2559
|
});
|
|
2463
2560
|
}); };
|
|
@@ -2469,9 +2566,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2469
2566
|
return {};
|
|
2470
2567
|
});
|
|
2471
2568
|
};
|
|
2472
|
-
/**
|
|
2473
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2474
|
-
*/
|
|
2475
2569
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2476
2570
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2477
2571
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2496,4 +2590,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2496
2590
|
}
|
|
2497
2591
|
return "";
|
|
2498
2592
|
};
|
|
2499
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|