@aws-sdk/client-cloudwatch-logs 3.445.0 → 3.448.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 +1 -1
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
|
|
5
|
-
import { DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnrecognizedClientException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, ConflictException, DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnrecognizedClientException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_AssociateKmsKeyCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("AssociateKmsKey");
|
|
8
8
|
let body;
|
|
@@ -15,6 +15,12 @@ export const se_CancelExportTaskCommand = async (input, context) => {
|
|
|
15
15
|
body = JSON.stringify(_json(input));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
+
export const se_CreateDeliveryCommand = async (input, context) => {
|
|
19
|
+
const headers = sharedHeaders("CreateDelivery");
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(_json(input));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
18
24
|
export const se_CreateExportTaskCommand = async (input, context) => {
|
|
19
25
|
const headers = sharedHeaders("CreateExportTask");
|
|
20
26
|
let body;
|
|
@@ -45,6 +51,30 @@ export const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
|
45
51
|
body = JSON.stringify(_json(input));
|
|
46
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
53
|
};
|
|
54
|
+
export const se_DeleteDeliveryCommand = async (input, context) => {
|
|
55
|
+
const headers = sharedHeaders("DeleteDelivery");
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(_json(input));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
export const se_DeleteDeliveryDestinationCommand = async (input, context) => {
|
|
61
|
+
const headers = sharedHeaders("DeleteDeliveryDestination");
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
64
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
+
};
|
|
66
|
+
export const se_DeleteDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
67
|
+
const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
|
|
68
|
+
let body;
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
70
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
+
};
|
|
72
|
+
export const se_DeleteDeliverySourceCommand = async (input, context) => {
|
|
73
|
+
const headers = sharedHeaders("DeleteDeliverySource");
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
48
78
|
export const se_DeleteDestinationCommand = async (input, context) => {
|
|
49
79
|
const headers = sharedHeaders("DeleteDestination");
|
|
50
80
|
let body;
|
|
@@ -99,6 +129,24 @@ export const se_DescribeAccountPoliciesCommand = async (input, context) => {
|
|
|
99
129
|
body = JSON.stringify(_json(input));
|
|
100
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
131
|
};
|
|
132
|
+
export const se_DescribeDeliveriesCommand = async (input, context) => {
|
|
133
|
+
const headers = sharedHeaders("DescribeDeliveries");
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify(_json(input));
|
|
136
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
+
};
|
|
138
|
+
export const se_DescribeDeliveryDestinationsCommand = async (input, context) => {
|
|
139
|
+
const headers = sharedHeaders("DescribeDeliveryDestinations");
|
|
140
|
+
let body;
|
|
141
|
+
body = JSON.stringify(_json(input));
|
|
142
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
+
};
|
|
144
|
+
export const se_DescribeDeliverySourcesCommand = async (input, context) => {
|
|
145
|
+
const headers = sharedHeaders("DescribeDeliverySources");
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(_json(input));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
102
150
|
export const se_DescribeDestinationsCommand = async (input, context) => {
|
|
103
151
|
const headers = sharedHeaders("DescribeDestinations");
|
|
104
152
|
let body;
|
|
@@ -171,6 +219,30 @@ export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
|
171
219
|
body = JSON.stringify(_json(input));
|
|
172
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
221
|
};
|
|
222
|
+
export const se_GetDeliveryCommand = async (input, context) => {
|
|
223
|
+
const headers = sharedHeaders("GetDelivery");
|
|
224
|
+
let body;
|
|
225
|
+
body = JSON.stringify(_json(input));
|
|
226
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
+
};
|
|
228
|
+
export const se_GetDeliveryDestinationCommand = async (input, context) => {
|
|
229
|
+
const headers = sharedHeaders("GetDeliveryDestination");
|
|
230
|
+
let body;
|
|
231
|
+
body = JSON.stringify(_json(input));
|
|
232
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
+
};
|
|
234
|
+
export const se_GetDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
235
|
+
const headers = sharedHeaders("GetDeliveryDestinationPolicy");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(_json(input));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
+
};
|
|
240
|
+
export const se_GetDeliverySourceCommand = async (input, context) => {
|
|
241
|
+
const headers = sharedHeaders("GetDeliverySource");
|
|
242
|
+
let body;
|
|
243
|
+
body = JSON.stringify(_json(input));
|
|
244
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
+
};
|
|
174
246
|
export const se_GetLogEventsCommand = async (input, context) => {
|
|
175
247
|
const headers = sharedHeaders("GetLogEvents");
|
|
176
248
|
let body;
|
|
@@ -219,6 +291,24 @@ export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
|
219
291
|
body = JSON.stringify(_json(input));
|
|
220
292
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
293
|
};
|
|
294
|
+
export const se_PutDeliveryDestinationCommand = async (input, context) => {
|
|
295
|
+
const headers = sharedHeaders("PutDeliveryDestination");
|
|
296
|
+
let body;
|
|
297
|
+
body = JSON.stringify(_json(input));
|
|
298
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
+
};
|
|
300
|
+
export const se_PutDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
301
|
+
const headers = sharedHeaders("PutDeliveryDestinationPolicy");
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(_json(input));
|
|
304
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
+
};
|
|
306
|
+
export const se_PutDeliverySourceCommand = async (input, context) => {
|
|
307
|
+
const headers = sharedHeaders("PutDeliverySource");
|
|
308
|
+
let body;
|
|
309
|
+
body = JSON.stringify(_json(input));
|
|
310
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
+
};
|
|
222
312
|
export const se_PutDestinationCommand = async (input, context) => {
|
|
223
313
|
const headers = sharedHeaders("PutDestination");
|
|
224
314
|
let body;
|
|
@@ -385,6 +475,56 @@ const de_CancelExportTaskCommandError = async (output, context) => {
|
|
|
385
475
|
});
|
|
386
476
|
}
|
|
387
477
|
};
|
|
478
|
+
export const de_CreateDeliveryCommand = async (output, context) => {
|
|
479
|
+
if (output.statusCode >= 300) {
|
|
480
|
+
return de_CreateDeliveryCommandError(output, context);
|
|
481
|
+
}
|
|
482
|
+
const data = await parseBody(output.body, context);
|
|
483
|
+
let contents = {};
|
|
484
|
+
contents = _json(data);
|
|
485
|
+
const response = {
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
...contents,
|
|
488
|
+
};
|
|
489
|
+
return response;
|
|
490
|
+
};
|
|
491
|
+
const de_CreateDeliveryCommandError = async (output, context) => {
|
|
492
|
+
const parsedOutput = {
|
|
493
|
+
...output,
|
|
494
|
+
body: await parseErrorBody(output.body, context),
|
|
495
|
+
};
|
|
496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
+
switch (errorCode) {
|
|
498
|
+
case "AccessDeniedException":
|
|
499
|
+
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
500
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
501
|
+
case "ConflictException":
|
|
502
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
503
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
504
|
+
case "ResourceNotFoundException":
|
|
505
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
506
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
+
case "ServiceQuotaExceededException":
|
|
508
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
509
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
510
|
+
case "ServiceUnavailableException":
|
|
511
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
512
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
513
|
+
case "ThrottlingException":
|
|
514
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
515
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
516
|
+
case "ValidationException":
|
|
517
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
518
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
+
default:
|
|
520
|
+
const parsedBody = parsedOutput.body;
|
|
521
|
+
return throwDefaultError({
|
|
522
|
+
output,
|
|
523
|
+
parsedBody,
|
|
524
|
+
errorCode,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
};
|
|
388
528
|
export const de_CreateExportTaskCommand = async (output, context) => {
|
|
389
529
|
if (output.statusCode >= 300) {
|
|
390
530
|
return de_CreateExportTaskCommandError(output, context);
|
|
@@ -587,6 +727,176 @@ const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
587
727
|
});
|
|
588
728
|
}
|
|
589
729
|
};
|
|
730
|
+
export const de_DeleteDeliveryCommand = async (output, context) => {
|
|
731
|
+
if (output.statusCode >= 300) {
|
|
732
|
+
return de_DeleteDeliveryCommandError(output, context);
|
|
733
|
+
}
|
|
734
|
+
await collectBody(output.body, context);
|
|
735
|
+
const response = {
|
|
736
|
+
$metadata: deserializeMetadata(output),
|
|
737
|
+
};
|
|
738
|
+
return response;
|
|
739
|
+
};
|
|
740
|
+
const de_DeleteDeliveryCommandError = async (output, context) => {
|
|
741
|
+
const parsedOutput = {
|
|
742
|
+
...output,
|
|
743
|
+
body: await parseErrorBody(output.body, context),
|
|
744
|
+
};
|
|
745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
+
switch (errorCode) {
|
|
747
|
+
case "ConflictException":
|
|
748
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
749
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
750
|
+
case "ResourceNotFoundException":
|
|
751
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
752
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
753
|
+
case "ServiceQuotaExceededException":
|
|
754
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
755
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
756
|
+
case "ServiceUnavailableException":
|
|
757
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
758
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
759
|
+
case "ThrottlingException":
|
|
760
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
761
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
|
+
case "ValidationException":
|
|
763
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
764
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
+
default:
|
|
766
|
+
const parsedBody = parsedOutput.body;
|
|
767
|
+
return throwDefaultError({
|
|
768
|
+
output,
|
|
769
|
+
parsedBody,
|
|
770
|
+
errorCode,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
export const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
775
|
+
if (output.statusCode >= 300) {
|
|
776
|
+
return de_DeleteDeliveryDestinationCommandError(output, context);
|
|
777
|
+
}
|
|
778
|
+
await collectBody(output.body, context);
|
|
779
|
+
const response = {
|
|
780
|
+
$metadata: deserializeMetadata(output),
|
|
781
|
+
};
|
|
782
|
+
return response;
|
|
783
|
+
};
|
|
784
|
+
const de_DeleteDeliveryDestinationCommandError = async (output, context) => {
|
|
785
|
+
const parsedOutput = {
|
|
786
|
+
...output,
|
|
787
|
+
body: await parseErrorBody(output.body, context),
|
|
788
|
+
};
|
|
789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
|
+
switch (errorCode) {
|
|
791
|
+
case "ConflictException":
|
|
792
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
793
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
794
|
+
case "ResourceNotFoundException":
|
|
795
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
796
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
797
|
+
case "ServiceQuotaExceededException":
|
|
798
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
799
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
800
|
+
case "ServiceUnavailableException":
|
|
801
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
802
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
803
|
+
case "ThrottlingException":
|
|
804
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
805
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
806
|
+
case "ValidationException":
|
|
807
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
808
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
|
+
default:
|
|
810
|
+
const parsedBody = parsedOutput.body;
|
|
811
|
+
return throwDefaultError({
|
|
812
|
+
output,
|
|
813
|
+
parsedBody,
|
|
814
|
+
errorCode,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
export const de_DeleteDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode >= 300) {
|
|
820
|
+
return de_DeleteDeliveryDestinationPolicyCommandError(output, context);
|
|
821
|
+
}
|
|
822
|
+
await collectBody(output.body, context);
|
|
823
|
+
const response = {
|
|
824
|
+
$metadata: deserializeMetadata(output),
|
|
825
|
+
};
|
|
826
|
+
return response;
|
|
827
|
+
};
|
|
828
|
+
const de_DeleteDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
829
|
+
const parsedOutput = {
|
|
830
|
+
...output,
|
|
831
|
+
body: await parseErrorBody(output.body, context),
|
|
832
|
+
};
|
|
833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
+
switch (errorCode) {
|
|
835
|
+
case "ConflictException":
|
|
836
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
837
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
838
|
+
case "ResourceNotFoundException":
|
|
839
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
840
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
841
|
+
case "ServiceUnavailableException":
|
|
842
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
843
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
844
|
+
case "ValidationException":
|
|
845
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
846
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
847
|
+
default:
|
|
848
|
+
const parsedBody = parsedOutput.body;
|
|
849
|
+
return throwDefaultError({
|
|
850
|
+
output,
|
|
851
|
+
parsedBody,
|
|
852
|
+
errorCode,
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
export const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
857
|
+
if (output.statusCode >= 300) {
|
|
858
|
+
return de_DeleteDeliverySourceCommandError(output, context);
|
|
859
|
+
}
|
|
860
|
+
await collectBody(output.body, context);
|
|
861
|
+
const response = {
|
|
862
|
+
$metadata: deserializeMetadata(output),
|
|
863
|
+
};
|
|
864
|
+
return response;
|
|
865
|
+
};
|
|
866
|
+
const de_DeleteDeliverySourceCommandError = async (output, context) => {
|
|
867
|
+
const parsedOutput = {
|
|
868
|
+
...output,
|
|
869
|
+
body: await parseErrorBody(output.body, context),
|
|
870
|
+
};
|
|
871
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
+
switch (errorCode) {
|
|
873
|
+
case "ConflictException":
|
|
874
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
875
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
876
|
+
case "ResourceNotFoundException":
|
|
877
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
+
case "ServiceQuotaExceededException":
|
|
880
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
881
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
882
|
+
case "ServiceUnavailableException":
|
|
883
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
884
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
885
|
+
case "ThrottlingException":
|
|
886
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
887
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
888
|
+
case "ValidationException":
|
|
889
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
890
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
891
|
+
default:
|
|
892
|
+
const parsedBody = parsedOutput.body;
|
|
893
|
+
return throwDefaultError({
|
|
894
|
+
output,
|
|
895
|
+
parsedBody,
|
|
896
|
+
errorCode,
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
};
|
|
590
900
|
export const de_DeleteDestinationCommand = async (output, context) => {
|
|
591
901
|
if (output.statusCode >= 300) {
|
|
592
902
|
return de_DeleteDestinationCommandError(output, context);
|
|
@@ -888,9 +1198,278 @@ const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
|
888
1198
|
});
|
|
889
1199
|
}
|
|
890
1200
|
};
|
|
891
|
-
export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
1201
|
+
export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
1202
|
+
if (output.statusCode >= 300) {
|
|
1203
|
+
return de_DescribeAccountPoliciesCommandError(output, context);
|
|
1204
|
+
}
|
|
1205
|
+
const data = await parseBody(output.body, context);
|
|
1206
|
+
let contents = {};
|
|
1207
|
+
contents = _json(data);
|
|
1208
|
+
const response = {
|
|
1209
|
+
$metadata: deserializeMetadata(output),
|
|
1210
|
+
...contents,
|
|
1211
|
+
};
|
|
1212
|
+
return response;
|
|
1213
|
+
};
|
|
1214
|
+
const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
1215
|
+
const parsedOutput = {
|
|
1216
|
+
...output,
|
|
1217
|
+
body: await parseErrorBody(output.body, context),
|
|
1218
|
+
};
|
|
1219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
+
switch (errorCode) {
|
|
1221
|
+
case "InvalidParameterException":
|
|
1222
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1223
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1224
|
+
case "OperationAbortedException":
|
|
1225
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1226
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1227
|
+
case "ResourceNotFoundException":
|
|
1228
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1229
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1230
|
+
case "ServiceUnavailableException":
|
|
1231
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1232
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1233
|
+
default:
|
|
1234
|
+
const parsedBody = parsedOutput.body;
|
|
1235
|
+
return throwDefaultError({
|
|
1236
|
+
output,
|
|
1237
|
+
parsedBody,
|
|
1238
|
+
errorCode,
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
export const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
1243
|
+
if (output.statusCode >= 300) {
|
|
1244
|
+
return de_DescribeDeliveriesCommandError(output, context);
|
|
1245
|
+
}
|
|
1246
|
+
const data = await parseBody(output.body, context);
|
|
1247
|
+
let contents = {};
|
|
1248
|
+
contents = _json(data);
|
|
1249
|
+
const response = {
|
|
1250
|
+
$metadata: deserializeMetadata(output),
|
|
1251
|
+
...contents,
|
|
1252
|
+
};
|
|
1253
|
+
return response;
|
|
1254
|
+
};
|
|
1255
|
+
const de_DescribeDeliveriesCommandError = async (output, context) => {
|
|
1256
|
+
const parsedOutput = {
|
|
1257
|
+
...output,
|
|
1258
|
+
body: await parseErrorBody(output.body, context),
|
|
1259
|
+
};
|
|
1260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
+
switch (errorCode) {
|
|
1262
|
+
case "ServiceQuotaExceededException":
|
|
1263
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1264
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1265
|
+
case "ServiceUnavailableException":
|
|
1266
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1267
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1268
|
+
case "ThrottlingException":
|
|
1269
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1270
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1271
|
+
case "ValidationException":
|
|
1272
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1273
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1274
|
+
default:
|
|
1275
|
+
const parsedBody = parsedOutput.body;
|
|
1276
|
+
return throwDefaultError({
|
|
1277
|
+
output,
|
|
1278
|
+
parsedBody,
|
|
1279
|
+
errorCode,
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
export const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
1284
|
+
if (output.statusCode >= 300) {
|
|
1285
|
+
return de_DescribeDeliveryDestinationsCommandError(output, context);
|
|
1286
|
+
}
|
|
1287
|
+
const data = await parseBody(output.body, context);
|
|
1288
|
+
let contents = {};
|
|
1289
|
+
contents = _json(data);
|
|
1290
|
+
const response = {
|
|
1291
|
+
$metadata: deserializeMetadata(output),
|
|
1292
|
+
...contents,
|
|
1293
|
+
};
|
|
1294
|
+
return response;
|
|
1295
|
+
};
|
|
1296
|
+
const de_DescribeDeliveryDestinationsCommandError = async (output, context) => {
|
|
1297
|
+
const parsedOutput = {
|
|
1298
|
+
...output,
|
|
1299
|
+
body: await parseErrorBody(output.body, context),
|
|
1300
|
+
};
|
|
1301
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
+
switch (errorCode) {
|
|
1303
|
+
case "ServiceQuotaExceededException":
|
|
1304
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1305
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "ServiceUnavailableException":
|
|
1307
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1308
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "ThrottlingException":
|
|
1310
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1311
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "ValidationException":
|
|
1313
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1314
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
+
default:
|
|
1316
|
+
const parsedBody = parsedOutput.body;
|
|
1317
|
+
return throwDefaultError({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
errorCode,
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
export const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
1325
|
+
if (output.statusCode >= 300) {
|
|
1326
|
+
return de_DescribeDeliverySourcesCommandError(output, context);
|
|
1327
|
+
}
|
|
1328
|
+
const data = await parseBody(output.body, context);
|
|
1329
|
+
let contents = {};
|
|
1330
|
+
contents = _json(data);
|
|
1331
|
+
const response = {
|
|
1332
|
+
$metadata: deserializeMetadata(output),
|
|
1333
|
+
...contents,
|
|
1334
|
+
};
|
|
1335
|
+
return response;
|
|
1336
|
+
};
|
|
1337
|
+
const de_DescribeDeliverySourcesCommandError = async (output, context) => {
|
|
1338
|
+
const parsedOutput = {
|
|
1339
|
+
...output,
|
|
1340
|
+
body: await parseErrorBody(output.body, context),
|
|
1341
|
+
};
|
|
1342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
+
switch (errorCode) {
|
|
1344
|
+
case "ServiceQuotaExceededException":
|
|
1345
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1346
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "ServiceUnavailableException":
|
|
1348
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1349
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "ThrottlingException":
|
|
1351
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1352
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1353
|
+
case "ValidationException":
|
|
1354
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1355
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1356
|
+
default:
|
|
1357
|
+
const parsedBody = parsedOutput.body;
|
|
1358
|
+
return throwDefaultError({
|
|
1359
|
+
output,
|
|
1360
|
+
parsedBody,
|
|
1361
|
+
errorCode,
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
export const de_DescribeDestinationsCommand = async (output, context) => {
|
|
1366
|
+
if (output.statusCode >= 300) {
|
|
1367
|
+
return de_DescribeDestinationsCommandError(output, context);
|
|
1368
|
+
}
|
|
1369
|
+
const data = await parseBody(output.body, context);
|
|
1370
|
+
let contents = {};
|
|
1371
|
+
contents = _json(data);
|
|
1372
|
+
const response = {
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
...contents,
|
|
1375
|
+
};
|
|
1376
|
+
return response;
|
|
1377
|
+
};
|
|
1378
|
+
const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
1379
|
+
const parsedOutput = {
|
|
1380
|
+
...output,
|
|
1381
|
+
body: await parseErrorBody(output.body, context),
|
|
1382
|
+
};
|
|
1383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
switch (errorCode) {
|
|
1385
|
+
case "InvalidParameterException":
|
|
1386
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1387
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1388
|
+
case "ServiceUnavailableException":
|
|
1389
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1390
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1391
|
+
default:
|
|
1392
|
+
const parsedBody = parsedOutput.body;
|
|
1393
|
+
return throwDefaultError({
|
|
1394
|
+
output,
|
|
1395
|
+
parsedBody,
|
|
1396
|
+
errorCode,
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1401
|
+
if (output.statusCode >= 300) {
|
|
1402
|
+
return de_DescribeExportTasksCommandError(output, context);
|
|
1403
|
+
}
|
|
1404
|
+
const data = await parseBody(output.body, context);
|
|
1405
|
+
let contents = {};
|
|
1406
|
+
contents = _json(data);
|
|
1407
|
+
const response = {
|
|
1408
|
+
$metadata: deserializeMetadata(output),
|
|
1409
|
+
...contents,
|
|
1410
|
+
};
|
|
1411
|
+
return response;
|
|
1412
|
+
};
|
|
1413
|
+
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
1414
|
+
const parsedOutput = {
|
|
1415
|
+
...output,
|
|
1416
|
+
body: await parseErrorBody(output.body, context),
|
|
1417
|
+
};
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
+
switch (errorCode) {
|
|
1420
|
+
case "InvalidParameterException":
|
|
1421
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1422
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "ServiceUnavailableException":
|
|
1424
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1425
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1426
|
+
default:
|
|
1427
|
+
const parsedBody = parsedOutput.body;
|
|
1428
|
+
return throwDefaultError({
|
|
1429
|
+
output,
|
|
1430
|
+
parsedBody,
|
|
1431
|
+
errorCode,
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
1436
|
+
if (output.statusCode >= 300) {
|
|
1437
|
+
return de_DescribeLogGroupsCommandError(output, context);
|
|
1438
|
+
}
|
|
1439
|
+
const data = await parseBody(output.body, context);
|
|
1440
|
+
let contents = {};
|
|
1441
|
+
contents = _json(data);
|
|
1442
|
+
const response = {
|
|
1443
|
+
$metadata: deserializeMetadata(output),
|
|
1444
|
+
...contents,
|
|
1445
|
+
};
|
|
1446
|
+
return response;
|
|
1447
|
+
};
|
|
1448
|
+
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
1449
|
+
const parsedOutput = {
|
|
1450
|
+
...output,
|
|
1451
|
+
body: await parseErrorBody(output.body, context),
|
|
1452
|
+
};
|
|
1453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
+
switch (errorCode) {
|
|
1455
|
+
case "InvalidParameterException":
|
|
1456
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1457
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1458
|
+
case "ServiceUnavailableException":
|
|
1459
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1460
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1461
|
+
default:
|
|
1462
|
+
const parsedBody = parsedOutput.body;
|
|
1463
|
+
return throwDefaultError({
|
|
1464
|
+
output,
|
|
1465
|
+
parsedBody,
|
|
1466
|
+
errorCode,
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
892
1471
|
if (output.statusCode >= 300) {
|
|
893
|
-
return
|
|
1472
|
+
return de_DescribeLogStreamsCommandError(output, context);
|
|
894
1473
|
}
|
|
895
1474
|
const data = await parseBody(output.body, context);
|
|
896
1475
|
let contents = {};
|
|
@@ -901,7 +1480,7 @@ export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
|
901
1480
|
};
|
|
902
1481
|
return response;
|
|
903
1482
|
};
|
|
904
|
-
const
|
|
1483
|
+
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
905
1484
|
const parsedOutput = {
|
|
906
1485
|
...output,
|
|
907
1486
|
body: await parseErrorBody(output.body, context),
|
|
@@ -911,9 +1490,6 @@ const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
|
911
1490
|
case "InvalidParameterException":
|
|
912
1491
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
913
1492
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
914
|
-
case "OperationAbortedException":
|
|
915
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
916
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
917
1493
|
case "ResourceNotFoundException":
|
|
918
1494
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
919
1495
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -929,20 +1505,20 @@ const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
|
929
1505
|
});
|
|
930
1506
|
}
|
|
931
1507
|
};
|
|
932
|
-
export const
|
|
1508
|
+
export const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
933
1509
|
if (output.statusCode >= 300) {
|
|
934
|
-
return
|
|
1510
|
+
return de_DescribeMetricFiltersCommandError(output, context);
|
|
935
1511
|
}
|
|
936
1512
|
const data = await parseBody(output.body, context);
|
|
937
1513
|
let contents = {};
|
|
938
|
-
contents =
|
|
1514
|
+
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
939
1515
|
const response = {
|
|
940
1516
|
$metadata: deserializeMetadata(output),
|
|
941
1517
|
...contents,
|
|
942
1518
|
};
|
|
943
1519
|
return response;
|
|
944
1520
|
};
|
|
945
|
-
const
|
|
1521
|
+
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
946
1522
|
const parsedOutput = {
|
|
947
1523
|
...output,
|
|
948
1524
|
body: await parseErrorBody(output.body, context),
|
|
@@ -952,6 +1528,9 @@ const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
|
952
1528
|
case "InvalidParameterException":
|
|
953
1529
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
954
1530
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1531
|
+
case "ResourceNotFoundException":
|
|
1532
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1533
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
1534
|
case "ServiceUnavailableException":
|
|
956
1535
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
957
1536
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -964,9 +1543,9 @@ const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
|
964
1543
|
});
|
|
965
1544
|
}
|
|
966
1545
|
};
|
|
967
|
-
export const
|
|
1546
|
+
export const de_DescribeQueriesCommand = async (output, context) => {
|
|
968
1547
|
if (output.statusCode >= 300) {
|
|
969
|
-
return
|
|
1548
|
+
return de_DescribeQueriesCommandError(output, context);
|
|
970
1549
|
}
|
|
971
1550
|
const data = await parseBody(output.body, context);
|
|
972
1551
|
let contents = {};
|
|
@@ -977,7 +1556,7 @@ export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
|
977
1556
|
};
|
|
978
1557
|
return response;
|
|
979
1558
|
};
|
|
980
|
-
const
|
|
1559
|
+
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
981
1560
|
const parsedOutput = {
|
|
982
1561
|
...output,
|
|
983
1562
|
body: await parseErrorBody(output.body, context),
|
|
@@ -987,6 +1566,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
987
1566
|
case "InvalidParameterException":
|
|
988
1567
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
989
1568
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1569
|
+
case "ResourceNotFoundException":
|
|
1570
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
990
1572
|
case "ServiceUnavailableException":
|
|
991
1573
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
992
1574
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -999,9 +1581,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
999
1581
|
});
|
|
1000
1582
|
}
|
|
1001
1583
|
};
|
|
1002
|
-
export const
|
|
1584
|
+
export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1003
1585
|
if (output.statusCode >= 300) {
|
|
1004
|
-
return
|
|
1586
|
+
return de_DescribeQueryDefinitionsCommandError(output, context);
|
|
1005
1587
|
}
|
|
1006
1588
|
const data = await parseBody(output.body, context);
|
|
1007
1589
|
let contents = {};
|
|
@@ -1012,7 +1594,7 @@ export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
|
1012
1594
|
};
|
|
1013
1595
|
return response;
|
|
1014
1596
|
};
|
|
1015
|
-
const
|
|
1597
|
+
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1016
1598
|
const parsedOutput = {
|
|
1017
1599
|
...output,
|
|
1018
1600
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1034,9 +1616,9 @@ const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
|
1034
1616
|
});
|
|
1035
1617
|
}
|
|
1036
1618
|
};
|
|
1037
|
-
export const
|
|
1619
|
+
export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1038
1620
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1621
|
+
return de_DescribeResourcePoliciesCommandError(output, context);
|
|
1040
1622
|
}
|
|
1041
1623
|
const data = await parseBody(output.body, context);
|
|
1042
1624
|
let contents = {};
|
|
@@ -1047,7 +1629,7 @@ export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
|
1047
1629
|
};
|
|
1048
1630
|
return response;
|
|
1049
1631
|
};
|
|
1050
|
-
const
|
|
1632
|
+
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1051
1633
|
const parsedOutput = {
|
|
1052
1634
|
...output,
|
|
1053
1635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,9 +1639,6 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
|
1057
1639
|
case "InvalidParameterException":
|
|
1058
1640
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1059
1641
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
1642
|
case "ServiceUnavailableException":
|
|
1064
1643
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1065
1644
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1072,20 +1651,20 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
|
1072
1651
|
});
|
|
1073
1652
|
}
|
|
1074
1653
|
};
|
|
1075
|
-
export const
|
|
1654
|
+
export const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1076
1655
|
if (output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
1656
|
+
return de_DescribeSubscriptionFiltersCommandError(output, context);
|
|
1078
1657
|
}
|
|
1079
1658
|
const data = await parseBody(output.body, context);
|
|
1080
1659
|
let contents = {};
|
|
1081
|
-
contents =
|
|
1660
|
+
contents = _json(data);
|
|
1082
1661
|
const response = {
|
|
1083
1662
|
$metadata: deserializeMetadata(output),
|
|
1084
1663
|
...contents,
|
|
1085
1664
|
};
|
|
1086
1665
|
return response;
|
|
1087
1666
|
};
|
|
1088
|
-
const
|
|
1667
|
+
const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1089
1668
|
const parsedOutput = {
|
|
1090
1669
|
...output,
|
|
1091
1670
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1110,20 +1689,17 @@ const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
|
1110
1689
|
});
|
|
1111
1690
|
}
|
|
1112
1691
|
};
|
|
1113
|
-
export const
|
|
1692
|
+
export const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
1114
1693
|
if (output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
1694
|
+
return de_DisassociateKmsKeyCommandError(output, context);
|
|
1116
1695
|
}
|
|
1117
|
-
|
|
1118
|
-
let contents = {};
|
|
1119
|
-
contents = _json(data);
|
|
1696
|
+
await collectBody(output.body, context);
|
|
1120
1697
|
const response = {
|
|
1121
1698
|
$metadata: deserializeMetadata(output),
|
|
1122
|
-
...contents,
|
|
1123
1699
|
};
|
|
1124
1700
|
return response;
|
|
1125
1701
|
};
|
|
1126
|
-
const
|
|
1702
|
+
const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1127
1703
|
const parsedOutput = {
|
|
1128
1704
|
...output,
|
|
1129
1705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1133,6 +1709,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
|
|
|
1133
1709
|
case "InvalidParameterException":
|
|
1134
1710
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1135
1711
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1712
|
+
case "OperationAbortedException":
|
|
1713
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1714
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1136
1715
|
case "ResourceNotFoundException":
|
|
1137
1716
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1138
1717
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1148,9 +1727,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
|
|
|
1148
1727
|
});
|
|
1149
1728
|
}
|
|
1150
1729
|
};
|
|
1151
|
-
export const
|
|
1730
|
+
export const de_FilterLogEventsCommand = async (output, context) => {
|
|
1152
1731
|
if (output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
1732
|
+
return de_FilterLogEventsCommandError(output, context);
|
|
1154
1733
|
}
|
|
1155
1734
|
const data = await parseBody(output.body, context);
|
|
1156
1735
|
let contents = {};
|
|
@@ -1161,7 +1740,7 @@ export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
|
1161
1740
|
};
|
|
1162
1741
|
return response;
|
|
1163
1742
|
};
|
|
1164
|
-
const
|
|
1743
|
+
const de_FilterLogEventsCommandError = async (output, context) => {
|
|
1165
1744
|
const parsedOutput = {
|
|
1166
1745
|
...output,
|
|
1167
1746
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1171,6 +1750,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
|
1171
1750
|
case "InvalidParameterException":
|
|
1172
1751
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1173
1752
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1753
|
+
case "ResourceNotFoundException":
|
|
1754
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1755
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
1756
|
case "ServiceUnavailableException":
|
|
1175
1757
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1176
1758
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1183,9 +1765,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
|
1183
1765
|
});
|
|
1184
1766
|
}
|
|
1185
1767
|
};
|
|
1186
|
-
export const
|
|
1768
|
+
export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
1187
1769
|
if (output.statusCode >= 300) {
|
|
1188
|
-
return
|
|
1770
|
+
return de_GetDataProtectionPolicyCommandError(output, context);
|
|
1189
1771
|
}
|
|
1190
1772
|
const data = await parseBody(output.body, context);
|
|
1191
1773
|
let contents = {};
|
|
@@ -1196,7 +1778,7 @@ export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
|
1196
1778
|
};
|
|
1197
1779
|
return response;
|
|
1198
1780
|
};
|
|
1199
|
-
const
|
|
1781
|
+
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1200
1782
|
const parsedOutput = {
|
|
1201
1783
|
...output,
|
|
1202
1784
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1206,6 +1788,12 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
|
1206
1788
|
case "InvalidParameterException":
|
|
1207
1789
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1208
1790
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1791
|
+
case "OperationAbortedException":
|
|
1792
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1793
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1794
|
+
case "ResourceNotFoundException":
|
|
1795
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1796
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
1797
|
case "ServiceUnavailableException":
|
|
1210
1798
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1211
1799
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1218,9 +1806,9 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
|
1218
1806
|
});
|
|
1219
1807
|
}
|
|
1220
1808
|
};
|
|
1221
|
-
export const
|
|
1809
|
+
export const de_GetDeliveryCommand = async (output, context) => {
|
|
1222
1810
|
if (output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
1811
|
+
return de_GetDeliveryCommandError(output, context);
|
|
1224
1812
|
}
|
|
1225
1813
|
const data = await parseBody(output.body, context);
|
|
1226
1814
|
let contents = {};
|
|
@@ -1231,22 +1819,28 @@ export const de_DescribeSubscriptionFiltersCommand = async (output, context) =>
|
|
|
1231
1819
|
};
|
|
1232
1820
|
return response;
|
|
1233
1821
|
};
|
|
1234
|
-
const
|
|
1822
|
+
const de_GetDeliveryCommandError = async (output, context) => {
|
|
1235
1823
|
const parsedOutput = {
|
|
1236
1824
|
...output,
|
|
1237
1825
|
body: await parseErrorBody(output.body, context),
|
|
1238
1826
|
};
|
|
1239
1827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1828
|
switch (errorCode) {
|
|
1241
|
-
case "InvalidParameterException":
|
|
1242
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1243
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1244
1829
|
case "ResourceNotFoundException":
|
|
1245
1830
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1246
1831
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1832
|
+
case "ServiceQuotaExceededException":
|
|
1833
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1834
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1247
1835
|
case "ServiceUnavailableException":
|
|
1248
1836
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1249
1837
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1838
|
+
case "ThrottlingException":
|
|
1839
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1840
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1841
|
+
case "ValidationException":
|
|
1842
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1843
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1250
1844
|
default:
|
|
1251
1845
|
const parsedBody = parsedOutput.body;
|
|
1252
1846
|
return throwDefaultError({
|
|
@@ -1256,35 +1850,41 @@ const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
|
1256
1850
|
});
|
|
1257
1851
|
}
|
|
1258
1852
|
};
|
|
1259
|
-
export const
|
|
1853
|
+
export const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
1260
1854
|
if (output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
1855
|
+
return de_GetDeliveryDestinationCommandError(output, context);
|
|
1262
1856
|
}
|
|
1263
|
-
await
|
|
1857
|
+
const data = await parseBody(output.body, context);
|
|
1858
|
+
let contents = {};
|
|
1859
|
+
contents = _json(data);
|
|
1264
1860
|
const response = {
|
|
1265
1861
|
$metadata: deserializeMetadata(output),
|
|
1862
|
+
...contents,
|
|
1266
1863
|
};
|
|
1267
1864
|
return response;
|
|
1268
1865
|
};
|
|
1269
|
-
const
|
|
1866
|
+
const de_GetDeliveryDestinationCommandError = async (output, context) => {
|
|
1270
1867
|
const parsedOutput = {
|
|
1271
1868
|
...output,
|
|
1272
1869
|
body: await parseErrorBody(output.body, context),
|
|
1273
1870
|
};
|
|
1274
1871
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1872
|
switch (errorCode) {
|
|
1276
|
-
case "InvalidParameterException":
|
|
1277
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1278
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "OperationAbortedException":
|
|
1280
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1281
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1282
1873
|
case "ResourceNotFoundException":
|
|
1283
1874
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1284
1875
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1876
|
+
case "ServiceQuotaExceededException":
|
|
1877
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1878
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1285
1879
|
case "ServiceUnavailableException":
|
|
1286
1880
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1287
1881
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1882
|
+
case "ThrottlingException":
|
|
1883
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1884
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1885
|
+
case "ValidationException":
|
|
1886
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1887
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
1888
|
default:
|
|
1289
1889
|
const parsedBody = parsedOutput.body;
|
|
1290
1890
|
return throwDefaultError({
|
|
@@ -1294,9 +1894,9 @@ const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
|
1294
1894
|
});
|
|
1295
1895
|
}
|
|
1296
1896
|
};
|
|
1297
|
-
export const
|
|
1897
|
+
export const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1298
1898
|
if (output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
1899
|
+
return de_GetDeliveryDestinationPolicyCommandError(output, context);
|
|
1300
1900
|
}
|
|
1301
1901
|
const data = await parseBody(output.body, context);
|
|
1302
1902
|
let contents = {};
|
|
@@ -1307,22 +1907,22 @@ export const de_FilterLogEventsCommand = async (output, context) => {
|
|
|
1307
1907
|
};
|
|
1308
1908
|
return response;
|
|
1309
1909
|
};
|
|
1310
|
-
const
|
|
1910
|
+
const de_GetDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
1311
1911
|
const parsedOutput = {
|
|
1312
1912
|
...output,
|
|
1313
1913
|
body: await parseErrorBody(output.body, context),
|
|
1314
1914
|
};
|
|
1315
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1916
|
switch (errorCode) {
|
|
1317
|
-
case "InvalidParameterException":
|
|
1318
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1319
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1320
1917
|
case "ResourceNotFoundException":
|
|
1321
1918
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1322
1919
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1323
1920
|
case "ServiceUnavailableException":
|
|
1324
1921
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1325
1922
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1923
|
+
case "ValidationException":
|
|
1924
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1925
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1326
1926
|
default:
|
|
1327
1927
|
const parsedBody = parsedOutput.body;
|
|
1328
1928
|
return throwDefaultError({
|
|
@@ -1332,9 +1932,9 @@ const de_FilterLogEventsCommandError = async (output, context) => {
|
|
|
1332
1932
|
});
|
|
1333
1933
|
}
|
|
1334
1934
|
};
|
|
1335
|
-
export const
|
|
1935
|
+
export const de_GetDeliverySourceCommand = async (output, context) => {
|
|
1336
1936
|
if (output.statusCode >= 300) {
|
|
1337
|
-
return
|
|
1937
|
+
return de_GetDeliverySourceCommandError(output, context);
|
|
1338
1938
|
}
|
|
1339
1939
|
const data = await parseBody(output.body, context);
|
|
1340
1940
|
let contents = {};
|
|
@@ -1345,25 +1945,28 @@ export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1345
1945
|
};
|
|
1346
1946
|
return response;
|
|
1347
1947
|
};
|
|
1348
|
-
const
|
|
1948
|
+
const de_GetDeliverySourceCommandError = async (output, context) => {
|
|
1349
1949
|
const parsedOutput = {
|
|
1350
1950
|
...output,
|
|
1351
1951
|
body: await parseErrorBody(output.body, context),
|
|
1352
1952
|
};
|
|
1353
1953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1954
|
switch (errorCode) {
|
|
1355
|
-
case "InvalidParameterException":
|
|
1356
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1357
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "OperationAbortedException":
|
|
1359
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1360
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1361
1955
|
case "ResourceNotFoundException":
|
|
1362
1956
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1363
1957
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
|
+
case "ServiceQuotaExceededException":
|
|
1959
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1960
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1364
1961
|
case "ServiceUnavailableException":
|
|
1365
1962
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1366
1963
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1964
|
+
case "ThrottlingException":
|
|
1965
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1966
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1967
|
+
case "ValidationException":
|
|
1968
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1969
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1367
1970
|
default:
|
|
1368
1971
|
const parsedBody = parsedOutput.body;
|
|
1369
1972
|
return throwDefaultError({
|
|
@@ -1689,6 +2292,141 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1689
2292
|
});
|
|
1690
2293
|
}
|
|
1691
2294
|
};
|
|
2295
|
+
export const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
2296
|
+
if (output.statusCode >= 300) {
|
|
2297
|
+
return de_PutDeliveryDestinationCommandError(output, context);
|
|
2298
|
+
}
|
|
2299
|
+
const data = await parseBody(output.body, context);
|
|
2300
|
+
let contents = {};
|
|
2301
|
+
contents = _json(data);
|
|
2302
|
+
const response = {
|
|
2303
|
+
$metadata: deserializeMetadata(output),
|
|
2304
|
+
...contents,
|
|
2305
|
+
};
|
|
2306
|
+
return response;
|
|
2307
|
+
};
|
|
2308
|
+
const de_PutDeliveryDestinationCommandError = async (output, context) => {
|
|
2309
|
+
const parsedOutput = {
|
|
2310
|
+
...output,
|
|
2311
|
+
body: await parseErrorBody(output.body, context),
|
|
2312
|
+
};
|
|
2313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
+
switch (errorCode) {
|
|
2315
|
+
case "ConflictException":
|
|
2316
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2317
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2318
|
+
case "ResourceNotFoundException":
|
|
2319
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2320
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2321
|
+
case "ServiceQuotaExceededException":
|
|
2322
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2323
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2324
|
+
case "ServiceUnavailableException":
|
|
2325
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2326
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2327
|
+
case "ThrottlingException":
|
|
2328
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2329
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2330
|
+
case "ValidationException":
|
|
2331
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2332
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2333
|
+
default:
|
|
2334
|
+
const parsedBody = parsedOutput.body;
|
|
2335
|
+
return throwDefaultError({
|
|
2336
|
+
output,
|
|
2337
|
+
parsedBody,
|
|
2338
|
+
errorCode,
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
};
|
|
2342
|
+
export const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
2343
|
+
if (output.statusCode >= 300) {
|
|
2344
|
+
return de_PutDeliveryDestinationPolicyCommandError(output, context);
|
|
2345
|
+
}
|
|
2346
|
+
const data = await parseBody(output.body, context);
|
|
2347
|
+
let contents = {};
|
|
2348
|
+
contents = _json(data);
|
|
2349
|
+
const response = {
|
|
2350
|
+
$metadata: deserializeMetadata(output),
|
|
2351
|
+
...contents,
|
|
2352
|
+
};
|
|
2353
|
+
return response;
|
|
2354
|
+
};
|
|
2355
|
+
const de_PutDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
2356
|
+
const parsedOutput = {
|
|
2357
|
+
...output,
|
|
2358
|
+
body: await parseErrorBody(output.body, context),
|
|
2359
|
+
};
|
|
2360
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
+
switch (errorCode) {
|
|
2362
|
+
case "ConflictException":
|
|
2363
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2364
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2365
|
+
case "ResourceNotFoundException":
|
|
2366
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2367
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
+
case "ServiceUnavailableException":
|
|
2369
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2370
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2371
|
+
case "ValidationException":
|
|
2372
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
+
default:
|
|
2375
|
+
const parsedBody = parsedOutput.body;
|
|
2376
|
+
return throwDefaultError({
|
|
2377
|
+
output,
|
|
2378
|
+
parsedBody,
|
|
2379
|
+
errorCode,
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
};
|
|
2383
|
+
export const de_PutDeliverySourceCommand = async (output, context) => {
|
|
2384
|
+
if (output.statusCode >= 300) {
|
|
2385
|
+
return de_PutDeliverySourceCommandError(output, context);
|
|
2386
|
+
}
|
|
2387
|
+
const data = await parseBody(output.body, context);
|
|
2388
|
+
let contents = {};
|
|
2389
|
+
contents = _json(data);
|
|
2390
|
+
const response = {
|
|
2391
|
+
$metadata: deserializeMetadata(output),
|
|
2392
|
+
...contents,
|
|
2393
|
+
};
|
|
2394
|
+
return response;
|
|
2395
|
+
};
|
|
2396
|
+
const de_PutDeliverySourceCommandError = async (output, context) => {
|
|
2397
|
+
const parsedOutput = {
|
|
2398
|
+
...output,
|
|
2399
|
+
body: await parseErrorBody(output.body, context),
|
|
2400
|
+
};
|
|
2401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2402
|
+
switch (errorCode) {
|
|
2403
|
+
case "ConflictException":
|
|
2404
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2405
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2406
|
+
case "ResourceNotFoundException":
|
|
2407
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2408
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2409
|
+
case "ServiceQuotaExceededException":
|
|
2410
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2411
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2412
|
+
case "ServiceUnavailableException":
|
|
2413
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2414
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2415
|
+
case "ThrottlingException":
|
|
2416
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2417
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2418
|
+
case "ValidationException":
|
|
2419
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2420
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2421
|
+
default:
|
|
2422
|
+
const parsedBody = parsedOutput.body;
|
|
2423
|
+
return throwDefaultError({
|
|
2424
|
+
output,
|
|
2425
|
+
parsedBody,
|
|
2426
|
+
errorCode,
|
|
2427
|
+
});
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
1692
2430
|
export const de_PutDestinationCommand = async (output, context) => {
|
|
1693
2431
|
if (output.statusCode >= 300) {
|
|
1694
2432
|
return de_PutDestinationCommandError(output, context);
|
|
@@ -2259,6 +2997,24 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2259
2997
|
});
|
|
2260
2998
|
}
|
|
2261
2999
|
};
|
|
3000
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3001
|
+
const body = parsedOutput.body;
|
|
3002
|
+
const deserialized = _json(body);
|
|
3003
|
+
const exception = new AccessDeniedException({
|
|
3004
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3005
|
+
...deserialized,
|
|
3006
|
+
});
|
|
3007
|
+
return __decorateServiceException(exception, body);
|
|
3008
|
+
};
|
|
3009
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3010
|
+
const body = parsedOutput.body;
|
|
3011
|
+
const deserialized = _json(body);
|
|
3012
|
+
const exception = new ConflictException({
|
|
3013
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3014
|
+
...deserialized,
|
|
3015
|
+
});
|
|
3016
|
+
return __decorateServiceException(exception, body);
|
|
3017
|
+
};
|
|
2262
3018
|
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
2263
3019
|
const body = parsedOutput.body;
|
|
2264
3020
|
const deserialized = _json(body);
|
|
@@ -2340,6 +3096,15 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2340
3096
|
});
|
|
2341
3097
|
return __decorateServiceException(exception, body);
|
|
2342
3098
|
};
|
|
3099
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3100
|
+
const body = parsedOutput.body;
|
|
3101
|
+
const deserialized = _json(body);
|
|
3102
|
+
const exception = new ServiceQuotaExceededException({
|
|
3103
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3104
|
+
...deserialized,
|
|
3105
|
+
});
|
|
3106
|
+
return __decorateServiceException(exception, body);
|
|
3107
|
+
};
|
|
2343
3108
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2344
3109
|
const body = parsedOutput.body;
|
|
2345
3110
|
const deserialized = _json(body);
|
|
@@ -2349,6 +3114,15 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2349
3114
|
});
|
|
2350
3115
|
return __decorateServiceException(exception, body);
|
|
2351
3116
|
};
|
|
3117
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3118
|
+
const body = parsedOutput.body;
|
|
3119
|
+
const deserialized = _json(body);
|
|
3120
|
+
const exception = new ThrottlingException({
|
|
3121
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3122
|
+
...deserialized,
|
|
3123
|
+
});
|
|
3124
|
+
return __decorateServiceException(exception, body);
|
|
3125
|
+
};
|
|
2352
3126
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2353
3127
|
const body = parsedOutput.body;
|
|
2354
3128
|
const deserialized = _json(body);
|
|
@@ -2367,6 +3141,15 @@ const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
|
2367
3141
|
});
|
|
2368
3142
|
return __decorateServiceException(exception, body);
|
|
2369
3143
|
};
|
|
3144
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3145
|
+
const body = parsedOutput.body;
|
|
3146
|
+
const deserialized = _json(body);
|
|
3147
|
+
const exception = new ValidationException({
|
|
3148
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3149
|
+
...deserialized,
|
|
3150
|
+
});
|
|
3151
|
+
return __decorateServiceException(exception, body);
|
|
3152
|
+
};
|
|
2370
3153
|
const se_MetricTransformation = (input, context) => {
|
|
2371
3154
|
return take(input, {
|
|
2372
3155
|
defaultValue: __serializeFloat,
|