@aws-sdk/client-cloudwatch-logs 3.445.0 → 3.449.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/README.md +120 -0
- package/dist-cjs/CloudWatchLogs.js +30 -0
- package/dist-cjs/commands/CreateDeliveryCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliveriesCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/GetDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/PutDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/PutDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/models/models_0.js +78 -1
- package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +887 -74
- package/dist-es/CloudWatchLogs.js +30 -0
- package/dist-es/commands/CreateDeliveryCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/DeleteDeliverySourceCommand.js +47 -0
- package/dist-es/commands/DescribeDeliveriesCommand.js +47 -0
- package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +47 -0
- package/dist-es/commands/DescribeDeliverySourcesCommand.js +47 -0
- package/dist-es/commands/GetDeliveryCommand.js +47 -0
- package/dist-es/commands/GetDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/GetDeliverySourceCommand.js +47 -0
- package/dist-es/commands/PutDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/PutDeliverySourceCommand.js +47 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +72 -0
- package/dist-es/pagination/DescribeDeliveriesPaginator.js +25 -0
- package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +25 -0
- package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +854 -71
- package/dist-types/CloudWatchLogs.d.ts +105 -0
- package/dist-types/CloudWatchLogsClient.d.ts +17 -2
- package/dist-types/commands/CreateDeliveryCommand.d.ts +142 -0
- package/dist-types/commands/DeleteDeliveryCommand.d.ts +91 -0
- package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +92 -0
- package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +84 -0
- package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +92 -0
- package/dist-types/commands/DescribeDeliveriesCommand.d.ts +98 -0
- package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +100 -0
- package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +100 -0
- package/dist-types/commands/GetDeliveryCommand.d.ts +101 -0
- package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +99 -0
- package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +86 -0
- package/dist-types/commands/GetDeliverySourceCommand.d.ts +99 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +145 -0
- package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +118 -0
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +142 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +635 -0
- package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +135 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +255 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +90 -0
- package/dist-types/ts3.4/commands/CreateDeliveryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryDestinationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliverySourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeDeliveriesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeDeliveryDestinationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeDeliverySourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliveryCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetDeliveryDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliveryDestinationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliverySourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutDeliveryDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDeliveryDestinationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDeliverySourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +173 -0
- package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +180 -0
- package/package.json +12 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UntagResourceCommand = exports.de_UntagLogGroupCommand = void 0;
|
|
3
|
+
exports.se_PutDeliveryDestinationPolicyCommand = exports.se_PutDeliveryDestinationCommand = exports.se_PutDataProtectionPolicyCommand = exports.se_PutAccountPolicyCommand = exports.se_ListTagsLogGroupCommand = exports.se_ListTagsForResourceCommand = exports.se_GetQueryResultsCommand = exports.se_GetLogRecordCommand = exports.se_GetLogGroupFieldsCommand = exports.se_GetLogEventsCommand = exports.se_GetDeliverySourceCommand = exports.se_GetDeliveryDestinationPolicyCommand = exports.se_GetDeliveryDestinationCommand = exports.se_GetDeliveryCommand = exports.se_GetDataProtectionPolicyCommand = exports.se_FilterLogEventsCommand = exports.se_DisassociateKmsKeyCommand = exports.se_DescribeSubscriptionFiltersCommand = exports.se_DescribeResourcePoliciesCommand = exports.se_DescribeQueryDefinitionsCommand = exports.se_DescribeQueriesCommand = exports.se_DescribeMetricFiltersCommand = exports.se_DescribeLogStreamsCommand = exports.se_DescribeLogGroupsCommand = exports.se_DescribeExportTasksCommand = exports.se_DescribeDestinationsCommand = exports.se_DescribeDeliverySourcesCommand = exports.se_DescribeDeliveryDestinationsCommand = exports.se_DescribeDeliveriesCommand = exports.se_DescribeAccountPoliciesCommand = exports.se_DeleteSubscriptionFilterCommand = exports.se_DeleteRetentionPolicyCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteQueryDefinitionCommand = exports.se_DeleteMetricFilterCommand = exports.se_DeleteLogStreamCommand = exports.se_DeleteLogGroupCommand = exports.se_DeleteDestinationCommand = exports.se_DeleteDeliverySourceCommand = exports.se_DeleteDeliveryDestinationPolicyCommand = exports.se_DeleteDeliveryDestinationCommand = exports.se_DeleteDeliveryCommand = exports.se_DeleteDataProtectionPolicyCommand = exports.se_DeleteAccountPolicyCommand = exports.se_CreateLogStreamCommand = exports.se_CreateLogGroupCommand = exports.se_CreateExportTaskCommand = exports.se_CreateDeliveryCommand = exports.se_CancelExportTaskCommand = exports.se_AssociateKmsKeyCommand = void 0;
|
|
4
|
+
exports.de_DisassociateKmsKeyCommand = exports.de_DescribeSubscriptionFiltersCommand = exports.de_DescribeResourcePoliciesCommand = exports.de_DescribeQueryDefinitionsCommand = exports.de_DescribeQueriesCommand = exports.de_DescribeMetricFiltersCommand = exports.de_DescribeLogStreamsCommand = exports.de_DescribeLogGroupsCommand = exports.de_DescribeExportTasksCommand = exports.de_DescribeDestinationsCommand = exports.de_DescribeDeliverySourcesCommand = exports.de_DescribeDeliveryDestinationsCommand = exports.de_DescribeDeliveriesCommand = exports.de_DescribeAccountPoliciesCommand = exports.de_DeleteSubscriptionFilterCommand = exports.de_DeleteRetentionPolicyCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteQueryDefinitionCommand = exports.de_DeleteMetricFilterCommand = exports.de_DeleteLogStreamCommand = exports.de_DeleteLogGroupCommand = exports.de_DeleteDestinationCommand = exports.de_DeleteDeliverySourceCommand = exports.de_DeleteDeliveryDestinationPolicyCommand = exports.de_DeleteDeliveryDestinationCommand = exports.de_DeleteDeliveryCommand = exports.de_DeleteDataProtectionPolicyCommand = exports.de_DeleteAccountPolicyCommand = exports.de_CreateLogStreamCommand = exports.de_CreateLogGroupCommand = exports.de_CreateExportTaskCommand = exports.de_CreateDeliveryCommand = exports.de_CancelExportTaskCommand = exports.de_AssociateKmsKeyCommand = exports.se_UntagResourceCommand = exports.se_UntagLogGroupCommand = exports.se_TestMetricFilterCommand = exports.se_TagResourceCommand = exports.se_TagLogGroupCommand = exports.se_StopQueryCommand = exports.se_StartQueryCommand = exports.se_PutSubscriptionFilterCommand = exports.se_PutRetentionPolicyCommand = exports.se_PutResourcePolicyCommand = exports.se_PutQueryDefinitionCommand = exports.se_PutMetricFilterCommand = exports.se_PutLogEventsCommand = exports.se_PutDestinationPolicyCommand = exports.se_PutDestinationCommand = exports.se_PutDeliverySourceCommand = void 0;
|
|
5
|
+
exports.de_UntagResourceCommand = exports.de_UntagLogGroupCommand = exports.de_TestMetricFilterCommand = exports.de_TagResourceCommand = exports.de_TagLogGroupCommand = exports.de_StopQueryCommand = exports.de_StartQueryCommand = exports.de_PutSubscriptionFilterCommand = exports.de_PutRetentionPolicyCommand = exports.de_PutResourcePolicyCommand = exports.de_PutQueryDefinitionCommand = exports.de_PutMetricFilterCommand = exports.de_PutLogEventsCommand = exports.de_PutDestinationPolicyCommand = exports.de_PutDestinationCommand = exports.de_PutDeliverySourceCommand = exports.de_PutDeliveryDestinationPolicyCommand = exports.de_PutDeliveryDestinationCommand = exports.de_PutDataProtectionPolicyCommand = exports.de_PutAccountPolicyCommand = exports.de_ListTagsLogGroupCommand = exports.de_ListTagsForResourceCommand = exports.de_GetQueryResultsCommand = exports.de_GetLogRecordCommand = exports.de_GetLogGroupFieldsCommand = exports.de_GetLogEventsCommand = exports.de_GetDeliverySourceCommand = exports.de_GetDeliveryDestinationPolicyCommand = exports.de_GetDeliveryDestinationCommand = exports.de_GetDeliveryCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_FilterLogEventsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -22,6 +22,13 @@ const se_CancelExportTaskCommand = async (input, context) => {
|
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
24
|
exports.se_CancelExportTaskCommand = se_CancelExportTaskCommand;
|
|
25
|
+
const se_CreateDeliveryCommand = async (input, context) => {
|
|
26
|
+
const headers = sharedHeaders("CreateDelivery");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
+
};
|
|
31
|
+
exports.se_CreateDeliveryCommand = se_CreateDeliveryCommand;
|
|
25
32
|
const se_CreateExportTaskCommand = async (input, context) => {
|
|
26
33
|
const headers = sharedHeaders("CreateExportTask");
|
|
27
34
|
let body;
|
|
@@ -57,6 +64,34 @@ const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
|
57
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
65
|
};
|
|
59
66
|
exports.se_DeleteDataProtectionPolicyCommand = se_DeleteDataProtectionPolicyCommand;
|
|
67
|
+
const se_DeleteDeliveryCommand = async (input, context) => {
|
|
68
|
+
const headers = sharedHeaders("DeleteDelivery");
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
+
};
|
|
73
|
+
exports.se_DeleteDeliveryCommand = se_DeleteDeliveryCommand;
|
|
74
|
+
const se_DeleteDeliveryDestinationCommand = async (input, context) => {
|
|
75
|
+
const headers = sharedHeaders("DeleteDeliveryDestination");
|
|
76
|
+
let body;
|
|
77
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
+
};
|
|
80
|
+
exports.se_DeleteDeliveryDestinationCommand = se_DeleteDeliveryDestinationCommand;
|
|
81
|
+
const se_DeleteDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
82
|
+
const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
exports.se_DeleteDeliveryDestinationPolicyCommand = se_DeleteDeliveryDestinationPolicyCommand;
|
|
88
|
+
const se_DeleteDeliverySourceCommand = async (input, context) => {
|
|
89
|
+
const headers = sharedHeaders("DeleteDeliverySource");
|
|
90
|
+
let body;
|
|
91
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
+
};
|
|
94
|
+
exports.se_DeleteDeliverySourceCommand = se_DeleteDeliverySourceCommand;
|
|
60
95
|
const se_DeleteDestinationCommand = async (input, context) => {
|
|
61
96
|
const headers = sharedHeaders("DeleteDestination");
|
|
62
97
|
let body;
|
|
@@ -120,6 +155,27 @@ const se_DescribeAccountPoliciesCommand = async (input, context) => {
|
|
|
120
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
156
|
};
|
|
122
157
|
exports.se_DescribeAccountPoliciesCommand = se_DescribeAccountPoliciesCommand;
|
|
158
|
+
const se_DescribeDeliveriesCommand = async (input, context) => {
|
|
159
|
+
const headers = sharedHeaders("DescribeDeliveries");
|
|
160
|
+
let body;
|
|
161
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
+
};
|
|
164
|
+
exports.se_DescribeDeliveriesCommand = se_DescribeDeliveriesCommand;
|
|
165
|
+
const se_DescribeDeliveryDestinationsCommand = async (input, context) => {
|
|
166
|
+
const headers = sharedHeaders("DescribeDeliveryDestinations");
|
|
167
|
+
let body;
|
|
168
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
+
};
|
|
171
|
+
exports.se_DescribeDeliveryDestinationsCommand = se_DescribeDeliveryDestinationsCommand;
|
|
172
|
+
const se_DescribeDeliverySourcesCommand = async (input, context) => {
|
|
173
|
+
const headers = sharedHeaders("DescribeDeliverySources");
|
|
174
|
+
let body;
|
|
175
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
+
};
|
|
178
|
+
exports.se_DescribeDeliverySourcesCommand = se_DescribeDeliverySourcesCommand;
|
|
123
179
|
const se_DescribeDestinationsCommand = async (input, context) => {
|
|
124
180
|
const headers = sharedHeaders("DescribeDestinations");
|
|
125
181
|
let body;
|
|
@@ -204,6 +260,34 @@ const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
|
204
260
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
261
|
};
|
|
206
262
|
exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
|
|
263
|
+
const se_GetDeliveryCommand = async (input, context) => {
|
|
264
|
+
const headers = sharedHeaders("GetDelivery");
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
exports.se_GetDeliveryCommand = se_GetDeliveryCommand;
|
|
270
|
+
const se_GetDeliveryDestinationCommand = async (input, context) => {
|
|
271
|
+
const headers = sharedHeaders("GetDeliveryDestination");
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
+
};
|
|
276
|
+
exports.se_GetDeliveryDestinationCommand = se_GetDeliveryDestinationCommand;
|
|
277
|
+
const se_GetDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
278
|
+
const headers = sharedHeaders("GetDeliveryDestinationPolicy");
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
+
};
|
|
283
|
+
exports.se_GetDeliveryDestinationPolicyCommand = se_GetDeliveryDestinationPolicyCommand;
|
|
284
|
+
const se_GetDeliverySourceCommand = async (input, context) => {
|
|
285
|
+
const headers = sharedHeaders("GetDeliverySource");
|
|
286
|
+
let body;
|
|
287
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
+
};
|
|
290
|
+
exports.se_GetDeliverySourceCommand = se_GetDeliverySourceCommand;
|
|
207
291
|
const se_GetLogEventsCommand = async (input, context) => {
|
|
208
292
|
const headers = sharedHeaders("GetLogEvents");
|
|
209
293
|
let body;
|
|
@@ -260,6 +344,27 @@ const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
|
260
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
345
|
};
|
|
262
346
|
exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
|
|
347
|
+
const se_PutDeliveryDestinationCommand = async (input, context) => {
|
|
348
|
+
const headers = sharedHeaders("PutDeliveryDestination");
|
|
349
|
+
let body;
|
|
350
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
+
};
|
|
353
|
+
exports.se_PutDeliveryDestinationCommand = se_PutDeliveryDestinationCommand;
|
|
354
|
+
const se_PutDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
355
|
+
const headers = sharedHeaders("PutDeliveryDestinationPolicy");
|
|
356
|
+
let body;
|
|
357
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
+
};
|
|
360
|
+
exports.se_PutDeliveryDestinationPolicyCommand = se_PutDeliveryDestinationPolicyCommand;
|
|
361
|
+
const se_PutDeliverySourceCommand = async (input, context) => {
|
|
362
|
+
const headers = sharedHeaders("PutDeliverySource");
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
+
};
|
|
367
|
+
exports.se_PutDeliverySourceCommand = se_PutDeliverySourceCommand;
|
|
263
368
|
const se_PutDestinationCommand = async (input, context) => {
|
|
264
369
|
const headers = sharedHeaders("PutDestination");
|
|
265
370
|
let body;
|
|
@@ -443,6 +548,57 @@ const de_CancelExportTaskCommandError = async (output, context) => {
|
|
|
443
548
|
});
|
|
444
549
|
}
|
|
445
550
|
};
|
|
551
|
+
const de_CreateDeliveryCommand = async (output, context) => {
|
|
552
|
+
if (output.statusCode >= 300) {
|
|
553
|
+
return de_CreateDeliveryCommandError(output, context);
|
|
554
|
+
}
|
|
555
|
+
const data = await parseBody(output.body, context);
|
|
556
|
+
let contents = {};
|
|
557
|
+
contents = (0, smithy_client_1._json)(data);
|
|
558
|
+
const response = {
|
|
559
|
+
$metadata: deserializeMetadata(output),
|
|
560
|
+
...contents,
|
|
561
|
+
};
|
|
562
|
+
return response;
|
|
563
|
+
};
|
|
564
|
+
exports.de_CreateDeliveryCommand = de_CreateDeliveryCommand;
|
|
565
|
+
const de_CreateDeliveryCommandError = async (output, context) => {
|
|
566
|
+
const parsedOutput = {
|
|
567
|
+
...output,
|
|
568
|
+
body: await parseErrorBody(output.body, context),
|
|
569
|
+
};
|
|
570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
|
+
switch (errorCode) {
|
|
572
|
+
case "AccessDeniedException":
|
|
573
|
+
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
574
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
|
+
case "ConflictException":
|
|
576
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
577
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
578
|
+
case "ResourceNotFoundException":
|
|
579
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
580
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
581
|
+
case "ServiceQuotaExceededException":
|
|
582
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
583
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
584
|
+
case "ServiceUnavailableException":
|
|
585
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
586
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
587
|
+
case "ThrottlingException":
|
|
588
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
589
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
|
+
case "ValidationException":
|
|
591
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
592
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
|
+
default:
|
|
594
|
+
const parsedBody = parsedOutput.body;
|
|
595
|
+
return throwDefaultError({
|
|
596
|
+
output,
|
|
597
|
+
parsedBody,
|
|
598
|
+
errorCode,
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
};
|
|
446
602
|
const de_CreateExportTaskCommand = async (output, context) => {
|
|
447
603
|
if (output.statusCode >= 300) {
|
|
448
604
|
return de_CreateExportTaskCommandError(output, context);
|
|
@@ -650,6 +806,180 @@ const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
650
806
|
});
|
|
651
807
|
}
|
|
652
808
|
};
|
|
809
|
+
const de_DeleteDeliveryCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode >= 300) {
|
|
811
|
+
return de_DeleteDeliveryCommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
814
|
+
const response = {
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
};
|
|
817
|
+
return response;
|
|
818
|
+
};
|
|
819
|
+
exports.de_DeleteDeliveryCommand = de_DeleteDeliveryCommand;
|
|
820
|
+
const de_DeleteDeliveryCommandError = async (output, context) => {
|
|
821
|
+
const parsedOutput = {
|
|
822
|
+
...output,
|
|
823
|
+
body: await parseErrorBody(output.body, context),
|
|
824
|
+
};
|
|
825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
+
switch (errorCode) {
|
|
827
|
+
case "ConflictException":
|
|
828
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
829
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ResourceNotFoundException":
|
|
831
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
|
+
case "ServiceQuotaExceededException":
|
|
834
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
835
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
836
|
+
case "ServiceUnavailableException":
|
|
837
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
838
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
839
|
+
case "ThrottlingException":
|
|
840
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
841
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
842
|
+
case "ValidationException":
|
|
843
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
844
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
|
+
default:
|
|
846
|
+
const parsedBody = parsedOutput.body;
|
|
847
|
+
return throwDefaultError({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
errorCode,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
855
|
+
if (output.statusCode >= 300) {
|
|
856
|
+
return de_DeleteDeliveryDestinationCommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
859
|
+
const response = {
|
|
860
|
+
$metadata: deserializeMetadata(output),
|
|
861
|
+
};
|
|
862
|
+
return response;
|
|
863
|
+
};
|
|
864
|
+
exports.de_DeleteDeliveryDestinationCommand = de_DeleteDeliveryDestinationCommand;
|
|
865
|
+
const de_DeleteDeliveryDestinationCommandError = async (output, context) => {
|
|
866
|
+
const parsedOutput = {
|
|
867
|
+
...output,
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
|
+
};
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
+
switch (errorCode) {
|
|
872
|
+
case "ConflictException":
|
|
873
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ResourceNotFoundException":
|
|
876
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
877
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ServiceQuotaExceededException":
|
|
879
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
880
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
881
|
+
case "ServiceUnavailableException":
|
|
882
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
883
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
884
|
+
case "ThrottlingException":
|
|
885
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
886
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
887
|
+
case "ValidationException":
|
|
888
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
889
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
890
|
+
default:
|
|
891
|
+
const parsedBody = parsedOutput.body;
|
|
892
|
+
return throwDefaultError({
|
|
893
|
+
output,
|
|
894
|
+
parsedBody,
|
|
895
|
+
errorCode,
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
const de_DeleteDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
900
|
+
if (output.statusCode >= 300) {
|
|
901
|
+
return de_DeleteDeliveryDestinationPolicyCommandError(output, context);
|
|
902
|
+
}
|
|
903
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
904
|
+
const response = {
|
|
905
|
+
$metadata: deserializeMetadata(output),
|
|
906
|
+
};
|
|
907
|
+
return response;
|
|
908
|
+
};
|
|
909
|
+
exports.de_DeleteDeliveryDestinationPolicyCommand = de_DeleteDeliveryDestinationPolicyCommand;
|
|
910
|
+
const de_DeleteDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
911
|
+
const parsedOutput = {
|
|
912
|
+
...output,
|
|
913
|
+
body: await parseErrorBody(output.body, context),
|
|
914
|
+
};
|
|
915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
+
switch (errorCode) {
|
|
917
|
+
case "ConflictException":
|
|
918
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
919
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
+
case "ResourceNotFoundException":
|
|
921
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
922
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
923
|
+
case "ServiceUnavailableException":
|
|
924
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
925
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
926
|
+
case "ValidationException":
|
|
927
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
928
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
929
|
+
default:
|
|
930
|
+
const parsedBody = parsedOutput.body;
|
|
931
|
+
return throwDefaultError({
|
|
932
|
+
output,
|
|
933
|
+
parsedBody,
|
|
934
|
+
errorCode,
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
939
|
+
if (output.statusCode >= 300) {
|
|
940
|
+
return de_DeleteDeliverySourceCommandError(output, context);
|
|
941
|
+
}
|
|
942
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
943
|
+
const response = {
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
};
|
|
946
|
+
return response;
|
|
947
|
+
};
|
|
948
|
+
exports.de_DeleteDeliverySourceCommand = de_DeleteDeliverySourceCommand;
|
|
949
|
+
const de_DeleteDeliverySourceCommandError = async (output, context) => {
|
|
950
|
+
const parsedOutput = {
|
|
951
|
+
...output,
|
|
952
|
+
body: await parseErrorBody(output.body, context),
|
|
953
|
+
};
|
|
954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
|
+
switch (errorCode) {
|
|
956
|
+
case "ConflictException":
|
|
957
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
958
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
959
|
+
case "ResourceNotFoundException":
|
|
960
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
961
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ServiceQuotaExceededException":
|
|
963
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
964
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ServiceUnavailableException":
|
|
966
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
967
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ThrottlingException":
|
|
969
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
970
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ValidationException":
|
|
972
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
973
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
|
+
default:
|
|
975
|
+
const parsedBody = parsedOutput.body;
|
|
976
|
+
return throwDefaultError({
|
|
977
|
+
output,
|
|
978
|
+
parsedBody,
|
|
979
|
+
errorCode,
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
};
|
|
653
983
|
const de_DeleteDestinationCommand = async (output, context) => {
|
|
654
984
|
if (output.statusCode >= 300) {
|
|
655
985
|
return de_DeleteDestinationCommandError(output, context);
|
|
@@ -1001,6 +1331,132 @@ const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
|
1001
1331
|
});
|
|
1002
1332
|
}
|
|
1003
1333
|
};
|
|
1334
|
+
const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
1335
|
+
if (output.statusCode >= 300) {
|
|
1336
|
+
return de_DescribeDeliveriesCommandError(output, context);
|
|
1337
|
+
}
|
|
1338
|
+
const data = await parseBody(output.body, context);
|
|
1339
|
+
let contents = {};
|
|
1340
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1341
|
+
const response = {
|
|
1342
|
+
$metadata: deserializeMetadata(output),
|
|
1343
|
+
...contents,
|
|
1344
|
+
};
|
|
1345
|
+
return response;
|
|
1346
|
+
};
|
|
1347
|
+
exports.de_DescribeDeliveriesCommand = de_DescribeDeliveriesCommand;
|
|
1348
|
+
const de_DescribeDeliveriesCommandError = async (output, context) => {
|
|
1349
|
+
const parsedOutput = {
|
|
1350
|
+
...output,
|
|
1351
|
+
body: await parseErrorBody(output.body, context),
|
|
1352
|
+
};
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
+
switch (errorCode) {
|
|
1355
|
+
case "ServiceQuotaExceededException":
|
|
1356
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1357
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1358
|
+
case "ServiceUnavailableException":
|
|
1359
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1360
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1361
|
+
case "ThrottlingException":
|
|
1362
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1363
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1364
|
+
case "ValidationException":
|
|
1365
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1366
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1367
|
+
default:
|
|
1368
|
+
const parsedBody = parsedOutput.body;
|
|
1369
|
+
return throwDefaultError({
|
|
1370
|
+
output,
|
|
1371
|
+
parsedBody,
|
|
1372
|
+
errorCode,
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
1377
|
+
if (output.statusCode >= 300) {
|
|
1378
|
+
return de_DescribeDeliveryDestinationsCommandError(output, context);
|
|
1379
|
+
}
|
|
1380
|
+
const data = await parseBody(output.body, context);
|
|
1381
|
+
let contents = {};
|
|
1382
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1383
|
+
const response = {
|
|
1384
|
+
$metadata: deserializeMetadata(output),
|
|
1385
|
+
...contents,
|
|
1386
|
+
};
|
|
1387
|
+
return response;
|
|
1388
|
+
};
|
|
1389
|
+
exports.de_DescribeDeliveryDestinationsCommand = de_DescribeDeliveryDestinationsCommand;
|
|
1390
|
+
const de_DescribeDeliveryDestinationsCommandError = async (output, context) => {
|
|
1391
|
+
const parsedOutput = {
|
|
1392
|
+
...output,
|
|
1393
|
+
body: await parseErrorBody(output.body, context),
|
|
1394
|
+
};
|
|
1395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
+
switch (errorCode) {
|
|
1397
|
+
case "ServiceQuotaExceededException":
|
|
1398
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1399
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1400
|
+
case "ServiceUnavailableException":
|
|
1401
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1402
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1403
|
+
case "ThrottlingException":
|
|
1404
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1405
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1406
|
+
case "ValidationException":
|
|
1407
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1408
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
+
default:
|
|
1410
|
+
const parsedBody = parsedOutput.body;
|
|
1411
|
+
return throwDefaultError({
|
|
1412
|
+
output,
|
|
1413
|
+
parsedBody,
|
|
1414
|
+
errorCode,
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
1419
|
+
if (output.statusCode >= 300) {
|
|
1420
|
+
return de_DescribeDeliverySourcesCommandError(output, context);
|
|
1421
|
+
}
|
|
1422
|
+
const data = await parseBody(output.body, context);
|
|
1423
|
+
let contents = {};
|
|
1424
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1425
|
+
const response = {
|
|
1426
|
+
$metadata: deserializeMetadata(output),
|
|
1427
|
+
...contents,
|
|
1428
|
+
};
|
|
1429
|
+
return response;
|
|
1430
|
+
};
|
|
1431
|
+
exports.de_DescribeDeliverySourcesCommand = de_DescribeDeliverySourcesCommand;
|
|
1432
|
+
const de_DescribeDeliverySourcesCommandError = async (output, context) => {
|
|
1433
|
+
const parsedOutput = {
|
|
1434
|
+
...output,
|
|
1435
|
+
body: await parseErrorBody(output.body, context),
|
|
1436
|
+
};
|
|
1437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
+
switch (errorCode) {
|
|
1439
|
+
case "ServiceQuotaExceededException":
|
|
1440
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1441
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1442
|
+
case "ServiceUnavailableException":
|
|
1443
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1444
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1445
|
+
case "ThrottlingException":
|
|
1446
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1448
|
+
case "ValidationException":
|
|
1449
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1450
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1451
|
+
default:
|
|
1452
|
+
const parsedBody = parsedOutput.body;
|
|
1453
|
+
return throwDefaultError({
|
|
1454
|
+
output,
|
|
1455
|
+
parsedBody,
|
|
1456
|
+
errorCode,
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1004
1460
|
const de_DescribeDestinationsCommand = async (output, context) => {
|
|
1005
1461
|
if (output.statusCode >= 300) {
|
|
1006
1462
|
return de_DescribeDestinationsCommandError(output, context);
|
|
@@ -1037,9 +1493,159 @@ const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
|
1037
1493
|
});
|
|
1038
1494
|
}
|
|
1039
1495
|
};
|
|
1040
|
-
const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1496
|
+
const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1497
|
+
if (output.statusCode >= 300) {
|
|
1498
|
+
return de_DescribeExportTasksCommandError(output, context);
|
|
1499
|
+
}
|
|
1500
|
+
const data = await parseBody(output.body, context);
|
|
1501
|
+
let contents = {};
|
|
1502
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1503
|
+
const response = {
|
|
1504
|
+
$metadata: deserializeMetadata(output),
|
|
1505
|
+
...contents,
|
|
1506
|
+
};
|
|
1507
|
+
return response;
|
|
1508
|
+
};
|
|
1509
|
+
exports.de_DescribeExportTasksCommand = de_DescribeExportTasksCommand;
|
|
1510
|
+
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
1511
|
+
const parsedOutput = {
|
|
1512
|
+
...output,
|
|
1513
|
+
body: await parseErrorBody(output.body, context),
|
|
1514
|
+
};
|
|
1515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
+
switch (errorCode) {
|
|
1517
|
+
case "InvalidParameterException":
|
|
1518
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1519
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1520
|
+
case "ServiceUnavailableException":
|
|
1521
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1522
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1523
|
+
default:
|
|
1524
|
+
const parsedBody = parsedOutput.body;
|
|
1525
|
+
return throwDefaultError({
|
|
1526
|
+
output,
|
|
1527
|
+
parsedBody,
|
|
1528
|
+
errorCode,
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
1533
|
+
if (output.statusCode >= 300) {
|
|
1534
|
+
return de_DescribeLogGroupsCommandError(output, context);
|
|
1535
|
+
}
|
|
1536
|
+
const data = await parseBody(output.body, context);
|
|
1537
|
+
let contents = {};
|
|
1538
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1539
|
+
const response = {
|
|
1540
|
+
$metadata: deserializeMetadata(output),
|
|
1541
|
+
...contents,
|
|
1542
|
+
};
|
|
1543
|
+
return response;
|
|
1544
|
+
};
|
|
1545
|
+
exports.de_DescribeLogGroupsCommand = de_DescribeLogGroupsCommand;
|
|
1546
|
+
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
1547
|
+
const parsedOutput = {
|
|
1548
|
+
...output,
|
|
1549
|
+
body: await parseErrorBody(output.body, context),
|
|
1550
|
+
};
|
|
1551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
|
+
switch (errorCode) {
|
|
1553
|
+
case "InvalidParameterException":
|
|
1554
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1555
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1556
|
+
case "ServiceUnavailableException":
|
|
1557
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1558
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1559
|
+
default:
|
|
1560
|
+
const parsedBody = parsedOutput.body;
|
|
1561
|
+
return throwDefaultError({
|
|
1562
|
+
output,
|
|
1563
|
+
parsedBody,
|
|
1564
|
+
errorCode,
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
1569
|
+
if (output.statusCode >= 300) {
|
|
1570
|
+
return de_DescribeLogStreamsCommandError(output, context);
|
|
1571
|
+
}
|
|
1572
|
+
const data = await parseBody(output.body, context);
|
|
1573
|
+
let contents = {};
|
|
1574
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1575
|
+
const response = {
|
|
1576
|
+
$metadata: deserializeMetadata(output),
|
|
1577
|
+
...contents,
|
|
1578
|
+
};
|
|
1579
|
+
return response;
|
|
1580
|
+
};
|
|
1581
|
+
exports.de_DescribeLogStreamsCommand = de_DescribeLogStreamsCommand;
|
|
1582
|
+
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
1583
|
+
const parsedOutput = {
|
|
1584
|
+
...output,
|
|
1585
|
+
body: await parseErrorBody(output.body, context),
|
|
1586
|
+
};
|
|
1587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
+
switch (errorCode) {
|
|
1589
|
+
case "InvalidParameterException":
|
|
1590
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1591
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "ResourceNotFoundException":
|
|
1593
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ServiceUnavailableException":
|
|
1596
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1597
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1598
|
+
default:
|
|
1599
|
+
const parsedBody = parsedOutput.body;
|
|
1600
|
+
return throwDefaultError({
|
|
1601
|
+
output,
|
|
1602
|
+
parsedBody,
|
|
1603
|
+
errorCode,
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
};
|
|
1607
|
+
const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
1608
|
+
if (output.statusCode >= 300) {
|
|
1609
|
+
return de_DescribeMetricFiltersCommandError(output, context);
|
|
1610
|
+
}
|
|
1611
|
+
const data = await parseBody(output.body, context);
|
|
1612
|
+
let contents = {};
|
|
1613
|
+
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
1614
|
+
const response = {
|
|
1615
|
+
$metadata: deserializeMetadata(output),
|
|
1616
|
+
...contents,
|
|
1617
|
+
};
|
|
1618
|
+
return response;
|
|
1619
|
+
};
|
|
1620
|
+
exports.de_DescribeMetricFiltersCommand = de_DescribeMetricFiltersCommand;
|
|
1621
|
+
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1622
|
+
const parsedOutput = {
|
|
1623
|
+
...output,
|
|
1624
|
+
body: await parseErrorBody(output.body, context),
|
|
1625
|
+
};
|
|
1626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
+
switch (errorCode) {
|
|
1628
|
+
case "InvalidParameterException":
|
|
1629
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1630
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1631
|
+
case "ResourceNotFoundException":
|
|
1632
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1633
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1634
|
+
case "ServiceUnavailableException":
|
|
1635
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1636
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1637
|
+
default:
|
|
1638
|
+
const parsedBody = parsedOutput.body;
|
|
1639
|
+
return throwDefaultError({
|
|
1640
|
+
output,
|
|
1641
|
+
parsedBody,
|
|
1642
|
+
errorCode,
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
const de_DescribeQueriesCommand = async (output, context) => {
|
|
1041
1647
|
if (output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
1648
|
+
return de_DescribeQueriesCommandError(output, context);
|
|
1043
1649
|
}
|
|
1044
1650
|
const data = await parseBody(output.body, context);
|
|
1045
1651
|
let contents = {};
|
|
@@ -1050,8 +1656,8 @@ const de_DescribeExportTasksCommand = async (output, context) => {
|
|
|
1050
1656
|
};
|
|
1051
1657
|
return response;
|
|
1052
1658
|
};
|
|
1053
|
-
exports.
|
|
1054
|
-
const
|
|
1659
|
+
exports.de_DescribeQueriesCommand = de_DescribeQueriesCommand;
|
|
1660
|
+
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
1055
1661
|
const parsedOutput = {
|
|
1056
1662
|
...output,
|
|
1057
1663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1061,6 +1667,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
1061
1667
|
case "InvalidParameterException":
|
|
1062
1668
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1063
1669
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1670
|
+
case "ResourceNotFoundException":
|
|
1671
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1672
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
1673
|
case "ServiceUnavailableException":
|
|
1065
1674
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1066
1675
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1073,9 +1682,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
1073
1682
|
});
|
|
1074
1683
|
}
|
|
1075
1684
|
};
|
|
1076
|
-
const
|
|
1685
|
+
const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1077
1686
|
if (output.statusCode >= 300) {
|
|
1078
|
-
return
|
|
1687
|
+
return de_DescribeQueryDefinitionsCommandError(output, context);
|
|
1079
1688
|
}
|
|
1080
1689
|
const data = await parseBody(output.body, context);
|
|
1081
1690
|
let contents = {};
|
|
@@ -1086,8 +1695,8 @@ const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
|
1086
1695
|
};
|
|
1087
1696
|
return response;
|
|
1088
1697
|
};
|
|
1089
|
-
exports.
|
|
1090
|
-
const
|
|
1698
|
+
exports.de_DescribeQueryDefinitionsCommand = de_DescribeQueryDefinitionsCommand;
|
|
1699
|
+
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1091
1700
|
const parsedOutput = {
|
|
1092
1701
|
...output,
|
|
1093
1702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1109,9 +1718,9 @@ const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
|
1109
1718
|
});
|
|
1110
1719
|
}
|
|
1111
1720
|
};
|
|
1112
|
-
const
|
|
1721
|
+
const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1113
1722
|
if (output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
1723
|
+
return de_DescribeResourcePoliciesCommandError(output, context);
|
|
1115
1724
|
}
|
|
1116
1725
|
const data = await parseBody(output.body, context);
|
|
1117
1726
|
let contents = {};
|
|
@@ -1122,8 +1731,8 @@ const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
|
1122
1731
|
};
|
|
1123
1732
|
return response;
|
|
1124
1733
|
};
|
|
1125
|
-
exports.
|
|
1126
|
-
const
|
|
1734
|
+
exports.de_DescribeResourcePoliciesCommand = de_DescribeResourcePoliciesCommand;
|
|
1735
|
+
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1127
1736
|
const parsedOutput = {
|
|
1128
1737
|
...output,
|
|
1129
1738
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1133,9 +1742,6 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
|
1133
1742
|
case "InvalidParameterException":
|
|
1134
1743
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1135
1744
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ResourceNotFoundException":
|
|
1137
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1138
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
1745
|
case "ServiceUnavailableException":
|
|
1140
1746
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1141
1747
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1148,21 +1754,21 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
|
1148
1754
|
});
|
|
1149
1755
|
}
|
|
1150
1756
|
};
|
|
1151
|
-
const
|
|
1757
|
+
const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1152
1758
|
if (output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
1759
|
+
return de_DescribeSubscriptionFiltersCommandError(output, context);
|
|
1154
1760
|
}
|
|
1155
1761
|
const data = await parseBody(output.body, context);
|
|
1156
1762
|
let contents = {};
|
|
1157
|
-
contents =
|
|
1763
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1158
1764
|
const response = {
|
|
1159
1765
|
$metadata: deserializeMetadata(output),
|
|
1160
1766
|
...contents,
|
|
1161
1767
|
};
|
|
1162
1768
|
return response;
|
|
1163
1769
|
};
|
|
1164
|
-
exports.
|
|
1165
|
-
const
|
|
1770
|
+
exports.de_DescribeSubscriptionFiltersCommand = de_DescribeSubscriptionFiltersCommand;
|
|
1771
|
+
const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1166
1772
|
const parsedOutput = {
|
|
1167
1773
|
...output,
|
|
1168
1774
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1187,21 +1793,18 @@ const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
|
1187
1793
|
});
|
|
1188
1794
|
}
|
|
1189
1795
|
};
|
|
1190
|
-
const
|
|
1796
|
+
const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
1191
1797
|
if (output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
1798
|
+
return de_DisassociateKmsKeyCommandError(output, context);
|
|
1193
1799
|
}
|
|
1194
|
-
|
|
1195
|
-
let contents = {};
|
|
1196
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1800
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1197
1801
|
const response = {
|
|
1198
1802
|
$metadata: deserializeMetadata(output),
|
|
1199
|
-
...contents,
|
|
1200
1803
|
};
|
|
1201
1804
|
return response;
|
|
1202
1805
|
};
|
|
1203
|
-
exports.
|
|
1204
|
-
const
|
|
1806
|
+
exports.de_DisassociateKmsKeyCommand = de_DisassociateKmsKeyCommand;
|
|
1807
|
+
const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1205
1808
|
const parsedOutput = {
|
|
1206
1809
|
...output,
|
|
1207
1810
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1211,6 +1814,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
|
|
|
1211
1814
|
case "InvalidParameterException":
|
|
1212
1815
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1213
1816
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1817
|
+
case "OperationAbortedException":
|
|
1818
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1819
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1214
1820
|
case "ResourceNotFoundException":
|
|
1215
1821
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1216
1822
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1226,9 +1832,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
|
|
|
1226
1832
|
});
|
|
1227
1833
|
}
|
|
1228
1834
|
};
|
|
1229
|
-
const
|
|
1835
|
+
const de_FilterLogEventsCommand = async (output, context) => {
|
|
1230
1836
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return
|
|
1837
|
+
return de_FilterLogEventsCommandError(output, context);
|
|
1232
1838
|
}
|
|
1233
1839
|
const data = await parseBody(output.body, context);
|
|
1234
1840
|
let contents = {};
|
|
@@ -1239,8 +1845,8 @@ const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
|
1239
1845
|
};
|
|
1240
1846
|
return response;
|
|
1241
1847
|
};
|
|
1242
|
-
exports.
|
|
1243
|
-
const
|
|
1848
|
+
exports.de_FilterLogEventsCommand = de_FilterLogEventsCommand;
|
|
1849
|
+
const de_FilterLogEventsCommandError = async (output, context) => {
|
|
1244
1850
|
const parsedOutput = {
|
|
1245
1851
|
...output,
|
|
1246
1852
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1250,6 +1856,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
|
1250
1856
|
case "InvalidParameterException":
|
|
1251
1857
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1252
1858
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1859
|
+
case "ResourceNotFoundException":
|
|
1860
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1861
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1253
1862
|
case "ServiceUnavailableException":
|
|
1254
1863
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1255
1864
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1262,9 +1871,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
|
1262
1871
|
});
|
|
1263
1872
|
}
|
|
1264
1873
|
};
|
|
1265
|
-
const
|
|
1874
|
+
const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
1266
1875
|
if (output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1876
|
+
return de_GetDataProtectionPolicyCommandError(output, context);
|
|
1268
1877
|
}
|
|
1269
1878
|
const data = await parseBody(output.body, context);
|
|
1270
1879
|
let contents = {};
|
|
@@ -1275,8 +1884,8 @@ const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
|
1275
1884
|
};
|
|
1276
1885
|
return response;
|
|
1277
1886
|
};
|
|
1278
|
-
exports.
|
|
1279
|
-
const
|
|
1887
|
+
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
1888
|
+
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1280
1889
|
const parsedOutput = {
|
|
1281
1890
|
...output,
|
|
1282
1891
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1286,6 +1895,12 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
|
1286
1895
|
case "InvalidParameterException":
|
|
1287
1896
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1288
1897
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "OperationAbortedException":
|
|
1899
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1900
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "ResourceNotFoundException":
|
|
1902
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1903
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
1904
|
case "ServiceUnavailableException":
|
|
1290
1905
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1291
1906
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1298,9 +1913,9 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
|
1298
1913
|
});
|
|
1299
1914
|
}
|
|
1300
1915
|
};
|
|
1301
|
-
const
|
|
1916
|
+
const de_GetDeliveryCommand = async (output, context) => {
|
|
1302
1917
|
if (output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
1918
|
+
return de_GetDeliveryCommandError(output, context);
|
|
1304
1919
|
}
|
|
1305
1920
|
const data = await parseBody(output.body, context);
|
|
1306
1921
|
let contents = {};
|
|
@@ -1311,23 +1926,29 @@ const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
|
1311
1926
|
};
|
|
1312
1927
|
return response;
|
|
1313
1928
|
};
|
|
1314
|
-
exports.
|
|
1315
|
-
const
|
|
1929
|
+
exports.de_GetDeliveryCommand = de_GetDeliveryCommand;
|
|
1930
|
+
const de_GetDeliveryCommandError = async (output, context) => {
|
|
1316
1931
|
const parsedOutput = {
|
|
1317
1932
|
...output,
|
|
1318
1933
|
body: await parseErrorBody(output.body, context),
|
|
1319
1934
|
};
|
|
1320
1935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1936
|
switch (errorCode) {
|
|
1322
|
-
case "InvalidParameterException":
|
|
1323
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1324
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1325
1937
|
case "ResourceNotFoundException":
|
|
1326
1938
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1327
1939
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1940
|
+
case "ServiceQuotaExceededException":
|
|
1941
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1942
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1328
1943
|
case "ServiceUnavailableException":
|
|
1329
1944
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1330
1945
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1946
|
+
case "ThrottlingException":
|
|
1947
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1948
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1949
|
+
case "ValidationException":
|
|
1950
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1951
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1331
1952
|
default:
|
|
1332
1953
|
const parsedBody = parsedOutput.body;
|
|
1333
1954
|
return throwDefaultError({
|
|
@@ -1337,36 +1958,42 @@ const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
|
1337
1958
|
});
|
|
1338
1959
|
}
|
|
1339
1960
|
};
|
|
1340
|
-
const
|
|
1961
|
+
const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
1341
1962
|
if (output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
1963
|
+
return de_GetDeliveryDestinationCommandError(output, context);
|
|
1343
1964
|
}
|
|
1344
|
-
await (
|
|
1965
|
+
const data = await parseBody(output.body, context);
|
|
1966
|
+
let contents = {};
|
|
1967
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1345
1968
|
const response = {
|
|
1346
1969
|
$metadata: deserializeMetadata(output),
|
|
1970
|
+
...contents,
|
|
1347
1971
|
};
|
|
1348
1972
|
return response;
|
|
1349
1973
|
};
|
|
1350
|
-
exports.
|
|
1351
|
-
const
|
|
1974
|
+
exports.de_GetDeliveryDestinationCommand = de_GetDeliveryDestinationCommand;
|
|
1975
|
+
const de_GetDeliveryDestinationCommandError = async (output, context) => {
|
|
1352
1976
|
const parsedOutput = {
|
|
1353
1977
|
...output,
|
|
1354
1978
|
body: await parseErrorBody(output.body, context),
|
|
1355
1979
|
};
|
|
1356
1980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1981
|
switch (errorCode) {
|
|
1358
|
-
case "InvalidParameterException":
|
|
1359
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1360
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "OperationAbortedException":
|
|
1362
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1363
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1364
1982
|
case "ResourceNotFoundException":
|
|
1365
1983
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1366
1984
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1985
|
+
case "ServiceQuotaExceededException":
|
|
1986
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1987
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1367
1988
|
case "ServiceUnavailableException":
|
|
1368
1989
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1369
1990
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1991
|
+
case "ThrottlingException":
|
|
1992
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1993
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1994
|
+
case "ValidationException":
|
|
1995
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1996
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1370
1997
|
default:
|
|
1371
1998
|
const parsedBody = parsedOutput.body;
|
|
1372
1999
|
return throwDefaultError({
|
|
@@ -1376,9 +2003,9 @@ const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
|
1376
2003
|
});
|
|
1377
2004
|
}
|
|
1378
2005
|
};
|
|
1379
|
-
const
|
|
2006
|
+
const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1380
2007
|
if (output.statusCode >= 300) {
|
|
1381
|
-
return
|
|
2008
|
+
return de_GetDeliveryDestinationPolicyCommandError(output, context);
|
|
1382
2009
|
}
|
|
1383
2010
|
const data = await parseBody(output.body, context);
|
|
1384
2011
|
let contents = {};
|
|
@@ -1389,23 +2016,23 @@ const de_FilterLogEventsCommand = async (output, context) => {
|
|
|
1389
2016
|
};
|
|
1390
2017
|
return response;
|
|
1391
2018
|
};
|
|
1392
|
-
exports.
|
|
1393
|
-
const
|
|
2019
|
+
exports.de_GetDeliveryDestinationPolicyCommand = de_GetDeliveryDestinationPolicyCommand;
|
|
2020
|
+
const de_GetDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
1394
2021
|
const parsedOutput = {
|
|
1395
2022
|
...output,
|
|
1396
2023
|
body: await parseErrorBody(output.body, context),
|
|
1397
2024
|
};
|
|
1398
2025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
2026
|
switch (errorCode) {
|
|
1400
|
-
case "InvalidParameterException":
|
|
1401
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1402
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1403
2027
|
case "ResourceNotFoundException":
|
|
1404
2028
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1405
2029
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1406
2030
|
case "ServiceUnavailableException":
|
|
1407
2031
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1408
2032
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2033
|
+
case "ValidationException":
|
|
2034
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2035
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
2036
|
default:
|
|
1410
2037
|
const parsedBody = parsedOutput.body;
|
|
1411
2038
|
return throwDefaultError({
|
|
@@ -1415,9 +2042,9 @@ const de_FilterLogEventsCommandError = async (output, context) => {
|
|
|
1415
2042
|
});
|
|
1416
2043
|
}
|
|
1417
2044
|
};
|
|
1418
|
-
const
|
|
2045
|
+
const de_GetDeliverySourceCommand = async (output, context) => {
|
|
1419
2046
|
if (output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
2047
|
+
return de_GetDeliverySourceCommandError(output, context);
|
|
1421
2048
|
}
|
|
1422
2049
|
const data = await parseBody(output.body, context);
|
|
1423
2050
|
let contents = {};
|
|
@@ -1428,26 +2055,29 @@ const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1428
2055
|
};
|
|
1429
2056
|
return response;
|
|
1430
2057
|
};
|
|
1431
|
-
exports.
|
|
1432
|
-
const
|
|
2058
|
+
exports.de_GetDeliverySourceCommand = de_GetDeliverySourceCommand;
|
|
2059
|
+
const de_GetDeliverySourceCommandError = async (output, context) => {
|
|
1433
2060
|
const parsedOutput = {
|
|
1434
2061
|
...output,
|
|
1435
2062
|
body: await parseErrorBody(output.body, context),
|
|
1436
2063
|
};
|
|
1437
2064
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
2065
|
switch (errorCode) {
|
|
1439
|
-
case "InvalidParameterException":
|
|
1440
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1441
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "OperationAbortedException":
|
|
1443
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1444
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1445
2066
|
case "ResourceNotFoundException":
|
|
1446
2067
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1447
2068
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2069
|
+
case "ServiceQuotaExceededException":
|
|
2070
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2071
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1448
2072
|
case "ServiceUnavailableException":
|
|
1449
2073
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1450
2074
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2075
|
+
case "ThrottlingException":
|
|
2076
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2077
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2078
|
+
case "ValidationException":
|
|
2079
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2080
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1451
2081
|
default:
|
|
1452
2082
|
const parsedBody = parsedOutput.body;
|
|
1453
2083
|
return throwDefaultError({
|
|
@@ -1781,6 +2411,144 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1781
2411
|
});
|
|
1782
2412
|
}
|
|
1783
2413
|
};
|
|
2414
|
+
const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
2415
|
+
if (output.statusCode >= 300) {
|
|
2416
|
+
return de_PutDeliveryDestinationCommandError(output, context);
|
|
2417
|
+
}
|
|
2418
|
+
const data = await parseBody(output.body, context);
|
|
2419
|
+
let contents = {};
|
|
2420
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2421
|
+
const response = {
|
|
2422
|
+
$metadata: deserializeMetadata(output),
|
|
2423
|
+
...contents,
|
|
2424
|
+
};
|
|
2425
|
+
return response;
|
|
2426
|
+
};
|
|
2427
|
+
exports.de_PutDeliveryDestinationCommand = de_PutDeliveryDestinationCommand;
|
|
2428
|
+
const de_PutDeliveryDestinationCommandError = async (output, context) => {
|
|
2429
|
+
const parsedOutput = {
|
|
2430
|
+
...output,
|
|
2431
|
+
body: await parseErrorBody(output.body, context),
|
|
2432
|
+
};
|
|
2433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
|
+
switch (errorCode) {
|
|
2435
|
+
case "ConflictException":
|
|
2436
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2437
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2438
|
+
case "ResourceNotFoundException":
|
|
2439
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2440
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2441
|
+
case "ServiceQuotaExceededException":
|
|
2442
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2443
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2444
|
+
case "ServiceUnavailableException":
|
|
2445
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2446
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2447
|
+
case "ThrottlingException":
|
|
2448
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2449
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2450
|
+
case "ValidationException":
|
|
2451
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2452
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2453
|
+
default:
|
|
2454
|
+
const parsedBody = parsedOutput.body;
|
|
2455
|
+
return throwDefaultError({
|
|
2456
|
+
output,
|
|
2457
|
+
parsedBody,
|
|
2458
|
+
errorCode,
|
|
2459
|
+
});
|
|
2460
|
+
}
|
|
2461
|
+
};
|
|
2462
|
+
const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
2463
|
+
if (output.statusCode >= 300) {
|
|
2464
|
+
return de_PutDeliveryDestinationPolicyCommandError(output, context);
|
|
2465
|
+
}
|
|
2466
|
+
const data = await parseBody(output.body, context);
|
|
2467
|
+
let contents = {};
|
|
2468
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2469
|
+
const response = {
|
|
2470
|
+
$metadata: deserializeMetadata(output),
|
|
2471
|
+
...contents,
|
|
2472
|
+
};
|
|
2473
|
+
return response;
|
|
2474
|
+
};
|
|
2475
|
+
exports.de_PutDeliveryDestinationPolicyCommand = de_PutDeliveryDestinationPolicyCommand;
|
|
2476
|
+
const de_PutDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
2477
|
+
const parsedOutput = {
|
|
2478
|
+
...output,
|
|
2479
|
+
body: await parseErrorBody(output.body, context),
|
|
2480
|
+
};
|
|
2481
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
+
switch (errorCode) {
|
|
2483
|
+
case "ConflictException":
|
|
2484
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2485
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2486
|
+
case "ResourceNotFoundException":
|
|
2487
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2488
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2489
|
+
case "ServiceUnavailableException":
|
|
2490
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2491
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2492
|
+
case "ValidationException":
|
|
2493
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2494
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2495
|
+
default:
|
|
2496
|
+
const parsedBody = parsedOutput.body;
|
|
2497
|
+
return throwDefaultError({
|
|
2498
|
+
output,
|
|
2499
|
+
parsedBody,
|
|
2500
|
+
errorCode,
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
};
|
|
2504
|
+
const de_PutDeliverySourceCommand = async (output, context) => {
|
|
2505
|
+
if (output.statusCode >= 300) {
|
|
2506
|
+
return de_PutDeliverySourceCommandError(output, context);
|
|
2507
|
+
}
|
|
2508
|
+
const data = await parseBody(output.body, context);
|
|
2509
|
+
let contents = {};
|
|
2510
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2511
|
+
const response = {
|
|
2512
|
+
$metadata: deserializeMetadata(output),
|
|
2513
|
+
...contents,
|
|
2514
|
+
};
|
|
2515
|
+
return response;
|
|
2516
|
+
};
|
|
2517
|
+
exports.de_PutDeliverySourceCommand = de_PutDeliverySourceCommand;
|
|
2518
|
+
const de_PutDeliverySourceCommandError = async (output, context) => {
|
|
2519
|
+
const parsedOutput = {
|
|
2520
|
+
...output,
|
|
2521
|
+
body: await parseErrorBody(output.body, context),
|
|
2522
|
+
};
|
|
2523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
switch (errorCode) {
|
|
2525
|
+
case "ConflictException":
|
|
2526
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2527
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2528
|
+
case "ResourceNotFoundException":
|
|
2529
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2530
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2531
|
+
case "ServiceQuotaExceededException":
|
|
2532
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2533
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2534
|
+
case "ServiceUnavailableException":
|
|
2535
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2536
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2537
|
+
case "ThrottlingException":
|
|
2538
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2539
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2540
|
+
case "ValidationException":
|
|
2541
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2543
|
+
default:
|
|
2544
|
+
const parsedBody = parsedOutput.body;
|
|
2545
|
+
return throwDefaultError({
|
|
2546
|
+
output,
|
|
2547
|
+
parsedBody,
|
|
2548
|
+
errorCode,
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
};
|
|
1784
2552
|
const de_PutDestinationCommand = async (output, context) => {
|
|
1785
2553
|
if (output.statusCode >= 300) {
|
|
1786
2554
|
return de_PutDestinationCommandError(output, context);
|
|
@@ -2366,6 +3134,24 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2366
3134
|
});
|
|
2367
3135
|
}
|
|
2368
3136
|
};
|
|
3137
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3138
|
+
const body = parsedOutput.body;
|
|
3139
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3140
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3141
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3142
|
+
...deserialized,
|
|
3143
|
+
});
|
|
3144
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3145
|
+
};
|
|
3146
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3147
|
+
const body = parsedOutput.body;
|
|
3148
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3149
|
+
const exception = new models_0_1.ConflictException({
|
|
3150
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3151
|
+
...deserialized,
|
|
3152
|
+
});
|
|
3153
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3154
|
+
};
|
|
2369
3155
|
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
2370
3156
|
const body = parsedOutput.body;
|
|
2371
3157
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
@@ -2447,6 +3233,15 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2447
3233
|
});
|
|
2448
3234
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2449
3235
|
};
|
|
3236
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3237
|
+
const body = parsedOutput.body;
|
|
3238
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3239
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3240
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3241
|
+
...deserialized,
|
|
3242
|
+
});
|
|
3243
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3244
|
+
};
|
|
2450
3245
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2451
3246
|
const body = parsedOutput.body;
|
|
2452
3247
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
@@ -2456,6 +3251,15 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2456
3251
|
});
|
|
2457
3252
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2458
3253
|
};
|
|
3254
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3255
|
+
const body = parsedOutput.body;
|
|
3256
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3257
|
+
const exception = new models_0_1.ThrottlingException({
|
|
3258
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3259
|
+
...deserialized,
|
|
3260
|
+
});
|
|
3261
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3262
|
+
};
|
|
2459
3263
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2460
3264
|
const body = parsedOutput.body;
|
|
2461
3265
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
@@ -2474,6 +3278,15 @@ const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
|
2474
3278
|
});
|
|
2475
3279
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2476
3280
|
};
|
|
3281
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3282
|
+
const body = parsedOutput.body;
|
|
3283
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3284
|
+
const exception = new models_0_1.ValidationException({
|
|
3285
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3286
|
+
...deserialized,
|
|
3287
|
+
});
|
|
3288
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3289
|
+
};
|
|
2477
3290
|
const se_MetricTransformation = (input, context) => {
|
|
2478
3291
|
return (0, smithy_client_1.take)(input, {
|
|
2479
3292
|
defaultValue: smithy_client_1.serializeFloat,
|