@aws-sdk/client-cloudwatch-logs 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AssociateKmsKeyCommand.js +2 -2
- package/dist-cjs/commands/CancelExportTaskCommand.js +2 -2
- package/dist-cjs/commands/CreateExportTaskCommand.js +2 -2
- package/dist-cjs/commands/CreateLogGroupCommand.js +2 -2
- package/dist-cjs/commands/CreateLogStreamCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteDestinationCommand.js +2 -2
- package/dist-cjs/commands/DeleteLogGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteLogStreamCommand.js +2 -2
- package/dist-cjs/commands/DeleteMetricFilterCommand.js +2 -2
- package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +2 -2
- package/dist-cjs/commands/DescribeDestinationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeExportTasksCommand.js +2 -2
- package/dist-cjs/commands/DescribeLogGroupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLogStreamsCommand.js +2 -2
- package/dist-cjs/commands/DescribeMetricFiltersCommand.js +2 -2
- package/dist-cjs/commands/DescribeQueriesCommand.js +2 -2
- package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +2 -2
- package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +2 -2
- package/dist-cjs/commands/DisassociateKmsKeyCommand.js +2 -2
- package/dist-cjs/commands/FilterLogEventsCommand.js +2 -2
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetLogEventsCommand.js +2 -2
- package/dist-cjs/commands/GetLogGroupFieldsCommand.js +2 -2
- package/dist-cjs/commands/GetLogRecordCommand.js +2 -2
- package/dist-cjs/commands/GetQueryResultsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTagsLogGroupCommand.js +2 -2
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutDestinationCommand.js +2 -2
- package/dist-cjs/commands/PutDestinationPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutLogEventsCommand.js +2 -2
- package/dist-cjs/commands/PutMetricFilterCommand.js +2 -2
- package/dist-cjs/commands/PutQueryDefinitionCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutRetentionPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutSubscriptionFilterCommand.js +2 -2
- package/dist-cjs/commands/StartQueryCommand.js +2 -2
- package/dist-cjs/commands/StopQueryCommand.js +2 -2
- package/dist-cjs/commands/TagLogGroupCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TestMetricFilterCommand.js +2 -2
- package/dist-cjs/commands/UntagLogGroupCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +764 -790
- package/dist-es/commands/AssociateKmsKeyCommand.js +3 -3
- package/dist-es/commands/CancelExportTaskCommand.js +3 -3
- package/dist-es/commands/CreateExportTaskCommand.js +3 -3
- package/dist-es/commands/CreateLogGroupCommand.js +3 -3
- package/dist-es/commands/CreateLogStreamCommand.js +3 -3
- package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteDestinationCommand.js +3 -3
- package/dist-es/commands/DeleteLogGroupCommand.js +3 -3
- package/dist-es/commands/DeleteLogStreamCommand.js +3 -3
- package/dist-es/commands/DeleteMetricFilterCommand.js +3 -3
- package/dist-es/commands/DeleteQueryDefinitionCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteRetentionPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteSubscriptionFilterCommand.js +3 -3
- package/dist-es/commands/DescribeDestinationsCommand.js +3 -3
- package/dist-es/commands/DescribeExportTasksCommand.js +3 -3
- package/dist-es/commands/DescribeLogGroupsCommand.js +3 -3
- package/dist-es/commands/DescribeLogStreamsCommand.js +3 -3
- package/dist-es/commands/DescribeMetricFiltersCommand.js +3 -3
- package/dist-es/commands/DescribeQueriesCommand.js +3 -3
- package/dist-es/commands/DescribeQueryDefinitionsCommand.js +3 -3
- package/dist-es/commands/DescribeResourcePoliciesCommand.js +3 -3
- package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +3 -3
- package/dist-es/commands/DisassociateKmsKeyCommand.js +3 -3
- package/dist-es/commands/FilterLogEventsCommand.js +3 -3
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +3 -3
- package/dist-es/commands/GetLogEventsCommand.js +3 -3
- package/dist-es/commands/GetLogGroupFieldsCommand.js +3 -3
- package/dist-es/commands/GetLogRecordCommand.js +3 -3
- package/dist-es/commands/GetQueryResultsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTagsLogGroupCommand.js +3 -3
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +3 -3
- package/dist-es/commands/PutDestinationCommand.js +3 -3
- package/dist-es/commands/PutDestinationPolicyCommand.js +3 -3
- package/dist-es/commands/PutLogEventsCommand.js +3 -3
- package/dist-es/commands/PutMetricFilterCommand.js +3 -3
- package/dist-es/commands/PutQueryDefinitionCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/PutRetentionPolicyCommand.js +3 -3
- package/dist-es/commands/PutSubscriptionFilterCommand.js +3 -3
- package/dist-es/commands/StartQueryCommand.js +3 -3
- package/dist-es/commands/StopQueryCommand.js +3 -3
- package/dist-es/commands/TagLogGroupCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TestMetricFilterCommand.js +3 -3
- package/dist-es/commands/UntagLogGroupCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +666 -692
- package/dist-types/protocols/Aws_json1_1.d.ts +384 -96
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +96 -96
- package/package.json +35 -35
|
@@ -1,494 +1,494 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
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_PutDataProtectionPolicyCommand = exports.se_ListTagsLogGroupCommand = exports.se_ListTagsForResourceCommand = exports.se_GetQueryResultsCommand = exports.se_GetLogRecordCommand = exports.se_GetLogGroupFieldsCommand = exports.se_GetLogEventsCommand = 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_DeleteSubscriptionFilterCommand = exports.se_DeleteRetentionPolicyCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteQueryDefinitionCommand = exports.se_DeleteMetricFilterCommand = exports.se_DeleteLogStreamCommand = exports.se_DeleteLogGroupCommand = exports.se_DeleteDestinationCommand = exports.se_DeleteDataProtectionPolicyCommand = exports.se_CreateLogStreamCommand = exports.se_CreateLogGroupCommand = exports.se_CreateExportTaskCommand = exports.se_CancelExportTaskCommand = exports.se_AssociateKmsKeyCommand = void 0;
|
|
4
|
+
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_PutDataProtectionPolicyCommand = exports.de_ListTagsLogGroupCommand = exports.de_ListTagsForResourceCommand = exports.de_GetQueryResultsCommand = exports.de_GetLogRecordCommand = exports.de_GetLogGroupFieldsCommand = exports.de_GetLogEventsCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_FilterLogEventsCommand = 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_DeleteSubscriptionFilterCommand = exports.de_DeleteRetentionPolicyCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteQueryDefinitionCommand = exports.de_DeleteMetricFilterCommand = exports.de_DeleteLogStreamCommand = exports.de_DeleteLogGroupCommand = exports.de_DeleteDestinationCommand = exports.de_DeleteDataProtectionPolicyCommand = exports.de_CreateLogStreamCommand = exports.de_CreateLogGroupCommand = exports.de_CreateExportTaskCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CloudWatchLogsServiceException_1 = require("../models/CloudWatchLogsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_AssociateKmsKeyCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "Logs_20140328.AssociateKmsKey",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_AssociateKmsKeyRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_AssociateKmsKeyCommand = se_AssociateKmsKeyCommand;
|
|
19
|
+
const se_CancelExportTaskCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "Logs_20140328.CancelExportTask",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CancelExportTaskRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CancelExportTaskCommand = se_CancelExportTaskCommand;
|
|
29
|
+
const se_CreateExportTaskCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "Logs_20140328.CreateExportTask",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_CreateExportTaskRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateExportTaskCommand = se_CreateExportTaskCommand;
|
|
39
|
+
const se_CreateLogGroupCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "Logs_20140328.CreateLogGroup",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_CreateLogGroupRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_CreateLogGroupCommand = se_CreateLogGroupCommand;
|
|
49
|
+
const se_CreateLogStreamCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "Logs_20140328.CreateLogStream",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateLogStreamRequest(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateLogStreamCommand = se_CreateLogStreamCommand;
|
|
59
|
+
const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "Logs_20140328.DeleteDataProtectionPolicy",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DeleteDataProtectionPolicyRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_DeleteDataProtectionPolicyCommand = se_DeleteDataProtectionPolicyCommand;
|
|
69
|
+
const se_DeleteDestinationCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "Logs_20140328.DeleteDestination",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DeleteDestinationRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_DeleteDestinationCommand = se_DeleteDestinationCommand;
|
|
79
|
+
const se_DeleteLogGroupCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "Logs_20140328.DeleteLogGroup",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_DeleteLogGroupRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_DeleteLogGroupCommand = se_DeleteLogGroupCommand;
|
|
89
|
+
const se_DeleteLogStreamCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "Logs_20140328.DeleteLogStream",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_DeleteLogStreamRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_DeleteLogStreamCommand = se_DeleteLogStreamCommand;
|
|
99
|
+
const se_DeleteMetricFilterCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "Logs_20140328.DeleteMetricFilter",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DeleteMetricFilterRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteMetricFilterCommand = se_DeleteMetricFilterCommand;
|
|
109
|
+
const se_DeleteQueryDefinitionCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "Logs_20140328.DeleteQueryDefinition",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_DeleteQueryDefinitionRequest(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_DeleteQueryDefinitionCommand = se_DeleteQueryDefinitionCommand;
|
|
119
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "Logs_20140328.DeleteResourcePolicy",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
129
|
+
const se_DeleteRetentionPolicyCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "Logs_20140328.DeleteRetentionPolicy",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_DeleteRetentionPolicyRequest(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_DeleteRetentionPolicyCommand = se_DeleteRetentionPolicyCommand;
|
|
139
|
+
const se_DeleteSubscriptionFilterCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "Logs_20140328.DeleteSubscriptionFilter",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_DeleteSubscriptionFilterRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_DeleteSubscriptionFilterCommand = se_DeleteSubscriptionFilterCommand;
|
|
149
|
+
const se_DescribeDestinationsCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "Logs_20140328.DescribeDestinations",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DescribeDestinationsRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_DescribeDestinationsCommand = se_DescribeDestinationsCommand;
|
|
159
|
+
const se_DescribeExportTasksCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "Logs_20140328.DescribeExportTasks",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_DescribeExportTasksRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_DescribeExportTasksCommand = se_DescribeExportTasksCommand;
|
|
169
|
+
const se_DescribeLogGroupsCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "Logs_20140328.DescribeLogGroups",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_DescribeLogGroupsRequest(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_DescribeLogGroupsCommand = se_DescribeLogGroupsCommand;
|
|
179
|
+
const se_DescribeLogStreamsCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "Logs_20140328.DescribeLogStreams",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_DescribeLogStreamsRequest(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_DescribeLogStreamsCommand = se_DescribeLogStreamsCommand;
|
|
189
|
+
const se_DescribeMetricFiltersCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "Logs_20140328.DescribeMetricFilters",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_DescribeMetricFiltersRequest(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_DescribeMetricFiltersCommand = se_DescribeMetricFiltersCommand;
|
|
199
|
+
const se_DescribeQueriesCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "Logs_20140328.DescribeQueries",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_DescribeQueriesRequest(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_DescribeQueriesCommand = se_DescribeQueriesCommand;
|
|
209
|
+
const se_DescribeQueryDefinitionsCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "Logs_20140328.DescribeQueryDefinitions",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_DescribeQueryDefinitionsRequest(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_DescribeQueryDefinitionsCommand = se_DescribeQueryDefinitionsCommand;
|
|
219
|
+
const se_DescribeResourcePoliciesCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "Logs_20140328.DescribeResourcePolicies",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_DescribeResourcePoliciesRequest(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_DescribeResourcePoliciesCommand = se_DescribeResourcePoliciesCommand;
|
|
229
|
+
const se_DescribeSubscriptionFiltersCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "Logs_20140328.DescribeSubscriptionFilters",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_DescribeSubscriptionFiltersRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_DescribeSubscriptionFiltersCommand = se_DescribeSubscriptionFiltersCommand;
|
|
239
|
+
const se_DisassociateKmsKeyCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "Logs_20140328.DisassociateKmsKey",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_DisassociateKmsKeyRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_DisassociateKmsKeyCommand = se_DisassociateKmsKeyCommand;
|
|
249
|
+
const se_FilterLogEventsCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "Logs_20140328.FilterLogEvents",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_FilterLogEventsRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_FilterLogEventsCommand = se_FilterLogEventsCommand;
|
|
259
|
+
const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "Logs_20140328.GetDataProtectionPolicy",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_GetDataProtectionPolicyRequest(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
|
|
269
|
+
const se_GetLogEventsCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "Logs_20140328.GetLogEvents",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_GetLogEventsRequest(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_GetLogEventsCommand = se_GetLogEventsCommand;
|
|
279
|
+
const se_GetLogGroupFieldsCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "Logs_20140328.GetLogGroupFields",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_GetLogGroupFieldsRequest(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_GetLogGroupFieldsCommand = se_GetLogGroupFieldsCommand;
|
|
289
|
+
const se_GetLogRecordCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "Logs_20140328.GetLogRecord",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_GetLogRecordRequest(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_GetLogRecordCommand = se_GetLogRecordCommand;
|
|
299
|
+
const se_GetQueryResultsCommand = async (input, context) => {
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/x-amz-json-1.1",
|
|
302
302
|
"x-amz-target": "Logs_20140328.GetQueryResults",
|
|
303
303
|
};
|
|
304
304
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
305
|
+
body = JSON.stringify(se_GetQueryResultsRequest(input, context));
|
|
306
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_GetQueryResultsCommand = se_GetQueryResultsCommand;
|
|
309
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/x-amz-json-1.1",
|
|
312
312
|
"x-amz-target": "Logs_20140328.ListTagsForResource",
|
|
313
313
|
};
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
316
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
319
|
+
const se_ListTagsLogGroupCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "Logs_20140328.ListTagsLogGroup",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_ListTagsLogGroupRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.se_ListTagsLogGroupCommand = se_ListTagsLogGroupCommand;
|
|
329
|
+
const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "Logs_20140328.PutDataProtectionPolicy",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_PutDataProtectionPolicyRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
|
|
339
|
+
const se_PutDestinationCommand = async (input, context) => {
|
|
340
340
|
const headers = {
|
|
341
341
|
"content-type": "application/x-amz-json-1.1",
|
|
342
342
|
"x-amz-target": "Logs_20140328.PutDestination",
|
|
343
343
|
};
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
345
|
+
body = JSON.stringify(se_PutDestinationRequest(input, context));
|
|
346
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.se_PutDestinationCommand = se_PutDestinationCommand;
|
|
349
|
+
const se_PutDestinationPolicyCommand = async (input, context) => {
|
|
350
350
|
const headers = {
|
|
351
351
|
"content-type": "application/x-amz-json-1.1",
|
|
352
352
|
"x-amz-target": "Logs_20140328.PutDestinationPolicy",
|
|
353
353
|
};
|
|
354
354
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
355
|
+
body = JSON.stringify(se_PutDestinationPolicyRequest(input, context));
|
|
356
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
357
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
358
|
+
exports.se_PutDestinationPolicyCommand = se_PutDestinationPolicyCommand;
|
|
359
|
+
const se_PutLogEventsCommand = async (input, context) => {
|
|
360
360
|
const headers = {
|
|
361
361
|
"content-type": "application/x-amz-json-1.1",
|
|
362
362
|
"x-amz-target": "Logs_20140328.PutLogEvents",
|
|
363
363
|
};
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify(se_PutLogEventsRequest(input, context));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
|
-
exports.
|
|
369
|
-
const
|
|
368
|
+
exports.se_PutLogEventsCommand = se_PutLogEventsCommand;
|
|
369
|
+
const se_PutMetricFilterCommand = async (input, context) => {
|
|
370
370
|
const headers = {
|
|
371
371
|
"content-type": "application/x-amz-json-1.1",
|
|
372
372
|
"x-amz-target": "Logs_20140328.PutMetricFilter",
|
|
373
373
|
};
|
|
374
374
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
375
|
+
body = JSON.stringify(se_PutMetricFilterRequest(input, context));
|
|
376
376
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
377
|
};
|
|
378
|
-
exports.
|
|
379
|
-
const
|
|
378
|
+
exports.se_PutMetricFilterCommand = se_PutMetricFilterCommand;
|
|
379
|
+
const se_PutQueryDefinitionCommand = async (input, context) => {
|
|
380
380
|
const headers = {
|
|
381
381
|
"content-type": "application/x-amz-json-1.1",
|
|
382
382
|
"x-amz-target": "Logs_20140328.PutQueryDefinition",
|
|
383
383
|
};
|
|
384
384
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
385
|
+
body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
|
|
386
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
387
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
388
|
+
exports.se_PutQueryDefinitionCommand = se_PutQueryDefinitionCommand;
|
|
389
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
390
390
|
const headers = {
|
|
391
391
|
"content-type": "application/x-amz-json-1.1",
|
|
392
392
|
"x-amz-target": "Logs_20140328.PutResourcePolicy",
|
|
393
393
|
};
|
|
394
394
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
395
|
+
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
396
396
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
397
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
398
|
+
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
399
|
+
const se_PutRetentionPolicyCommand = async (input, context) => {
|
|
400
400
|
const headers = {
|
|
401
401
|
"content-type": "application/x-amz-json-1.1",
|
|
402
402
|
"x-amz-target": "Logs_20140328.PutRetentionPolicy",
|
|
403
403
|
};
|
|
404
404
|
let body;
|
|
405
|
-
body = JSON.stringify(
|
|
405
|
+
body = JSON.stringify(se_PutRetentionPolicyRequest(input, context));
|
|
406
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
407
|
};
|
|
408
|
-
exports.
|
|
409
|
-
const
|
|
408
|
+
exports.se_PutRetentionPolicyCommand = se_PutRetentionPolicyCommand;
|
|
409
|
+
const se_PutSubscriptionFilterCommand = async (input, context) => {
|
|
410
410
|
const headers = {
|
|
411
411
|
"content-type": "application/x-amz-json-1.1",
|
|
412
412
|
"x-amz-target": "Logs_20140328.PutSubscriptionFilter",
|
|
413
413
|
};
|
|
414
414
|
let body;
|
|
415
|
-
body = JSON.stringify(
|
|
415
|
+
body = JSON.stringify(se_PutSubscriptionFilterRequest(input, context));
|
|
416
416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
417
|
};
|
|
418
|
-
exports.
|
|
419
|
-
const
|
|
418
|
+
exports.se_PutSubscriptionFilterCommand = se_PutSubscriptionFilterCommand;
|
|
419
|
+
const se_StartQueryCommand = async (input, context) => {
|
|
420
420
|
const headers = {
|
|
421
421
|
"content-type": "application/x-amz-json-1.1",
|
|
422
422
|
"x-amz-target": "Logs_20140328.StartQuery",
|
|
423
423
|
};
|
|
424
424
|
let body;
|
|
425
|
-
body = JSON.stringify(
|
|
425
|
+
body = JSON.stringify(se_StartQueryRequest(input, context));
|
|
426
426
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
427
|
};
|
|
428
|
-
exports.
|
|
429
|
-
const
|
|
428
|
+
exports.se_StartQueryCommand = se_StartQueryCommand;
|
|
429
|
+
const se_StopQueryCommand = async (input, context) => {
|
|
430
430
|
const headers = {
|
|
431
431
|
"content-type": "application/x-amz-json-1.1",
|
|
432
432
|
"x-amz-target": "Logs_20140328.StopQuery",
|
|
433
433
|
};
|
|
434
434
|
let body;
|
|
435
|
-
body = JSON.stringify(
|
|
435
|
+
body = JSON.stringify(se_StopQueryRequest(input, context));
|
|
436
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
437
|
};
|
|
438
|
-
exports.
|
|
439
|
-
const
|
|
438
|
+
exports.se_StopQueryCommand = se_StopQueryCommand;
|
|
439
|
+
const se_TagLogGroupCommand = async (input, context) => {
|
|
440
440
|
const headers = {
|
|
441
441
|
"content-type": "application/x-amz-json-1.1",
|
|
442
442
|
"x-amz-target": "Logs_20140328.TagLogGroup",
|
|
443
443
|
};
|
|
444
444
|
let body;
|
|
445
|
-
body = JSON.stringify(
|
|
445
|
+
body = JSON.stringify(se_TagLogGroupRequest(input, context));
|
|
446
446
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
447
|
};
|
|
448
|
-
exports.
|
|
449
|
-
const
|
|
448
|
+
exports.se_TagLogGroupCommand = se_TagLogGroupCommand;
|
|
449
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
450
450
|
const headers = {
|
|
451
451
|
"content-type": "application/x-amz-json-1.1",
|
|
452
452
|
"x-amz-target": "Logs_20140328.TagResource",
|
|
453
453
|
};
|
|
454
454
|
let body;
|
|
455
|
-
body = JSON.stringify(
|
|
455
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
456
456
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
457
|
};
|
|
458
|
-
exports.
|
|
459
|
-
const
|
|
458
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
459
|
+
const se_TestMetricFilterCommand = async (input, context) => {
|
|
460
460
|
const headers = {
|
|
461
461
|
"content-type": "application/x-amz-json-1.1",
|
|
462
462
|
"x-amz-target": "Logs_20140328.TestMetricFilter",
|
|
463
463
|
};
|
|
464
464
|
let body;
|
|
465
|
-
body = JSON.stringify(
|
|
465
|
+
body = JSON.stringify(se_TestMetricFilterRequest(input, context));
|
|
466
466
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
467
467
|
};
|
|
468
|
-
exports.
|
|
469
|
-
const
|
|
468
|
+
exports.se_TestMetricFilterCommand = se_TestMetricFilterCommand;
|
|
469
|
+
const se_UntagLogGroupCommand = async (input, context) => {
|
|
470
470
|
const headers = {
|
|
471
471
|
"content-type": "application/x-amz-json-1.1",
|
|
472
472
|
"x-amz-target": "Logs_20140328.UntagLogGroup",
|
|
473
473
|
};
|
|
474
474
|
let body;
|
|
475
|
-
body = JSON.stringify(
|
|
475
|
+
body = JSON.stringify(se_UntagLogGroupRequest(input, context));
|
|
476
476
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
477
|
};
|
|
478
|
-
exports.
|
|
479
|
-
const
|
|
478
|
+
exports.se_UntagLogGroupCommand = se_UntagLogGroupCommand;
|
|
479
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
480
480
|
const headers = {
|
|
481
481
|
"content-type": "application/x-amz-json-1.1",
|
|
482
482
|
"x-amz-target": "Logs_20140328.UntagResource",
|
|
483
483
|
};
|
|
484
484
|
let body;
|
|
485
|
-
body = JSON.stringify(
|
|
485
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
486
486
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
487
|
};
|
|
488
|
-
exports.
|
|
489
|
-
const
|
|
488
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
489
|
+
const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
490
490
|
if (output.statusCode >= 300) {
|
|
491
|
-
return
|
|
491
|
+
return de_AssociateKmsKeyCommandError(output, context);
|
|
492
492
|
}
|
|
493
493
|
await collectBody(output.body, context);
|
|
494
494
|
const response = {
|
|
@@ -496,8 +496,8 @@ const deserializeAws_json1_1AssociateKmsKeyCommand = async (output, context) =>
|
|
|
496
496
|
};
|
|
497
497
|
return Promise.resolve(response);
|
|
498
498
|
};
|
|
499
|
-
exports.
|
|
500
|
-
const
|
|
499
|
+
exports.de_AssociateKmsKeyCommand = de_AssociateKmsKeyCommand;
|
|
500
|
+
const de_AssociateKmsKeyCommandError = async (output, context) => {
|
|
501
501
|
const parsedOutput = {
|
|
502
502
|
...output,
|
|
503
503
|
body: await parseErrorBody(output.body, context),
|
|
@@ -506,16 +506,16 @@ const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context
|
|
|
506
506
|
switch (errorCode) {
|
|
507
507
|
case "InvalidParameterException":
|
|
508
508
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
510
510
|
case "OperationAbortedException":
|
|
511
511
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
512
|
-
throw await
|
|
512
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
513
513
|
case "ResourceNotFoundException":
|
|
514
514
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
515
|
-
throw await
|
|
515
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
516
516
|
case "ServiceUnavailableException":
|
|
517
517
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
519
519
|
default:
|
|
520
520
|
const parsedBody = parsedOutput.body;
|
|
521
521
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -526,9 +526,9 @@ const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context
|
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
const
|
|
529
|
+
const de_CancelExportTaskCommand = async (output, context) => {
|
|
530
530
|
if (output.statusCode >= 300) {
|
|
531
|
-
return
|
|
531
|
+
return de_CancelExportTaskCommandError(output, context);
|
|
532
532
|
}
|
|
533
533
|
await collectBody(output.body, context);
|
|
534
534
|
const response = {
|
|
@@ -536,8 +536,8 @@ const deserializeAws_json1_1CancelExportTaskCommand = async (output, context) =>
|
|
|
536
536
|
};
|
|
537
537
|
return Promise.resolve(response);
|
|
538
538
|
};
|
|
539
|
-
exports.
|
|
540
|
-
const
|
|
539
|
+
exports.de_CancelExportTaskCommand = de_CancelExportTaskCommand;
|
|
540
|
+
const de_CancelExportTaskCommandError = async (output, context) => {
|
|
541
541
|
const parsedOutput = {
|
|
542
542
|
...output,
|
|
543
543
|
body: await parseErrorBody(output.body, context),
|
|
@@ -546,16 +546,16 @@ const deserializeAws_json1_1CancelExportTaskCommandError = async (output, contex
|
|
|
546
546
|
switch (errorCode) {
|
|
547
547
|
case "InvalidOperationException":
|
|
548
548
|
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
549
|
-
throw await
|
|
549
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
550
550
|
case "InvalidParameterException":
|
|
551
551
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
552
|
-
throw await
|
|
552
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
553
553
|
case "ResourceNotFoundException":
|
|
554
554
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
556
556
|
case "ServiceUnavailableException":
|
|
557
557
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
559
559
|
default:
|
|
560
560
|
const parsedBody = parsedOutput.body;
|
|
561
561
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -566,21 +566,21 @@ const deserializeAws_json1_1CancelExportTaskCommandError = async (output, contex
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
|
-
const
|
|
569
|
+
const de_CreateExportTaskCommand = async (output, context) => {
|
|
570
570
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
571
|
+
return de_CreateExportTaskCommandError(output, context);
|
|
572
572
|
}
|
|
573
573
|
const data = await parseBody(output.body, context);
|
|
574
574
|
let contents = {};
|
|
575
|
-
contents =
|
|
575
|
+
contents = de_CreateExportTaskResponse(data, context);
|
|
576
576
|
const response = {
|
|
577
577
|
$metadata: deserializeMetadata(output),
|
|
578
578
|
...contents,
|
|
579
579
|
};
|
|
580
580
|
return Promise.resolve(response);
|
|
581
581
|
};
|
|
582
|
-
exports.
|
|
583
|
-
const
|
|
582
|
+
exports.de_CreateExportTaskCommand = de_CreateExportTaskCommand;
|
|
583
|
+
const de_CreateExportTaskCommandError = async (output, context) => {
|
|
584
584
|
const parsedOutput = {
|
|
585
585
|
...output,
|
|
586
586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -589,22 +589,22 @@ const deserializeAws_json1_1CreateExportTaskCommandError = async (output, contex
|
|
|
589
589
|
switch (errorCode) {
|
|
590
590
|
case "InvalidParameterException":
|
|
591
591
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
593
593
|
case "LimitExceededException":
|
|
594
594
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
596
596
|
case "OperationAbortedException":
|
|
597
597
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
598
|
-
throw await
|
|
598
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
599
599
|
case "ResourceAlreadyExistsException":
|
|
600
600
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
601
|
-
throw await
|
|
601
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
602
602
|
case "ResourceNotFoundException":
|
|
603
603
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
604
|
-
throw await
|
|
604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
605
605
|
case "ServiceUnavailableException":
|
|
606
606
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
608
608
|
default:
|
|
609
609
|
const parsedBody = parsedOutput.body;
|
|
610
610
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -615,9 +615,9 @@ const deserializeAws_json1_1CreateExportTaskCommandError = async (output, contex
|
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
|
-
const
|
|
618
|
+
const de_CreateLogGroupCommand = async (output, context) => {
|
|
619
619
|
if (output.statusCode >= 300) {
|
|
620
|
-
return
|
|
620
|
+
return de_CreateLogGroupCommandError(output, context);
|
|
621
621
|
}
|
|
622
622
|
await collectBody(output.body, context);
|
|
623
623
|
const response = {
|
|
@@ -625,8 +625,8 @@ const deserializeAws_json1_1CreateLogGroupCommand = async (output, context) => {
|
|
|
625
625
|
};
|
|
626
626
|
return Promise.resolve(response);
|
|
627
627
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
628
|
+
exports.de_CreateLogGroupCommand = de_CreateLogGroupCommand;
|
|
629
|
+
const de_CreateLogGroupCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
632
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,19 +635,19 @@ const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context)
|
|
|
635
635
|
switch (errorCode) {
|
|
636
636
|
case "InvalidParameterException":
|
|
637
637
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
638
|
-
throw await
|
|
638
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
639
639
|
case "LimitExceededException":
|
|
640
640
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
641
|
-
throw await
|
|
641
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
642
642
|
case "OperationAbortedException":
|
|
643
643
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
645
645
|
case "ResourceAlreadyExistsException":
|
|
646
646
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
647
|
-
throw await
|
|
647
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
648
648
|
case "ServiceUnavailableException":
|
|
649
649
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
650
|
-
throw await
|
|
650
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
651
651
|
default:
|
|
652
652
|
const parsedBody = parsedOutput.body;
|
|
653
653
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -658,9 +658,9 @@ const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context)
|
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
const
|
|
661
|
+
const de_CreateLogStreamCommand = async (output, context) => {
|
|
662
662
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
663
|
+
return de_CreateLogStreamCommandError(output, context);
|
|
664
664
|
}
|
|
665
665
|
await collectBody(output.body, context);
|
|
666
666
|
const response = {
|
|
@@ -668,8 +668,8 @@ const deserializeAws_json1_1CreateLogStreamCommand = async (output, context) =>
|
|
|
668
668
|
};
|
|
669
669
|
return Promise.resolve(response);
|
|
670
670
|
};
|
|
671
|
-
exports.
|
|
672
|
-
const
|
|
671
|
+
exports.de_CreateLogStreamCommand = de_CreateLogStreamCommand;
|
|
672
|
+
const de_CreateLogStreamCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -678,16 +678,16 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
678
678
|
switch (errorCode) {
|
|
679
679
|
case "InvalidParameterException":
|
|
680
680
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
682
682
|
case "ResourceAlreadyExistsException":
|
|
683
683
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
685
685
|
case "ResourceNotFoundException":
|
|
686
686
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
688
688
|
case "ServiceUnavailableException":
|
|
689
689
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
691
691
|
default:
|
|
692
692
|
const parsedBody = parsedOutput.body;
|
|
693
693
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -698,9 +698,9 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
const
|
|
701
|
+
const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
702
702
|
if (output.statusCode >= 300) {
|
|
703
|
-
return
|
|
703
|
+
return de_DeleteDataProtectionPolicyCommandError(output, context);
|
|
704
704
|
}
|
|
705
705
|
await collectBody(output.body, context);
|
|
706
706
|
const response = {
|
|
@@ -708,8 +708,8 @@ const deserializeAws_json1_1DeleteDataProtectionPolicyCommand = async (output, c
|
|
|
708
708
|
};
|
|
709
709
|
return Promise.resolve(response);
|
|
710
710
|
};
|
|
711
|
-
exports.
|
|
712
|
-
const
|
|
711
|
+
exports.de_DeleteDataProtectionPolicyCommand = de_DeleteDataProtectionPolicyCommand;
|
|
712
|
+
const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
713
713
|
const parsedOutput = {
|
|
714
714
|
...output,
|
|
715
715
|
body: await parseErrorBody(output.body, context),
|
|
@@ -718,16 +718,16 @@ const deserializeAws_json1_1DeleteDataProtectionPolicyCommandError = async (outp
|
|
|
718
718
|
switch (errorCode) {
|
|
719
719
|
case "InvalidParameterException":
|
|
720
720
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
722
722
|
case "OperationAbortedException":
|
|
723
723
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
725
725
|
case "ResourceNotFoundException":
|
|
726
726
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
727
|
-
throw await
|
|
727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
728
|
case "ServiceUnavailableException":
|
|
729
729
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
730
|
-
throw await
|
|
730
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
731
731
|
default:
|
|
732
732
|
const parsedBody = parsedOutput.body;
|
|
733
733
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -738,9 +738,9 @@ const deserializeAws_json1_1DeleteDataProtectionPolicyCommandError = async (outp
|
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
740
|
};
|
|
741
|
-
const
|
|
741
|
+
const de_DeleteDestinationCommand = async (output, context) => {
|
|
742
742
|
if (output.statusCode >= 300) {
|
|
743
|
-
return
|
|
743
|
+
return de_DeleteDestinationCommandError(output, context);
|
|
744
744
|
}
|
|
745
745
|
await collectBody(output.body, context);
|
|
746
746
|
const response = {
|
|
@@ -748,8 +748,8 @@ const deserializeAws_json1_1DeleteDestinationCommand = async (output, context) =
|
|
|
748
748
|
};
|
|
749
749
|
return Promise.resolve(response);
|
|
750
750
|
};
|
|
751
|
-
exports.
|
|
752
|
-
const
|
|
751
|
+
exports.de_DeleteDestinationCommand = de_DeleteDestinationCommand;
|
|
752
|
+
const de_DeleteDestinationCommandError = async (output, context) => {
|
|
753
753
|
const parsedOutput = {
|
|
754
754
|
...output,
|
|
755
755
|
body: await parseErrorBody(output.body, context),
|
|
@@ -758,16 +758,16 @@ const deserializeAws_json1_1DeleteDestinationCommandError = async (output, conte
|
|
|
758
758
|
switch (errorCode) {
|
|
759
759
|
case "InvalidParameterException":
|
|
760
760
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
761
|
-
throw await
|
|
761
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
762
762
|
case "OperationAbortedException":
|
|
763
763
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
764
|
-
throw await
|
|
764
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
765
765
|
case "ResourceNotFoundException":
|
|
766
766
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
767
|
-
throw await
|
|
767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
768
768
|
case "ServiceUnavailableException":
|
|
769
769
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
770
|
-
throw await
|
|
770
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
771
771
|
default:
|
|
772
772
|
const parsedBody = parsedOutput.body;
|
|
773
773
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -778,9 +778,9 @@ const deserializeAws_json1_1DeleteDestinationCommandError = async (output, conte
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
|
-
const
|
|
781
|
+
const de_DeleteLogGroupCommand = async (output, context) => {
|
|
782
782
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
783
|
+
return de_DeleteLogGroupCommandError(output, context);
|
|
784
784
|
}
|
|
785
785
|
await collectBody(output.body, context);
|
|
786
786
|
const response = {
|
|
@@ -788,8 +788,8 @@ const deserializeAws_json1_1DeleteLogGroupCommand = async (output, context) => {
|
|
|
788
788
|
};
|
|
789
789
|
return Promise.resolve(response);
|
|
790
790
|
};
|
|
791
|
-
exports.
|
|
792
|
-
const
|
|
791
|
+
exports.de_DeleteLogGroupCommand = de_DeleteLogGroupCommand;
|
|
792
|
+
const de_DeleteLogGroupCommandError = async (output, context) => {
|
|
793
793
|
const parsedOutput = {
|
|
794
794
|
...output,
|
|
795
795
|
body: await parseErrorBody(output.body, context),
|
|
@@ -798,16 +798,16 @@ const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context)
|
|
|
798
798
|
switch (errorCode) {
|
|
799
799
|
case "InvalidParameterException":
|
|
800
800
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
802
802
|
case "OperationAbortedException":
|
|
803
803
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
805
805
|
case "ResourceNotFoundException":
|
|
806
806
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
808
|
case "ServiceUnavailableException":
|
|
809
809
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
811
811
|
default:
|
|
812
812
|
const parsedBody = parsedOutput.body;
|
|
813
813
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -818,9 +818,9 @@ const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context)
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
};
|
|
821
|
-
const
|
|
821
|
+
const de_DeleteLogStreamCommand = async (output, context) => {
|
|
822
822
|
if (output.statusCode >= 300) {
|
|
823
|
-
return
|
|
823
|
+
return de_DeleteLogStreamCommandError(output, context);
|
|
824
824
|
}
|
|
825
825
|
await collectBody(output.body, context);
|
|
826
826
|
const response = {
|
|
@@ -828,8 +828,8 @@ const deserializeAws_json1_1DeleteLogStreamCommand = async (output, context) =>
|
|
|
828
828
|
};
|
|
829
829
|
return Promise.resolve(response);
|
|
830
830
|
};
|
|
831
|
-
exports.
|
|
832
|
-
const
|
|
831
|
+
exports.de_DeleteLogStreamCommand = de_DeleteLogStreamCommand;
|
|
832
|
+
const de_DeleteLogStreamCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -838,16 +838,16 @@ const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context
|
|
|
838
838
|
switch (errorCode) {
|
|
839
839
|
case "InvalidParameterException":
|
|
840
840
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
842
842
|
case "OperationAbortedException":
|
|
843
843
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
845
845
|
case "ResourceNotFoundException":
|
|
846
846
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
848
|
case "ServiceUnavailableException":
|
|
849
849
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
851
851
|
default:
|
|
852
852
|
const parsedBody = parsedOutput.body;
|
|
853
853
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -858,9 +858,9 @@ const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
|
-
const
|
|
861
|
+
const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
862
862
|
if (output.statusCode >= 300) {
|
|
863
|
-
return
|
|
863
|
+
return de_DeleteMetricFilterCommandError(output, context);
|
|
864
864
|
}
|
|
865
865
|
await collectBody(output.body, context);
|
|
866
866
|
const response = {
|
|
@@ -868,8 +868,8 @@ const deserializeAws_json1_1DeleteMetricFilterCommand = async (output, context)
|
|
|
868
868
|
};
|
|
869
869
|
return Promise.resolve(response);
|
|
870
870
|
};
|
|
871
|
-
exports.
|
|
872
|
-
const
|
|
871
|
+
exports.de_DeleteMetricFilterCommand = de_DeleteMetricFilterCommand;
|
|
872
|
+
const de_DeleteMetricFilterCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -878,16 +878,16 @@ const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, cont
|
|
|
878
878
|
switch (errorCode) {
|
|
879
879
|
case "InvalidParameterException":
|
|
880
880
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
882
882
|
case "OperationAbortedException":
|
|
883
883
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
884
|
-
throw await
|
|
884
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
885
885
|
case "ResourceNotFoundException":
|
|
886
886
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
887
|
-
throw await
|
|
887
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
888
|
case "ServiceUnavailableException":
|
|
889
889
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
890
|
-
throw await
|
|
890
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
891
891
|
default:
|
|
892
892
|
const parsedBody = parsedOutput.body;
|
|
893
893
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -898,21 +898,21 @@ const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, cont
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
902
902
|
if (output.statusCode >= 300) {
|
|
903
|
-
return
|
|
903
|
+
return de_DeleteQueryDefinitionCommandError(output, context);
|
|
904
904
|
}
|
|
905
905
|
const data = await parseBody(output.body, context);
|
|
906
906
|
let contents = {};
|
|
907
|
-
contents =
|
|
907
|
+
contents = de_DeleteQueryDefinitionResponse(data, context);
|
|
908
908
|
const response = {
|
|
909
909
|
$metadata: deserializeMetadata(output),
|
|
910
910
|
...contents,
|
|
911
911
|
};
|
|
912
912
|
return Promise.resolve(response);
|
|
913
913
|
};
|
|
914
|
-
exports.
|
|
915
|
-
const
|
|
914
|
+
exports.de_DeleteQueryDefinitionCommand = de_DeleteQueryDefinitionCommand;
|
|
915
|
+
const de_DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
916
916
|
const parsedOutput = {
|
|
917
917
|
...output,
|
|
918
918
|
body: await parseErrorBody(output.body, context),
|
|
@@ -921,13 +921,13 @@ const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, c
|
|
|
921
921
|
switch (errorCode) {
|
|
922
922
|
case "InvalidParameterException":
|
|
923
923
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
925
925
|
case "ResourceNotFoundException":
|
|
926
926
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
928
|
case "ServiceUnavailableException":
|
|
929
929
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
931
931
|
default:
|
|
932
932
|
const parsedBody = parsedOutput.body;
|
|
933
933
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -938,9 +938,9 @@ const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, c
|
|
|
938
938
|
});
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
|
-
const
|
|
941
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
942
942
|
if (output.statusCode >= 300) {
|
|
943
|
-
return
|
|
943
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
944
944
|
}
|
|
945
945
|
await collectBody(output.body, context);
|
|
946
946
|
const response = {
|
|
@@ -948,8 +948,8 @@ const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context
|
|
|
948
948
|
};
|
|
949
949
|
return Promise.resolve(response);
|
|
950
950
|
};
|
|
951
|
-
exports.
|
|
952
|
-
const
|
|
951
|
+
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
952
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
955
|
body: await parseErrorBody(output.body, context),
|
|
@@ -958,13 +958,13 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
958
958
|
switch (errorCode) {
|
|
959
959
|
case "InvalidParameterException":
|
|
960
960
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
961
|
-
throw await
|
|
961
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
962
962
|
case "ResourceNotFoundException":
|
|
963
963
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
964
|
-
throw await
|
|
964
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
965
965
|
case "ServiceUnavailableException":
|
|
966
966
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
967
|
-
throw await
|
|
967
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
968
968
|
default:
|
|
969
969
|
const parsedBody = parsedOutput.body;
|
|
970
970
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -975,9 +975,9 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
|
-
const
|
|
978
|
+
const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
979
979
|
if (output.statusCode >= 300) {
|
|
980
|
-
return
|
|
980
|
+
return de_DeleteRetentionPolicyCommandError(output, context);
|
|
981
981
|
}
|
|
982
982
|
await collectBody(output.body, context);
|
|
983
983
|
const response = {
|
|
@@ -985,8 +985,8 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommand = async (output, contex
|
|
|
985
985
|
};
|
|
986
986
|
return Promise.resolve(response);
|
|
987
987
|
};
|
|
988
|
-
exports.
|
|
989
|
-
const
|
|
988
|
+
exports.de_DeleteRetentionPolicyCommand = de_DeleteRetentionPolicyCommand;
|
|
989
|
+
const de_DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
992
|
body: await parseErrorBody(output.body, context),
|
|
@@ -995,16 +995,16 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
995
995
|
switch (errorCode) {
|
|
996
996
|
case "InvalidParameterException":
|
|
997
997
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
999
999
|
case "OperationAbortedException":
|
|
1000
1000
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1001
|
-
throw await
|
|
1001
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1002
1002
|
case "ResourceNotFoundException":
|
|
1003
1003
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1004
|
-
throw await
|
|
1004
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
1005
|
case "ServiceUnavailableException":
|
|
1006
1006
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1007
|
-
throw await
|
|
1007
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1008
1008
|
default:
|
|
1009
1009
|
const parsedBody = parsedOutput.body;
|
|
1010
1010
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1015,9 +1015,9 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
|
-
const
|
|
1018
|
+
const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
1019
1019
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
1020
|
+
return de_DeleteSubscriptionFilterCommandError(output, context);
|
|
1021
1021
|
}
|
|
1022
1022
|
await collectBody(output.body, context);
|
|
1023
1023
|
const response = {
|
|
@@ -1025,8 +1025,8 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommand = async (output, con
|
|
|
1025
1025
|
};
|
|
1026
1026
|
return Promise.resolve(response);
|
|
1027
1027
|
};
|
|
1028
|
-
exports.
|
|
1029
|
-
const
|
|
1028
|
+
exports.de_DeleteSubscriptionFilterCommand = de_DeleteSubscriptionFilterCommand;
|
|
1029
|
+
const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
1030
1030
|
const parsedOutput = {
|
|
1031
1031
|
...output,
|
|
1032
1032
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1035,16 +1035,16 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output
|
|
|
1035
1035
|
switch (errorCode) {
|
|
1036
1036
|
case "InvalidParameterException":
|
|
1037
1037
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1038
|
-
throw await
|
|
1038
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1039
1039
|
case "OperationAbortedException":
|
|
1040
1040
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1041
|
-
throw await
|
|
1041
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1042
1042
|
case "ResourceNotFoundException":
|
|
1043
1043
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1044
|
-
throw await
|
|
1044
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
1045
|
case "ServiceUnavailableException":
|
|
1046
1046
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1047
|
-
throw await
|
|
1047
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1048
1048
|
default:
|
|
1049
1049
|
const parsedBody = parsedOutput.body;
|
|
1050
1050
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1055,21 +1055,21 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output
|
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
const
|
|
1058
|
+
const de_DescribeDestinationsCommand = async (output, context) => {
|
|
1059
1059
|
if (output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
1060
|
+
return de_DescribeDestinationsCommandError(output, context);
|
|
1061
1061
|
}
|
|
1062
1062
|
const data = await parseBody(output.body, context);
|
|
1063
1063
|
let contents = {};
|
|
1064
|
-
contents =
|
|
1064
|
+
contents = de_DescribeDestinationsResponse(data, context);
|
|
1065
1065
|
const response = {
|
|
1066
1066
|
$metadata: deserializeMetadata(output),
|
|
1067
1067
|
...contents,
|
|
1068
1068
|
};
|
|
1069
1069
|
return Promise.resolve(response);
|
|
1070
1070
|
};
|
|
1071
|
-
exports.
|
|
1072
|
-
const
|
|
1071
|
+
exports.de_DescribeDestinationsCommand = de_DescribeDestinationsCommand;
|
|
1072
|
+
const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
1073
1073
|
const parsedOutput = {
|
|
1074
1074
|
...output,
|
|
1075
1075
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1078,10 +1078,10 @@ const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, co
|
|
|
1078
1078
|
switch (errorCode) {
|
|
1079
1079
|
case "InvalidParameterException":
|
|
1080
1080
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1081
|
-
throw await
|
|
1081
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1082
1082
|
case "ServiceUnavailableException":
|
|
1083
1083
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1084
|
-
throw await
|
|
1084
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1085
1085
|
default:
|
|
1086
1086
|
const parsedBody = parsedOutput.body;
|
|
1087
1087
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1092,21 +1092,21 @@ const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, co
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
-
const
|
|
1095
|
+
const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1096
1096
|
if (output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
1097
|
+
return de_DescribeExportTasksCommandError(output, context);
|
|
1098
1098
|
}
|
|
1099
1099
|
const data = await parseBody(output.body, context);
|
|
1100
1100
|
let contents = {};
|
|
1101
|
-
contents =
|
|
1101
|
+
contents = de_DescribeExportTasksResponse(data, context);
|
|
1102
1102
|
const response = {
|
|
1103
1103
|
$metadata: deserializeMetadata(output),
|
|
1104
1104
|
...contents,
|
|
1105
1105
|
};
|
|
1106
1106
|
return Promise.resolve(response);
|
|
1107
1107
|
};
|
|
1108
|
-
exports.
|
|
1109
|
-
const
|
|
1108
|
+
exports.de_DescribeExportTasksCommand = de_DescribeExportTasksCommand;
|
|
1109
|
+
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
1110
1110
|
const parsedOutput = {
|
|
1111
1111
|
...output,
|
|
1112
1112
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1115,10 +1115,10 @@ const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, con
|
|
|
1115
1115
|
switch (errorCode) {
|
|
1116
1116
|
case "InvalidParameterException":
|
|
1117
1117
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1119
1119
|
case "ServiceUnavailableException":
|
|
1120
1120
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1121
|
-
throw await
|
|
1121
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1122
1122
|
default:
|
|
1123
1123
|
const parsedBody = parsedOutput.body;
|
|
1124
1124
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1129,21 +1129,21 @@ const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, con
|
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
const
|
|
1132
|
+
const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
1133
1133
|
if (output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
1134
|
+
return de_DescribeLogGroupsCommandError(output, context);
|
|
1135
1135
|
}
|
|
1136
1136
|
const data = await parseBody(output.body, context);
|
|
1137
1137
|
let contents = {};
|
|
1138
|
-
contents =
|
|
1138
|
+
contents = de_DescribeLogGroupsResponse(data, context);
|
|
1139
1139
|
const response = {
|
|
1140
1140
|
$metadata: deserializeMetadata(output),
|
|
1141
1141
|
...contents,
|
|
1142
1142
|
};
|
|
1143
1143
|
return Promise.resolve(response);
|
|
1144
1144
|
};
|
|
1145
|
-
exports.
|
|
1146
|
-
const
|
|
1145
|
+
exports.de_DescribeLogGroupsCommand = de_DescribeLogGroupsCommand;
|
|
1146
|
+
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
1147
1147
|
const parsedOutput = {
|
|
1148
1148
|
...output,
|
|
1149
1149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1152,10 +1152,10 @@ const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, conte
|
|
|
1152
1152
|
switch (errorCode) {
|
|
1153
1153
|
case "InvalidParameterException":
|
|
1154
1154
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1155
|
-
throw await
|
|
1155
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1156
1156
|
case "ServiceUnavailableException":
|
|
1157
1157
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1158
|
-
throw await
|
|
1158
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1159
1159
|
default:
|
|
1160
1160
|
const parsedBody = parsedOutput.body;
|
|
1161
1161
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1166,21 +1166,21 @@ const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, conte
|
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
|
-
const
|
|
1169
|
+
const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
1170
1170
|
if (output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
1171
|
+
return de_DescribeLogStreamsCommandError(output, context);
|
|
1172
1172
|
}
|
|
1173
1173
|
const data = await parseBody(output.body, context);
|
|
1174
1174
|
let contents = {};
|
|
1175
|
-
contents =
|
|
1175
|
+
contents = de_DescribeLogStreamsResponse(data, context);
|
|
1176
1176
|
const response = {
|
|
1177
1177
|
$metadata: deserializeMetadata(output),
|
|
1178
1178
|
...contents,
|
|
1179
1179
|
};
|
|
1180
1180
|
return Promise.resolve(response);
|
|
1181
1181
|
};
|
|
1182
|
-
exports.
|
|
1183
|
-
const
|
|
1182
|
+
exports.de_DescribeLogStreamsCommand = de_DescribeLogStreamsCommand;
|
|
1183
|
+
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
1184
1184
|
const parsedOutput = {
|
|
1185
1185
|
...output,
|
|
1186
1186
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1189,13 +1189,13 @@ const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, cont
|
|
|
1189
1189
|
switch (errorCode) {
|
|
1190
1190
|
case "InvalidParameterException":
|
|
1191
1191
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1192
|
-
throw await
|
|
1192
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1193
1193
|
case "ResourceNotFoundException":
|
|
1194
1194
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1195
|
-
throw await
|
|
1195
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
1196
|
case "ServiceUnavailableException":
|
|
1197
1197
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1198
|
-
throw await
|
|
1198
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1199
1199
|
default:
|
|
1200
1200
|
const parsedBody = parsedOutput.body;
|
|
1201
1201
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1206,21 +1206,21 @@ const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, cont
|
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
-
const
|
|
1209
|
+
const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
1210
1210
|
if (output.statusCode >= 300) {
|
|
1211
|
-
return
|
|
1211
|
+
return de_DescribeMetricFiltersCommandError(output, context);
|
|
1212
1212
|
}
|
|
1213
1213
|
const data = await parseBody(output.body, context);
|
|
1214
1214
|
let contents = {};
|
|
1215
|
-
contents =
|
|
1215
|
+
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
1216
1216
|
const response = {
|
|
1217
1217
|
$metadata: deserializeMetadata(output),
|
|
1218
1218
|
...contents,
|
|
1219
1219
|
};
|
|
1220
1220
|
return Promise.resolve(response);
|
|
1221
1221
|
};
|
|
1222
|
-
exports.
|
|
1223
|
-
const
|
|
1222
|
+
exports.de_DescribeMetricFiltersCommand = de_DescribeMetricFiltersCommand;
|
|
1223
|
+
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1224
1224
|
const parsedOutput = {
|
|
1225
1225
|
...output,
|
|
1226
1226
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1229,13 +1229,13 @@ const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, c
|
|
|
1229
1229
|
switch (errorCode) {
|
|
1230
1230
|
case "InvalidParameterException":
|
|
1231
1231
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1232
|
-
throw await
|
|
1232
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1233
1233
|
case "ResourceNotFoundException":
|
|
1234
1234
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1235
|
-
throw await
|
|
1235
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1236
1236
|
case "ServiceUnavailableException":
|
|
1237
1237
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1238
|
-
throw await
|
|
1238
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1239
1239
|
default:
|
|
1240
1240
|
const parsedBody = parsedOutput.body;
|
|
1241
1241
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1246,21 +1246,21 @@ const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, c
|
|
|
1246
1246
|
});
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
const
|
|
1249
|
+
const de_DescribeQueriesCommand = async (output, context) => {
|
|
1250
1250
|
if (output.statusCode >= 300) {
|
|
1251
|
-
return
|
|
1251
|
+
return de_DescribeQueriesCommandError(output, context);
|
|
1252
1252
|
}
|
|
1253
1253
|
const data = await parseBody(output.body, context);
|
|
1254
1254
|
let contents = {};
|
|
1255
|
-
contents =
|
|
1255
|
+
contents = de_DescribeQueriesResponse(data, context);
|
|
1256
1256
|
const response = {
|
|
1257
1257
|
$metadata: deserializeMetadata(output),
|
|
1258
1258
|
...contents,
|
|
1259
1259
|
};
|
|
1260
1260
|
return Promise.resolve(response);
|
|
1261
1261
|
};
|
|
1262
|
-
exports.
|
|
1263
|
-
const
|
|
1262
|
+
exports.de_DescribeQueriesCommand = de_DescribeQueriesCommand;
|
|
1263
|
+
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
1264
1264
|
const parsedOutput = {
|
|
1265
1265
|
...output,
|
|
1266
1266
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1269,13 +1269,13 @@ const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context
|
|
|
1269
1269
|
switch (errorCode) {
|
|
1270
1270
|
case "InvalidParameterException":
|
|
1271
1271
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1272
|
-
throw await
|
|
1272
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1273
1273
|
case "ResourceNotFoundException":
|
|
1274
1274
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1275
|
-
throw await
|
|
1275
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1276
1276
|
case "ServiceUnavailableException":
|
|
1277
1277
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1278
|
-
throw await
|
|
1278
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1279
1279
|
default:
|
|
1280
1280
|
const parsedBody = parsedOutput.body;
|
|
1281
1281
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1286,21 +1286,21 @@ const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context
|
|
|
1286
1286
|
});
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
const
|
|
1289
|
+
const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1290
1290
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
1291
|
+
return de_DescribeQueryDefinitionsCommandError(output, context);
|
|
1292
1292
|
}
|
|
1293
1293
|
const data = await parseBody(output.body, context);
|
|
1294
1294
|
let contents = {};
|
|
1295
|
-
contents =
|
|
1295
|
+
contents = de_DescribeQueryDefinitionsResponse(data, context);
|
|
1296
1296
|
const response = {
|
|
1297
1297
|
$metadata: deserializeMetadata(output),
|
|
1298
1298
|
...contents,
|
|
1299
1299
|
};
|
|
1300
1300
|
return Promise.resolve(response);
|
|
1301
1301
|
};
|
|
1302
|
-
exports.
|
|
1303
|
-
const
|
|
1302
|
+
exports.de_DescribeQueryDefinitionsCommand = de_DescribeQueryDefinitionsCommand;
|
|
1303
|
+
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1304
1304
|
const parsedOutput = {
|
|
1305
1305
|
...output,
|
|
1306
1306
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1309,10 +1309,10 @@ const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output
|
|
|
1309
1309
|
switch (errorCode) {
|
|
1310
1310
|
case "InvalidParameterException":
|
|
1311
1311
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1312
|
-
throw await
|
|
1312
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1313
1313
|
case "ServiceUnavailableException":
|
|
1314
1314
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1315
|
-
throw await
|
|
1315
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1316
1316
|
default:
|
|
1317
1317
|
const parsedBody = parsedOutput.body;
|
|
1318
1318
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1323,21 +1323,21 @@ const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output
|
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
1325
|
};
|
|
1326
|
-
const
|
|
1326
|
+
const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1327
1327
|
if (output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
1328
|
+
return de_DescribeResourcePoliciesCommandError(output, context);
|
|
1329
1329
|
}
|
|
1330
1330
|
const data = await parseBody(output.body, context);
|
|
1331
1331
|
let contents = {};
|
|
1332
|
-
contents =
|
|
1332
|
+
contents = de_DescribeResourcePoliciesResponse(data, context);
|
|
1333
1333
|
const response = {
|
|
1334
1334
|
$metadata: deserializeMetadata(output),
|
|
1335
1335
|
...contents,
|
|
1336
1336
|
};
|
|
1337
1337
|
return Promise.resolve(response);
|
|
1338
1338
|
};
|
|
1339
|
-
exports.
|
|
1340
|
-
const
|
|
1339
|
+
exports.de_DescribeResourcePoliciesCommand = de_DescribeResourcePoliciesCommand;
|
|
1340
|
+
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1341
1341
|
const parsedOutput = {
|
|
1342
1342
|
...output,
|
|
1343
1343
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1346,10 +1346,10 @@ const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output
|
|
|
1346
1346
|
switch (errorCode) {
|
|
1347
1347
|
case "InvalidParameterException":
|
|
1348
1348
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1349
|
-
throw await
|
|
1349
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1350
1350
|
case "ServiceUnavailableException":
|
|
1351
1351
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1352
|
-
throw await
|
|
1352
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1353
1353
|
default:
|
|
1354
1354
|
const parsedBody = parsedOutput.body;
|
|
1355
1355
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1360,21 +1360,21 @@ const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output
|
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
|
-
const
|
|
1363
|
+
const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1364
1364
|
if (output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
1365
|
+
return de_DescribeSubscriptionFiltersCommandError(output, context);
|
|
1366
1366
|
}
|
|
1367
1367
|
const data = await parseBody(output.body, context);
|
|
1368
1368
|
let contents = {};
|
|
1369
|
-
contents =
|
|
1369
|
+
contents = de_DescribeSubscriptionFiltersResponse(data, context);
|
|
1370
1370
|
const response = {
|
|
1371
1371
|
$metadata: deserializeMetadata(output),
|
|
1372
1372
|
...contents,
|
|
1373
1373
|
};
|
|
1374
1374
|
return Promise.resolve(response);
|
|
1375
1375
|
};
|
|
1376
|
-
exports.
|
|
1377
|
-
const
|
|
1376
|
+
exports.de_DescribeSubscriptionFiltersCommand = de_DescribeSubscriptionFiltersCommand;
|
|
1377
|
+
const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1378
1378
|
const parsedOutput = {
|
|
1379
1379
|
...output,
|
|
1380
1380
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1383,13 +1383,13 @@ const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (out
|
|
|
1383
1383
|
switch (errorCode) {
|
|
1384
1384
|
case "InvalidParameterException":
|
|
1385
1385
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1386
|
-
throw await
|
|
1386
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1387
1387
|
case "ResourceNotFoundException":
|
|
1388
1388
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1389
|
-
throw await
|
|
1389
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1390
1390
|
case "ServiceUnavailableException":
|
|
1391
1391
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1392
|
-
throw await
|
|
1392
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1393
1393
|
default:
|
|
1394
1394
|
const parsedBody = parsedOutput.body;
|
|
1395
1395
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1400,9 +1400,9 @@ const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (out
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
1402
|
};
|
|
1403
|
-
const
|
|
1403
|
+
const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
1404
1404
|
if (output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
1405
|
+
return de_DisassociateKmsKeyCommandError(output, context);
|
|
1406
1406
|
}
|
|
1407
1407
|
await collectBody(output.body, context);
|
|
1408
1408
|
const response = {
|
|
@@ -1410,8 +1410,8 @@ const deserializeAws_json1_1DisassociateKmsKeyCommand = async (output, context)
|
|
|
1410
1410
|
};
|
|
1411
1411
|
return Promise.resolve(response);
|
|
1412
1412
|
};
|
|
1413
|
-
exports.
|
|
1414
|
-
const
|
|
1413
|
+
exports.de_DisassociateKmsKeyCommand = de_DisassociateKmsKeyCommand;
|
|
1414
|
+
const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1415
1415
|
const parsedOutput = {
|
|
1416
1416
|
...output,
|
|
1417
1417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1420,16 +1420,16 @@ const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, cont
|
|
|
1420
1420
|
switch (errorCode) {
|
|
1421
1421
|
case "InvalidParameterException":
|
|
1422
1422
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1423
|
-
throw await
|
|
1423
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1424
1424
|
case "OperationAbortedException":
|
|
1425
1425
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1426
|
-
throw await
|
|
1426
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1427
1427
|
case "ResourceNotFoundException":
|
|
1428
1428
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1429
|
-
throw await
|
|
1429
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
1430
|
case "ServiceUnavailableException":
|
|
1431
1431
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1432
|
-
throw await
|
|
1432
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1433
1433
|
default:
|
|
1434
1434
|
const parsedBody = parsedOutput.body;
|
|
1435
1435
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1440,21 +1440,21 @@ const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, cont
|
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
|
-
const
|
|
1443
|
+
const de_FilterLogEventsCommand = async (output, context) => {
|
|
1444
1444
|
if (output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
1445
|
+
return de_FilterLogEventsCommandError(output, context);
|
|
1446
1446
|
}
|
|
1447
1447
|
const data = await parseBody(output.body, context);
|
|
1448
1448
|
let contents = {};
|
|
1449
|
-
contents =
|
|
1449
|
+
contents = de_FilterLogEventsResponse(data, context);
|
|
1450
1450
|
const response = {
|
|
1451
1451
|
$metadata: deserializeMetadata(output),
|
|
1452
1452
|
...contents,
|
|
1453
1453
|
};
|
|
1454
1454
|
return Promise.resolve(response);
|
|
1455
1455
|
};
|
|
1456
|
-
exports.
|
|
1457
|
-
const
|
|
1456
|
+
exports.de_FilterLogEventsCommand = de_FilterLogEventsCommand;
|
|
1457
|
+
const de_FilterLogEventsCommandError = async (output, context) => {
|
|
1458
1458
|
const parsedOutput = {
|
|
1459
1459
|
...output,
|
|
1460
1460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1463,13 +1463,13 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1463
1463
|
switch (errorCode) {
|
|
1464
1464
|
case "InvalidParameterException":
|
|
1465
1465
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1466
|
-
throw await
|
|
1466
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1467
1467
|
case "ResourceNotFoundException":
|
|
1468
1468
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1469
|
-
throw await
|
|
1469
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
1470
|
case "ServiceUnavailableException":
|
|
1471
1471
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1472
|
-
throw await
|
|
1472
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1473
1473
|
default:
|
|
1474
1474
|
const parsedBody = parsedOutput.body;
|
|
1475
1475
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1480,21 +1480,21 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1480
1480
|
});
|
|
1481
1481
|
}
|
|
1482
1482
|
};
|
|
1483
|
-
const
|
|
1483
|
+
const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
1484
1484
|
if (output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
1485
|
+
return de_GetDataProtectionPolicyCommandError(output, context);
|
|
1486
1486
|
}
|
|
1487
1487
|
const data = await parseBody(output.body, context);
|
|
1488
1488
|
let contents = {};
|
|
1489
|
-
contents =
|
|
1489
|
+
contents = de_GetDataProtectionPolicyResponse(data, context);
|
|
1490
1490
|
const response = {
|
|
1491
1491
|
$metadata: deserializeMetadata(output),
|
|
1492
1492
|
...contents,
|
|
1493
1493
|
};
|
|
1494
1494
|
return Promise.resolve(response);
|
|
1495
1495
|
};
|
|
1496
|
-
exports.
|
|
1497
|
-
const
|
|
1496
|
+
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
1497
|
+
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1498
1498
|
const parsedOutput = {
|
|
1499
1499
|
...output,
|
|
1500
1500
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1503,16 +1503,16 @@ const deserializeAws_json1_1GetDataProtectionPolicyCommandError = async (output,
|
|
|
1503
1503
|
switch (errorCode) {
|
|
1504
1504
|
case "InvalidParameterException":
|
|
1505
1505
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1506
|
-
throw await
|
|
1506
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1507
1507
|
case "OperationAbortedException":
|
|
1508
1508
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1509
|
-
throw await
|
|
1509
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1510
1510
|
case "ResourceNotFoundException":
|
|
1511
1511
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1512
|
-
throw await
|
|
1512
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1513
1513
|
case "ServiceUnavailableException":
|
|
1514
1514
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1515
|
-
throw await
|
|
1515
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1516
1516
|
default:
|
|
1517
1517
|
const parsedBody = parsedOutput.body;
|
|
1518
1518
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1523,21 +1523,21 @@ const deserializeAws_json1_1GetDataProtectionPolicyCommandError = async (output,
|
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
1525
|
};
|
|
1526
|
-
const
|
|
1526
|
+
const de_GetLogEventsCommand = async (output, context) => {
|
|
1527
1527
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
1528
|
+
return de_GetLogEventsCommandError(output, context);
|
|
1529
1529
|
}
|
|
1530
1530
|
const data = await parseBody(output.body, context);
|
|
1531
1531
|
let contents = {};
|
|
1532
|
-
contents =
|
|
1532
|
+
contents = de_GetLogEventsResponse(data, context);
|
|
1533
1533
|
const response = {
|
|
1534
1534
|
$metadata: deserializeMetadata(output),
|
|
1535
1535
|
...contents,
|
|
1536
1536
|
};
|
|
1537
1537
|
return Promise.resolve(response);
|
|
1538
1538
|
};
|
|
1539
|
-
exports.
|
|
1540
|
-
const
|
|
1539
|
+
exports.de_GetLogEventsCommand = de_GetLogEventsCommand;
|
|
1540
|
+
const de_GetLogEventsCommandError = async (output, context) => {
|
|
1541
1541
|
const parsedOutput = {
|
|
1542
1542
|
...output,
|
|
1543
1543
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1546,13 +1546,13 @@ const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) =
|
|
|
1546
1546
|
switch (errorCode) {
|
|
1547
1547
|
case "InvalidParameterException":
|
|
1548
1548
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1549
|
-
throw await
|
|
1549
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1550
1550
|
case "ResourceNotFoundException":
|
|
1551
1551
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1552
|
-
throw await
|
|
1552
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1553
1553
|
case "ServiceUnavailableException":
|
|
1554
1554
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1555
|
-
throw await
|
|
1555
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1556
1556
|
default:
|
|
1557
1557
|
const parsedBody = parsedOutput.body;
|
|
1558
1558
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1563,21 +1563,21 @@ const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) =
|
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
1565
|
};
|
|
1566
|
-
const
|
|
1566
|
+
const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
1567
1567
|
if (output.statusCode >= 300) {
|
|
1568
|
-
return
|
|
1568
|
+
return de_GetLogGroupFieldsCommandError(output, context);
|
|
1569
1569
|
}
|
|
1570
1570
|
const data = await parseBody(output.body, context);
|
|
1571
1571
|
let contents = {};
|
|
1572
|
-
contents =
|
|
1572
|
+
contents = de_GetLogGroupFieldsResponse(data, context);
|
|
1573
1573
|
const response = {
|
|
1574
1574
|
$metadata: deserializeMetadata(output),
|
|
1575
1575
|
...contents,
|
|
1576
1576
|
};
|
|
1577
1577
|
return Promise.resolve(response);
|
|
1578
1578
|
};
|
|
1579
|
-
exports.
|
|
1580
|
-
const
|
|
1579
|
+
exports.de_GetLogGroupFieldsCommand = de_GetLogGroupFieldsCommand;
|
|
1580
|
+
const de_GetLogGroupFieldsCommandError = async (output, context) => {
|
|
1581
1581
|
const parsedOutput = {
|
|
1582
1582
|
...output,
|
|
1583
1583
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1586,16 +1586,16 @@ const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, conte
|
|
|
1586
1586
|
switch (errorCode) {
|
|
1587
1587
|
case "InvalidParameterException":
|
|
1588
1588
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1589
|
-
throw await
|
|
1589
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1590
1590
|
case "LimitExceededException":
|
|
1591
1591
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1592
|
-
throw await
|
|
1592
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1593
1593
|
case "ResourceNotFoundException":
|
|
1594
1594
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1595
|
-
throw await
|
|
1595
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1596
1596
|
case "ServiceUnavailableException":
|
|
1597
1597
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1598
|
-
throw await
|
|
1598
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1599
1599
|
default:
|
|
1600
1600
|
const parsedBody = parsedOutput.body;
|
|
1601
1601
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1606,21 +1606,21 @@ const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, conte
|
|
|
1606
1606
|
});
|
|
1607
1607
|
}
|
|
1608
1608
|
};
|
|
1609
|
-
const
|
|
1609
|
+
const de_GetLogRecordCommand = async (output, context) => {
|
|
1610
1610
|
if (output.statusCode >= 300) {
|
|
1611
|
-
return
|
|
1611
|
+
return de_GetLogRecordCommandError(output, context);
|
|
1612
1612
|
}
|
|
1613
1613
|
const data = await parseBody(output.body, context);
|
|
1614
1614
|
let contents = {};
|
|
1615
|
-
contents =
|
|
1615
|
+
contents = de_GetLogRecordResponse(data, context);
|
|
1616
1616
|
const response = {
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
1618
1618
|
...contents,
|
|
1619
1619
|
};
|
|
1620
1620
|
return Promise.resolve(response);
|
|
1621
1621
|
};
|
|
1622
|
-
exports.
|
|
1623
|
-
const
|
|
1622
|
+
exports.de_GetLogRecordCommand = de_GetLogRecordCommand;
|
|
1623
|
+
const de_GetLogRecordCommandError = async (output, context) => {
|
|
1624
1624
|
const parsedOutput = {
|
|
1625
1625
|
...output,
|
|
1626
1626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1629,16 +1629,16 @@ const deserializeAws_json1_1GetLogRecordCommandError = async (output, context) =
|
|
|
1629
1629
|
switch (errorCode) {
|
|
1630
1630
|
case "InvalidParameterException":
|
|
1631
1631
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1632
|
-
throw await
|
|
1632
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1633
1633
|
case "LimitExceededException":
|
|
1634
1634
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1635
|
-
throw await
|
|
1635
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1636
1636
|
case "ResourceNotFoundException":
|
|
1637
1637
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1638
|
-
throw await
|
|
1638
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
1639
|
case "ServiceUnavailableException":
|
|
1640
1640
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1641
|
-
throw await
|
|
1641
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1642
1642
|
default:
|
|
1643
1643
|
const parsedBody = parsedOutput.body;
|
|
1644
1644
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1649,21 +1649,21 @@ const deserializeAws_json1_1GetLogRecordCommandError = async (output, context) =
|
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
1651
|
};
|
|
1652
|
-
const
|
|
1652
|
+
const de_GetQueryResultsCommand = async (output, context) => {
|
|
1653
1653
|
if (output.statusCode >= 300) {
|
|
1654
|
-
return
|
|
1654
|
+
return de_GetQueryResultsCommandError(output, context);
|
|
1655
1655
|
}
|
|
1656
1656
|
const data = await parseBody(output.body, context);
|
|
1657
1657
|
let contents = {};
|
|
1658
|
-
contents =
|
|
1658
|
+
contents = de_GetQueryResultsResponse(data, context);
|
|
1659
1659
|
const response = {
|
|
1660
1660
|
$metadata: deserializeMetadata(output),
|
|
1661
1661
|
...contents,
|
|
1662
1662
|
};
|
|
1663
1663
|
return Promise.resolve(response);
|
|
1664
1664
|
};
|
|
1665
|
-
exports.
|
|
1666
|
-
const
|
|
1665
|
+
exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
|
|
1666
|
+
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
1667
1667
|
const parsedOutput = {
|
|
1668
1668
|
...output,
|
|
1669
1669
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1672,13 +1672,13 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1672
1672
|
switch (errorCode) {
|
|
1673
1673
|
case "InvalidParameterException":
|
|
1674
1674
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1675
|
-
throw await
|
|
1675
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1676
1676
|
case "ResourceNotFoundException":
|
|
1677
1677
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1678
|
-
throw await
|
|
1678
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1679
1679
|
case "ServiceUnavailableException":
|
|
1680
1680
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1681
|
-
throw await
|
|
1681
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1682
1682
|
default:
|
|
1683
1683
|
const parsedBody = parsedOutput.body;
|
|
1684
1684
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1689,21 +1689,21 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
|
-
const
|
|
1692
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1693
1693
|
if (output.statusCode >= 300) {
|
|
1694
|
-
return
|
|
1694
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1695
1695
|
}
|
|
1696
1696
|
const data = await parseBody(output.body, context);
|
|
1697
1697
|
let contents = {};
|
|
1698
|
-
contents =
|
|
1698
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1699
1699
|
const response = {
|
|
1700
1700
|
$metadata: deserializeMetadata(output),
|
|
1701
1701
|
...contents,
|
|
1702
1702
|
};
|
|
1703
1703
|
return Promise.resolve(response);
|
|
1704
1704
|
};
|
|
1705
|
-
exports.
|
|
1706
|
-
const
|
|
1705
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1706
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1707
1707
|
const parsedOutput = {
|
|
1708
1708
|
...output,
|
|
1709
1709
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1712,13 +1712,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1712
1712
|
switch (errorCode) {
|
|
1713
1713
|
case "InvalidParameterException":
|
|
1714
1714
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1715
|
-
throw await
|
|
1715
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1716
1716
|
case "ResourceNotFoundException":
|
|
1717
1717
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1718
|
-
throw await
|
|
1718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1719
1719
|
case "ServiceUnavailableException":
|
|
1720
1720
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1721
|
-
throw await
|
|
1721
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1722
1722
|
default:
|
|
1723
1723
|
const parsedBody = parsedOutput.body;
|
|
1724
1724
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1729,21 +1729,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
1731
|
};
|
|
1732
|
-
const
|
|
1732
|
+
const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
1733
1733
|
if (output.statusCode >= 300) {
|
|
1734
|
-
return
|
|
1734
|
+
return de_ListTagsLogGroupCommandError(output, context);
|
|
1735
1735
|
}
|
|
1736
1736
|
const data = await parseBody(output.body, context);
|
|
1737
1737
|
let contents = {};
|
|
1738
|
-
contents =
|
|
1738
|
+
contents = de_ListTagsLogGroupResponse(data, context);
|
|
1739
1739
|
const response = {
|
|
1740
1740
|
$metadata: deserializeMetadata(output),
|
|
1741
1741
|
...contents,
|
|
1742
1742
|
};
|
|
1743
1743
|
return Promise.resolve(response);
|
|
1744
1744
|
};
|
|
1745
|
-
exports.
|
|
1746
|
-
const
|
|
1745
|
+
exports.de_ListTagsLogGroupCommand = de_ListTagsLogGroupCommand;
|
|
1746
|
+
const de_ListTagsLogGroupCommandError = async (output, context) => {
|
|
1747
1747
|
const parsedOutput = {
|
|
1748
1748
|
...output,
|
|
1749
1749
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1752,10 +1752,10 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
1752
1752
|
switch (errorCode) {
|
|
1753
1753
|
case "ResourceNotFoundException":
|
|
1754
1754
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1755
|
-
throw await
|
|
1755
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1756
1756
|
case "ServiceUnavailableException":
|
|
1757
1757
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1758
|
-
throw await
|
|
1758
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1759
1759
|
default:
|
|
1760
1760
|
const parsedBody = parsedOutput.body;
|
|
1761
1761
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1766,21 +1766,21 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
1768
|
};
|
|
1769
|
-
const
|
|
1769
|
+
const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
1770
1770
|
if (output.statusCode >= 300) {
|
|
1771
|
-
return
|
|
1771
|
+
return de_PutDataProtectionPolicyCommandError(output, context);
|
|
1772
1772
|
}
|
|
1773
1773
|
const data = await parseBody(output.body, context);
|
|
1774
1774
|
let contents = {};
|
|
1775
|
-
contents =
|
|
1775
|
+
contents = de_PutDataProtectionPolicyResponse(data, context);
|
|
1776
1776
|
const response = {
|
|
1777
1777
|
$metadata: deserializeMetadata(output),
|
|
1778
1778
|
...contents,
|
|
1779
1779
|
};
|
|
1780
1780
|
return Promise.resolve(response);
|
|
1781
1781
|
};
|
|
1782
|
-
exports.
|
|
1783
|
-
const
|
|
1782
|
+
exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
|
|
1783
|
+
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1784
1784
|
const parsedOutput = {
|
|
1785
1785
|
...output,
|
|
1786
1786
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1789,19 +1789,19 @@ const deserializeAws_json1_1PutDataProtectionPolicyCommandError = async (output,
|
|
|
1789
1789
|
switch (errorCode) {
|
|
1790
1790
|
case "InvalidParameterException":
|
|
1791
1791
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1792
|
-
throw await
|
|
1792
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1793
1793
|
case "LimitExceededException":
|
|
1794
1794
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1795
|
-
throw await
|
|
1795
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1796
1796
|
case "OperationAbortedException":
|
|
1797
1797
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1798
|
-
throw await
|
|
1798
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1799
1799
|
case "ResourceNotFoundException":
|
|
1800
1800
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1801
|
-
throw await
|
|
1801
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1802
1802
|
case "ServiceUnavailableException":
|
|
1803
1803
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1804
|
-
throw await
|
|
1804
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1805
1805
|
default:
|
|
1806
1806
|
const parsedBody = parsedOutput.body;
|
|
1807
1807
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1812,21 +1812,21 @@ const deserializeAws_json1_1PutDataProtectionPolicyCommandError = async (output,
|
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
1814
|
};
|
|
1815
|
-
const
|
|
1815
|
+
const de_PutDestinationCommand = async (output, context) => {
|
|
1816
1816
|
if (output.statusCode >= 300) {
|
|
1817
|
-
return
|
|
1817
|
+
return de_PutDestinationCommandError(output, context);
|
|
1818
1818
|
}
|
|
1819
1819
|
const data = await parseBody(output.body, context);
|
|
1820
1820
|
let contents = {};
|
|
1821
|
-
contents =
|
|
1821
|
+
contents = de_PutDestinationResponse(data, context);
|
|
1822
1822
|
const response = {
|
|
1823
1823
|
$metadata: deserializeMetadata(output),
|
|
1824
1824
|
...contents,
|
|
1825
1825
|
};
|
|
1826
1826
|
return Promise.resolve(response);
|
|
1827
1827
|
};
|
|
1828
|
-
exports.
|
|
1829
|
-
const
|
|
1828
|
+
exports.de_PutDestinationCommand = de_PutDestinationCommand;
|
|
1829
|
+
const de_PutDestinationCommandError = async (output, context) => {
|
|
1830
1830
|
const parsedOutput = {
|
|
1831
1831
|
...output,
|
|
1832
1832
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1835,13 +1835,13 @@ const deserializeAws_json1_1PutDestinationCommandError = async (output, context)
|
|
|
1835
1835
|
switch (errorCode) {
|
|
1836
1836
|
case "InvalidParameterException":
|
|
1837
1837
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1838
|
-
throw await
|
|
1838
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1839
1839
|
case "OperationAbortedException":
|
|
1840
1840
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1841
|
-
throw await
|
|
1841
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1842
1842
|
case "ServiceUnavailableException":
|
|
1843
1843
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1844
|
-
throw await
|
|
1844
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1845
1845
|
default:
|
|
1846
1846
|
const parsedBody = parsedOutput.body;
|
|
1847
1847
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1852,9 +1852,9 @@ const deserializeAws_json1_1PutDestinationCommandError = async (output, context)
|
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
const
|
|
1855
|
+
const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
1856
1856
|
if (output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1857
|
+
return de_PutDestinationPolicyCommandError(output, context);
|
|
1858
1858
|
}
|
|
1859
1859
|
await collectBody(output.body, context);
|
|
1860
1860
|
const response = {
|
|
@@ -1862,8 +1862,8 @@ const deserializeAws_json1_1PutDestinationPolicyCommand = async (output, context
|
|
|
1862
1862
|
};
|
|
1863
1863
|
return Promise.resolve(response);
|
|
1864
1864
|
};
|
|
1865
|
-
exports.
|
|
1866
|
-
const
|
|
1865
|
+
exports.de_PutDestinationPolicyCommand = de_PutDestinationPolicyCommand;
|
|
1866
|
+
const de_PutDestinationPolicyCommandError = async (output, context) => {
|
|
1867
1867
|
const parsedOutput = {
|
|
1868
1868
|
...output,
|
|
1869
1869
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1872,13 +1872,13 @@ const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, co
|
|
|
1872
1872
|
switch (errorCode) {
|
|
1873
1873
|
case "InvalidParameterException":
|
|
1874
1874
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1875
|
-
throw await
|
|
1875
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1876
1876
|
case "OperationAbortedException":
|
|
1877
1877
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1878
|
-
throw await
|
|
1878
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1879
1879
|
case "ServiceUnavailableException":
|
|
1880
1880
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1881
|
-
throw await
|
|
1881
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1882
1882
|
default:
|
|
1883
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
1884
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1889,21 +1889,21 @@ const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, co
|
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
|
-
const
|
|
1892
|
+
const de_PutLogEventsCommand = async (output, context) => {
|
|
1893
1893
|
if (output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1894
|
+
return de_PutLogEventsCommandError(output, context);
|
|
1895
1895
|
}
|
|
1896
1896
|
const data = await parseBody(output.body, context);
|
|
1897
1897
|
let contents = {};
|
|
1898
|
-
contents =
|
|
1898
|
+
contents = de_PutLogEventsResponse(data, context);
|
|
1899
1899
|
const response = {
|
|
1900
1900
|
$metadata: deserializeMetadata(output),
|
|
1901
1901
|
...contents,
|
|
1902
1902
|
};
|
|
1903
1903
|
return Promise.resolve(response);
|
|
1904
1904
|
};
|
|
1905
|
-
exports.
|
|
1906
|
-
const
|
|
1905
|
+
exports.de_PutLogEventsCommand = de_PutLogEventsCommand;
|
|
1906
|
+
const de_PutLogEventsCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
1909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1912,22 +1912,22 @@ const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) =
|
|
|
1912
1912
|
switch (errorCode) {
|
|
1913
1913
|
case "DataAlreadyAcceptedException":
|
|
1914
1914
|
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
1915
|
-
throw await
|
|
1915
|
+
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1916
1916
|
case "InvalidParameterException":
|
|
1917
1917
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1918
|
-
throw await
|
|
1918
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1919
1919
|
case "InvalidSequenceTokenException":
|
|
1920
1920
|
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
1921
|
-
throw await
|
|
1921
|
+
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
1922
1922
|
case "ResourceNotFoundException":
|
|
1923
1923
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1924
|
-
throw await
|
|
1924
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1925
1925
|
case "ServiceUnavailableException":
|
|
1926
1926
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1927
|
-
throw await
|
|
1927
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1928
1928
|
case "UnrecognizedClientException":
|
|
1929
1929
|
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
1930
|
-
throw await
|
|
1930
|
+
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
1931
1931
|
default:
|
|
1932
1932
|
const parsedBody = parsedOutput.body;
|
|
1933
1933
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1938,9 +1938,9 @@ const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) =
|
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
|
-
const
|
|
1941
|
+
const de_PutMetricFilterCommand = async (output, context) => {
|
|
1942
1942
|
if (output.statusCode >= 300) {
|
|
1943
|
-
return
|
|
1943
|
+
return de_PutMetricFilterCommandError(output, context);
|
|
1944
1944
|
}
|
|
1945
1945
|
await collectBody(output.body, context);
|
|
1946
1946
|
const response = {
|
|
@@ -1948,8 +1948,8 @@ const deserializeAws_json1_1PutMetricFilterCommand = async (output, context) =>
|
|
|
1948
1948
|
};
|
|
1949
1949
|
return Promise.resolve(response);
|
|
1950
1950
|
};
|
|
1951
|
-
exports.
|
|
1952
|
-
const
|
|
1951
|
+
exports.de_PutMetricFilterCommand = de_PutMetricFilterCommand;
|
|
1952
|
+
const de_PutMetricFilterCommandError = async (output, context) => {
|
|
1953
1953
|
const parsedOutput = {
|
|
1954
1954
|
...output,
|
|
1955
1955
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1958,19 +1958,19 @@ const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context
|
|
|
1958
1958
|
switch (errorCode) {
|
|
1959
1959
|
case "InvalidParameterException":
|
|
1960
1960
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1961
|
-
throw await
|
|
1961
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1962
1962
|
case "LimitExceededException":
|
|
1963
1963
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1964
|
-
throw await
|
|
1964
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1965
1965
|
case "OperationAbortedException":
|
|
1966
1966
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1967
|
-
throw await
|
|
1967
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1968
1968
|
case "ResourceNotFoundException":
|
|
1969
1969
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1970
|
-
throw await
|
|
1970
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1971
1971
|
case "ServiceUnavailableException":
|
|
1972
1972
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1973
|
-
throw await
|
|
1973
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1974
1974
|
default:
|
|
1975
1975
|
const parsedBody = parsedOutput.body;
|
|
1976
1976
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1981,21 +1981,21 @@ const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context
|
|
|
1981
1981
|
});
|
|
1982
1982
|
}
|
|
1983
1983
|
};
|
|
1984
|
-
const
|
|
1984
|
+
const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
1985
1985
|
if (output.statusCode >= 300) {
|
|
1986
|
-
return
|
|
1986
|
+
return de_PutQueryDefinitionCommandError(output, context);
|
|
1987
1987
|
}
|
|
1988
1988
|
const data = await parseBody(output.body, context);
|
|
1989
1989
|
let contents = {};
|
|
1990
|
-
contents =
|
|
1990
|
+
contents = de_PutQueryDefinitionResponse(data, context);
|
|
1991
1991
|
const response = {
|
|
1992
1992
|
$metadata: deserializeMetadata(output),
|
|
1993
1993
|
...contents,
|
|
1994
1994
|
};
|
|
1995
1995
|
return Promise.resolve(response);
|
|
1996
1996
|
};
|
|
1997
|
-
exports.
|
|
1998
|
-
const
|
|
1997
|
+
exports.de_PutQueryDefinitionCommand = de_PutQueryDefinitionCommand;
|
|
1998
|
+
const de_PutQueryDefinitionCommandError = async (output, context) => {
|
|
1999
1999
|
const parsedOutput = {
|
|
2000
2000
|
...output,
|
|
2001
2001
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2004,16 +2004,16 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
|
|
|
2004
2004
|
switch (errorCode) {
|
|
2005
2005
|
case "InvalidParameterException":
|
|
2006
2006
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2007
|
-
throw await
|
|
2007
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2008
2008
|
case "LimitExceededException":
|
|
2009
2009
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2010
|
-
throw await
|
|
2010
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2011
2011
|
case "ResourceNotFoundException":
|
|
2012
2012
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2013
|
-
throw await
|
|
2013
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2014
2014
|
case "ServiceUnavailableException":
|
|
2015
2015
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2016
|
-
throw await
|
|
2016
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2017
2017
|
default:
|
|
2018
2018
|
const parsedBody = parsedOutput.body;
|
|
2019
2019
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2024,21 +2024,21 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
|
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
};
|
|
2027
|
-
const
|
|
2027
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2028
2028
|
if (output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
2029
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
2030
2030
|
}
|
|
2031
2031
|
const data = await parseBody(output.body, context);
|
|
2032
2032
|
let contents = {};
|
|
2033
|
-
contents =
|
|
2033
|
+
contents = de_PutResourcePolicyResponse(data, context);
|
|
2034
2034
|
const response = {
|
|
2035
2035
|
$metadata: deserializeMetadata(output),
|
|
2036
2036
|
...contents,
|
|
2037
2037
|
};
|
|
2038
2038
|
return Promise.resolve(response);
|
|
2039
2039
|
};
|
|
2040
|
-
exports.
|
|
2041
|
-
const
|
|
2040
|
+
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
2041
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
2042
2042
|
const parsedOutput = {
|
|
2043
2043
|
...output,
|
|
2044
2044
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2047,13 +2047,13 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
2047
2047
|
switch (errorCode) {
|
|
2048
2048
|
case "InvalidParameterException":
|
|
2049
2049
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2050
|
-
throw await
|
|
2050
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2051
2051
|
case "LimitExceededException":
|
|
2052
2052
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2053
|
-
throw await
|
|
2053
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2054
2054
|
case "ServiceUnavailableException":
|
|
2055
2055
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2056
|
-
throw await
|
|
2056
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2057
2057
|
default:
|
|
2058
2058
|
const parsedBody = parsedOutput.body;
|
|
2059
2059
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2064,9 +2064,9 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
2066
|
};
|
|
2067
|
-
const
|
|
2067
|
+
const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
2068
2068
|
if (output.statusCode >= 300) {
|
|
2069
|
-
return
|
|
2069
|
+
return de_PutRetentionPolicyCommandError(output, context);
|
|
2070
2070
|
}
|
|
2071
2071
|
await collectBody(output.body, context);
|
|
2072
2072
|
const response = {
|
|
@@ -2074,8 +2074,8 @@ const deserializeAws_json1_1PutRetentionPolicyCommand = async (output, context)
|
|
|
2074
2074
|
};
|
|
2075
2075
|
return Promise.resolve(response);
|
|
2076
2076
|
};
|
|
2077
|
-
exports.
|
|
2078
|
-
const
|
|
2077
|
+
exports.de_PutRetentionPolicyCommand = de_PutRetentionPolicyCommand;
|
|
2078
|
+
const de_PutRetentionPolicyCommandError = async (output, context) => {
|
|
2079
2079
|
const parsedOutput = {
|
|
2080
2080
|
...output,
|
|
2081
2081
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2084,16 +2084,16 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
2084
2084
|
switch (errorCode) {
|
|
2085
2085
|
case "InvalidParameterException":
|
|
2086
2086
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2087
|
-
throw await
|
|
2087
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2088
2088
|
case "OperationAbortedException":
|
|
2089
2089
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2090
|
-
throw await
|
|
2090
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2091
2091
|
case "ResourceNotFoundException":
|
|
2092
2092
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2093
|
-
throw await
|
|
2093
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2094
2094
|
case "ServiceUnavailableException":
|
|
2095
2095
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2096
|
-
throw await
|
|
2096
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2097
2097
|
default:
|
|
2098
2098
|
const parsedBody = parsedOutput.body;
|
|
2099
2099
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2104,9 +2104,9 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
2104
2104
|
});
|
|
2105
2105
|
}
|
|
2106
2106
|
};
|
|
2107
|
-
const
|
|
2107
|
+
const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
2108
2108
|
if (output.statusCode >= 300) {
|
|
2109
|
-
return
|
|
2109
|
+
return de_PutSubscriptionFilterCommandError(output, context);
|
|
2110
2110
|
}
|
|
2111
2111
|
await collectBody(output.body, context);
|
|
2112
2112
|
const response = {
|
|
@@ -2114,8 +2114,8 @@ const deserializeAws_json1_1PutSubscriptionFilterCommand = async (output, contex
|
|
|
2114
2114
|
};
|
|
2115
2115
|
return Promise.resolve(response);
|
|
2116
2116
|
};
|
|
2117
|
-
exports.
|
|
2118
|
-
const
|
|
2117
|
+
exports.de_PutSubscriptionFilterCommand = de_PutSubscriptionFilterCommand;
|
|
2118
|
+
const de_PutSubscriptionFilterCommandError = async (output, context) => {
|
|
2119
2119
|
const parsedOutput = {
|
|
2120
2120
|
...output,
|
|
2121
2121
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2124,19 +2124,19 @@ const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, c
|
|
|
2124
2124
|
switch (errorCode) {
|
|
2125
2125
|
case "InvalidParameterException":
|
|
2126
2126
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2127
|
-
throw await
|
|
2127
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2128
2128
|
case "LimitExceededException":
|
|
2129
2129
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2130
|
-
throw await
|
|
2130
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2131
2131
|
case "OperationAbortedException":
|
|
2132
2132
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2133
|
-
throw await
|
|
2133
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2134
2134
|
case "ResourceNotFoundException":
|
|
2135
2135
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2136
|
-
throw await
|
|
2136
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2137
2137
|
case "ServiceUnavailableException":
|
|
2138
2138
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2139
|
-
throw await
|
|
2139
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2140
2140
|
default:
|
|
2141
2141
|
const parsedBody = parsedOutput.body;
|
|
2142
2142
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2147,21 +2147,21 @@ const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, c
|
|
|
2147
2147
|
});
|
|
2148
2148
|
}
|
|
2149
2149
|
};
|
|
2150
|
-
const
|
|
2150
|
+
const de_StartQueryCommand = async (output, context) => {
|
|
2151
2151
|
if (output.statusCode >= 300) {
|
|
2152
|
-
return
|
|
2152
|
+
return de_StartQueryCommandError(output, context);
|
|
2153
2153
|
}
|
|
2154
2154
|
const data = await parseBody(output.body, context);
|
|
2155
2155
|
let contents = {};
|
|
2156
|
-
contents =
|
|
2156
|
+
contents = de_StartQueryResponse(data, context);
|
|
2157
2157
|
const response = {
|
|
2158
2158
|
$metadata: deserializeMetadata(output),
|
|
2159
2159
|
...contents,
|
|
2160
2160
|
};
|
|
2161
2161
|
return Promise.resolve(response);
|
|
2162
2162
|
};
|
|
2163
|
-
exports.
|
|
2164
|
-
const
|
|
2163
|
+
exports.de_StartQueryCommand = de_StartQueryCommand;
|
|
2164
|
+
const de_StartQueryCommandError = async (output, context) => {
|
|
2165
2165
|
const parsedOutput = {
|
|
2166
2166
|
...output,
|
|
2167
2167
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2170,19 +2170,19 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2170
2170
|
switch (errorCode) {
|
|
2171
2171
|
case "InvalidParameterException":
|
|
2172
2172
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2173
|
-
throw await
|
|
2173
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2174
2174
|
case "LimitExceededException":
|
|
2175
2175
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2176
|
-
throw await
|
|
2176
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2177
2177
|
case "MalformedQueryException":
|
|
2178
2178
|
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
2179
|
-
throw await
|
|
2179
|
+
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
2180
2180
|
case "ResourceNotFoundException":
|
|
2181
2181
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2182
|
-
throw await
|
|
2182
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2183
2183
|
case "ServiceUnavailableException":
|
|
2184
2184
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2185
|
-
throw await
|
|
2185
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2186
2186
|
default:
|
|
2187
2187
|
const parsedBody = parsedOutput.body;
|
|
2188
2188
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2193,21 +2193,21 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2193
2193
|
});
|
|
2194
2194
|
}
|
|
2195
2195
|
};
|
|
2196
|
-
const
|
|
2196
|
+
const de_StopQueryCommand = async (output, context) => {
|
|
2197
2197
|
if (output.statusCode >= 300) {
|
|
2198
|
-
return
|
|
2198
|
+
return de_StopQueryCommandError(output, context);
|
|
2199
2199
|
}
|
|
2200
2200
|
const data = await parseBody(output.body, context);
|
|
2201
2201
|
let contents = {};
|
|
2202
|
-
contents =
|
|
2202
|
+
contents = de_StopQueryResponse(data, context);
|
|
2203
2203
|
const response = {
|
|
2204
2204
|
$metadata: deserializeMetadata(output),
|
|
2205
2205
|
...contents,
|
|
2206
2206
|
};
|
|
2207
2207
|
return Promise.resolve(response);
|
|
2208
2208
|
};
|
|
2209
|
-
exports.
|
|
2210
|
-
const
|
|
2209
|
+
exports.de_StopQueryCommand = de_StopQueryCommand;
|
|
2210
|
+
const de_StopQueryCommandError = async (output, context) => {
|
|
2211
2211
|
const parsedOutput = {
|
|
2212
2212
|
...output,
|
|
2213
2213
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2216,13 +2216,13 @@ const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
|
2216
2216
|
switch (errorCode) {
|
|
2217
2217
|
case "InvalidParameterException":
|
|
2218
2218
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2219
|
-
throw await
|
|
2219
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2220
2220
|
case "ResourceNotFoundException":
|
|
2221
2221
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2222
|
-
throw await
|
|
2222
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2223
2223
|
case "ServiceUnavailableException":
|
|
2224
2224
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2225
|
-
throw await
|
|
2225
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2226
2226
|
default:
|
|
2227
2227
|
const parsedBody = parsedOutput.body;
|
|
2228
2228
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2233,9 +2233,9 @@ const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
2235
|
};
|
|
2236
|
-
const
|
|
2236
|
+
const de_TagLogGroupCommand = async (output, context) => {
|
|
2237
2237
|
if (output.statusCode >= 300) {
|
|
2238
|
-
return
|
|
2238
|
+
return de_TagLogGroupCommandError(output, context);
|
|
2239
2239
|
}
|
|
2240
2240
|
await collectBody(output.body, context);
|
|
2241
2241
|
const response = {
|
|
@@ -2243,8 +2243,8 @@ const deserializeAws_json1_1TagLogGroupCommand = async (output, context) => {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
return Promise.resolve(response);
|
|
2245
2245
|
};
|
|
2246
|
-
exports.
|
|
2247
|
-
const
|
|
2246
|
+
exports.de_TagLogGroupCommand = de_TagLogGroupCommand;
|
|
2247
|
+
const de_TagLogGroupCommandError = async (output, context) => {
|
|
2248
2248
|
const parsedOutput = {
|
|
2249
2249
|
...output,
|
|
2250
2250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2253,10 +2253,10 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
2253
2253
|
switch (errorCode) {
|
|
2254
2254
|
case "InvalidParameterException":
|
|
2255
2255
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2256
|
-
throw await
|
|
2256
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2257
2257
|
case "ResourceNotFoundException":
|
|
2258
2258
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2259
|
-
throw await
|
|
2259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2260
2260
|
default:
|
|
2261
2261
|
const parsedBody = parsedOutput.body;
|
|
2262
2262
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2267,9 +2267,9 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
2267
2267
|
});
|
|
2268
2268
|
}
|
|
2269
2269
|
};
|
|
2270
|
-
const
|
|
2270
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2271
2271
|
if (output.statusCode >= 300) {
|
|
2272
|
-
return
|
|
2272
|
+
return de_TagResourceCommandError(output, context);
|
|
2273
2273
|
}
|
|
2274
2274
|
await collectBody(output.body, context);
|
|
2275
2275
|
const response = {
|
|
@@ -2277,8 +2277,8 @@ const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
|
2277
2277
|
};
|
|
2278
2278
|
return Promise.resolve(response);
|
|
2279
2279
|
};
|
|
2280
|
-
exports.
|
|
2281
|
-
const
|
|
2280
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2281
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2282
2282
|
const parsedOutput = {
|
|
2283
2283
|
...output,
|
|
2284
2284
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2287,16 +2287,16 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2287
2287
|
switch (errorCode) {
|
|
2288
2288
|
case "InvalidParameterException":
|
|
2289
2289
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2290
|
-
throw await
|
|
2290
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2291
2291
|
case "ResourceNotFoundException":
|
|
2292
2292
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2293
|
-
throw await
|
|
2293
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2294
2294
|
case "ServiceUnavailableException":
|
|
2295
2295
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2296
|
-
throw await
|
|
2296
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2297
2297
|
case "TooManyTagsException":
|
|
2298
2298
|
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
2299
|
-
throw await
|
|
2299
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2300
2300
|
default:
|
|
2301
2301
|
const parsedBody = parsedOutput.body;
|
|
2302
2302
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2307,21 +2307,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2307
2307
|
});
|
|
2308
2308
|
}
|
|
2309
2309
|
};
|
|
2310
|
-
const
|
|
2310
|
+
const de_TestMetricFilterCommand = async (output, context) => {
|
|
2311
2311
|
if (output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
2312
|
+
return de_TestMetricFilterCommandError(output, context);
|
|
2313
2313
|
}
|
|
2314
2314
|
const data = await parseBody(output.body, context);
|
|
2315
2315
|
let contents = {};
|
|
2316
|
-
contents =
|
|
2316
|
+
contents = de_TestMetricFilterResponse(data, context);
|
|
2317
2317
|
const response = {
|
|
2318
2318
|
$metadata: deserializeMetadata(output),
|
|
2319
2319
|
...contents,
|
|
2320
2320
|
};
|
|
2321
2321
|
return Promise.resolve(response);
|
|
2322
2322
|
};
|
|
2323
|
-
exports.
|
|
2324
|
-
const
|
|
2323
|
+
exports.de_TestMetricFilterCommand = de_TestMetricFilterCommand;
|
|
2324
|
+
const de_TestMetricFilterCommandError = async (output, context) => {
|
|
2325
2325
|
const parsedOutput = {
|
|
2326
2326
|
...output,
|
|
2327
2327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2330,10 +2330,10 @@ const deserializeAws_json1_1TestMetricFilterCommandError = async (output, contex
|
|
|
2330
2330
|
switch (errorCode) {
|
|
2331
2331
|
case "InvalidParameterException":
|
|
2332
2332
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2333
|
-
throw await
|
|
2333
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2334
2334
|
case "ServiceUnavailableException":
|
|
2335
2335
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2336
|
-
throw await
|
|
2336
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2337
2337
|
default:
|
|
2338
2338
|
const parsedBody = parsedOutput.body;
|
|
2339
2339
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2344,9 +2344,9 @@ const deserializeAws_json1_1TestMetricFilterCommandError = async (output, contex
|
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
2346
2346
|
};
|
|
2347
|
-
const
|
|
2347
|
+
const de_UntagLogGroupCommand = async (output, context) => {
|
|
2348
2348
|
if (output.statusCode >= 300) {
|
|
2349
|
-
return
|
|
2349
|
+
return de_UntagLogGroupCommandError(output, context);
|
|
2350
2350
|
}
|
|
2351
2351
|
await collectBody(output.body, context);
|
|
2352
2352
|
const response = {
|
|
@@ -2354,8 +2354,8 @@ const deserializeAws_json1_1UntagLogGroupCommand = async (output, context) => {
|
|
|
2354
2354
|
};
|
|
2355
2355
|
return Promise.resolve(response);
|
|
2356
2356
|
};
|
|
2357
|
-
exports.
|
|
2358
|
-
const
|
|
2357
|
+
exports.de_UntagLogGroupCommand = de_UntagLogGroupCommand;
|
|
2358
|
+
const de_UntagLogGroupCommandError = async (output, context) => {
|
|
2359
2359
|
const parsedOutput = {
|
|
2360
2360
|
...output,
|
|
2361
2361
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2364,7 +2364,7 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
|
|
|
2364
2364
|
switch (errorCode) {
|
|
2365
2365
|
case "ResourceNotFoundException":
|
|
2366
2366
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2367
|
-
throw await
|
|
2367
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
2368
|
default:
|
|
2369
2369
|
const parsedBody = parsedOutput.body;
|
|
2370
2370
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2375,9 +2375,9 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
|
|
|
2375
2375
|
});
|
|
2376
2376
|
}
|
|
2377
2377
|
};
|
|
2378
|
-
const
|
|
2378
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2379
2379
|
if (output.statusCode >= 300) {
|
|
2380
|
-
return
|
|
2380
|
+
return de_UntagResourceCommandError(output, context);
|
|
2381
2381
|
}
|
|
2382
2382
|
await collectBody(output.body, context);
|
|
2383
2383
|
const response = {
|
|
@@ -2385,8 +2385,8 @@ const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
|
2385
2385
|
};
|
|
2386
2386
|
return Promise.resolve(response);
|
|
2387
2387
|
};
|
|
2388
|
-
exports.
|
|
2389
|
-
const
|
|
2388
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2389
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2390
2390
|
const parsedOutput = {
|
|
2391
2391
|
...output,
|
|
2392
2392
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2395,13 +2395,13 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2395
2395
|
switch (errorCode) {
|
|
2396
2396
|
case "InvalidParameterException":
|
|
2397
2397
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2398
|
-
throw await
|
|
2398
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2399
2399
|
case "ResourceNotFoundException":
|
|
2400
2400
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2401
|
-
throw await
|
|
2401
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2402
2402
|
case "ServiceUnavailableException":
|
|
2403
2403
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2404
|
-
throw await
|
|
2404
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2405
2405
|
default:
|
|
2406
2406
|
const parsedBody = parsedOutput.body;
|
|
2407
2407
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2412,133 +2412,133 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2412
2412
|
});
|
|
2413
2413
|
}
|
|
2414
2414
|
};
|
|
2415
|
-
const
|
|
2415
|
+
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
2416
2416
|
const body = parsedOutput.body;
|
|
2417
|
-
const deserialized =
|
|
2417
|
+
const deserialized = de_DataAlreadyAcceptedException(body, context);
|
|
2418
2418
|
const exception = new models_0_1.DataAlreadyAcceptedException({
|
|
2419
2419
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2420
2420
|
...deserialized,
|
|
2421
2421
|
});
|
|
2422
2422
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2423
2423
|
};
|
|
2424
|
-
const
|
|
2424
|
+
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
2425
2425
|
const body = parsedOutput.body;
|
|
2426
|
-
const deserialized =
|
|
2426
|
+
const deserialized = de_InvalidOperationException(body, context);
|
|
2427
2427
|
const exception = new models_0_1.InvalidOperationException({
|
|
2428
2428
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2429
2429
|
...deserialized,
|
|
2430
2430
|
});
|
|
2431
2431
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2432
2432
|
};
|
|
2433
|
-
const
|
|
2433
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2434
2434
|
const body = parsedOutput.body;
|
|
2435
|
-
const deserialized =
|
|
2435
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
2436
2436
|
const exception = new models_0_1.InvalidParameterException({
|
|
2437
2437
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2438
2438
|
...deserialized,
|
|
2439
2439
|
});
|
|
2440
2440
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2441
2441
|
};
|
|
2442
|
-
const
|
|
2442
|
+
const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
|
|
2443
2443
|
const body = parsedOutput.body;
|
|
2444
|
-
const deserialized =
|
|
2444
|
+
const deserialized = de_InvalidSequenceTokenException(body, context);
|
|
2445
2445
|
const exception = new models_0_1.InvalidSequenceTokenException({
|
|
2446
2446
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2447
2447
|
...deserialized,
|
|
2448
2448
|
});
|
|
2449
2449
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2450
2450
|
};
|
|
2451
|
-
const
|
|
2451
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2452
2452
|
const body = parsedOutput.body;
|
|
2453
|
-
const deserialized =
|
|
2453
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
2454
2454
|
const exception = new models_0_1.LimitExceededException({
|
|
2455
2455
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2456
2456
|
...deserialized,
|
|
2457
2457
|
});
|
|
2458
2458
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2459
2459
|
};
|
|
2460
|
-
const
|
|
2460
|
+
const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
2461
2461
|
const body = parsedOutput.body;
|
|
2462
|
-
const deserialized =
|
|
2462
|
+
const deserialized = de_MalformedQueryException(body, context);
|
|
2463
2463
|
const exception = new models_0_1.MalformedQueryException({
|
|
2464
2464
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2465
2465
|
...deserialized,
|
|
2466
2466
|
});
|
|
2467
2467
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2468
2468
|
};
|
|
2469
|
-
const
|
|
2469
|
+
const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
|
|
2470
2470
|
const body = parsedOutput.body;
|
|
2471
|
-
const deserialized =
|
|
2471
|
+
const deserialized = de_OperationAbortedException(body, context);
|
|
2472
2472
|
const exception = new models_0_1.OperationAbortedException({
|
|
2473
2473
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2474
2474
|
...deserialized,
|
|
2475
2475
|
});
|
|
2476
2476
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2477
2477
|
};
|
|
2478
|
-
const
|
|
2478
|
+
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2479
2479
|
const body = parsedOutput.body;
|
|
2480
|
-
const deserialized =
|
|
2480
|
+
const deserialized = de_ResourceAlreadyExistsException(body, context);
|
|
2481
2481
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2482
2482
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2483
2483
|
...deserialized,
|
|
2484
2484
|
});
|
|
2485
2485
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2486
2486
|
};
|
|
2487
|
-
const
|
|
2487
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2488
2488
|
const body = parsedOutput.body;
|
|
2489
|
-
const deserialized =
|
|
2489
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
2490
2490
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2491
2491
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2492
2492
|
...deserialized,
|
|
2493
2493
|
});
|
|
2494
2494
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2495
2495
|
};
|
|
2496
|
-
const
|
|
2496
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2497
2497
|
const body = parsedOutput.body;
|
|
2498
|
-
const deserialized =
|
|
2498
|
+
const deserialized = de_ServiceUnavailableException(body, context);
|
|
2499
2499
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2500
2500
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2501
2501
|
...deserialized,
|
|
2502
2502
|
});
|
|
2503
2503
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2504
2504
|
};
|
|
2505
|
-
const
|
|
2505
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2506
2506
|
const body = parsedOutput.body;
|
|
2507
|
-
const deserialized =
|
|
2507
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
2508
2508
|
const exception = new models_0_1.TooManyTagsException({
|
|
2509
2509
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2510
2510
|
...deserialized,
|
|
2511
2511
|
});
|
|
2512
2512
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2513
2513
|
};
|
|
2514
|
-
const
|
|
2514
|
+
const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2515
2515
|
const body = parsedOutput.body;
|
|
2516
|
-
const deserialized =
|
|
2516
|
+
const deserialized = de_UnrecognizedClientException(body, context);
|
|
2517
2517
|
const exception = new models_0_1.UnrecognizedClientException({
|
|
2518
2518
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2519
2519
|
...deserialized,
|
|
2520
2520
|
});
|
|
2521
2521
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2522
2522
|
};
|
|
2523
|
-
const
|
|
2523
|
+
const se_AccountIds = (input, context) => {
|
|
2524
2524
|
return input
|
|
2525
2525
|
.filter((e) => e != null)
|
|
2526
2526
|
.map((entry) => {
|
|
2527
2527
|
return entry;
|
|
2528
2528
|
});
|
|
2529
2529
|
};
|
|
2530
|
-
const
|
|
2530
|
+
const se_AssociateKmsKeyRequest = (input, context) => {
|
|
2531
2531
|
return {
|
|
2532
2532
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2533
2533
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2534
2534
|
};
|
|
2535
2535
|
};
|
|
2536
|
-
const
|
|
2536
|
+
const se_CancelExportTaskRequest = (input, context) => {
|
|
2537
2537
|
return {
|
|
2538
2538
|
...(input.taskId != null && { taskId: input.taskId }),
|
|
2539
2539
|
};
|
|
2540
2540
|
};
|
|
2541
|
-
const
|
|
2541
|
+
const se_CreateExportTaskRequest = (input, context) => {
|
|
2542
2542
|
return {
|
|
2543
2543
|
...(input.destination != null && { destination: input.destination }),
|
|
2544
2544
|
...(input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix }),
|
|
@@ -2549,75 +2549,75 @@ const serializeAws_json1_1CreateExportTaskRequest = (input, context) => {
|
|
|
2549
2549
|
...(input.to != null && { to: input.to }),
|
|
2550
2550
|
};
|
|
2551
2551
|
};
|
|
2552
|
-
const
|
|
2552
|
+
const se_CreateLogGroupRequest = (input, context) => {
|
|
2553
2553
|
return {
|
|
2554
2554
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2555
2555
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2556
|
-
...(input.tags != null && { tags:
|
|
2556
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2557
2557
|
};
|
|
2558
2558
|
};
|
|
2559
|
-
const
|
|
2559
|
+
const se_CreateLogStreamRequest = (input, context) => {
|
|
2560
2560
|
return {
|
|
2561
2561
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2562
2562
|
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2563
2563
|
};
|
|
2564
2564
|
};
|
|
2565
|
-
const
|
|
2565
|
+
const se_DeleteDataProtectionPolicyRequest = (input, context) => {
|
|
2566
2566
|
return {
|
|
2567
2567
|
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2568
2568
|
};
|
|
2569
2569
|
};
|
|
2570
|
-
const
|
|
2570
|
+
const se_DeleteDestinationRequest = (input, context) => {
|
|
2571
2571
|
return {
|
|
2572
2572
|
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2573
2573
|
};
|
|
2574
2574
|
};
|
|
2575
|
-
const
|
|
2575
|
+
const se_DeleteLogGroupRequest = (input, context) => {
|
|
2576
2576
|
return {
|
|
2577
2577
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2578
2578
|
};
|
|
2579
2579
|
};
|
|
2580
|
-
const
|
|
2580
|
+
const se_DeleteLogStreamRequest = (input, context) => {
|
|
2581
2581
|
return {
|
|
2582
2582
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2583
2583
|
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2584
2584
|
};
|
|
2585
2585
|
};
|
|
2586
|
-
const
|
|
2586
|
+
const se_DeleteMetricFilterRequest = (input, context) => {
|
|
2587
2587
|
return {
|
|
2588
2588
|
...(input.filterName != null && { filterName: input.filterName }),
|
|
2589
2589
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2590
2590
|
};
|
|
2591
2591
|
};
|
|
2592
|
-
const
|
|
2592
|
+
const se_DeleteQueryDefinitionRequest = (input, context) => {
|
|
2593
2593
|
return {
|
|
2594
2594
|
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2595
2595
|
};
|
|
2596
2596
|
};
|
|
2597
|
-
const
|
|
2597
|
+
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
2598
2598
|
return {
|
|
2599
2599
|
...(input.policyName != null && { policyName: input.policyName }),
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
-
const
|
|
2602
|
+
const se_DeleteRetentionPolicyRequest = (input, context) => {
|
|
2603
2603
|
return {
|
|
2604
2604
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2605
2605
|
};
|
|
2606
2606
|
};
|
|
2607
|
-
const
|
|
2607
|
+
const se_DeleteSubscriptionFilterRequest = (input, context) => {
|
|
2608
2608
|
return {
|
|
2609
2609
|
...(input.filterName != null && { filterName: input.filterName }),
|
|
2610
2610
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2611
2611
|
};
|
|
2612
2612
|
};
|
|
2613
|
-
const
|
|
2613
|
+
const se_DescribeDestinationsRequest = (input, context) => {
|
|
2614
2614
|
return {
|
|
2615
2615
|
...(input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix }),
|
|
2616
2616
|
...(input.limit != null && { limit: input.limit }),
|
|
2617
2617
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2618
2618
|
};
|
|
2619
2619
|
};
|
|
2620
|
-
const
|
|
2620
|
+
const se_DescribeExportTasksRequest = (input, context) => {
|
|
2621
2621
|
return {
|
|
2622
2622
|
...(input.limit != null && { limit: input.limit }),
|
|
2623
2623
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -2625,11 +2625,9 @@ const serializeAws_json1_1DescribeExportTasksRequest = (input, context) => {
|
|
|
2625
2625
|
...(input.taskId != null && { taskId: input.taskId }),
|
|
2626
2626
|
};
|
|
2627
2627
|
};
|
|
2628
|
-
const
|
|
2628
|
+
const se_DescribeLogGroupsRequest = (input, context) => {
|
|
2629
2629
|
return {
|
|
2630
|
-
...(input.accountIdentifiers != null && {
|
|
2631
|
-
accountIdentifiers: serializeAws_json1_1AccountIds(input.accountIdentifiers, context),
|
|
2632
|
-
}),
|
|
2630
|
+
...(input.accountIdentifiers != null && { accountIdentifiers: se_AccountIds(input.accountIdentifiers, context) }),
|
|
2633
2631
|
...(input.includeLinkedAccounts != null && { includeLinkedAccounts: input.includeLinkedAccounts }),
|
|
2634
2632
|
...(input.limit != null && { limit: input.limit }),
|
|
2635
2633
|
...(input.logGroupNamePattern != null && { logGroupNamePattern: input.logGroupNamePattern }),
|
|
@@ -2637,7 +2635,7 @@ const serializeAws_json1_1DescribeLogGroupsRequest = (input, context) => {
|
|
|
2637
2635
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2638
2636
|
};
|
|
2639
2637
|
};
|
|
2640
|
-
const
|
|
2638
|
+
const se_DescribeLogStreamsRequest = (input, context) => {
|
|
2641
2639
|
return {
|
|
2642
2640
|
...(input.descending != null && { descending: input.descending }),
|
|
2643
2641
|
...(input.limit != null && { limit: input.limit }),
|
|
@@ -2648,7 +2646,7 @@ const serializeAws_json1_1DescribeLogStreamsRequest = (input, context) => {
|
|
|
2648
2646
|
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2649
2647
|
};
|
|
2650
2648
|
};
|
|
2651
|
-
const
|
|
2649
|
+
const se_DescribeMetricFiltersRequest = (input, context) => {
|
|
2652
2650
|
return {
|
|
2653
2651
|
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2654
2652
|
...(input.limit != null && { limit: input.limit }),
|
|
@@ -2658,7 +2656,7 @@ const serializeAws_json1_1DescribeMetricFiltersRequest = (input, context) => {
|
|
|
2658
2656
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2659
2657
|
};
|
|
2660
2658
|
};
|
|
2661
|
-
const
|
|
2659
|
+
const se_DescribeQueriesRequest = (input, context) => {
|
|
2662
2660
|
return {
|
|
2663
2661
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2664
2662
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -2666,20 +2664,20 @@ const serializeAws_json1_1DescribeQueriesRequest = (input, context) => {
|
|
|
2666
2664
|
...(input.status != null && { status: input.status }),
|
|
2667
2665
|
};
|
|
2668
2666
|
};
|
|
2669
|
-
const
|
|
2667
|
+
const se_DescribeQueryDefinitionsRequest = (input, context) => {
|
|
2670
2668
|
return {
|
|
2671
2669
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2672
2670
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2673
2671
|
...(input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2674
2672
|
};
|
|
2675
2673
|
};
|
|
2676
|
-
const
|
|
2674
|
+
const se_DescribeResourcePoliciesRequest = (input, context) => {
|
|
2677
2675
|
return {
|
|
2678
2676
|
...(input.limit != null && { limit: input.limit }),
|
|
2679
2677
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2680
2678
|
};
|
|
2681
2679
|
};
|
|
2682
|
-
const
|
|
2680
|
+
const se_DescribeSubscriptionFiltersRequest = (input, context) => {
|
|
2683
2681
|
return {
|
|
2684
2682
|
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2685
2683
|
...(input.limit != null && { limit: input.limit }),
|
|
@@ -2687,7 +2685,7 @@ const serializeAws_json1_1DescribeSubscriptionFiltersRequest = (input, context)
|
|
|
2687
2685
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2688
2686
|
};
|
|
2689
2687
|
};
|
|
2690
|
-
const
|
|
2688
|
+
const se_Dimensions = (input, context) => {
|
|
2691
2689
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2692
2690
|
if (value === null) {
|
|
2693
2691
|
return acc;
|
|
@@ -2696,12 +2694,12 @@ const serializeAws_json1_1Dimensions = (input, context) => {
|
|
|
2696
2694
|
return acc;
|
|
2697
2695
|
}, {});
|
|
2698
2696
|
};
|
|
2699
|
-
const
|
|
2697
|
+
const se_DisassociateKmsKeyRequest = (input, context) => {
|
|
2700
2698
|
return {
|
|
2701
2699
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2702
2700
|
};
|
|
2703
2701
|
};
|
|
2704
|
-
const
|
|
2702
|
+
const se_FilterLogEventsRequest = (input, context) => {
|
|
2705
2703
|
return {
|
|
2706
2704
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
2707
2705
|
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
@@ -2710,20 +2708,18 @@ const serializeAws_json1_1FilterLogEventsRequest = (input, context) => {
|
|
|
2710
2708
|
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2711
2709
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2712
2710
|
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2713
|
-
...(input.logStreamNames != null && {
|
|
2714
|
-
logStreamNames: serializeAws_json1_1InputLogStreamNames(input.logStreamNames, context),
|
|
2715
|
-
}),
|
|
2711
|
+
...(input.logStreamNames != null && { logStreamNames: se_InputLogStreamNames(input.logStreamNames, context) }),
|
|
2716
2712
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2717
2713
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
2718
2714
|
...(input.unmask != null && { unmask: input.unmask }),
|
|
2719
2715
|
};
|
|
2720
2716
|
};
|
|
2721
|
-
const
|
|
2717
|
+
const se_GetDataProtectionPolicyRequest = (input, context) => {
|
|
2722
2718
|
return {
|
|
2723
2719
|
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2724
2720
|
};
|
|
2725
2721
|
};
|
|
2726
|
-
const
|
|
2722
|
+
const se_GetLogEventsRequest = (input, context) => {
|
|
2727
2723
|
return {
|
|
2728
2724
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
2729
2725
|
...(input.limit != null && { limit: input.limit }),
|
|
@@ -2736,147 +2732,145 @@ const serializeAws_json1_1GetLogEventsRequest = (input, context) => {
|
|
|
2736
2732
|
...(input.unmask != null && { unmask: input.unmask }),
|
|
2737
2733
|
};
|
|
2738
2734
|
};
|
|
2739
|
-
const
|
|
2735
|
+
const se_GetLogGroupFieldsRequest = (input, context) => {
|
|
2740
2736
|
return {
|
|
2741
2737
|
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2742
2738
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2743
2739
|
...(input.time != null && { time: input.time }),
|
|
2744
2740
|
};
|
|
2745
2741
|
};
|
|
2746
|
-
const
|
|
2742
|
+
const se_GetLogRecordRequest = (input, context) => {
|
|
2747
2743
|
return {
|
|
2748
2744
|
...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
|
|
2749
2745
|
...(input.unmask != null && { unmask: input.unmask }),
|
|
2750
2746
|
};
|
|
2751
2747
|
};
|
|
2752
|
-
const
|
|
2748
|
+
const se_GetQueryResultsRequest = (input, context) => {
|
|
2753
2749
|
return {
|
|
2754
2750
|
...(input.queryId != null && { queryId: input.queryId }),
|
|
2755
2751
|
};
|
|
2756
2752
|
};
|
|
2757
|
-
const
|
|
2753
|
+
const se_InputLogEvent = (input, context) => {
|
|
2758
2754
|
return {
|
|
2759
2755
|
...(input.message != null && { message: input.message }),
|
|
2760
2756
|
...(input.timestamp != null && { timestamp: input.timestamp }),
|
|
2761
2757
|
};
|
|
2762
2758
|
};
|
|
2763
|
-
const
|
|
2759
|
+
const se_InputLogEvents = (input, context) => {
|
|
2764
2760
|
return input
|
|
2765
2761
|
.filter((e) => e != null)
|
|
2766
2762
|
.map((entry) => {
|
|
2767
|
-
return
|
|
2763
|
+
return se_InputLogEvent(entry, context);
|
|
2768
2764
|
});
|
|
2769
2765
|
};
|
|
2770
|
-
const
|
|
2766
|
+
const se_InputLogStreamNames = (input, context) => {
|
|
2771
2767
|
return input
|
|
2772
2768
|
.filter((e) => e != null)
|
|
2773
2769
|
.map((entry) => {
|
|
2774
2770
|
return entry;
|
|
2775
2771
|
});
|
|
2776
2772
|
};
|
|
2777
|
-
const
|
|
2773
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2778
2774
|
return {
|
|
2779
2775
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2780
2776
|
};
|
|
2781
2777
|
};
|
|
2782
|
-
const
|
|
2778
|
+
const se_ListTagsLogGroupRequest = (input, context) => {
|
|
2783
2779
|
return {
|
|
2784
2780
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2785
2781
|
};
|
|
2786
2782
|
};
|
|
2787
|
-
const
|
|
2783
|
+
const se_LogGroupIdentifiers = (input, context) => {
|
|
2788
2784
|
return input
|
|
2789
2785
|
.filter((e) => e != null)
|
|
2790
2786
|
.map((entry) => {
|
|
2791
2787
|
return entry;
|
|
2792
2788
|
});
|
|
2793
2789
|
};
|
|
2794
|
-
const
|
|
2790
|
+
const se_LogGroupNames = (input, context) => {
|
|
2795
2791
|
return input
|
|
2796
2792
|
.filter((e) => e != null)
|
|
2797
2793
|
.map((entry) => {
|
|
2798
2794
|
return entry;
|
|
2799
2795
|
});
|
|
2800
2796
|
};
|
|
2801
|
-
const
|
|
2797
|
+
const se_MetricTransformation = (input, context) => {
|
|
2802
2798
|
return {
|
|
2803
2799
|
...(input.defaultValue != null && { defaultValue: (0, smithy_client_1.serializeFloat)(input.defaultValue) }),
|
|
2804
|
-
...(input.dimensions != null && { dimensions:
|
|
2800
|
+
...(input.dimensions != null && { dimensions: se_Dimensions(input.dimensions, context) }),
|
|
2805
2801
|
...(input.metricName != null && { metricName: input.metricName }),
|
|
2806
2802
|
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2807
2803
|
...(input.metricValue != null && { metricValue: input.metricValue }),
|
|
2808
2804
|
...(input.unit != null && { unit: input.unit }),
|
|
2809
2805
|
};
|
|
2810
2806
|
};
|
|
2811
|
-
const
|
|
2807
|
+
const se_MetricTransformations = (input, context) => {
|
|
2812
2808
|
return input
|
|
2813
2809
|
.filter((e) => e != null)
|
|
2814
2810
|
.map((entry) => {
|
|
2815
|
-
return
|
|
2811
|
+
return se_MetricTransformation(entry, context);
|
|
2816
2812
|
});
|
|
2817
2813
|
};
|
|
2818
|
-
const
|
|
2814
|
+
const se_PutDataProtectionPolicyRequest = (input, context) => {
|
|
2819
2815
|
return {
|
|
2820
2816
|
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2821
2817
|
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2822
2818
|
};
|
|
2823
2819
|
};
|
|
2824
|
-
const
|
|
2820
|
+
const se_PutDestinationPolicyRequest = (input, context) => {
|
|
2825
2821
|
return {
|
|
2826
2822
|
...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
|
|
2827
2823
|
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2828
2824
|
...(input.forceUpdate != null && { forceUpdate: input.forceUpdate }),
|
|
2829
2825
|
};
|
|
2830
2826
|
};
|
|
2831
|
-
const
|
|
2827
|
+
const se_PutDestinationRequest = (input, context) => {
|
|
2832
2828
|
return {
|
|
2833
2829
|
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2834
2830
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2835
|
-
...(input.tags != null && { tags:
|
|
2831
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2836
2832
|
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2837
2833
|
};
|
|
2838
2834
|
};
|
|
2839
|
-
const
|
|
2835
|
+
const se_PutLogEventsRequest = (input, context) => {
|
|
2840
2836
|
return {
|
|
2841
|
-
...(input.logEvents != null && { logEvents:
|
|
2837
|
+
...(input.logEvents != null && { logEvents: se_InputLogEvents(input.logEvents, context) }),
|
|
2842
2838
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2843
2839
|
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2844
2840
|
...(input.sequenceToken != null && { sequenceToken: input.sequenceToken }),
|
|
2845
2841
|
};
|
|
2846
2842
|
};
|
|
2847
|
-
const
|
|
2843
|
+
const se_PutMetricFilterRequest = (input, context) => {
|
|
2848
2844
|
return {
|
|
2849
2845
|
...(input.filterName != null && { filterName: input.filterName }),
|
|
2850
2846
|
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2851
2847
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2852
2848
|
...(input.metricTransformations != null && {
|
|
2853
|
-
metricTransformations:
|
|
2849
|
+
metricTransformations: se_MetricTransformations(input.metricTransformations, context),
|
|
2854
2850
|
}),
|
|
2855
2851
|
};
|
|
2856
2852
|
};
|
|
2857
|
-
const
|
|
2853
|
+
const se_PutQueryDefinitionRequest = (input, context) => {
|
|
2858
2854
|
return {
|
|
2859
|
-
...(input.logGroupNames != null && {
|
|
2860
|
-
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2861
|
-
}),
|
|
2855
|
+
...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
|
|
2862
2856
|
...(input.name != null && { name: input.name }),
|
|
2863
2857
|
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2864
2858
|
...(input.queryString != null && { queryString: input.queryString }),
|
|
2865
2859
|
};
|
|
2866
2860
|
};
|
|
2867
|
-
const
|
|
2861
|
+
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2868
2862
|
return {
|
|
2869
2863
|
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2870
2864
|
...(input.policyName != null && { policyName: input.policyName }),
|
|
2871
2865
|
};
|
|
2872
2866
|
};
|
|
2873
|
-
const
|
|
2867
|
+
const se_PutRetentionPolicyRequest = (input, context) => {
|
|
2874
2868
|
return {
|
|
2875
2869
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2876
2870
|
...(input.retentionInDays != null && { retentionInDays: input.retentionInDays }),
|
|
2877
2871
|
};
|
|
2878
2872
|
};
|
|
2879
|
-
const
|
|
2873
|
+
const se_PutSubscriptionFilterRequest = (input, context) => {
|
|
2880
2874
|
return {
|
|
2881
2875
|
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
2882
2876
|
...(input.distribution != null && { distribution: input.distribution }),
|
|
@@ -2886,53 +2880,51 @@ const serializeAws_json1_1PutSubscriptionFilterRequest = (input, context) => {
|
|
|
2886
2880
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2887
2881
|
};
|
|
2888
2882
|
};
|
|
2889
|
-
const
|
|
2883
|
+
const se_StartQueryRequest = (input, context) => {
|
|
2890
2884
|
return {
|
|
2891
2885
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
2892
2886
|
...(input.limit != null && { limit: input.limit }),
|
|
2893
2887
|
...(input.logGroupIdentifiers != null && {
|
|
2894
|
-
logGroupIdentifiers:
|
|
2888
|
+
logGroupIdentifiers: se_LogGroupIdentifiers(input.logGroupIdentifiers, context),
|
|
2895
2889
|
}),
|
|
2896
2890
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2897
|
-
...(input.logGroupNames != null && {
|
|
2898
|
-
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2899
|
-
}),
|
|
2891
|
+
...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
|
|
2900
2892
|
...(input.queryString != null && { queryString: input.queryString }),
|
|
2901
2893
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
2902
2894
|
};
|
|
2903
2895
|
};
|
|
2904
|
-
const
|
|
2896
|
+
const se_StopQueryRequest = (input, context) => {
|
|
2905
2897
|
return {
|
|
2906
2898
|
...(input.queryId != null && { queryId: input.queryId }),
|
|
2907
2899
|
};
|
|
2908
2900
|
};
|
|
2909
|
-
const
|
|
2901
|
+
const se_TagKeyList = (input, context) => {
|
|
2910
2902
|
return input
|
|
2911
2903
|
.filter((e) => e != null)
|
|
2912
2904
|
.map((entry) => {
|
|
2913
2905
|
return entry;
|
|
2914
2906
|
});
|
|
2915
2907
|
};
|
|
2916
|
-
const
|
|
2908
|
+
const se_TagList = (input, context) => {
|
|
2917
2909
|
return input
|
|
2918
2910
|
.filter((e) => e != null)
|
|
2919
2911
|
.map((entry) => {
|
|
2920
2912
|
return entry;
|
|
2921
2913
|
});
|
|
2922
2914
|
};
|
|
2923
|
-
const
|
|
2915
|
+
const se_TagLogGroupRequest = (input, context) => {
|
|
2924
2916
|
return {
|
|
2925
2917
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2926
|
-
...(input.tags != null && { tags:
|
|
2918
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2927
2919
|
};
|
|
2928
2920
|
};
|
|
2929
|
-
const
|
|
2921
|
+
const se_TagResourceRequest = (input, context) => {
|
|
2930
2922
|
return {
|
|
2931
2923
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2932
|
-
...(input.tags != null && { tags:
|
|
2924
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2933
2925
|
};
|
|
2934
2926
|
};
|
|
2935
|
-
const
|
|
2927
|
+
const se_Tags = (input, context) => {
|
|
2936
2928
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2937
2929
|
if (value === null) {
|
|
2938
2930
|
return acc;
|
|
@@ -2941,110 +2933,102 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
2941
2933
|
return acc;
|
|
2942
2934
|
}, {});
|
|
2943
2935
|
};
|
|
2944
|
-
const
|
|
2936
|
+
const se_TestEventMessages = (input, context) => {
|
|
2945
2937
|
return input
|
|
2946
2938
|
.filter((e) => e != null)
|
|
2947
2939
|
.map((entry) => {
|
|
2948
2940
|
return entry;
|
|
2949
2941
|
});
|
|
2950
2942
|
};
|
|
2951
|
-
const
|
|
2943
|
+
const se_TestMetricFilterRequest = (input, context) => {
|
|
2952
2944
|
return {
|
|
2953
2945
|
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2954
|
-
...(input.logEventMessages != null && {
|
|
2955
|
-
logEventMessages: serializeAws_json1_1TestEventMessages(input.logEventMessages, context),
|
|
2956
|
-
}),
|
|
2946
|
+
...(input.logEventMessages != null && { logEventMessages: se_TestEventMessages(input.logEventMessages, context) }),
|
|
2957
2947
|
};
|
|
2958
2948
|
};
|
|
2959
|
-
const
|
|
2949
|
+
const se_UntagLogGroupRequest = (input, context) => {
|
|
2960
2950
|
return {
|
|
2961
2951
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2962
|
-
...(input.tags != null && { tags:
|
|
2952
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2963
2953
|
};
|
|
2964
2954
|
};
|
|
2965
|
-
const
|
|
2955
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
2966
2956
|
return {
|
|
2967
2957
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2968
|
-
...(input.tagKeys != null && { tagKeys:
|
|
2958
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2969
2959
|
};
|
|
2970
2960
|
};
|
|
2971
|
-
const
|
|
2961
|
+
const de_CreateExportTaskResponse = (output, context) => {
|
|
2972
2962
|
return {
|
|
2973
2963
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
2974
2964
|
};
|
|
2975
2965
|
};
|
|
2976
|
-
const
|
|
2966
|
+
const de_DataAlreadyAcceptedException = (output, context) => {
|
|
2977
2967
|
return {
|
|
2978
2968
|
expectedSequenceToken: (0, smithy_client_1.expectString)(output.expectedSequenceToken),
|
|
2979
2969
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2980
2970
|
};
|
|
2981
2971
|
};
|
|
2982
|
-
const
|
|
2972
|
+
const de_DeleteQueryDefinitionResponse = (output, context) => {
|
|
2983
2973
|
return {
|
|
2984
2974
|
success: (0, smithy_client_1.expectBoolean)(output.success),
|
|
2985
2975
|
};
|
|
2986
2976
|
};
|
|
2987
|
-
const
|
|
2977
|
+
const de_DescribeDestinationsResponse = (output, context) => {
|
|
2988
2978
|
return {
|
|
2989
|
-
destinations: output.destinations != null ?
|
|
2979
|
+
destinations: output.destinations != null ? de_Destinations(output.destinations, context) : undefined,
|
|
2990
2980
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2991
2981
|
};
|
|
2992
2982
|
};
|
|
2993
|
-
const
|
|
2983
|
+
const de_DescribeExportTasksResponse = (output, context) => {
|
|
2994
2984
|
return {
|
|
2995
|
-
exportTasks: output.exportTasks != null ?
|
|
2985
|
+
exportTasks: output.exportTasks != null ? de_ExportTasks(output.exportTasks, context) : undefined,
|
|
2996
2986
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2997
2987
|
};
|
|
2998
2988
|
};
|
|
2999
|
-
const
|
|
2989
|
+
const de_DescribeLogGroupsResponse = (output, context) => {
|
|
3000
2990
|
return {
|
|
3001
|
-
logGroups: output.logGroups != null ?
|
|
2991
|
+
logGroups: output.logGroups != null ? de_LogGroups(output.logGroups, context) : undefined,
|
|
3002
2992
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3003
2993
|
};
|
|
3004
2994
|
};
|
|
3005
|
-
const
|
|
2995
|
+
const de_DescribeLogStreamsResponse = (output, context) => {
|
|
3006
2996
|
return {
|
|
3007
|
-
logStreams: output.logStreams != null ?
|
|
2997
|
+
logStreams: output.logStreams != null ? de_LogStreams(output.logStreams, context) : undefined,
|
|
3008
2998
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3009
2999
|
};
|
|
3010
3000
|
};
|
|
3011
|
-
const
|
|
3001
|
+
const de_DescribeMetricFiltersResponse = (output, context) => {
|
|
3012
3002
|
return {
|
|
3013
|
-
metricFilters: output.metricFilters != null ?
|
|
3003
|
+
metricFilters: output.metricFilters != null ? de_MetricFilters(output.metricFilters, context) : undefined,
|
|
3014
3004
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3015
3005
|
};
|
|
3016
3006
|
};
|
|
3017
|
-
const
|
|
3007
|
+
const de_DescribeQueriesResponse = (output, context) => {
|
|
3018
3008
|
return {
|
|
3019
3009
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3020
|
-
queries: output.queries != null ?
|
|
3010
|
+
queries: output.queries != null ? de_QueryInfoList(output.queries, context) : undefined,
|
|
3021
3011
|
};
|
|
3022
3012
|
};
|
|
3023
|
-
const
|
|
3013
|
+
const de_DescribeQueryDefinitionsResponse = (output, context) => {
|
|
3024
3014
|
return {
|
|
3025
3015
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3026
|
-
queryDefinitions: output.queryDefinitions != null
|
|
3027
|
-
? deserializeAws_json1_1QueryDefinitionList(output.queryDefinitions, context)
|
|
3028
|
-
: undefined,
|
|
3016
|
+
queryDefinitions: output.queryDefinitions != null ? de_QueryDefinitionList(output.queryDefinitions, context) : undefined,
|
|
3029
3017
|
};
|
|
3030
3018
|
};
|
|
3031
|
-
const
|
|
3019
|
+
const de_DescribeResourcePoliciesResponse = (output, context) => {
|
|
3032
3020
|
return {
|
|
3033
3021
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3034
|
-
resourcePolicies: output.resourcePolicies != null
|
|
3035
|
-
? deserializeAws_json1_1ResourcePolicies(output.resourcePolicies, context)
|
|
3036
|
-
: undefined,
|
|
3022
|
+
resourcePolicies: output.resourcePolicies != null ? de_ResourcePolicies(output.resourcePolicies, context) : undefined,
|
|
3037
3023
|
};
|
|
3038
3024
|
};
|
|
3039
|
-
const
|
|
3025
|
+
const de_DescribeSubscriptionFiltersResponse = (output, context) => {
|
|
3040
3026
|
return {
|
|
3041
3027
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3042
|
-
subscriptionFilters: output.subscriptionFilters != null
|
|
3043
|
-
? deserializeAws_json1_1SubscriptionFilters(output.subscriptionFilters, context)
|
|
3044
|
-
: undefined,
|
|
3028
|
+
subscriptionFilters: output.subscriptionFilters != null ? de_SubscriptionFilters(output.subscriptionFilters, context) : undefined,
|
|
3045
3029
|
};
|
|
3046
3030
|
};
|
|
3047
|
-
const
|
|
3031
|
+
const de_Destination = (output, context) => {
|
|
3048
3032
|
return {
|
|
3049
3033
|
accessPolicy: (0, smithy_client_1.expectString)(output.accessPolicy),
|
|
3050
3034
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -3054,18 +3038,18 @@ const deserializeAws_json1_1Destination = (output, context) => {
|
|
|
3054
3038
|
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
3055
3039
|
};
|
|
3056
3040
|
};
|
|
3057
|
-
const
|
|
3041
|
+
const de_Destinations = (output, context) => {
|
|
3058
3042
|
const retVal = (output || [])
|
|
3059
3043
|
.filter((e) => e != null)
|
|
3060
3044
|
.map((entry) => {
|
|
3061
3045
|
if (entry === null) {
|
|
3062
3046
|
return null;
|
|
3063
3047
|
}
|
|
3064
|
-
return
|
|
3048
|
+
return de_Destination(entry, context);
|
|
3065
3049
|
});
|
|
3066
3050
|
return retVal;
|
|
3067
3051
|
};
|
|
3068
|
-
const
|
|
3052
|
+
const de_Dimensions = (output, context) => {
|
|
3069
3053
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3070
3054
|
if (value === null) {
|
|
3071
3055
|
return acc;
|
|
@@ -3074,45 +3058,43 @@ const deserializeAws_json1_1Dimensions = (output, context) => {
|
|
|
3074
3058
|
return acc;
|
|
3075
3059
|
}, {});
|
|
3076
3060
|
};
|
|
3077
|
-
const
|
|
3061
|
+
const de_ExportTask = (output, context) => {
|
|
3078
3062
|
return {
|
|
3079
3063
|
destination: (0, smithy_client_1.expectString)(output.destination),
|
|
3080
3064
|
destinationPrefix: (0, smithy_client_1.expectString)(output.destinationPrefix),
|
|
3081
|
-
executionInfo: output.executionInfo != null
|
|
3082
|
-
? deserializeAws_json1_1ExportTaskExecutionInfo(output.executionInfo, context)
|
|
3083
|
-
: undefined,
|
|
3065
|
+
executionInfo: output.executionInfo != null ? de_ExportTaskExecutionInfo(output.executionInfo, context) : undefined,
|
|
3084
3066
|
from: (0, smithy_client_1.expectLong)(output.from),
|
|
3085
3067
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
3086
|
-
status: output.status != null ?
|
|
3068
|
+
status: output.status != null ? de_ExportTaskStatus(output.status, context) : undefined,
|
|
3087
3069
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
3088
3070
|
taskName: (0, smithy_client_1.expectString)(output.taskName),
|
|
3089
3071
|
to: (0, smithy_client_1.expectLong)(output.to),
|
|
3090
3072
|
};
|
|
3091
3073
|
};
|
|
3092
|
-
const
|
|
3074
|
+
const de_ExportTaskExecutionInfo = (output, context) => {
|
|
3093
3075
|
return {
|
|
3094
3076
|
completionTime: (0, smithy_client_1.expectLong)(output.completionTime),
|
|
3095
3077
|
creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
|
|
3096
3078
|
};
|
|
3097
3079
|
};
|
|
3098
|
-
const
|
|
3080
|
+
const de_ExportTasks = (output, context) => {
|
|
3099
3081
|
const retVal = (output || [])
|
|
3100
3082
|
.filter((e) => e != null)
|
|
3101
3083
|
.map((entry) => {
|
|
3102
3084
|
if (entry === null) {
|
|
3103
3085
|
return null;
|
|
3104
3086
|
}
|
|
3105
|
-
return
|
|
3087
|
+
return de_ExportTask(entry, context);
|
|
3106
3088
|
});
|
|
3107
3089
|
return retVal;
|
|
3108
3090
|
};
|
|
3109
|
-
const
|
|
3091
|
+
const de_ExportTaskStatus = (output, context) => {
|
|
3110
3092
|
return {
|
|
3111
3093
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
3112
3094
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3113
3095
|
};
|
|
3114
3096
|
};
|
|
3115
|
-
const
|
|
3097
|
+
const de_ExtractedValues = (output, context) => {
|
|
3116
3098
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3117
3099
|
if (value === null) {
|
|
3118
3100
|
return acc;
|
|
@@ -3121,7 +3103,7 @@ const deserializeAws_json1_1ExtractedValues = (output, context) => {
|
|
|
3121
3103
|
return acc;
|
|
3122
3104
|
}, {});
|
|
3123
3105
|
};
|
|
3124
|
-
const
|
|
3106
|
+
const de_FilteredLogEvent = (output, context) => {
|
|
3125
3107
|
return {
|
|
3126
3108
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
3127
3109
|
ingestionTime: (0, smithy_client_1.expectLong)(output.ingestionTime),
|
|
@@ -3130,91 +3112,87 @@ const deserializeAws_json1_1FilteredLogEvent = (output, context) => {
|
|
|
3130
3112
|
timestamp: (0, smithy_client_1.expectLong)(output.timestamp),
|
|
3131
3113
|
};
|
|
3132
3114
|
};
|
|
3133
|
-
const
|
|
3115
|
+
const de_FilteredLogEvents = (output, context) => {
|
|
3134
3116
|
const retVal = (output || [])
|
|
3135
3117
|
.filter((e) => e != null)
|
|
3136
3118
|
.map((entry) => {
|
|
3137
3119
|
if (entry === null) {
|
|
3138
3120
|
return null;
|
|
3139
3121
|
}
|
|
3140
|
-
return
|
|
3122
|
+
return de_FilteredLogEvent(entry, context);
|
|
3141
3123
|
});
|
|
3142
3124
|
return retVal;
|
|
3143
3125
|
};
|
|
3144
|
-
const
|
|
3126
|
+
const de_FilterLogEventsResponse = (output, context) => {
|
|
3145
3127
|
return {
|
|
3146
|
-
events: output.events != null ?
|
|
3128
|
+
events: output.events != null ? de_FilteredLogEvents(output.events, context) : undefined,
|
|
3147
3129
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3148
|
-
searchedLogStreams: output.searchedLogStreams != null
|
|
3149
|
-
? deserializeAws_json1_1SearchedLogStreams(output.searchedLogStreams, context)
|
|
3150
|
-
: undefined,
|
|
3130
|
+
searchedLogStreams: output.searchedLogStreams != null ? de_SearchedLogStreams(output.searchedLogStreams, context) : undefined,
|
|
3151
3131
|
};
|
|
3152
3132
|
};
|
|
3153
|
-
const
|
|
3133
|
+
const de_GetDataProtectionPolicyResponse = (output, context) => {
|
|
3154
3134
|
return {
|
|
3155
3135
|
lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
|
|
3156
3136
|
logGroupIdentifier: (0, smithy_client_1.expectString)(output.logGroupIdentifier),
|
|
3157
3137
|
policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
|
|
3158
3138
|
};
|
|
3159
3139
|
};
|
|
3160
|
-
const
|
|
3140
|
+
const de_GetLogEventsResponse = (output, context) => {
|
|
3161
3141
|
return {
|
|
3162
|
-
events: output.events != null ?
|
|
3142
|
+
events: output.events != null ? de_OutputLogEvents(output.events, context) : undefined,
|
|
3163
3143
|
nextBackwardToken: (0, smithy_client_1.expectString)(output.nextBackwardToken),
|
|
3164
3144
|
nextForwardToken: (0, smithy_client_1.expectString)(output.nextForwardToken),
|
|
3165
3145
|
};
|
|
3166
3146
|
};
|
|
3167
|
-
const
|
|
3147
|
+
const de_GetLogGroupFieldsResponse = (output, context) => {
|
|
3168
3148
|
return {
|
|
3169
|
-
logGroupFields: output.logGroupFields != null
|
|
3170
|
-
? deserializeAws_json1_1LogGroupFieldList(output.logGroupFields, context)
|
|
3171
|
-
: undefined,
|
|
3149
|
+
logGroupFields: output.logGroupFields != null ? de_LogGroupFieldList(output.logGroupFields, context) : undefined,
|
|
3172
3150
|
};
|
|
3173
3151
|
};
|
|
3174
|
-
const
|
|
3152
|
+
const de_GetLogRecordResponse = (output, context) => {
|
|
3175
3153
|
return {
|
|
3176
|
-
logRecord: output.logRecord != null ?
|
|
3154
|
+
logRecord: output.logRecord != null ? de_LogRecord(output.logRecord, context) : undefined,
|
|
3177
3155
|
};
|
|
3178
3156
|
};
|
|
3179
|
-
const
|
|
3157
|
+
const de_GetQueryResultsResponse = (output, context) => {
|
|
3180
3158
|
return {
|
|
3181
|
-
results: output.results != null ?
|
|
3182
|
-
statistics: output.statistics != null ?
|
|
3159
|
+
results: output.results != null ? de_QueryResults(output.results, context) : undefined,
|
|
3160
|
+
statistics: output.statistics != null ? de_QueryStatistics(output.statistics, context) : undefined,
|
|
3183
3161
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3184
3162
|
};
|
|
3185
3163
|
};
|
|
3186
|
-
const
|
|
3164
|
+
const de_InvalidOperationException = (output, context) => {
|
|
3187
3165
|
return {
|
|
3188
3166
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3189
3167
|
};
|
|
3190
3168
|
};
|
|
3191
|
-
const
|
|
3169
|
+
const de_InvalidParameterException = (output, context) => {
|
|
3192
3170
|
return {
|
|
3193
3171
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3194
3172
|
};
|
|
3195
3173
|
};
|
|
3196
|
-
const
|
|
3174
|
+
const de_InvalidSequenceTokenException = (output, context) => {
|
|
3197
3175
|
return {
|
|
3198
3176
|
expectedSequenceToken: (0, smithy_client_1.expectString)(output.expectedSequenceToken),
|
|
3199
3177
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3200
3178
|
};
|
|
3201
3179
|
};
|
|
3202
|
-
const
|
|
3180
|
+
const de_LimitExceededException = (output, context) => {
|
|
3203
3181
|
return {
|
|
3204
3182
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3205
3183
|
};
|
|
3206
3184
|
};
|
|
3207
|
-
const
|
|
3185
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3208
3186
|
return {
|
|
3209
|
-
tags: output.tags != null ?
|
|
3187
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
3210
3188
|
};
|
|
3211
3189
|
};
|
|
3212
|
-
const
|
|
3190
|
+
const de_ListTagsLogGroupResponse = (output, context) => {
|
|
3213
3191
|
return {
|
|
3214
|
-
tags: output.tags != null ?
|
|
3192
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
3215
3193
|
};
|
|
3216
3194
|
};
|
|
3217
|
-
const
|
|
3195
|
+
const de_LogGroup = (output, context) => {
|
|
3218
3196
|
return {
|
|
3219
3197
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3220
3198
|
creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
|
|
@@ -3226,24 +3204,24 @@ const deserializeAws_json1_1LogGroup = (output, context) => {
|
|
|
3226
3204
|
storedBytes: (0, smithy_client_1.expectLong)(output.storedBytes),
|
|
3227
3205
|
};
|
|
3228
3206
|
};
|
|
3229
|
-
const
|
|
3207
|
+
const de_LogGroupField = (output, context) => {
|
|
3230
3208
|
return {
|
|
3231
3209
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3232
3210
|
percent: (0, smithy_client_1.expectInt32)(output.percent),
|
|
3233
3211
|
};
|
|
3234
3212
|
};
|
|
3235
|
-
const
|
|
3213
|
+
const de_LogGroupFieldList = (output, context) => {
|
|
3236
3214
|
const retVal = (output || [])
|
|
3237
3215
|
.filter((e) => e != null)
|
|
3238
3216
|
.map((entry) => {
|
|
3239
3217
|
if (entry === null) {
|
|
3240
3218
|
return null;
|
|
3241
3219
|
}
|
|
3242
|
-
return
|
|
3220
|
+
return de_LogGroupField(entry, context);
|
|
3243
3221
|
});
|
|
3244
3222
|
return retVal;
|
|
3245
3223
|
};
|
|
3246
|
-
const
|
|
3224
|
+
const de_LogGroupNames = (output, context) => {
|
|
3247
3225
|
const retVal = (output || [])
|
|
3248
3226
|
.filter((e) => e != null)
|
|
3249
3227
|
.map((entry) => {
|
|
@@ -3254,18 +3232,18 @@ const deserializeAws_json1_1LogGroupNames = (output, context) => {
|
|
|
3254
3232
|
});
|
|
3255
3233
|
return retVal;
|
|
3256
3234
|
};
|
|
3257
|
-
const
|
|
3235
|
+
const de_LogGroups = (output, context) => {
|
|
3258
3236
|
const retVal = (output || [])
|
|
3259
3237
|
.filter((e) => e != null)
|
|
3260
3238
|
.map((entry) => {
|
|
3261
3239
|
if (entry === null) {
|
|
3262
3240
|
return null;
|
|
3263
3241
|
}
|
|
3264
|
-
return
|
|
3242
|
+
return de_LogGroup(entry, context);
|
|
3265
3243
|
});
|
|
3266
3244
|
return retVal;
|
|
3267
3245
|
};
|
|
3268
|
-
const
|
|
3246
|
+
const de_LogRecord = (output, context) => {
|
|
3269
3247
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3270
3248
|
if (value === null) {
|
|
3271
3249
|
return acc;
|
|
@@ -3274,7 +3252,7 @@ const deserializeAws_json1_1LogRecord = (output, context) => {
|
|
|
3274
3252
|
return acc;
|
|
3275
3253
|
}, {});
|
|
3276
3254
|
};
|
|
3277
|
-
const
|
|
3255
|
+
const de_LogStream = (output, context) => {
|
|
3278
3256
|
return {
|
|
3279
3257
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3280
3258
|
creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
|
|
@@ -3286,174 +3264,170 @@ const deserializeAws_json1_1LogStream = (output, context) => {
|
|
|
3286
3264
|
uploadSequenceToken: (0, smithy_client_1.expectString)(output.uploadSequenceToken),
|
|
3287
3265
|
};
|
|
3288
3266
|
};
|
|
3289
|
-
const
|
|
3267
|
+
const de_LogStreams = (output, context) => {
|
|
3290
3268
|
const retVal = (output || [])
|
|
3291
3269
|
.filter((e) => e != null)
|
|
3292
3270
|
.map((entry) => {
|
|
3293
3271
|
if (entry === null) {
|
|
3294
3272
|
return null;
|
|
3295
3273
|
}
|
|
3296
|
-
return
|
|
3274
|
+
return de_LogStream(entry, context);
|
|
3297
3275
|
});
|
|
3298
3276
|
return retVal;
|
|
3299
3277
|
};
|
|
3300
|
-
const
|
|
3278
|
+
const de_MalformedQueryException = (output, context) => {
|
|
3301
3279
|
return {
|
|
3302
3280
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3303
|
-
queryCompileError: output.queryCompileError != null
|
|
3304
|
-
? deserializeAws_json1_1QueryCompileError(output.queryCompileError, context)
|
|
3305
|
-
: undefined,
|
|
3281
|
+
queryCompileError: output.queryCompileError != null ? de_QueryCompileError(output.queryCompileError, context) : undefined,
|
|
3306
3282
|
};
|
|
3307
3283
|
};
|
|
3308
|
-
const
|
|
3284
|
+
const de_MetricFilter = (output, context) => {
|
|
3309
3285
|
return {
|
|
3310
3286
|
creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
|
|
3311
3287
|
filterName: (0, smithy_client_1.expectString)(output.filterName),
|
|
3312
3288
|
filterPattern: (0, smithy_client_1.expectString)(output.filterPattern),
|
|
3313
3289
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
3314
3290
|
metricTransformations: output.metricTransformations != null
|
|
3315
|
-
?
|
|
3291
|
+
? de_MetricTransformations(output.metricTransformations, context)
|
|
3316
3292
|
: undefined,
|
|
3317
3293
|
};
|
|
3318
3294
|
};
|
|
3319
|
-
const
|
|
3295
|
+
const de_MetricFilterMatches = (output, context) => {
|
|
3320
3296
|
const retVal = (output || [])
|
|
3321
3297
|
.filter((e) => e != null)
|
|
3322
3298
|
.map((entry) => {
|
|
3323
3299
|
if (entry === null) {
|
|
3324
3300
|
return null;
|
|
3325
3301
|
}
|
|
3326
|
-
return
|
|
3302
|
+
return de_MetricFilterMatchRecord(entry, context);
|
|
3327
3303
|
});
|
|
3328
3304
|
return retVal;
|
|
3329
3305
|
};
|
|
3330
|
-
const
|
|
3306
|
+
const de_MetricFilterMatchRecord = (output, context) => {
|
|
3331
3307
|
return {
|
|
3332
3308
|
eventMessage: (0, smithy_client_1.expectString)(output.eventMessage),
|
|
3333
3309
|
eventNumber: (0, smithy_client_1.expectLong)(output.eventNumber),
|
|
3334
|
-
extractedValues: output.extractedValues != null
|
|
3335
|
-
? deserializeAws_json1_1ExtractedValues(output.extractedValues, context)
|
|
3336
|
-
: undefined,
|
|
3310
|
+
extractedValues: output.extractedValues != null ? de_ExtractedValues(output.extractedValues, context) : undefined,
|
|
3337
3311
|
};
|
|
3338
3312
|
};
|
|
3339
|
-
const
|
|
3313
|
+
const de_MetricFilters = (output, context) => {
|
|
3340
3314
|
const retVal = (output || [])
|
|
3341
3315
|
.filter((e) => e != null)
|
|
3342
3316
|
.map((entry) => {
|
|
3343
3317
|
if (entry === null) {
|
|
3344
3318
|
return null;
|
|
3345
3319
|
}
|
|
3346
|
-
return
|
|
3320
|
+
return de_MetricFilter(entry, context);
|
|
3347
3321
|
});
|
|
3348
3322
|
return retVal;
|
|
3349
3323
|
};
|
|
3350
|
-
const
|
|
3324
|
+
const de_MetricTransformation = (output, context) => {
|
|
3351
3325
|
return {
|
|
3352
3326
|
defaultValue: (0, smithy_client_1.limitedParseDouble)(output.defaultValue),
|
|
3353
|
-
dimensions: output.dimensions != null ?
|
|
3327
|
+
dimensions: output.dimensions != null ? de_Dimensions(output.dimensions, context) : undefined,
|
|
3354
3328
|
metricName: (0, smithy_client_1.expectString)(output.metricName),
|
|
3355
3329
|
metricNamespace: (0, smithy_client_1.expectString)(output.metricNamespace),
|
|
3356
3330
|
metricValue: (0, smithy_client_1.expectString)(output.metricValue),
|
|
3357
3331
|
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
3358
3332
|
};
|
|
3359
3333
|
};
|
|
3360
|
-
const
|
|
3334
|
+
const de_MetricTransformations = (output, context) => {
|
|
3361
3335
|
const retVal = (output || [])
|
|
3362
3336
|
.filter((e) => e != null)
|
|
3363
3337
|
.map((entry) => {
|
|
3364
3338
|
if (entry === null) {
|
|
3365
3339
|
return null;
|
|
3366
3340
|
}
|
|
3367
|
-
return
|
|
3341
|
+
return de_MetricTransformation(entry, context);
|
|
3368
3342
|
});
|
|
3369
3343
|
return retVal;
|
|
3370
3344
|
};
|
|
3371
|
-
const
|
|
3345
|
+
const de_OperationAbortedException = (output, context) => {
|
|
3372
3346
|
return {
|
|
3373
3347
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3374
3348
|
};
|
|
3375
3349
|
};
|
|
3376
|
-
const
|
|
3350
|
+
const de_OutputLogEvent = (output, context) => {
|
|
3377
3351
|
return {
|
|
3378
3352
|
ingestionTime: (0, smithy_client_1.expectLong)(output.ingestionTime),
|
|
3379
3353
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3380
3354
|
timestamp: (0, smithy_client_1.expectLong)(output.timestamp),
|
|
3381
3355
|
};
|
|
3382
3356
|
};
|
|
3383
|
-
const
|
|
3357
|
+
const de_OutputLogEvents = (output, context) => {
|
|
3384
3358
|
const retVal = (output || [])
|
|
3385
3359
|
.filter((e) => e != null)
|
|
3386
3360
|
.map((entry) => {
|
|
3387
3361
|
if (entry === null) {
|
|
3388
3362
|
return null;
|
|
3389
3363
|
}
|
|
3390
|
-
return
|
|
3364
|
+
return de_OutputLogEvent(entry, context);
|
|
3391
3365
|
});
|
|
3392
3366
|
return retVal;
|
|
3393
3367
|
};
|
|
3394
|
-
const
|
|
3368
|
+
const de_PutDataProtectionPolicyResponse = (output, context) => {
|
|
3395
3369
|
return {
|
|
3396
3370
|
lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
|
|
3397
3371
|
logGroupIdentifier: (0, smithy_client_1.expectString)(output.logGroupIdentifier),
|
|
3398
3372
|
policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
|
|
3399
3373
|
};
|
|
3400
3374
|
};
|
|
3401
|
-
const
|
|
3375
|
+
const de_PutDestinationResponse = (output, context) => {
|
|
3402
3376
|
return {
|
|
3403
|
-
destination: output.destination != null ?
|
|
3377
|
+
destination: output.destination != null ? de_Destination(output.destination, context) : undefined,
|
|
3404
3378
|
};
|
|
3405
3379
|
};
|
|
3406
|
-
const
|
|
3380
|
+
const de_PutLogEventsResponse = (output, context) => {
|
|
3407
3381
|
return {
|
|
3408
3382
|
nextSequenceToken: (0, smithy_client_1.expectString)(output.nextSequenceToken),
|
|
3409
3383
|
rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
|
|
3410
|
-
?
|
|
3384
|
+
? de_RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
|
|
3411
3385
|
: undefined,
|
|
3412
3386
|
};
|
|
3413
3387
|
};
|
|
3414
|
-
const
|
|
3388
|
+
const de_PutQueryDefinitionResponse = (output, context) => {
|
|
3415
3389
|
return {
|
|
3416
3390
|
queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
|
|
3417
3391
|
};
|
|
3418
3392
|
};
|
|
3419
|
-
const
|
|
3393
|
+
const de_PutResourcePolicyResponse = (output, context) => {
|
|
3420
3394
|
return {
|
|
3421
|
-
resourcePolicy: output.resourcePolicy != null ?
|
|
3395
|
+
resourcePolicy: output.resourcePolicy != null ? de_ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
3422
3396
|
};
|
|
3423
3397
|
};
|
|
3424
|
-
const
|
|
3398
|
+
const de_QueryCompileError = (output, context) => {
|
|
3425
3399
|
return {
|
|
3426
|
-
location: output.location != null ?
|
|
3400
|
+
location: output.location != null ? de_QueryCompileErrorLocation(output.location, context) : undefined,
|
|
3427
3401
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3428
3402
|
};
|
|
3429
3403
|
};
|
|
3430
|
-
const
|
|
3404
|
+
const de_QueryCompileErrorLocation = (output, context) => {
|
|
3431
3405
|
return {
|
|
3432
3406
|
endCharOffset: (0, smithy_client_1.expectInt32)(output.endCharOffset),
|
|
3433
3407
|
startCharOffset: (0, smithy_client_1.expectInt32)(output.startCharOffset),
|
|
3434
3408
|
};
|
|
3435
3409
|
};
|
|
3436
|
-
const
|
|
3410
|
+
const de_QueryDefinition = (output, context) => {
|
|
3437
3411
|
return {
|
|
3438
3412
|
lastModified: (0, smithy_client_1.expectLong)(output.lastModified),
|
|
3439
|
-
logGroupNames: output.logGroupNames != null ?
|
|
3413
|
+
logGroupNames: output.logGroupNames != null ? de_LogGroupNames(output.logGroupNames, context) : undefined,
|
|
3440
3414
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3441
3415
|
queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
|
|
3442
3416
|
queryString: (0, smithy_client_1.expectString)(output.queryString),
|
|
3443
3417
|
};
|
|
3444
3418
|
};
|
|
3445
|
-
const
|
|
3419
|
+
const de_QueryDefinitionList = (output, context) => {
|
|
3446
3420
|
const retVal = (output || [])
|
|
3447
3421
|
.filter((e) => e != null)
|
|
3448
3422
|
.map((entry) => {
|
|
3449
3423
|
if (entry === null) {
|
|
3450
3424
|
return null;
|
|
3451
3425
|
}
|
|
3452
|
-
return
|
|
3426
|
+
return de_QueryDefinition(entry, context);
|
|
3453
3427
|
});
|
|
3454
3428
|
return retVal;
|
|
3455
3429
|
};
|
|
3456
|
-
const
|
|
3430
|
+
const de_QueryInfo = (output, context) => {
|
|
3457
3431
|
return {
|
|
3458
3432
|
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
3459
3433
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
@@ -3462,120 +3436,120 @@ const deserializeAws_json1_1QueryInfo = (output, context) => {
|
|
|
3462
3436
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3463
3437
|
};
|
|
3464
3438
|
};
|
|
3465
|
-
const
|
|
3439
|
+
const de_QueryInfoList = (output, context) => {
|
|
3466
3440
|
const retVal = (output || [])
|
|
3467
3441
|
.filter((e) => e != null)
|
|
3468
3442
|
.map((entry) => {
|
|
3469
3443
|
if (entry === null) {
|
|
3470
3444
|
return null;
|
|
3471
3445
|
}
|
|
3472
|
-
return
|
|
3446
|
+
return de_QueryInfo(entry, context);
|
|
3473
3447
|
});
|
|
3474
3448
|
return retVal;
|
|
3475
3449
|
};
|
|
3476
|
-
const
|
|
3450
|
+
const de_QueryResults = (output, context) => {
|
|
3477
3451
|
const retVal = (output || [])
|
|
3478
3452
|
.filter((e) => e != null)
|
|
3479
3453
|
.map((entry) => {
|
|
3480
3454
|
if (entry === null) {
|
|
3481
3455
|
return null;
|
|
3482
3456
|
}
|
|
3483
|
-
return
|
|
3457
|
+
return de_ResultRows(entry, context);
|
|
3484
3458
|
});
|
|
3485
3459
|
return retVal;
|
|
3486
3460
|
};
|
|
3487
|
-
const
|
|
3461
|
+
const de_QueryStatistics = (output, context) => {
|
|
3488
3462
|
return {
|
|
3489
3463
|
bytesScanned: (0, smithy_client_1.limitedParseDouble)(output.bytesScanned),
|
|
3490
3464
|
recordsMatched: (0, smithy_client_1.limitedParseDouble)(output.recordsMatched),
|
|
3491
3465
|
recordsScanned: (0, smithy_client_1.limitedParseDouble)(output.recordsScanned),
|
|
3492
3466
|
};
|
|
3493
3467
|
};
|
|
3494
|
-
const
|
|
3468
|
+
const de_RejectedLogEventsInfo = (output, context) => {
|
|
3495
3469
|
return {
|
|
3496
3470
|
expiredLogEventEndIndex: (0, smithy_client_1.expectInt32)(output.expiredLogEventEndIndex),
|
|
3497
3471
|
tooNewLogEventStartIndex: (0, smithy_client_1.expectInt32)(output.tooNewLogEventStartIndex),
|
|
3498
3472
|
tooOldLogEventEndIndex: (0, smithy_client_1.expectInt32)(output.tooOldLogEventEndIndex),
|
|
3499
3473
|
};
|
|
3500
3474
|
};
|
|
3501
|
-
const
|
|
3475
|
+
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
3502
3476
|
return {
|
|
3503
3477
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3504
3478
|
};
|
|
3505
3479
|
};
|
|
3506
|
-
const
|
|
3480
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
3507
3481
|
return {
|
|
3508
3482
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3509
3483
|
};
|
|
3510
3484
|
};
|
|
3511
|
-
const
|
|
3485
|
+
const de_ResourcePolicies = (output, context) => {
|
|
3512
3486
|
const retVal = (output || [])
|
|
3513
3487
|
.filter((e) => e != null)
|
|
3514
3488
|
.map((entry) => {
|
|
3515
3489
|
if (entry === null) {
|
|
3516
3490
|
return null;
|
|
3517
3491
|
}
|
|
3518
|
-
return
|
|
3492
|
+
return de_ResourcePolicy(entry, context);
|
|
3519
3493
|
});
|
|
3520
3494
|
return retVal;
|
|
3521
3495
|
};
|
|
3522
|
-
const
|
|
3496
|
+
const de_ResourcePolicy = (output, context) => {
|
|
3523
3497
|
return {
|
|
3524
3498
|
lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
|
|
3525
3499
|
policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
|
|
3526
3500
|
policyName: (0, smithy_client_1.expectString)(output.policyName),
|
|
3527
3501
|
};
|
|
3528
3502
|
};
|
|
3529
|
-
const
|
|
3503
|
+
const de_ResultField = (output, context) => {
|
|
3530
3504
|
return {
|
|
3531
3505
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
3532
3506
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3533
3507
|
};
|
|
3534
3508
|
};
|
|
3535
|
-
const
|
|
3509
|
+
const de_ResultRows = (output, context) => {
|
|
3536
3510
|
const retVal = (output || [])
|
|
3537
3511
|
.filter((e) => e != null)
|
|
3538
3512
|
.map((entry) => {
|
|
3539
3513
|
if (entry === null) {
|
|
3540
3514
|
return null;
|
|
3541
3515
|
}
|
|
3542
|
-
return
|
|
3516
|
+
return de_ResultField(entry, context);
|
|
3543
3517
|
});
|
|
3544
3518
|
return retVal;
|
|
3545
3519
|
};
|
|
3546
|
-
const
|
|
3520
|
+
const de_SearchedLogStream = (output, context) => {
|
|
3547
3521
|
return {
|
|
3548
3522
|
logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
|
|
3549
3523
|
searchedCompletely: (0, smithy_client_1.expectBoolean)(output.searchedCompletely),
|
|
3550
3524
|
};
|
|
3551
3525
|
};
|
|
3552
|
-
const
|
|
3526
|
+
const de_SearchedLogStreams = (output, context) => {
|
|
3553
3527
|
const retVal = (output || [])
|
|
3554
3528
|
.filter((e) => e != null)
|
|
3555
3529
|
.map((entry) => {
|
|
3556
3530
|
if (entry === null) {
|
|
3557
3531
|
return null;
|
|
3558
3532
|
}
|
|
3559
|
-
return
|
|
3533
|
+
return de_SearchedLogStream(entry, context);
|
|
3560
3534
|
});
|
|
3561
3535
|
return retVal;
|
|
3562
3536
|
};
|
|
3563
|
-
const
|
|
3537
|
+
const de_ServiceUnavailableException = (output, context) => {
|
|
3564
3538
|
return {
|
|
3565
3539
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3566
3540
|
};
|
|
3567
3541
|
};
|
|
3568
|
-
const
|
|
3542
|
+
const de_StartQueryResponse = (output, context) => {
|
|
3569
3543
|
return {
|
|
3570
3544
|
queryId: (0, smithy_client_1.expectString)(output.queryId),
|
|
3571
3545
|
};
|
|
3572
3546
|
};
|
|
3573
|
-
const
|
|
3547
|
+
const de_StopQueryResponse = (output, context) => {
|
|
3574
3548
|
return {
|
|
3575
3549
|
success: (0, smithy_client_1.expectBoolean)(output.success),
|
|
3576
3550
|
};
|
|
3577
3551
|
};
|
|
3578
|
-
const
|
|
3552
|
+
const de_SubscriptionFilter = (output, context) => {
|
|
3579
3553
|
return {
|
|
3580
3554
|
creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
|
|
3581
3555
|
destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
|
|
@@ -3586,18 +3560,18 @@ const deserializeAws_json1_1SubscriptionFilter = (output, context) => {
|
|
|
3586
3560
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
3587
3561
|
};
|
|
3588
3562
|
};
|
|
3589
|
-
const
|
|
3563
|
+
const de_SubscriptionFilters = (output, context) => {
|
|
3590
3564
|
const retVal = (output || [])
|
|
3591
3565
|
.filter((e) => e != null)
|
|
3592
3566
|
.map((entry) => {
|
|
3593
3567
|
if (entry === null) {
|
|
3594
3568
|
return null;
|
|
3595
3569
|
}
|
|
3596
|
-
return
|
|
3570
|
+
return de_SubscriptionFilter(entry, context);
|
|
3597
3571
|
});
|
|
3598
3572
|
return retVal;
|
|
3599
3573
|
};
|
|
3600
|
-
const
|
|
3574
|
+
const de_Tags = (output, context) => {
|
|
3601
3575
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3602
3576
|
if (value === null) {
|
|
3603
3577
|
return acc;
|
|
@@ -3606,18 +3580,18 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
3606
3580
|
return acc;
|
|
3607
3581
|
}, {});
|
|
3608
3582
|
};
|
|
3609
|
-
const
|
|
3583
|
+
const de_TestMetricFilterResponse = (output, context) => {
|
|
3610
3584
|
return {
|
|
3611
|
-
matches: output.matches != null ?
|
|
3585
|
+
matches: output.matches != null ? de_MetricFilterMatches(output.matches, context) : undefined,
|
|
3612
3586
|
};
|
|
3613
3587
|
};
|
|
3614
|
-
const
|
|
3588
|
+
const de_TooManyTagsException = (output, context) => {
|
|
3615
3589
|
return {
|
|
3616
3590
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3617
3591
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
3618
3592
|
};
|
|
3619
3593
|
};
|
|
3620
|
-
const
|
|
3594
|
+
const de_UnrecognizedClientException = (output, context) => {
|
|
3621
3595
|
return {
|
|
3622
3596
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3623
3597
|
};
|