@aws-sdk/client-cloudwatch-logs 3.927.0 → 3.928.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/index.js +2751 -2844
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/CloudWatchLogsClient.js +2 -0
- package/dist-es/commands/AssociateKmsKeyCommand.js +3 -9
- package/dist-es/commands/CancelExportTaskCommand.js +3 -9
- package/dist-es/commands/CreateDeliveryCommand.js +3 -9
- package/dist-es/commands/CreateExportTaskCommand.js +3 -9
- package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/CreateLogGroupCommand.js +3 -9
- package/dist-es/commands/CreateLogStreamCommand.js +3 -9
- package/dist-es/commands/DeleteAccountPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteDeliveryCommand.js +3 -9
- package/dist-es/commands/DeleteDeliveryDestinationCommand.js +3 -9
- package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteDeliverySourceCommand.js +3 -9
- package/dist-es/commands/DeleteDestinationCommand.js +3 -9
- package/dist-es/commands/DeleteIndexPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteIntegrationCommand.js +3 -9
- package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteLogGroupCommand.js +3 -9
- package/dist-es/commands/DeleteLogStreamCommand.js +3 -9
- package/dist-es/commands/DeleteMetricFilterCommand.js +3 -9
- package/dist-es/commands/DeleteQueryDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteRetentionPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteSubscriptionFilterCommand.js +3 -9
- package/dist-es/commands/DeleteTransformerCommand.js +3 -9
- package/dist-es/commands/DescribeAccountPoliciesCommand.js +3 -9
- package/dist-es/commands/DescribeConfigurationTemplatesCommand.js +3 -9
- package/dist-es/commands/DescribeDeliveriesCommand.js +3 -9
- package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +3 -9
- package/dist-es/commands/DescribeDeliverySourcesCommand.js +3 -9
- package/dist-es/commands/DescribeDestinationsCommand.js +3 -9
- package/dist-es/commands/DescribeExportTasksCommand.js +3 -9
- package/dist-es/commands/DescribeFieldIndexesCommand.js +3 -9
- package/dist-es/commands/DescribeIndexPoliciesCommand.js +3 -9
- package/dist-es/commands/DescribeLogGroupsCommand.js +3 -9
- package/dist-es/commands/DescribeLogStreamsCommand.js +3 -9
- package/dist-es/commands/DescribeMetricFiltersCommand.js +3 -9
- package/dist-es/commands/DescribeQueriesCommand.js +3 -9
- package/dist-es/commands/DescribeQueryDefinitionsCommand.js +3 -9
- package/dist-es/commands/DescribeResourcePoliciesCommand.js +3 -9
- package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +3 -9
- package/dist-es/commands/DisassociateKmsKeyCommand.js +3 -9
- package/dist-es/commands/FilterLogEventsCommand.js +3 -9
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +3 -9
- package/dist-es/commands/GetDeliveryCommand.js +3 -9
- package/dist-es/commands/GetDeliveryDestinationCommand.js +3 -9
- package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +3 -9
- package/dist-es/commands/GetDeliverySourceCommand.js +3 -9
- package/dist-es/commands/GetIntegrationCommand.js +3 -9
- package/dist-es/commands/GetLogAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/GetLogEventsCommand.js +3 -9
- package/dist-es/commands/GetLogGroupFieldsCommand.js +3 -9
- package/dist-es/commands/GetLogObjectCommand.js +3 -10
- package/dist-es/commands/GetLogRecordCommand.js +3 -9
- package/dist-es/commands/GetQueryResultsCommand.js +3 -9
- package/dist-es/commands/GetTransformerCommand.js +3 -9
- package/dist-es/commands/ListAnomaliesCommand.js +3 -9
- package/dist-es/commands/ListIntegrationsCommand.js +3 -9
- package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +3 -9
- package/dist-es/commands/ListLogGroupsCommand.js +3 -9
- package/dist-es/commands/ListLogGroupsForQueryCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTagsLogGroupCommand.js +3 -9
- package/dist-es/commands/PutAccountPolicyCommand.js +3 -9
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +3 -9
- package/dist-es/commands/PutDeliveryDestinationCommand.js +3 -9
- package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +3 -9
- package/dist-es/commands/PutDeliverySourceCommand.js +3 -9
- package/dist-es/commands/PutDestinationCommand.js +3 -9
- package/dist-es/commands/PutDestinationPolicyCommand.js +3 -9
- package/dist-es/commands/PutIndexPolicyCommand.js +3 -9
- package/dist-es/commands/PutIntegrationCommand.js +3 -9
- package/dist-es/commands/PutLogEventsCommand.js +3 -9
- package/dist-es/commands/PutMetricFilterCommand.js +3 -9
- package/dist-es/commands/PutQueryDefinitionCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/PutRetentionPolicyCommand.js +3 -9
- package/dist-es/commands/PutSubscriptionFilterCommand.js +3 -9
- package/dist-es/commands/PutTransformerCommand.js +3 -9
- package/dist-es/commands/StartLiveTailCommand.js +3 -10
- package/dist-es/commands/StartQueryCommand.js +3 -9
- package/dist-es/commands/StopQueryCommand.js +3 -9
- package/dist-es/commands/TagLogGroupCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TestMetricFilterCommand.js +3 -9
- package/dist-es/commands/TestTransformerCommand.js +3 -9
- package/dist-es/commands/UntagLogGroupCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAnomalyCommand.js +3 -9
- package/dist-es/commands/UpdateDeliveryConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -28
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2543 -0
- package/dist-types/CloudWatchLogsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +439 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +444 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -2116
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -821
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1100
|
@@ -1,2116 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, DataAlreadyAcceptedException, InternalStreamingException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SessionStreamingException, SessionTimeoutException, ThrottlingException, TooManyTagsException, UnrecognizedClientException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateKmsKeyCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("AssociateKmsKey");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CancelExportTaskCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CancelExportTask");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_CreateDeliveryCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("CreateDelivery");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateExportTaskCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateExportTask");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateLogAnomalyDetectorCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateLogAnomalyDetector");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_CreateLogGroupCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateLogGroup");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_CreateLogStreamCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("CreateLogStream");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DeleteAccountPolicyCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DeleteAccountPolicy");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DeleteDataProtectionPolicy");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_DeleteDeliveryCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("DeleteDelivery");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_DeleteDeliveryDestinationCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DeleteDeliveryDestination");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DeleteDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DeleteDeliverySourceCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DeleteDeliverySource");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_DeleteDestinationCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DeleteDestination");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteIndexPolicyCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("DeleteIndexPolicy");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_DeleteIntegrationCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("DeleteIntegration");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_DeleteLogAnomalyDetectorCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("DeleteLogAnomalyDetector");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_DeleteLogGroupCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteLogGroup");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_DeleteLogStreamCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeleteLogStream");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_DeleteMetricFilterCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DeleteMetricFilter");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_DeleteQueryDefinitionCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("DeleteQueryDefinition");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_DeleteRetentionPolicyCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("DeleteRetentionPolicy");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_DeleteSubscriptionFilterCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("DeleteSubscriptionFilter");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_DeleteTransformerCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DeleteTransformer");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_DescribeAccountPoliciesCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DescribeAccountPolicies");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_DescribeConfigurationTemplatesCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("DescribeConfigurationTemplates");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_DescribeDeliveriesCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("DescribeDeliveries");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_DescribeDeliveryDestinationsCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("DescribeDeliveryDestinations");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_DescribeDeliverySourcesCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("DescribeDeliverySources");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const se_DescribeDestinationsCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("DescribeDestinations");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(_json(input));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
export const se_DescribeExportTasksCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("DescribeExportTasks");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(_json(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
export const se_DescribeFieldIndexesCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("DescribeFieldIndexes");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(_json(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
export const se_DescribeIndexPoliciesCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("DescribeIndexPolicies");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(_json(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
export const se_DescribeLogGroupsCommand = async (input, context) => {
|
|
212
|
-
const headers = sharedHeaders("DescribeLogGroups");
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify(_json(input));
|
|
215
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
-
};
|
|
217
|
-
export const se_DescribeLogStreamsCommand = async (input, context) => {
|
|
218
|
-
const headers = sharedHeaders("DescribeLogStreams");
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify(_json(input));
|
|
221
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
-
};
|
|
223
|
-
export const se_DescribeMetricFiltersCommand = async (input, context) => {
|
|
224
|
-
const headers = sharedHeaders("DescribeMetricFilters");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(_json(input));
|
|
227
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
-
};
|
|
229
|
-
export const se_DescribeQueriesCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("DescribeQueries");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify(_json(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
export const se_DescribeQueryDefinitionsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("DescribeQueryDefinitions");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(_json(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
export const se_DescribeResourcePoliciesCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("DescribeResourcePolicies");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify(_json(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
export const se_DescribeSubscriptionFiltersCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("DescribeSubscriptionFilters");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify(_json(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
export const se_DisassociateKmsKeyCommand = async (input, context) => {
|
|
254
|
-
const headers = sharedHeaders("DisassociateKmsKey");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(_json(input));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
export const se_FilterLogEventsCommand = async (input, context) => {
|
|
260
|
-
const headers = sharedHeaders("FilterLogEvents");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(_json(input));
|
|
263
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
-
};
|
|
265
|
-
export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
266
|
-
const headers = sharedHeaders("GetDataProtectionPolicy");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(_json(input));
|
|
269
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
-
};
|
|
271
|
-
export const se_GetDeliveryCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("GetDelivery");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify(_json(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
export const se_GetDeliveryDestinationCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("GetDeliveryDestination");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(_json(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
export const se_GetDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("GetDeliveryDestinationPolicy");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify(_json(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
export const se_GetDeliverySourceCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("GetDeliverySource");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(_json(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
export const se_GetIntegrationCommand = async (input, context) => {
|
|
296
|
-
const headers = sharedHeaders("GetIntegration");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(_json(input));
|
|
299
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
-
};
|
|
301
|
-
export const se_GetLogAnomalyDetectorCommand = async (input, context) => {
|
|
302
|
-
const headers = sharedHeaders("GetLogAnomalyDetector");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(_json(input));
|
|
305
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
-
};
|
|
307
|
-
export const se_GetLogEventsCommand = async (input, context) => {
|
|
308
|
-
const headers = sharedHeaders("GetLogEvents");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(_json(input));
|
|
311
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
-
};
|
|
313
|
-
export const se_GetLogGroupFieldsCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("GetLogGroupFields");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify(_json(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
export const se_GetLogObjectCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("GetLogObject");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify(_json(input));
|
|
323
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
324
|
-
if (context.disableHostPrefix !== true) {
|
|
325
|
-
resolvedHostname = "streaming-" + resolvedHostname;
|
|
326
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
327
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
331
|
-
};
|
|
332
|
-
export const se_GetLogRecordCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("GetLogRecord");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify(_json(input));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
export const se_GetQueryResultsCommand = async (input, context) => {
|
|
339
|
-
const headers = sharedHeaders("GetQueryResults");
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify(_json(input));
|
|
342
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
|
-
};
|
|
344
|
-
export const se_GetTransformerCommand = async (input, context) => {
|
|
345
|
-
const headers = sharedHeaders("GetTransformer");
|
|
346
|
-
let body;
|
|
347
|
-
body = JSON.stringify(_json(input));
|
|
348
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
|
-
};
|
|
350
|
-
export const se_ListAnomaliesCommand = async (input, context) => {
|
|
351
|
-
const headers = sharedHeaders("ListAnomalies");
|
|
352
|
-
let body;
|
|
353
|
-
body = JSON.stringify(_json(input));
|
|
354
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
|
-
};
|
|
356
|
-
export const se_ListIntegrationsCommand = async (input, context) => {
|
|
357
|
-
const headers = sharedHeaders("ListIntegrations");
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify(_json(input));
|
|
360
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
361
|
-
};
|
|
362
|
-
export const se_ListLogAnomalyDetectorsCommand = async (input, context) => {
|
|
363
|
-
const headers = sharedHeaders("ListLogAnomalyDetectors");
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify(_json(input));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
export const se_ListLogGroupsCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ListLogGroups");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify(_json(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
export const se_ListLogGroupsForQueryCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("ListLogGroupsForQuery");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify(_json(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
381
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
382
|
-
let body;
|
|
383
|
-
body = JSON.stringify(_json(input));
|
|
384
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
385
|
-
};
|
|
386
|
-
export const se_ListTagsLogGroupCommand = async (input, context) => {
|
|
387
|
-
const headers = sharedHeaders("ListTagsLogGroup");
|
|
388
|
-
let body;
|
|
389
|
-
body = JSON.stringify(_json(input));
|
|
390
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
|
-
};
|
|
392
|
-
export const se_PutAccountPolicyCommand = async (input, context) => {
|
|
393
|
-
const headers = sharedHeaders("PutAccountPolicy");
|
|
394
|
-
let body;
|
|
395
|
-
body = JSON.stringify(_json(input));
|
|
396
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
|
-
};
|
|
398
|
-
export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
399
|
-
const headers = sharedHeaders("PutDataProtectionPolicy");
|
|
400
|
-
let body;
|
|
401
|
-
body = JSON.stringify(_json(input));
|
|
402
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
403
|
-
};
|
|
404
|
-
export const se_PutDeliveryDestinationCommand = async (input, context) => {
|
|
405
|
-
const headers = sharedHeaders("PutDeliveryDestination");
|
|
406
|
-
let body;
|
|
407
|
-
body = JSON.stringify(_json(input));
|
|
408
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
-
};
|
|
410
|
-
export const se_PutDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("PutDeliveryDestinationPolicy");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(_json(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
export const se_PutDeliverySourceCommand = async (input, context) => {
|
|
417
|
-
const headers = sharedHeaders("PutDeliverySource");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify(_json(input));
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
export const se_PutDestinationCommand = async (input, context) => {
|
|
423
|
-
const headers = sharedHeaders("PutDestination");
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify(_json(input));
|
|
426
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
-
};
|
|
428
|
-
export const se_PutDestinationPolicyCommand = async (input, context) => {
|
|
429
|
-
const headers = sharedHeaders("PutDestinationPolicy");
|
|
430
|
-
let body;
|
|
431
|
-
body = JSON.stringify(_json(input));
|
|
432
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
433
|
-
};
|
|
434
|
-
export const se_PutIndexPolicyCommand = async (input, context) => {
|
|
435
|
-
const headers = sharedHeaders("PutIndexPolicy");
|
|
436
|
-
let body;
|
|
437
|
-
body = JSON.stringify(_json(input));
|
|
438
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
|
-
};
|
|
440
|
-
export const se_PutIntegrationCommand = async (input, context) => {
|
|
441
|
-
const headers = sharedHeaders("PutIntegration");
|
|
442
|
-
let body;
|
|
443
|
-
body = JSON.stringify(_json(input));
|
|
444
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
|
-
};
|
|
446
|
-
export const se_PutLogEventsCommand = async (input, context) => {
|
|
447
|
-
const headers = sharedHeaders("PutLogEvents");
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify(_json(input));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
|
-
};
|
|
452
|
-
export const se_PutMetricFilterCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("PutMetricFilter");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify(se_PutMetricFilterRequest(input, context));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
export const se_PutQueryDefinitionCommand = async (input, context) => {
|
|
459
|
-
const headers = sharedHeaders("PutQueryDefinition");
|
|
460
|
-
let body;
|
|
461
|
-
body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
|
|
462
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
|
-
};
|
|
464
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
465
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
466
|
-
let body;
|
|
467
|
-
body = JSON.stringify(_json(input));
|
|
468
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
|
-
};
|
|
470
|
-
export const se_PutRetentionPolicyCommand = async (input, context) => {
|
|
471
|
-
const headers = sharedHeaders("PutRetentionPolicy");
|
|
472
|
-
let body;
|
|
473
|
-
body = JSON.stringify(_json(input));
|
|
474
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
475
|
-
};
|
|
476
|
-
export const se_PutSubscriptionFilterCommand = async (input, context) => {
|
|
477
|
-
const headers = sharedHeaders("PutSubscriptionFilter");
|
|
478
|
-
let body;
|
|
479
|
-
body = JSON.stringify(_json(input));
|
|
480
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
|
-
};
|
|
482
|
-
export const se_PutTransformerCommand = async (input, context) => {
|
|
483
|
-
const headers = sharedHeaders("PutTransformer");
|
|
484
|
-
let body;
|
|
485
|
-
body = JSON.stringify(_json(input));
|
|
486
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
|
-
};
|
|
488
|
-
export const se_StartLiveTailCommand = async (input, context) => {
|
|
489
|
-
const headers = sharedHeaders("StartLiveTail");
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify(_json(input));
|
|
492
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
493
|
-
if (context.disableHostPrefix !== true) {
|
|
494
|
-
resolvedHostname = "streaming-" + resolvedHostname;
|
|
495
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
496
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
500
|
-
};
|
|
501
|
-
export const se_StartQueryCommand = async (input, context) => {
|
|
502
|
-
const headers = sharedHeaders("StartQuery");
|
|
503
|
-
let body;
|
|
504
|
-
body = JSON.stringify(_json(input));
|
|
505
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
506
|
-
};
|
|
507
|
-
export const se_StopQueryCommand = async (input, context) => {
|
|
508
|
-
const headers = sharedHeaders("StopQuery");
|
|
509
|
-
let body;
|
|
510
|
-
body = JSON.stringify(_json(input));
|
|
511
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
512
|
-
};
|
|
513
|
-
export const se_TagLogGroupCommand = async (input, context) => {
|
|
514
|
-
const headers = sharedHeaders("TagLogGroup");
|
|
515
|
-
let body;
|
|
516
|
-
body = JSON.stringify(_json(input));
|
|
517
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
|
-
};
|
|
519
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
520
|
-
const headers = sharedHeaders("TagResource");
|
|
521
|
-
let body;
|
|
522
|
-
body = JSON.stringify(_json(input));
|
|
523
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
524
|
-
};
|
|
525
|
-
export const se_TestMetricFilterCommand = async (input, context) => {
|
|
526
|
-
const headers = sharedHeaders("TestMetricFilter");
|
|
527
|
-
let body;
|
|
528
|
-
body = JSON.stringify(_json(input));
|
|
529
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
530
|
-
};
|
|
531
|
-
export const se_TestTransformerCommand = async (input, context) => {
|
|
532
|
-
const headers = sharedHeaders("TestTransformer");
|
|
533
|
-
let body;
|
|
534
|
-
body = JSON.stringify(_json(input));
|
|
535
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
536
|
-
};
|
|
537
|
-
export const se_UntagLogGroupCommand = async (input, context) => {
|
|
538
|
-
const headers = sharedHeaders("UntagLogGroup");
|
|
539
|
-
let body;
|
|
540
|
-
body = JSON.stringify(_json(input));
|
|
541
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
542
|
-
};
|
|
543
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
544
|
-
const headers = sharedHeaders("UntagResource");
|
|
545
|
-
let body;
|
|
546
|
-
body = JSON.stringify(_json(input));
|
|
547
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
|
-
};
|
|
549
|
-
export const se_UpdateAnomalyCommand = async (input, context) => {
|
|
550
|
-
const headers = sharedHeaders("UpdateAnomaly");
|
|
551
|
-
let body;
|
|
552
|
-
body = JSON.stringify(_json(input));
|
|
553
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
554
|
-
};
|
|
555
|
-
export const se_UpdateDeliveryConfigurationCommand = async (input, context) => {
|
|
556
|
-
const headers = sharedHeaders("UpdateDeliveryConfiguration");
|
|
557
|
-
let body;
|
|
558
|
-
body = JSON.stringify(_json(input));
|
|
559
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
560
|
-
};
|
|
561
|
-
export const se_UpdateLogAnomalyDetectorCommand = async (input, context) => {
|
|
562
|
-
const headers = sharedHeaders("UpdateLogAnomalyDetector");
|
|
563
|
-
let body;
|
|
564
|
-
body = JSON.stringify(_json(input));
|
|
565
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
566
|
-
};
|
|
567
|
-
export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode >= 300) {
|
|
569
|
-
return de_CommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
await collectBody(output.body, context);
|
|
572
|
-
const response = {
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
};
|
|
575
|
-
return response;
|
|
576
|
-
};
|
|
577
|
-
export const de_CancelExportTaskCommand = async (output, context) => {
|
|
578
|
-
if (output.statusCode >= 300) {
|
|
579
|
-
return de_CommandError(output, context);
|
|
580
|
-
}
|
|
581
|
-
await collectBody(output.body, context);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
};
|
|
585
|
-
return response;
|
|
586
|
-
};
|
|
587
|
-
export const de_CreateDeliveryCommand = async (output, context) => {
|
|
588
|
-
if (output.statusCode >= 300) {
|
|
589
|
-
return de_CommandError(output, context);
|
|
590
|
-
}
|
|
591
|
-
const data = await parseBody(output.body, context);
|
|
592
|
-
let contents = {};
|
|
593
|
-
contents = _json(data);
|
|
594
|
-
const response = {
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
596
|
-
...contents,
|
|
597
|
-
};
|
|
598
|
-
return response;
|
|
599
|
-
};
|
|
600
|
-
export const de_CreateExportTaskCommand = async (output, context) => {
|
|
601
|
-
if (output.statusCode >= 300) {
|
|
602
|
-
return de_CommandError(output, context);
|
|
603
|
-
}
|
|
604
|
-
const data = await parseBody(output.body, context);
|
|
605
|
-
let contents = {};
|
|
606
|
-
contents = _json(data);
|
|
607
|
-
const response = {
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
...contents,
|
|
610
|
-
};
|
|
611
|
-
return response;
|
|
612
|
-
};
|
|
613
|
-
export const de_CreateLogAnomalyDetectorCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode >= 300) {
|
|
615
|
-
return de_CommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const data = await parseBody(output.body, context);
|
|
618
|
-
let contents = {};
|
|
619
|
-
contents = _json(data);
|
|
620
|
-
const response = {
|
|
621
|
-
$metadata: deserializeMetadata(output),
|
|
622
|
-
...contents,
|
|
623
|
-
};
|
|
624
|
-
return response;
|
|
625
|
-
};
|
|
626
|
-
export const de_CreateLogGroupCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode >= 300) {
|
|
628
|
-
return de_CommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
await collectBody(output.body, context);
|
|
631
|
-
const response = {
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
};
|
|
634
|
-
return response;
|
|
635
|
-
};
|
|
636
|
-
export const de_CreateLogStreamCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
await collectBody(output.body, context);
|
|
641
|
-
const response = {
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
return response;
|
|
645
|
-
};
|
|
646
|
-
export const de_DeleteAccountPolicyCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
await collectBody(output.body, context);
|
|
651
|
-
const response = {
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
};
|
|
656
|
-
export const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
657
|
-
if (output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
await collectBody(output.body, context);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
664
|
-
return response;
|
|
665
|
-
};
|
|
666
|
-
export const de_DeleteDeliveryCommand = async (output, context) => {
|
|
667
|
-
if (output.statusCode >= 300) {
|
|
668
|
-
return de_CommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
await collectBody(output.body, context);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
};
|
|
674
|
-
return response;
|
|
675
|
-
};
|
|
676
|
-
export const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
677
|
-
if (output.statusCode >= 300) {
|
|
678
|
-
return de_CommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
await collectBody(output.body, context);
|
|
681
|
-
const response = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
return response;
|
|
685
|
-
};
|
|
686
|
-
export const de_DeleteDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
687
|
-
if (output.statusCode >= 300) {
|
|
688
|
-
return de_CommandError(output, context);
|
|
689
|
-
}
|
|
690
|
-
await collectBody(output.body, context);
|
|
691
|
-
const response = {
|
|
692
|
-
$metadata: deserializeMetadata(output),
|
|
693
|
-
};
|
|
694
|
-
return response;
|
|
695
|
-
};
|
|
696
|
-
export const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
697
|
-
if (output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
await collectBody(output.body, context);
|
|
701
|
-
const response = {
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
};
|
|
704
|
-
return response;
|
|
705
|
-
};
|
|
706
|
-
export const de_DeleteDestinationCommand = async (output, context) => {
|
|
707
|
-
if (output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
await collectBody(output.body, context);
|
|
711
|
-
const response = {
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
export const de_DeleteIndexPolicyCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await parseBody(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = _json(data);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents,
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
};
|
|
729
|
-
export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const data = await parseBody(output.body, context);
|
|
734
|
-
let contents = {};
|
|
735
|
-
contents = _json(data);
|
|
736
|
-
const response = {
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
...contents,
|
|
739
|
-
};
|
|
740
|
-
return response;
|
|
741
|
-
};
|
|
742
|
-
export const de_DeleteLogAnomalyDetectorCommand = async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
await collectBody(output.body, context);
|
|
747
|
-
const response = {
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
export const de_DeleteLogGroupCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
await collectBody(output.body, context);
|
|
757
|
-
const response = {
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
};
|
|
760
|
-
return response;
|
|
761
|
-
};
|
|
762
|
-
export const de_DeleteLogStreamCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode >= 300) {
|
|
764
|
-
return de_CommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
await collectBody(output.body, context);
|
|
767
|
-
const response = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
return response;
|
|
771
|
-
};
|
|
772
|
-
export const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
773
|
-
if (output.statusCode >= 300) {
|
|
774
|
-
return de_CommandError(output, context);
|
|
775
|
-
}
|
|
776
|
-
await collectBody(output.body, context);
|
|
777
|
-
const response = {
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
780
|
-
return response;
|
|
781
|
-
};
|
|
782
|
-
export const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
783
|
-
if (output.statusCode >= 300) {
|
|
784
|
-
return de_CommandError(output, context);
|
|
785
|
-
}
|
|
786
|
-
const data = await parseBody(output.body, context);
|
|
787
|
-
let contents = {};
|
|
788
|
-
contents = _json(data);
|
|
789
|
-
const response = {
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
...contents,
|
|
792
|
-
};
|
|
793
|
-
return response;
|
|
794
|
-
};
|
|
795
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
796
|
-
if (output.statusCode >= 300) {
|
|
797
|
-
return de_CommandError(output, context);
|
|
798
|
-
}
|
|
799
|
-
await collectBody(output.body, context);
|
|
800
|
-
const response = {
|
|
801
|
-
$metadata: deserializeMetadata(output),
|
|
802
|
-
};
|
|
803
|
-
return response;
|
|
804
|
-
};
|
|
805
|
-
export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
806
|
-
if (output.statusCode >= 300) {
|
|
807
|
-
return de_CommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
await collectBody(output.body, context);
|
|
810
|
-
const response = {
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
};
|
|
813
|
-
return response;
|
|
814
|
-
};
|
|
815
|
-
export const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
816
|
-
if (output.statusCode >= 300) {
|
|
817
|
-
return de_CommandError(output, context);
|
|
818
|
-
}
|
|
819
|
-
await collectBody(output.body, context);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
};
|
|
823
|
-
return response;
|
|
824
|
-
};
|
|
825
|
-
export const de_DeleteTransformerCommand = async (output, context) => {
|
|
826
|
-
if (output.statusCode >= 300) {
|
|
827
|
-
return de_CommandError(output, context);
|
|
828
|
-
}
|
|
829
|
-
await collectBody(output.body, context);
|
|
830
|
-
const response = {
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
};
|
|
833
|
-
return response;
|
|
834
|
-
};
|
|
835
|
-
export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
836
|
-
if (output.statusCode >= 300) {
|
|
837
|
-
return de_CommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const data = await parseBody(output.body, context);
|
|
840
|
-
let contents = {};
|
|
841
|
-
contents = _json(data);
|
|
842
|
-
const response = {
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
...contents,
|
|
845
|
-
};
|
|
846
|
-
return response;
|
|
847
|
-
};
|
|
848
|
-
export const de_DescribeConfigurationTemplatesCommand = async (output, context) => {
|
|
849
|
-
if (output.statusCode >= 300) {
|
|
850
|
-
return de_CommandError(output, context);
|
|
851
|
-
}
|
|
852
|
-
const data = await parseBody(output.body, context);
|
|
853
|
-
let contents = {};
|
|
854
|
-
contents = _json(data);
|
|
855
|
-
const response = {
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
...contents,
|
|
858
|
-
};
|
|
859
|
-
return response;
|
|
860
|
-
};
|
|
861
|
-
export const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
862
|
-
if (output.statusCode >= 300) {
|
|
863
|
-
return de_CommandError(output, context);
|
|
864
|
-
}
|
|
865
|
-
const data = await parseBody(output.body, context);
|
|
866
|
-
let contents = {};
|
|
867
|
-
contents = _json(data);
|
|
868
|
-
const response = {
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
...contents,
|
|
871
|
-
};
|
|
872
|
-
return response;
|
|
873
|
-
};
|
|
874
|
-
export const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
875
|
-
if (output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const data = await parseBody(output.body, context);
|
|
879
|
-
let contents = {};
|
|
880
|
-
contents = _json(data);
|
|
881
|
-
const response = {
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
...contents,
|
|
884
|
-
};
|
|
885
|
-
return response;
|
|
886
|
-
};
|
|
887
|
-
export const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
888
|
-
if (output.statusCode >= 300) {
|
|
889
|
-
return de_CommandError(output, context);
|
|
890
|
-
}
|
|
891
|
-
const data = await parseBody(output.body, context);
|
|
892
|
-
let contents = {};
|
|
893
|
-
contents = _json(data);
|
|
894
|
-
const response = {
|
|
895
|
-
$metadata: deserializeMetadata(output),
|
|
896
|
-
...contents,
|
|
897
|
-
};
|
|
898
|
-
return response;
|
|
899
|
-
};
|
|
900
|
-
export const de_DescribeDestinationsCommand = async (output, context) => {
|
|
901
|
-
if (output.statusCode >= 300) {
|
|
902
|
-
return de_CommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const data = await parseBody(output.body, context);
|
|
905
|
-
let contents = {};
|
|
906
|
-
contents = _json(data);
|
|
907
|
-
const response = {
|
|
908
|
-
$metadata: deserializeMetadata(output),
|
|
909
|
-
...contents,
|
|
910
|
-
};
|
|
911
|
-
return response;
|
|
912
|
-
};
|
|
913
|
-
export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const data = await parseBody(output.body, context);
|
|
918
|
-
let contents = {};
|
|
919
|
-
contents = _json(data);
|
|
920
|
-
const response = {
|
|
921
|
-
$metadata: deserializeMetadata(output),
|
|
922
|
-
...contents,
|
|
923
|
-
};
|
|
924
|
-
return response;
|
|
925
|
-
};
|
|
926
|
-
export const de_DescribeFieldIndexesCommand = async (output, context) => {
|
|
927
|
-
if (output.statusCode >= 300) {
|
|
928
|
-
return de_CommandError(output, context);
|
|
929
|
-
}
|
|
930
|
-
const data = await parseBody(output.body, context);
|
|
931
|
-
let contents = {};
|
|
932
|
-
contents = _json(data);
|
|
933
|
-
const response = {
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
...contents,
|
|
936
|
-
};
|
|
937
|
-
return response;
|
|
938
|
-
};
|
|
939
|
-
export const de_DescribeIndexPoliciesCommand = async (output, context) => {
|
|
940
|
-
if (output.statusCode >= 300) {
|
|
941
|
-
return de_CommandError(output, context);
|
|
942
|
-
}
|
|
943
|
-
const data = await parseBody(output.body, context);
|
|
944
|
-
let contents = {};
|
|
945
|
-
contents = _json(data);
|
|
946
|
-
const response = {
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
...contents,
|
|
949
|
-
};
|
|
950
|
-
return response;
|
|
951
|
-
};
|
|
952
|
-
export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
953
|
-
if (output.statusCode >= 300) {
|
|
954
|
-
return de_CommandError(output, context);
|
|
955
|
-
}
|
|
956
|
-
const data = await parseBody(output.body, context);
|
|
957
|
-
let contents = {};
|
|
958
|
-
contents = _json(data);
|
|
959
|
-
const response = {
|
|
960
|
-
$metadata: deserializeMetadata(output),
|
|
961
|
-
...contents,
|
|
962
|
-
};
|
|
963
|
-
return response;
|
|
964
|
-
};
|
|
965
|
-
export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode >= 300) {
|
|
967
|
-
return de_CommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const data = await parseBody(output.body, context);
|
|
970
|
-
let contents = {};
|
|
971
|
-
contents = _json(data);
|
|
972
|
-
const response = {
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
...contents,
|
|
975
|
-
};
|
|
976
|
-
return response;
|
|
977
|
-
};
|
|
978
|
-
export const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
979
|
-
if (output.statusCode >= 300) {
|
|
980
|
-
return de_CommandError(output, context);
|
|
981
|
-
}
|
|
982
|
-
const data = await parseBody(output.body, context);
|
|
983
|
-
let contents = {};
|
|
984
|
-
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
985
|
-
const response = {
|
|
986
|
-
$metadata: deserializeMetadata(output),
|
|
987
|
-
...contents,
|
|
988
|
-
};
|
|
989
|
-
return response;
|
|
990
|
-
};
|
|
991
|
-
export const de_DescribeQueriesCommand = async (output, context) => {
|
|
992
|
-
if (output.statusCode >= 300) {
|
|
993
|
-
return de_CommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const data = await parseBody(output.body, context);
|
|
996
|
-
let contents = {};
|
|
997
|
-
contents = _json(data);
|
|
998
|
-
const response = {
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
...contents,
|
|
1001
|
-
};
|
|
1002
|
-
return response;
|
|
1003
|
-
};
|
|
1004
|
-
export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1005
|
-
if (output.statusCode >= 300) {
|
|
1006
|
-
return de_CommandError(output, context);
|
|
1007
|
-
}
|
|
1008
|
-
const data = await parseBody(output.body, context);
|
|
1009
|
-
let contents = {};
|
|
1010
|
-
contents = _json(data);
|
|
1011
|
-
const response = {
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
...contents,
|
|
1014
|
-
};
|
|
1015
|
-
return response;
|
|
1016
|
-
};
|
|
1017
|
-
export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1018
|
-
if (output.statusCode >= 300) {
|
|
1019
|
-
return de_CommandError(output, context);
|
|
1020
|
-
}
|
|
1021
|
-
const data = await parseBody(output.body, context);
|
|
1022
|
-
let contents = {};
|
|
1023
|
-
contents = _json(data);
|
|
1024
|
-
const response = {
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
...contents,
|
|
1027
|
-
};
|
|
1028
|
-
return response;
|
|
1029
|
-
};
|
|
1030
|
-
export const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1031
|
-
if (output.statusCode >= 300) {
|
|
1032
|
-
return de_CommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
const data = await parseBody(output.body, context);
|
|
1035
|
-
let contents = {};
|
|
1036
|
-
contents = _json(data);
|
|
1037
|
-
const response = {
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
...contents,
|
|
1040
|
-
};
|
|
1041
|
-
return response;
|
|
1042
|
-
};
|
|
1043
|
-
export const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
1044
|
-
if (output.statusCode >= 300) {
|
|
1045
|
-
return de_CommandError(output, context);
|
|
1046
|
-
}
|
|
1047
|
-
await collectBody(output.body, context);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
return response;
|
|
1052
|
-
};
|
|
1053
|
-
export const de_FilterLogEventsCommand = async (output, context) => {
|
|
1054
|
-
if (output.statusCode >= 300) {
|
|
1055
|
-
return de_CommandError(output, context);
|
|
1056
|
-
}
|
|
1057
|
-
const data = await parseBody(output.body, context);
|
|
1058
|
-
let contents = {};
|
|
1059
|
-
contents = _json(data);
|
|
1060
|
-
const response = {
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
...contents,
|
|
1063
|
-
};
|
|
1064
|
-
return response;
|
|
1065
|
-
};
|
|
1066
|
-
export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
1067
|
-
if (output.statusCode >= 300) {
|
|
1068
|
-
return de_CommandError(output, context);
|
|
1069
|
-
}
|
|
1070
|
-
const data = await parseBody(output.body, context);
|
|
1071
|
-
let contents = {};
|
|
1072
|
-
contents = _json(data);
|
|
1073
|
-
const response = {
|
|
1074
|
-
$metadata: deserializeMetadata(output),
|
|
1075
|
-
...contents,
|
|
1076
|
-
};
|
|
1077
|
-
return response;
|
|
1078
|
-
};
|
|
1079
|
-
export const de_GetDeliveryCommand = async (output, context) => {
|
|
1080
|
-
if (output.statusCode >= 300) {
|
|
1081
|
-
return de_CommandError(output, context);
|
|
1082
|
-
}
|
|
1083
|
-
const data = await parseBody(output.body, context);
|
|
1084
|
-
let contents = {};
|
|
1085
|
-
contents = _json(data);
|
|
1086
|
-
const response = {
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
...contents,
|
|
1089
|
-
};
|
|
1090
|
-
return response;
|
|
1091
|
-
};
|
|
1092
|
-
export const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
1093
|
-
if (output.statusCode >= 300) {
|
|
1094
|
-
return de_CommandError(output, context);
|
|
1095
|
-
}
|
|
1096
|
-
const data = await parseBody(output.body, context);
|
|
1097
|
-
let contents = {};
|
|
1098
|
-
contents = _json(data);
|
|
1099
|
-
const response = {
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
...contents,
|
|
1102
|
-
};
|
|
1103
|
-
return response;
|
|
1104
|
-
};
|
|
1105
|
-
export const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1106
|
-
if (output.statusCode >= 300) {
|
|
1107
|
-
return de_CommandError(output, context);
|
|
1108
|
-
}
|
|
1109
|
-
const data = await parseBody(output.body, context);
|
|
1110
|
-
let contents = {};
|
|
1111
|
-
contents = _json(data);
|
|
1112
|
-
const response = {
|
|
1113
|
-
$metadata: deserializeMetadata(output),
|
|
1114
|
-
...contents,
|
|
1115
|
-
};
|
|
1116
|
-
return response;
|
|
1117
|
-
};
|
|
1118
|
-
export const de_GetDeliverySourceCommand = async (output, context) => {
|
|
1119
|
-
if (output.statusCode >= 300) {
|
|
1120
|
-
return de_CommandError(output, context);
|
|
1121
|
-
}
|
|
1122
|
-
const data = await parseBody(output.body, context);
|
|
1123
|
-
let contents = {};
|
|
1124
|
-
contents = _json(data);
|
|
1125
|
-
const response = {
|
|
1126
|
-
$metadata: deserializeMetadata(output),
|
|
1127
|
-
...contents,
|
|
1128
|
-
};
|
|
1129
|
-
return response;
|
|
1130
|
-
};
|
|
1131
|
-
export const de_GetIntegrationCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const data = await parseBody(output.body, context);
|
|
1136
|
-
let contents = {};
|
|
1137
|
-
contents = _json(data);
|
|
1138
|
-
const response = {
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
...contents,
|
|
1141
|
-
};
|
|
1142
|
-
return response;
|
|
1143
|
-
};
|
|
1144
|
-
export const de_GetLogAnomalyDetectorCommand = async (output, context) => {
|
|
1145
|
-
if (output.statusCode >= 300) {
|
|
1146
|
-
return de_CommandError(output, context);
|
|
1147
|
-
}
|
|
1148
|
-
const data = await parseBody(output.body, context);
|
|
1149
|
-
let contents = {};
|
|
1150
|
-
contents = _json(data);
|
|
1151
|
-
const response = {
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
...contents,
|
|
1154
|
-
};
|
|
1155
|
-
return response;
|
|
1156
|
-
};
|
|
1157
|
-
export const de_GetLogEventsCommand = async (output, context) => {
|
|
1158
|
-
if (output.statusCode >= 300) {
|
|
1159
|
-
return de_CommandError(output, context);
|
|
1160
|
-
}
|
|
1161
|
-
const data = await parseBody(output.body, context);
|
|
1162
|
-
let contents = {};
|
|
1163
|
-
contents = _json(data);
|
|
1164
|
-
const response = {
|
|
1165
|
-
$metadata: deserializeMetadata(output),
|
|
1166
|
-
...contents,
|
|
1167
|
-
};
|
|
1168
|
-
return response;
|
|
1169
|
-
};
|
|
1170
|
-
export const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
1171
|
-
if (output.statusCode >= 300) {
|
|
1172
|
-
return de_CommandError(output, context);
|
|
1173
|
-
}
|
|
1174
|
-
const data = await parseBody(output.body, context);
|
|
1175
|
-
let contents = {};
|
|
1176
|
-
contents = _json(data);
|
|
1177
|
-
const response = {
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
...contents,
|
|
1180
|
-
};
|
|
1181
|
-
return response;
|
|
1182
|
-
};
|
|
1183
|
-
export const de_GetLogObjectCommand = async (output, context) => {
|
|
1184
|
-
if (output.statusCode >= 300) {
|
|
1185
|
-
return de_CommandError(output, context);
|
|
1186
|
-
}
|
|
1187
|
-
const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) };
|
|
1188
|
-
const response = {
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
...contents,
|
|
1191
|
-
};
|
|
1192
|
-
return response;
|
|
1193
|
-
};
|
|
1194
|
-
export const de_GetLogRecordCommand = async (output, context) => {
|
|
1195
|
-
if (output.statusCode >= 300) {
|
|
1196
|
-
return de_CommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const data = await parseBody(output.body, context);
|
|
1199
|
-
let contents = {};
|
|
1200
|
-
contents = _json(data);
|
|
1201
|
-
const response = {
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
...contents,
|
|
1204
|
-
};
|
|
1205
|
-
return response;
|
|
1206
|
-
};
|
|
1207
|
-
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
1208
|
-
if (output.statusCode >= 300) {
|
|
1209
|
-
return de_CommandError(output, context);
|
|
1210
|
-
}
|
|
1211
|
-
const data = await parseBody(output.body, context);
|
|
1212
|
-
let contents = {};
|
|
1213
|
-
contents = de_GetQueryResultsResponse(data, context);
|
|
1214
|
-
const response = {
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
...contents,
|
|
1217
|
-
};
|
|
1218
|
-
return response;
|
|
1219
|
-
};
|
|
1220
|
-
export const de_GetTransformerCommand = async (output, context) => {
|
|
1221
|
-
if (output.statusCode >= 300) {
|
|
1222
|
-
return de_CommandError(output, context);
|
|
1223
|
-
}
|
|
1224
|
-
const data = await parseBody(output.body, context);
|
|
1225
|
-
let contents = {};
|
|
1226
|
-
contents = _json(data);
|
|
1227
|
-
const response = {
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
...contents,
|
|
1230
|
-
};
|
|
1231
|
-
return response;
|
|
1232
|
-
};
|
|
1233
|
-
export const de_ListAnomaliesCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return de_CommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data = await parseBody(output.body, context);
|
|
1238
|
-
let contents = {};
|
|
1239
|
-
contents = _json(data);
|
|
1240
|
-
const response = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents,
|
|
1243
|
-
};
|
|
1244
|
-
return response;
|
|
1245
|
-
};
|
|
1246
|
-
export const de_ListIntegrationsCommand = async (output, context) => {
|
|
1247
|
-
if (output.statusCode >= 300) {
|
|
1248
|
-
return de_CommandError(output, context);
|
|
1249
|
-
}
|
|
1250
|
-
const data = await parseBody(output.body, context);
|
|
1251
|
-
let contents = {};
|
|
1252
|
-
contents = _json(data);
|
|
1253
|
-
const response = {
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
...contents,
|
|
1256
|
-
};
|
|
1257
|
-
return response;
|
|
1258
|
-
};
|
|
1259
|
-
export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
1260
|
-
if (output.statusCode >= 300) {
|
|
1261
|
-
return de_CommandError(output, context);
|
|
1262
|
-
}
|
|
1263
|
-
const data = await parseBody(output.body, context);
|
|
1264
|
-
let contents = {};
|
|
1265
|
-
contents = _json(data);
|
|
1266
|
-
const response = {
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
...contents,
|
|
1269
|
-
};
|
|
1270
|
-
return response;
|
|
1271
|
-
};
|
|
1272
|
-
export const de_ListLogGroupsCommand = async (output, context) => {
|
|
1273
|
-
if (output.statusCode >= 300) {
|
|
1274
|
-
return de_CommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const data = await parseBody(output.body, context);
|
|
1277
|
-
let contents = {};
|
|
1278
|
-
contents = _json(data);
|
|
1279
|
-
const response = {
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
...contents,
|
|
1282
|
-
};
|
|
1283
|
-
return response;
|
|
1284
|
-
};
|
|
1285
|
-
export const de_ListLogGroupsForQueryCommand = async (output, context) => {
|
|
1286
|
-
if (output.statusCode >= 300) {
|
|
1287
|
-
return de_CommandError(output, context);
|
|
1288
|
-
}
|
|
1289
|
-
const data = await parseBody(output.body, context);
|
|
1290
|
-
let contents = {};
|
|
1291
|
-
contents = _json(data);
|
|
1292
|
-
const response = {
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
...contents,
|
|
1295
|
-
};
|
|
1296
|
-
return response;
|
|
1297
|
-
};
|
|
1298
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1299
|
-
if (output.statusCode >= 300) {
|
|
1300
|
-
return de_CommandError(output, context);
|
|
1301
|
-
}
|
|
1302
|
-
const data = await parseBody(output.body, context);
|
|
1303
|
-
let contents = {};
|
|
1304
|
-
contents = _json(data);
|
|
1305
|
-
const response = {
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
...contents,
|
|
1308
|
-
};
|
|
1309
|
-
return response;
|
|
1310
|
-
};
|
|
1311
|
-
export const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
1312
|
-
if (output.statusCode >= 300) {
|
|
1313
|
-
return de_CommandError(output, context);
|
|
1314
|
-
}
|
|
1315
|
-
const data = await parseBody(output.body, context);
|
|
1316
|
-
let contents = {};
|
|
1317
|
-
contents = _json(data);
|
|
1318
|
-
const response = {
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
...contents,
|
|
1321
|
-
};
|
|
1322
|
-
return response;
|
|
1323
|
-
};
|
|
1324
|
-
export const de_PutAccountPolicyCommand = async (output, context) => {
|
|
1325
|
-
if (output.statusCode >= 300) {
|
|
1326
|
-
return de_CommandError(output, context);
|
|
1327
|
-
}
|
|
1328
|
-
const data = await parseBody(output.body, context);
|
|
1329
|
-
let contents = {};
|
|
1330
|
-
contents = _json(data);
|
|
1331
|
-
const response = {
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
...contents,
|
|
1334
|
-
};
|
|
1335
|
-
return response;
|
|
1336
|
-
};
|
|
1337
|
-
export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode >= 300) {
|
|
1339
|
-
return de_CommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const data = await parseBody(output.body, context);
|
|
1342
|
-
let contents = {};
|
|
1343
|
-
contents = _json(data);
|
|
1344
|
-
const response = {
|
|
1345
|
-
$metadata: deserializeMetadata(output),
|
|
1346
|
-
...contents,
|
|
1347
|
-
};
|
|
1348
|
-
return response;
|
|
1349
|
-
};
|
|
1350
|
-
export const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
1351
|
-
if (output.statusCode >= 300) {
|
|
1352
|
-
return de_CommandError(output, context);
|
|
1353
|
-
}
|
|
1354
|
-
const data = await parseBody(output.body, context);
|
|
1355
|
-
let contents = {};
|
|
1356
|
-
contents = _json(data);
|
|
1357
|
-
const response = {
|
|
1358
|
-
$metadata: deserializeMetadata(output),
|
|
1359
|
-
...contents,
|
|
1360
|
-
};
|
|
1361
|
-
return response;
|
|
1362
|
-
};
|
|
1363
|
-
export const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1364
|
-
if (output.statusCode >= 300) {
|
|
1365
|
-
return de_CommandError(output, context);
|
|
1366
|
-
}
|
|
1367
|
-
const data = await parseBody(output.body, context);
|
|
1368
|
-
let contents = {};
|
|
1369
|
-
contents = _json(data);
|
|
1370
|
-
const response = {
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
...contents,
|
|
1373
|
-
};
|
|
1374
|
-
return response;
|
|
1375
|
-
};
|
|
1376
|
-
export const de_PutDeliverySourceCommand = async (output, context) => {
|
|
1377
|
-
if (output.statusCode >= 300) {
|
|
1378
|
-
return de_CommandError(output, context);
|
|
1379
|
-
}
|
|
1380
|
-
const data = await parseBody(output.body, context);
|
|
1381
|
-
let contents = {};
|
|
1382
|
-
contents = _json(data);
|
|
1383
|
-
const response = {
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
...contents,
|
|
1386
|
-
};
|
|
1387
|
-
return response;
|
|
1388
|
-
};
|
|
1389
|
-
export const de_PutDestinationCommand = async (output, context) => {
|
|
1390
|
-
if (output.statusCode >= 300) {
|
|
1391
|
-
return de_CommandError(output, context);
|
|
1392
|
-
}
|
|
1393
|
-
const data = await parseBody(output.body, context);
|
|
1394
|
-
let contents = {};
|
|
1395
|
-
contents = _json(data);
|
|
1396
|
-
const response = {
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
...contents,
|
|
1399
|
-
};
|
|
1400
|
-
return response;
|
|
1401
|
-
};
|
|
1402
|
-
export const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
1403
|
-
if (output.statusCode >= 300) {
|
|
1404
|
-
return de_CommandError(output, context);
|
|
1405
|
-
}
|
|
1406
|
-
await collectBody(output.body, context);
|
|
1407
|
-
const response = {
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
return response;
|
|
1411
|
-
};
|
|
1412
|
-
export const de_PutIndexPolicyCommand = async (output, context) => {
|
|
1413
|
-
if (output.statusCode >= 300) {
|
|
1414
|
-
return de_CommandError(output, context);
|
|
1415
|
-
}
|
|
1416
|
-
const data = await parseBody(output.body, context);
|
|
1417
|
-
let contents = {};
|
|
1418
|
-
contents = _json(data);
|
|
1419
|
-
const response = {
|
|
1420
|
-
$metadata: deserializeMetadata(output),
|
|
1421
|
-
...contents,
|
|
1422
|
-
};
|
|
1423
|
-
return response;
|
|
1424
|
-
};
|
|
1425
|
-
export const de_PutIntegrationCommand = async (output, context) => {
|
|
1426
|
-
if (output.statusCode >= 300) {
|
|
1427
|
-
return de_CommandError(output, context);
|
|
1428
|
-
}
|
|
1429
|
-
const data = await parseBody(output.body, context);
|
|
1430
|
-
let contents = {};
|
|
1431
|
-
contents = _json(data);
|
|
1432
|
-
const response = {
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
...contents,
|
|
1435
|
-
};
|
|
1436
|
-
return response;
|
|
1437
|
-
};
|
|
1438
|
-
export const de_PutLogEventsCommand = async (output, context) => {
|
|
1439
|
-
if (output.statusCode >= 300) {
|
|
1440
|
-
return de_CommandError(output, context);
|
|
1441
|
-
}
|
|
1442
|
-
const data = await parseBody(output.body, context);
|
|
1443
|
-
let contents = {};
|
|
1444
|
-
contents = _json(data);
|
|
1445
|
-
const response = {
|
|
1446
|
-
$metadata: deserializeMetadata(output),
|
|
1447
|
-
...contents,
|
|
1448
|
-
};
|
|
1449
|
-
return response;
|
|
1450
|
-
};
|
|
1451
|
-
export const de_PutMetricFilterCommand = async (output, context) => {
|
|
1452
|
-
if (output.statusCode >= 300) {
|
|
1453
|
-
return de_CommandError(output, context);
|
|
1454
|
-
}
|
|
1455
|
-
await collectBody(output.body, context);
|
|
1456
|
-
const response = {
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1459
|
-
return response;
|
|
1460
|
-
};
|
|
1461
|
-
export const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
1462
|
-
if (output.statusCode >= 300) {
|
|
1463
|
-
return de_CommandError(output, context);
|
|
1464
|
-
}
|
|
1465
|
-
const data = await parseBody(output.body, context);
|
|
1466
|
-
let contents = {};
|
|
1467
|
-
contents = _json(data);
|
|
1468
|
-
const response = {
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
...contents,
|
|
1471
|
-
};
|
|
1472
|
-
return response;
|
|
1473
|
-
};
|
|
1474
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1475
|
-
if (output.statusCode >= 300) {
|
|
1476
|
-
return de_CommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const data = await parseBody(output.body, context);
|
|
1479
|
-
let contents = {};
|
|
1480
|
-
contents = _json(data);
|
|
1481
|
-
const response = {
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
...contents,
|
|
1484
|
-
};
|
|
1485
|
-
return response;
|
|
1486
|
-
};
|
|
1487
|
-
export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
1488
|
-
if (output.statusCode >= 300) {
|
|
1489
|
-
return de_CommandError(output, context);
|
|
1490
|
-
}
|
|
1491
|
-
await collectBody(output.body, context);
|
|
1492
|
-
const response = {
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
return response;
|
|
1496
|
-
};
|
|
1497
|
-
export const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
1498
|
-
if (output.statusCode >= 300) {
|
|
1499
|
-
return de_CommandError(output, context);
|
|
1500
|
-
}
|
|
1501
|
-
await collectBody(output.body, context);
|
|
1502
|
-
const response = {
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
};
|
|
1505
|
-
return response;
|
|
1506
|
-
};
|
|
1507
|
-
export const de_PutTransformerCommand = async (output, context) => {
|
|
1508
|
-
if (output.statusCode >= 300) {
|
|
1509
|
-
return de_CommandError(output, context);
|
|
1510
|
-
}
|
|
1511
|
-
await collectBody(output.body, context);
|
|
1512
|
-
const response = {
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
};
|
|
1515
|
-
return response;
|
|
1516
|
-
};
|
|
1517
|
-
export const de_StartLiveTailCommand = async (output, context) => {
|
|
1518
|
-
if (output.statusCode >= 300) {
|
|
1519
|
-
return de_CommandError(output, context);
|
|
1520
|
-
}
|
|
1521
|
-
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
|
|
1522
|
-
const response = {
|
|
1523
|
-
$metadata: deserializeMetadata(output),
|
|
1524
|
-
...contents,
|
|
1525
|
-
};
|
|
1526
|
-
return response;
|
|
1527
|
-
};
|
|
1528
|
-
export const de_StartQueryCommand = async (output, context) => {
|
|
1529
|
-
if (output.statusCode >= 300) {
|
|
1530
|
-
return de_CommandError(output, context);
|
|
1531
|
-
}
|
|
1532
|
-
const data = await parseBody(output.body, context);
|
|
1533
|
-
let contents = {};
|
|
1534
|
-
contents = _json(data);
|
|
1535
|
-
const response = {
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
...contents,
|
|
1538
|
-
};
|
|
1539
|
-
return response;
|
|
1540
|
-
};
|
|
1541
|
-
export const de_StopQueryCommand = async (output, context) => {
|
|
1542
|
-
if (output.statusCode >= 300) {
|
|
1543
|
-
return de_CommandError(output, context);
|
|
1544
|
-
}
|
|
1545
|
-
const data = await parseBody(output.body, context);
|
|
1546
|
-
let contents = {};
|
|
1547
|
-
contents = _json(data);
|
|
1548
|
-
const response = {
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
...contents,
|
|
1551
|
-
};
|
|
1552
|
-
return response;
|
|
1553
|
-
};
|
|
1554
|
-
export const de_TagLogGroupCommand = async (output, context) => {
|
|
1555
|
-
if (output.statusCode >= 300) {
|
|
1556
|
-
return de_CommandError(output, context);
|
|
1557
|
-
}
|
|
1558
|
-
await collectBody(output.body, context);
|
|
1559
|
-
const response = {
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
};
|
|
1562
|
-
return response;
|
|
1563
|
-
};
|
|
1564
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1565
|
-
if (output.statusCode >= 300) {
|
|
1566
|
-
return de_CommandError(output, context);
|
|
1567
|
-
}
|
|
1568
|
-
await collectBody(output.body, context);
|
|
1569
|
-
const response = {
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
};
|
|
1572
|
-
return response;
|
|
1573
|
-
};
|
|
1574
|
-
export const de_TestMetricFilterCommand = async (output, context) => {
|
|
1575
|
-
if (output.statusCode >= 300) {
|
|
1576
|
-
return de_CommandError(output, context);
|
|
1577
|
-
}
|
|
1578
|
-
const data = await parseBody(output.body, context);
|
|
1579
|
-
let contents = {};
|
|
1580
|
-
contents = _json(data);
|
|
1581
|
-
const response = {
|
|
1582
|
-
$metadata: deserializeMetadata(output),
|
|
1583
|
-
...contents,
|
|
1584
|
-
};
|
|
1585
|
-
return response;
|
|
1586
|
-
};
|
|
1587
|
-
export const de_TestTransformerCommand = async (output, context) => {
|
|
1588
|
-
if (output.statusCode >= 300) {
|
|
1589
|
-
return de_CommandError(output, context);
|
|
1590
|
-
}
|
|
1591
|
-
const data = await parseBody(output.body, context);
|
|
1592
|
-
let contents = {};
|
|
1593
|
-
contents = _json(data);
|
|
1594
|
-
const response = {
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
...contents,
|
|
1597
|
-
};
|
|
1598
|
-
return response;
|
|
1599
|
-
};
|
|
1600
|
-
export const de_UntagLogGroupCommand = async (output, context) => {
|
|
1601
|
-
if (output.statusCode >= 300) {
|
|
1602
|
-
return de_CommandError(output, context);
|
|
1603
|
-
}
|
|
1604
|
-
await collectBody(output.body, context);
|
|
1605
|
-
const response = {
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1608
|
-
return response;
|
|
1609
|
-
};
|
|
1610
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1611
|
-
if (output.statusCode >= 300) {
|
|
1612
|
-
return de_CommandError(output, context);
|
|
1613
|
-
}
|
|
1614
|
-
await collectBody(output.body, context);
|
|
1615
|
-
const response = {
|
|
1616
|
-
$metadata: deserializeMetadata(output),
|
|
1617
|
-
};
|
|
1618
|
-
return response;
|
|
1619
|
-
};
|
|
1620
|
-
export const de_UpdateAnomalyCommand = async (output, context) => {
|
|
1621
|
-
if (output.statusCode >= 300) {
|
|
1622
|
-
return de_CommandError(output, context);
|
|
1623
|
-
}
|
|
1624
|
-
await collectBody(output.body, context);
|
|
1625
|
-
const response = {
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
return response;
|
|
1629
|
-
};
|
|
1630
|
-
export const de_UpdateDeliveryConfigurationCommand = async (output, context) => {
|
|
1631
|
-
if (output.statusCode >= 300) {
|
|
1632
|
-
return de_CommandError(output, context);
|
|
1633
|
-
}
|
|
1634
|
-
const data = await parseBody(output.body, context);
|
|
1635
|
-
let contents = {};
|
|
1636
|
-
contents = _json(data);
|
|
1637
|
-
const response = {
|
|
1638
|
-
$metadata: deserializeMetadata(output),
|
|
1639
|
-
...contents,
|
|
1640
|
-
};
|
|
1641
|
-
return response;
|
|
1642
|
-
};
|
|
1643
|
-
export const de_UpdateLogAnomalyDetectorCommand = async (output, context) => {
|
|
1644
|
-
if (output.statusCode >= 300) {
|
|
1645
|
-
return de_CommandError(output, context);
|
|
1646
|
-
}
|
|
1647
|
-
await collectBody(output.body, context);
|
|
1648
|
-
const response = {
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
return response;
|
|
1652
|
-
};
|
|
1653
|
-
const de_CommandError = async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context),
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "InvalidParameterException":
|
|
1661
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1662
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "OperationAbortedException":
|
|
1664
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1665
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ResourceNotFoundException":
|
|
1667
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ServiceUnavailableException":
|
|
1670
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1671
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "InvalidOperationException":
|
|
1673
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
1674
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "AccessDeniedException":
|
|
1676
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
1677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ConflictException":
|
|
1679
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ServiceQuotaExceededException":
|
|
1682
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1683
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ThrottlingException":
|
|
1685
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1686
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ValidationException":
|
|
1688
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "LimitExceededException":
|
|
1691
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1692
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ResourceAlreadyExistsException":
|
|
1694
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
1695
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "DataAlreadyAcceptedException":
|
|
1697
|
-
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
1698
|
-
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "InvalidSequenceTokenException":
|
|
1700
|
-
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
1701
|
-
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "UnrecognizedClientException":
|
|
1703
|
-
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
1704
|
-
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "MalformedQueryException":
|
|
1706
|
-
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
1707
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "TooManyTagsException":
|
|
1709
|
-
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
1710
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1711
|
-
default:
|
|
1712
|
-
const parsedBody = parsedOutput.body;
|
|
1713
|
-
return throwDefaultError({
|
|
1714
|
-
output,
|
|
1715
|
-
parsedBody,
|
|
1716
|
-
errorCode,
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
};
|
|
1720
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1721
|
-
const body = parsedOutput.body;
|
|
1722
|
-
const deserialized = _json(body);
|
|
1723
|
-
const exception = new AccessDeniedException({
|
|
1724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1725
|
-
...deserialized,
|
|
1726
|
-
});
|
|
1727
|
-
return __decorateServiceException(exception, body);
|
|
1728
|
-
};
|
|
1729
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1730
|
-
const body = parsedOutput.body;
|
|
1731
|
-
const deserialized = _json(body);
|
|
1732
|
-
const exception = new ConflictException({
|
|
1733
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1734
|
-
...deserialized,
|
|
1735
|
-
});
|
|
1736
|
-
return __decorateServiceException(exception, body);
|
|
1737
|
-
};
|
|
1738
|
-
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
1739
|
-
const body = parsedOutput.body;
|
|
1740
|
-
const deserialized = _json(body);
|
|
1741
|
-
const exception = new DataAlreadyAcceptedException({
|
|
1742
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1743
|
-
...deserialized,
|
|
1744
|
-
});
|
|
1745
|
-
return __decorateServiceException(exception, body);
|
|
1746
|
-
};
|
|
1747
|
-
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1748
|
-
const body = parsedOutput.body;
|
|
1749
|
-
const deserialized = _json(body);
|
|
1750
|
-
const exception = new InvalidOperationException({
|
|
1751
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1752
|
-
...deserialized,
|
|
1753
|
-
});
|
|
1754
|
-
return __decorateServiceException(exception, body);
|
|
1755
|
-
};
|
|
1756
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1757
|
-
const body = parsedOutput.body;
|
|
1758
|
-
const deserialized = _json(body);
|
|
1759
|
-
const exception = new InvalidParameterException({
|
|
1760
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1761
|
-
...deserialized,
|
|
1762
|
-
});
|
|
1763
|
-
return __decorateServiceException(exception, body);
|
|
1764
|
-
};
|
|
1765
|
-
const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
|
|
1766
|
-
const body = parsedOutput.body;
|
|
1767
|
-
const deserialized = _json(body);
|
|
1768
|
-
const exception = new InvalidSequenceTokenException({
|
|
1769
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1770
|
-
...deserialized,
|
|
1771
|
-
});
|
|
1772
|
-
return __decorateServiceException(exception, body);
|
|
1773
|
-
};
|
|
1774
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1775
|
-
const body = parsedOutput.body;
|
|
1776
|
-
const deserialized = _json(body);
|
|
1777
|
-
const exception = new LimitExceededException({
|
|
1778
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1779
|
-
...deserialized,
|
|
1780
|
-
});
|
|
1781
|
-
return __decorateServiceException(exception, body);
|
|
1782
|
-
};
|
|
1783
|
-
const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
1784
|
-
const body = parsedOutput.body;
|
|
1785
|
-
const deserialized = _json(body);
|
|
1786
|
-
const exception = new MalformedQueryException({
|
|
1787
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1788
|
-
...deserialized,
|
|
1789
|
-
});
|
|
1790
|
-
return __decorateServiceException(exception, body);
|
|
1791
|
-
};
|
|
1792
|
-
const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
|
|
1793
|
-
const body = parsedOutput.body;
|
|
1794
|
-
const deserialized = _json(body);
|
|
1795
|
-
const exception = new OperationAbortedException({
|
|
1796
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1797
|
-
...deserialized,
|
|
1798
|
-
});
|
|
1799
|
-
return __decorateServiceException(exception, body);
|
|
1800
|
-
};
|
|
1801
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1802
|
-
const body = parsedOutput.body;
|
|
1803
|
-
const deserialized = _json(body);
|
|
1804
|
-
const exception = new ResourceAlreadyExistsException({
|
|
1805
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1806
|
-
...deserialized,
|
|
1807
|
-
});
|
|
1808
|
-
return __decorateServiceException(exception, body);
|
|
1809
|
-
};
|
|
1810
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1811
|
-
const body = parsedOutput.body;
|
|
1812
|
-
const deserialized = _json(body);
|
|
1813
|
-
const exception = new ResourceNotFoundException({
|
|
1814
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1815
|
-
...deserialized,
|
|
1816
|
-
});
|
|
1817
|
-
return __decorateServiceException(exception, body);
|
|
1818
|
-
};
|
|
1819
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1820
|
-
const body = parsedOutput.body;
|
|
1821
|
-
const deserialized = _json(body);
|
|
1822
|
-
const exception = new ServiceQuotaExceededException({
|
|
1823
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1824
|
-
...deserialized,
|
|
1825
|
-
});
|
|
1826
|
-
return __decorateServiceException(exception, body);
|
|
1827
|
-
};
|
|
1828
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1829
|
-
const body = parsedOutput.body;
|
|
1830
|
-
const deserialized = _json(body);
|
|
1831
|
-
const exception = new ServiceUnavailableException({
|
|
1832
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1833
|
-
...deserialized,
|
|
1834
|
-
});
|
|
1835
|
-
return __decorateServiceException(exception, body);
|
|
1836
|
-
};
|
|
1837
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1838
|
-
const body = parsedOutput.body;
|
|
1839
|
-
const deserialized = _json(body);
|
|
1840
|
-
const exception = new ThrottlingException({
|
|
1841
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1842
|
-
...deserialized,
|
|
1843
|
-
});
|
|
1844
|
-
return __decorateServiceException(exception, body);
|
|
1845
|
-
};
|
|
1846
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1847
|
-
const body = parsedOutput.body;
|
|
1848
|
-
const deserialized = _json(body);
|
|
1849
|
-
const exception = new TooManyTagsException({
|
|
1850
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1851
|
-
...deserialized,
|
|
1852
|
-
});
|
|
1853
|
-
return __decorateServiceException(exception, body);
|
|
1854
|
-
};
|
|
1855
|
-
const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
1856
|
-
const body = parsedOutput.body;
|
|
1857
|
-
const deserialized = _json(body);
|
|
1858
|
-
const exception = new UnrecognizedClientException({
|
|
1859
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1860
|
-
...deserialized,
|
|
1861
|
-
});
|
|
1862
|
-
return __decorateServiceException(exception, body);
|
|
1863
|
-
};
|
|
1864
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1865
|
-
const body = parsedOutput.body;
|
|
1866
|
-
const deserialized = _json(body);
|
|
1867
|
-
const exception = new ValidationException({
|
|
1868
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1869
|
-
...deserialized,
|
|
1870
|
-
});
|
|
1871
|
-
return __decorateServiceException(exception, body);
|
|
1872
|
-
};
|
|
1873
|
-
const de_GetLogObjectResponseStream = (output, context) => {
|
|
1874
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1875
|
-
if (event["fields"] != null) {
|
|
1876
|
-
return {
|
|
1877
|
-
fields: await de_FieldsData_event(event["fields"], context),
|
|
1878
|
-
};
|
|
1879
|
-
}
|
|
1880
|
-
if (event["InternalStreamingException"] != null) {
|
|
1881
|
-
return {
|
|
1882
|
-
InternalStreamingException: await de_InternalStreamingException_event(event["InternalStreamingException"], context),
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
return { $unknown: event };
|
|
1886
|
-
});
|
|
1887
|
-
};
|
|
1888
|
-
const de_StartLiveTailResponseStream = (output, context) => {
|
|
1889
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1890
|
-
if (event["sessionStart"] != null) {
|
|
1891
|
-
return {
|
|
1892
|
-
sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context),
|
|
1893
|
-
};
|
|
1894
|
-
}
|
|
1895
|
-
if (event["sessionUpdate"] != null) {
|
|
1896
|
-
return {
|
|
1897
|
-
sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context),
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
if (event["SessionTimeoutException"] != null) {
|
|
1901
|
-
return {
|
|
1902
|
-
SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context),
|
|
1903
|
-
};
|
|
1904
|
-
}
|
|
1905
|
-
if (event["SessionStreamingException"] != null) {
|
|
1906
|
-
return {
|
|
1907
|
-
SessionStreamingException: await de_SessionStreamingException_event(event["SessionStreamingException"], context),
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
return { $unknown: event };
|
|
1911
|
-
});
|
|
1912
|
-
};
|
|
1913
|
-
const de_FieldsData_event = async (output, context) => {
|
|
1914
|
-
const contents = {};
|
|
1915
|
-
const data = await parseBody(output.body, context);
|
|
1916
|
-
Object.assign(contents, de_FieldsData(data, context));
|
|
1917
|
-
return contents;
|
|
1918
|
-
};
|
|
1919
|
-
const de_InternalStreamingException_event = async (output, context) => {
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseBody(output.body, context),
|
|
1923
|
-
};
|
|
1924
|
-
return de_InternalStreamingExceptionRes(parsedOutput, context);
|
|
1925
|
-
};
|
|
1926
|
-
const de_LiveTailSessionStart_event = async (output, context) => {
|
|
1927
|
-
const contents = {};
|
|
1928
|
-
const data = await parseBody(output.body, context);
|
|
1929
|
-
Object.assign(contents, _json(data));
|
|
1930
|
-
return contents;
|
|
1931
|
-
};
|
|
1932
|
-
const de_LiveTailSessionUpdate_event = async (output, context) => {
|
|
1933
|
-
const contents = {};
|
|
1934
|
-
const data = await parseBody(output.body, context);
|
|
1935
|
-
Object.assign(contents, _json(data));
|
|
1936
|
-
return contents;
|
|
1937
|
-
};
|
|
1938
|
-
const de_SessionStreamingException_event = async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseBody(output.body, context),
|
|
1942
|
-
};
|
|
1943
|
-
return de_SessionStreamingExceptionRes(parsedOutput, context);
|
|
1944
|
-
};
|
|
1945
|
-
const de_SessionTimeoutException_event = async (output, context) => {
|
|
1946
|
-
const parsedOutput = {
|
|
1947
|
-
...output,
|
|
1948
|
-
body: await parseBody(output.body, context),
|
|
1949
|
-
};
|
|
1950
|
-
return de_SessionTimeoutExceptionRes(parsedOutput, context);
|
|
1951
|
-
};
|
|
1952
|
-
const de_InternalStreamingExceptionRes = async (parsedOutput, context) => {
|
|
1953
|
-
const body = parsedOutput.body;
|
|
1954
|
-
const deserialized = _json(body);
|
|
1955
|
-
const exception = new InternalStreamingException({
|
|
1956
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1957
|
-
...deserialized,
|
|
1958
|
-
});
|
|
1959
|
-
return __decorateServiceException(exception, body);
|
|
1960
|
-
};
|
|
1961
|
-
const de_SessionStreamingExceptionRes = async (parsedOutput, context) => {
|
|
1962
|
-
const body = parsedOutput.body;
|
|
1963
|
-
const deserialized = _json(body);
|
|
1964
|
-
const exception = new SessionStreamingException({
|
|
1965
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1966
|
-
...deserialized,
|
|
1967
|
-
});
|
|
1968
|
-
return __decorateServiceException(exception, body);
|
|
1969
|
-
};
|
|
1970
|
-
const de_SessionTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
1971
|
-
const body = parsedOutput.body;
|
|
1972
|
-
const deserialized = _json(body);
|
|
1973
|
-
const exception = new SessionTimeoutException({
|
|
1974
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1975
|
-
...deserialized,
|
|
1976
|
-
});
|
|
1977
|
-
return __decorateServiceException(exception, body);
|
|
1978
|
-
};
|
|
1979
|
-
const se_MetricTransformation = (input, context) => {
|
|
1980
|
-
return take(input, {
|
|
1981
|
-
defaultValue: __serializeFloat,
|
|
1982
|
-
dimensions: _json,
|
|
1983
|
-
metricName: [],
|
|
1984
|
-
metricNamespace: [],
|
|
1985
|
-
metricValue: [],
|
|
1986
|
-
unit: [],
|
|
1987
|
-
});
|
|
1988
|
-
};
|
|
1989
|
-
const se_MetricTransformations = (input, context) => {
|
|
1990
|
-
return input
|
|
1991
|
-
.filter((e) => e != null)
|
|
1992
|
-
.map((entry) => {
|
|
1993
|
-
return se_MetricTransformation(entry, context);
|
|
1994
|
-
});
|
|
1995
|
-
};
|
|
1996
|
-
const se_PutMetricFilterRequest = (input, context) => {
|
|
1997
|
-
return take(input, {
|
|
1998
|
-
applyOnTransformedLogs: [],
|
|
1999
|
-
emitSystemFieldDimensions: _json,
|
|
2000
|
-
fieldSelectionCriteria: [],
|
|
2001
|
-
filterName: [],
|
|
2002
|
-
filterPattern: [],
|
|
2003
|
-
logGroupName: [],
|
|
2004
|
-
metricTransformations: (_) => se_MetricTransformations(_, context),
|
|
2005
|
-
});
|
|
2006
|
-
};
|
|
2007
|
-
const se_PutQueryDefinitionRequest = (input, context) => {
|
|
2008
|
-
return take(input, {
|
|
2009
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2010
|
-
logGroupNames: _json,
|
|
2011
|
-
name: [],
|
|
2012
|
-
queryDefinitionId: [],
|
|
2013
|
-
queryLanguage: [],
|
|
2014
|
-
queryString: [],
|
|
2015
|
-
});
|
|
2016
|
-
};
|
|
2017
|
-
const de_DescribeMetricFiltersResponse = (output, context) => {
|
|
2018
|
-
return take(output, {
|
|
2019
|
-
metricFilters: (_) => de_MetricFilters(_, context),
|
|
2020
|
-
nextToken: __expectString,
|
|
2021
|
-
});
|
|
2022
|
-
};
|
|
2023
|
-
const de_FieldsData = (output, context) => {
|
|
2024
|
-
return take(output, {
|
|
2025
|
-
data: context.base64Decoder,
|
|
2026
|
-
});
|
|
2027
|
-
};
|
|
2028
|
-
const de_GetQueryResultsResponse = (output, context) => {
|
|
2029
|
-
return take(output, {
|
|
2030
|
-
encryptionKey: __expectString,
|
|
2031
|
-
queryLanguage: __expectString,
|
|
2032
|
-
results: _json,
|
|
2033
|
-
statistics: (_) => de_QueryStatistics(_, context),
|
|
2034
|
-
status: __expectString,
|
|
2035
|
-
});
|
|
2036
|
-
};
|
|
2037
|
-
const de_MetricFilter = (output, context) => {
|
|
2038
|
-
return take(output, {
|
|
2039
|
-
applyOnTransformedLogs: __expectBoolean,
|
|
2040
|
-
creationTime: __expectLong,
|
|
2041
|
-
emitSystemFieldDimensions: _json,
|
|
2042
|
-
fieldSelectionCriteria: __expectString,
|
|
2043
|
-
filterName: __expectString,
|
|
2044
|
-
filterPattern: __expectString,
|
|
2045
|
-
logGroupName: __expectString,
|
|
2046
|
-
metricTransformations: (_) => de_MetricTransformations(_, context),
|
|
2047
|
-
});
|
|
2048
|
-
};
|
|
2049
|
-
const de_MetricFilters = (output, context) => {
|
|
2050
|
-
const retVal = (output || [])
|
|
2051
|
-
.filter((e) => e != null)
|
|
2052
|
-
.map((entry) => {
|
|
2053
|
-
return de_MetricFilter(entry, context);
|
|
2054
|
-
});
|
|
2055
|
-
return retVal;
|
|
2056
|
-
};
|
|
2057
|
-
const de_MetricTransformation = (output, context) => {
|
|
2058
|
-
return take(output, {
|
|
2059
|
-
defaultValue: __limitedParseDouble,
|
|
2060
|
-
dimensions: _json,
|
|
2061
|
-
metricName: __expectString,
|
|
2062
|
-
metricNamespace: __expectString,
|
|
2063
|
-
metricValue: __expectString,
|
|
2064
|
-
unit: __expectString,
|
|
2065
|
-
});
|
|
2066
|
-
};
|
|
2067
|
-
const de_MetricTransformations = (output, context) => {
|
|
2068
|
-
const retVal = (output || [])
|
|
2069
|
-
.filter((e) => e != null)
|
|
2070
|
-
.map((entry) => {
|
|
2071
|
-
return de_MetricTransformation(entry, context);
|
|
2072
|
-
});
|
|
2073
|
-
return retVal;
|
|
2074
|
-
};
|
|
2075
|
-
const de_QueryStatistics = (output, context) => {
|
|
2076
|
-
return take(output, {
|
|
2077
|
-
bytesScanned: __limitedParseDouble,
|
|
2078
|
-
estimatedBytesSkipped: __limitedParseDouble,
|
|
2079
|
-
estimatedRecordsSkipped: __limitedParseDouble,
|
|
2080
|
-
logGroupsScanned: __limitedParseDouble,
|
|
2081
|
-
recordsMatched: __limitedParseDouble,
|
|
2082
|
-
recordsScanned: __limitedParseDouble,
|
|
2083
|
-
});
|
|
2084
|
-
};
|
|
2085
|
-
const deserializeMetadata = (output) => ({
|
|
2086
|
-
httpStatusCode: output.statusCode,
|
|
2087
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2088
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2089
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2090
|
-
});
|
|
2091
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2092
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2093
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2094
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2095
|
-
const contents = {
|
|
2096
|
-
protocol,
|
|
2097
|
-
hostname,
|
|
2098
|
-
port,
|
|
2099
|
-
method: "POST",
|
|
2100
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2101
|
-
headers,
|
|
2102
|
-
};
|
|
2103
|
-
if (resolvedHostname !== undefined) {
|
|
2104
|
-
contents.hostname = resolvedHostname;
|
|
2105
|
-
}
|
|
2106
|
-
if (body !== undefined) {
|
|
2107
|
-
contents.body = body;
|
|
2108
|
-
}
|
|
2109
|
-
return new __HttpRequest(contents);
|
|
2110
|
-
};
|
|
2111
|
-
function sharedHeaders(operation) {
|
|
2112
|
-
return {
|
|
2113
|
-
"content-type": "application/x-amz-json-1.1",
|
|
2114
|
-
"x-amz-target": `Logs_20140328.${operation}`,
|
|
2115
|
-
};
|
|
2116
|
-
}
|