@aws-sdk/client-xray 3.490.0 → 3.496.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/XRay.js +1 -71
- package/dist-cjs/XRayClient.js +1 -43
- package/dist-cjs/commands/BatchGetTracesCommand.js +1 -28
- package/dist-cjs/commands/CreateGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateSamplingRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteSamplingRuleCommand.js +1 -28
- package/dist-cjs/commands/GetEncryptionConfigCommand.js +1 -28
- package/dist-cjs/commands/GetGroupCommand.js +1 -28
- package/dist-cjs/commands/GetGroupsCommand.js +1 -28
- package/dist-cjs/commands/GetInsightCommand.js +1 -28
- package/dist-cjs/commands/GetInsightEventsCommand.js +1 -28
- package/dist-cjs/commands/GetInsightImpactGraphCommand.js +1 -28
- package/dist-cjs/commands/GetInsightSummariesCommand.js +1 -28
- package/dist-cjs/commands/GetSamplingRulesCommand.js +1 -28
- package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js +1 -28
- package/dist-cjs/commands/GetSamplingTargetsCommand.js +1 -28
- package/dist-cjs/commands/GetServiceGraphCommand.js +1 -28
- package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js +1 -28
- package/dist-cjs/commands/GetTraceGraphCommand.js +1 -28
- package/dist-cjs/commands/GetTraceSummariesCommand.js +1 -28
- package/dist-cjs/commands/ListResourcePoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutEncryptionConfigCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/PutTelemetryRecordsCommand.js +1 -28
- package/dist-cjs/commands/PutTraceSegmentsCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateSamplingRuleCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -33
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3282 -11
- package/dist-cjs/models/XRayServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -182
- package/dist-cjs/pagination/BatchGetTracesPaginator.js +1 -7
- package/dist-cjs/pagination/GetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/GetInsightEventsPaginator.js +1 -7
- package/dist-cjs/pagination/GetInsightSummariesPaginator.js +1 -7
- package/dist-cjs/pagination/GetSamplingRulesPaginator.js +1 -7
- package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +1 -7
- package/dist-cjs/pagination/GetServiceGraphPaginator.js +1 -7
- package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +1 -7
- package/dist-cjs/pagination/GetTraceGraphPaginator.js +1 -7
- package/dist-cjs/pagination/GetTraceSummariesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -16
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2248
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2248 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetTraceSummariesCommand = exports.de_GetTraceGraphCommand = exports.de_GetTimeSeriesServiceStatisticsCommand = exports.de_GetServiceGraphCommand = exports.de_GetSamplingTargetsCommand = exports.de_GetSamplingStatisticSummariesCommand = exports.de_GetSamplingRulesCommand = exports.de_GetInsightSummariesCommand = exports.de_GetInsightImpactGraphCommand = exports.de_GetInsightEventsCommand = exports.de_GetInsightCommand = exports.de_GetGroupsCommand = exports.de_GetGroupCommand = exports.de_GetEncryptionConfigCommand = exports.de_DeleteSamplingRuleCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteGroupCommand = exports.de_CreateSamplingRuleCommand = exports.de_CreateGroupCommand = exports.de_BatchGetTracesCommand = exports.se_UpdateSamplingRuleCommand = exports.se_UpdateGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutTraceSegmentsCommand = exports.se_PutTelemetryRecordsCommand = exports.se_PutResourcePolicyCommand = exports.se_PutEncryptionConfigCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourcePoliciesCommand = exports.se_GetTraceSummariesCommand = exports.se_GetTraceGraphCommand = exports.se_GetTimeSeriesServiceStatisticsCommand = exports.se_GetServiceGraphCommand = exports.se_GetSamplingTargetsCommand = exports.se_GetSamplingStatisticSummariesCommand = exports.se_GetSamplingRulesCommand = exports.se_GetInsightSummariesCommand = exports.se_GetInsightImpactGraphCommand = exports.se_GetInsightEventsCommand = exports.se_GetInsightCommand = exports.se_GetGroupsCommand = exports.se_GetGroupCommand = exports.se_GetEncryptionConfigCommand = exports.se_DeleteSamplingRuleCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteGroupCommand = exports.se_CreateSamplingRuleCommand = exports.se_CreateGroupCommand = exports.se_BatchGetTracesCommand = void 0;
|
|
4
|
-
exports.de_UpdateSamplingRuleCommand = exports.de_UpdateGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutTraceSegmentsCommand = exports.de_PutTelemetryRecordsCommand = exports.de_PutResourcePolicyCommand = exports.de_PutEncryptionConfigCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourcePoliciesCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const XRayServiceException_1 = require("../models/XRayServiceException");
|
|
10
|
-
const se_BatchGetTracesCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/Traces");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
NextToken: [],
|
|
19
|
-
TraceIds: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_BatchGetTracesCommand = se_BatchGetTracesCommand;
|
|
25
|
-
const se_CreateGroupCommand = async (input, context) => {
|
|
26
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
27
|
-
const headers = {
|
|
28
|
-
"content-type": "application/json",
|
|
29
|
-
};
|
|
30
|
-
b.bp("/CreateGroup");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
33
|
-
FilterExpression: [],
|
|
34
|
-
GroupName: [],
|
|
35
|
-
InsightsConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
37
|
-
}));
|
|
38
|
-
b.m("POST").h(headers).b(body);
|
|
39
|
-
return b.build();
|
|
40
|
-
};
|
|
41
|
-
exports.se_CreateGroupCommand = se_CreateGroupCommand;
|
|
42
|
-
const se_CreateSamplingRuleCommand = async (input, context) => {
|
|
43
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/CreateSamplingRule");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
SamplingRule: (_) => se_SamplingRule(_, context),
|
|
51
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
52
|
-
}));
|
|
53
|
-
b.m("POST").h(headers).b(body);
|
|
54
|
-
return b.build();
|
|
55
|
-
};
|
|
56
|
-
exports.se_CreateSamplingRuleCommand = se_CreateSamplingRuleCommand;
|
|
57
|
-
const se_DeleteGroupCommand = async (input, context) => {
|
|
58
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
59
|
-
const headers = {
|
|
60
|
-
"content-type": "application/json",
|
|
61
|
-
};
|
|
62
|
-
b.bp("/DeleteGroup");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
-
GroupARN: [],
|
|
66
|
-
GroupName: [],
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
|
|
72
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/DeleteResourcePolicy");
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
-
PolicyName: [],
|
|
81
|
-
PolicyRevisionId: [],
|
|
82
|
-
}));
|
|
83
|
-
b.m("POST").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
87
|
-
const se_DeleteSamplingRuleCommand = async (input, context) => {
|
|
88
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
89
|
-
const headers = {
|
|
90
|
-
"content-type": "application/json",
|
|
91
|
-
};
|
|
92
|
-
b.bp("/DeleteSamplingRule");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
95
|
-
RuleARN: [],
|
|
96
|
-
RuleName: [],
|
|
97
|
-
}));
|
|
98
|
-
b.m("POST").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteSamplingRuleCommand = se_DeleteSamplingRuleCommand;
|
|
102
|
-
const se_GetEncryptionConfigCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
|
-
const headers = {
|
|
105
|
-
"content-type": "application/json",
|
|
106
|
-
};
|
|
107
|
-
b.bp("/EncryptionConfig");
|
|
108
|
-
let body;
|
|
109
|
-
body = "";
|
|
110
|
-
b.m("POST").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
exports.se_GetEncryptionConfigCommand = se_GetEncryptionConfigCommand;
|
|
114
|
-
const se_GetGroupCommand = async (input, context) => {
|
|
115
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
116
|
-
const headers = {
|
|
117
|
-
"content-type": "application/json",
|
|
118
|
-
};
|
|
119
|
-
b.bp("/GetGroup");
|
|
120
|
-
let body;
|
|
121
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
|
-
GroupARN: [],
|
|
123
|
-
GroupName: [],
|
|
124
|
-
}));
|
|
125
|
-
b.m("POST").h(headers).b(body);
|
|
126
|
-
return b.build();
|
|
127
|
-
};
|
|
128
|
-
exports.se_GetGroupCommand = se_GetGroupCommand;
|
|
129
|
-
const se_GetGroupsCommand = async (input, context) => {
|
|
130
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
131
|
-
const headers = {
|
|
132
|
-
"content-type": "application/json",
|
|
133
|
-
};
|
|
134
|
-
b.bp("/Groups");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
-
NextToken: [],
|
|
138
|
-
}));
|
|
139
|
-
b.m("POST").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
exports.se_GetGroupsCommand = se_GetGroupsCommand;
|
|
143
|
-
const se_GetInsightCommand = async (input, context) => {
|
|
144
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
145
|
-
const headers = {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
};
|
|
148
|
-
b.bp("/Insight");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
-
InsightId: [],
|
|
152
|
-
}));
|
|
153
|
-
b.m("POST").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
exports.se_GetInsightCommand = se_GetInsightCommand;
|
|
157
|
-
const se_GetInsightEventsCommand = async (input, context) => {
|
|
158
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
159
|
-
const headers = {
|
|
160
|
-
"content-type": "application/json",
|
|
161
|
-
};
|
|
162
|
-
b.bp("/InsightEvents");
|
|
163
|
-
let body;
|
|
164
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
165
|
-
InsightId: [],
|
|
166
|
-
MaxResults: [],
|
|
167
|
-
NextToken: [],
|
|
168
|
-
}));
|
|
169
|
-
b.m("POST").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_GetInsightEventsCommand = se_GetInsightEventsCommand;
|
|
173
|
-
const se_GetInsightImpactGraphCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
175
|
-
const headers = {
|
|
176
|
-
"content-type": "application/json",
|
|
177
|
-
};
|
|
178
|
-
b.bp("/InsightImpactGraph");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
182
|
-
InsightId: [],
|
|
183
|
-
NextToken: [],
|
|
184
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
185
|
-
}));
|
|
186
|
-
b.m("POST").h(headers).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
exports.se_GetInsightImpactGraphCommand = se_GetInsightImpactGraphCommand;
|
|
190
|
-
const se_GetInsightSummariesCommand = async (input, context) => {
|
|
191
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
192
|
-
const headers = {
|
|
193
|
-
"content-type": "application/json",
|
|
194
|
-
};
|
|
195
|
-
b.bp("/InsightSummaries");
|
|
196
|
-
let body;
|
|
197
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
198
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
199
|
-
GroupARN: [],
|
|
200
|
-
GroupName: [],
|
|
201
|
-
MaxResults: [],
|
|
202
|
-
NextToken: [],
|
|
203
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
204
|
-
States: (_) => (0, smithy_client_1._json)(_),
|
|
205
|
-
}));
|
|
206
|
-
b.m("POST").h(headers).b(body);
|
|
207
|
-
return b.build();
|
|
208
|
-
};
|
|
209
|
-
exports.se_GetInsightSummariesCommand = se_GetInsightSummariesCommand;
|
|
210
|
-
const se_GetSamplingRulesCommand = async (input, context) => {
|
|
211
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
212
|
-
const headers = {
|
|
213
|
-
"content-type": "application/json",
|
|
214
|
-
};
|
|
215
|
-
b.bp("/GetSamplingRules");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
218
|
-
NextToken: [],
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST").h(headers).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
exports.se_GetSamplingRulesCommand = se_GetSamplingRulesCommand;
|
|
224
|
-
const se_GetSamplingStatisticSummariesCommand = async (input, context) => {
|
|
225
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
226
|
-
const headers = {
|
|
227
|
-
"content-type": "application/json",
|
|
228
|
-
};
|
|
229
|
-
b.bp("/SamplingStatisticSummaries");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
|
-
NextToken: [],
|
|
233
|
-
}));
|
|
234
|
-
b.m("POST").h(headers).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_GetSamplingStatisticSummariesCommand = se_GetSamplingStatisticSummariesCommand;
|
|
238
|
-
const se_GetSamplingTargetsCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
240
|
-
const headers = {
|
|
241
|
-
"content-type": "application/json",
|
|
242
|
-
};
|
|
243
|
-
b.bp("/SamplingTargets");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
246
|
-
SamplingStatisticsDocuments: (_) => se_SamplingStatisticsDocumentList(_, context),
|
|
247
|
-
}));
|
|
248
|
-
b.m("POST").h(headers).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
exports.se_GetSamplingTargetsCommand = se_GetSamplingTargetsCommand;
|
|
252
|
-
const se_GetServiceGraphCommand = async (input, context) => {
|
|
253
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
254
|
-
const headers = {
|
|
255
|
-
"content-type": "application/json",
|
|
256
|
-
};
|
|
257
|
-
b.bp("/ServiceGraph");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
260
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
261
|
-
GroupARN: [],
|
|
262
|
-
GroupName: [],
|
|
263
|
-
NextToken: [],
|
|
264
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
265
|
-
}));
|
|
266
|
-
b.m("POST").h(headers).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
exports.se_GetServiceGraphCommand = se_GetServiceGraphCommand;
|
|
270
|
-
const se_GetTimeSeriesServiceStatisticsCommand = async (input, context) => {
|
|
271
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
272
|
-
const headers = {
|
|
273
|
-
"content-type": "application/json",
|
|
274
|
-
};
|
|
275
|
-
b.bp("/TimeSeriesServiceStatistics");
|
|
276
|
-
let body;
|
|
277
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
279
|
-
EntitySelectorExpression: [],
|
|
280
|
-
ForecastStatistics: [],
|
|
281
|
-
GroupARN: [],
|
|
282
|
-
GroupName: [],
|
|
283
|
-
NextToken: [],
|
|
284
|
-
Period: [],
|
|
285
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
286
|
-
}));
|
|
287
|
-
b.m("POST").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_GetTimeSeriesServiceStatisticsCommand = se_GetTimeSeriesServiceStatisticsCommand;
|
|
291
|
-
const se_GetTraceGraphCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/TraceGraph");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
299
|
-
NextToken: [],
|
|
300
|
-
TraceIds: (_) => (0, smithy_client_1._json)(_),
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
exports.se_GetTraceGraphCommand = se_GetTraceGraphCommand;
|
|
306
|
-
const se_GetTraceSummariesCommand = async (input, context) => {
|
|
307
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
308
|
-
const headers = {
|
|
309
|
-
"content-type": "application/json",
|
|
310
|
-
};
|
|
311
|
-
b.bp("/TraceSummaries");
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
315
|
-
FilterExpression: [],
|
|
316
|
-
NextToken: [],
|
|
317
|
-
Sampling: [],
|
|
318
|
-
SamplingStrategy: (_) => se_SamplingStrategy(_, context),
|
|
319
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
320
|
-
TimeRangeType: [],
|
|
321
|
-
}));
|
|
322
|
-
b.m("POST").h(headers).b(body);
|
|
323
|
-
return b.build();
|
|
324
|
-
};
|
|
325
|
-
exports.se_GetTraceSummariesCommand = se_GetTraceSummariesCommand;
|
|
326
|
-
const se_ListResourcePoliciesCommand = async (input, context) => {
|
|
327
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
328
|
-
const headers = {
|
|
329
|
-
"content-type": "application/json",
|
|
330
|
-
};
|
|
331
|
-
b.bp("/ListResourcePolicies");
|
|
332
|
-
let body;
|
|
333
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
|
-
NextToken: [],
|
|
335
|
-
}));
|
|
336
|
-
b.m("POST").h(headers).b(body);
|
|
337
|
-
return b.build();
|
|
338
|
-
};
|
|
339
|
-
exports.se_ListResourcePoliciesCommand = se_ListResourcePoliciesCommand;
|
|
340
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
341
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
342
|
-
const headers = {
|
|
343
|
-
"content-type": "application/json",
|
|
344
|
-
};
|
|
345
|
-
b.bp("/ListTagsForResource");
|
|
346
|
-
let body;
|
|
347
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
348
|
-
NextToken: [],
|
|
349
|
-
ResourceARN: [],
|
|
350
|
-
}));
|
|
351
|
-
b.m("POST").h(headers).b(body);
|
|
352
|
-
return b.build();
|
|
353
|
-
};
|
|
354
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
355
|
-
const se_PutEncryptionConfigCommand = async (input, context) => {
|
|
356
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
357
|
-
const headers = {
|
|
358
|
-
"content-type": "application/json",
|
|
359
|
-
};
|
|
360
|
-
b.bp("/PutEncryptionConfig");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
363
|
-
KeyId: [],
|
|
364
|
-
Type: [],
|
|
365
|
-
}));
|
|
366
|
-
b.m("POST").h(headers).b(body);
|
|
367
|
-
return b.build();
|
|
368
|
-
};
|
|
369
|
-
exports.se_PutEncryptionConfigCommand = se_PutEncryptionConfigCommand;
|
|
370
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
371
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
372
|
-
const headers = {
|
|
373
|
-
"content-type": "application/json",
|
|
374
|
-
};
|
|
375
|
-
b.bp("/PutResourcePolicy");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
|
-
BypassPolicyLockoutCheck: [],
|
|
379
|
-
PolicyDocument: [],
|
|
380
|
-
PolicyName: [],
|
|
381
|
-
PolicyRevisionId: [],
|
|
382
|
-
}));
|
|
383
|
-
b.m("POST").h(headers).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
};
|
|
386
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
387
|
-
const se_PutTelemetryRecordsCommand = async (input, context) => {
|
|
388
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
389
|
-
const headers = {
|
|
390
|
-
"content-type": "application/json",
|
|
391
|
-
};
|
|
392
|
-
b.bp("/TelemetryRecords");
|
|
393
|
-
let body;
|
|
394
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
395
|
-
EC2InstanceId: [],
|
|
396
|
-
Hostname: [],
|
|
397
|
-
ResourceARN: [],
|
|
398
|
-
TelemetryRecords: (_) => se_TelemetryRecordList(_, context),
|
|
399
|
-
}));
|
|
400
|
-
b.m("POST").h(headers).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
exports.se_PutTelemetryRecordsCommand = se_PutTelemetryRecordsCommand;
|
|
404
|
-
const se_PutTraceSegmentsCommand = async (input, context) => {
|
|
405
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
406
|
-
const headers = {
|
|
407
|
-
"content-type": "application/json",
|
|
408
|
-
};
|
|
409
|
-
b.bp("/TraceSegments");
|
|
410
|
-
let body;
|
|
411
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
412
|
-
TraceSegmentDocuments: (_) => (0, smithy_client_1._json)(_),
|
|
413
|
-
}));
|
|
414
|
-
b.m("POST").h(headers).b(body);
|
|
415
|
-
return b.build();
|
|
416
|
-
};
|
|
417
|
-
exports.se_PutTraceSegmentsCommand = se_PutTraceSegmentsCommand;
|
|
418
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
419
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
420
|
-
const headers = {
|
|
421
|
-
"content-type": "application/json",
|
|
422
|
-
};
|
|
423
|
-
b.bp("/TagResource");
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
426
|
-
ResourceARN: [],
|
|
427
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
428
|
-
}));
|
|
429
|
-
b.m("POST").h(headers).b(body);
|
|
430
|
-
return b.build();
|
|
431
|
-
};
|
|
432
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
433
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
434
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
435
|
-
const headers = {
|
|
436
|
-
"content-type": "application/json",
|
|
437
|
-
};
|
|
438
|
-
b.bp("/UntagResource");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
441
|
-
ResourceARN: [],
|
|
442
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
443
|
-
}));
|
|
444
|
-
b.m("POST").h(headers).b(body);
|
|
445
|
-
return b.build();
|
|
446
|
-
};
|
|
447
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
448
|
-
const se_UpdateGroupCommand = async (input, context) => {
|
|
449
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
450
|
-
const headers = {
|
|
451
|
-
"content-type": "application/json",
|
|
452
|
-
};
|
|
453
|
-
b.bp("/UpdateGroup");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
456
|
-
FilterExpression: [],
|
|
457
|
-
GroupARN: [],
|
|
458
|
-
GroupName: [],
|
|
459
|
-
InsightsConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
460
|
-
}));
|
|
461
|
-
b.m("POST").h(headers).b(body);
|
|
462
|
-
return b.build();
|
|
463
|
-
};
|
|
464
|
-
exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
|
|
465
|
-
const se_UpdateSamplingRuleCommand = async (input, context) => {
|
|
466
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
467
|
-
const headers = {
|
|
468
|
-
"content-type": "application/json",
|
|
469
|
-
};
|
|
470
|
-
b.bp("/UpdateSamplingRule");
|
|
471
|
-
let body;
|
|
472
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
473
|
-
SamplingRuleUpdate: (_) => se_SamplingRuleUpdate(_, context),
|
|
474
|
-
}));
|
|
475
|
-
b.m("POST").h(headers).b(body);
|
|
476
|
-
return b.build();
|
|
477
|
-
};
|
|
478
|
-
exports.se_UpdateSamplingRuleCommand = se_UpdateSamplingRuleCommand;
|
|
479
|
-
const de_BatchGetTracesCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return de_BatchGetTracesCommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const contents = (0, smithy_client_1.map)({
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
});
|
|
486
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
487
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
488
|
-
NextToken: smithy_client_1.expectString,
|
|
489
|
-
Traces: (_) => de_TraceList(_, context),
|
|
490
|
-
UnprocessedTraceIds: smithy_client_1._json,
|
|
491
|
-
});
|
|
492
|
-
Object.assign(contents, doc);
|
|
493
|
-
return contents;
|
|
494
|
-
};
|
|
495
|
-
exports.de_BatchGetTracesCommand = de_BatchGetTracesCommand;
|
|
496
|
-
const de_BatchGetTracesCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "InvalidRequestException":
|
|
504
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
505
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ThrottledException":
|
|
507
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
508
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
509
|
-
default:
|
|
510
|
-
const parsedBody = parsedOutput.body;
|
|
511
|
-
return throwDefaultError({
|
|
512
|
-
output,
|
|
513
|
-
parsedBody,
|
|
514
|
-
errorCode,
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
const de_CreateGroupCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
-
return de_CreateGroupCommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const contents = (0, smithy_client_1.map)({
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
});
|
|
525
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
526
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
527
|
-
Group: smithy_client_1._json,
|
|
528
|
-
});
|
|
529
|
-
Object.assign(contents, doc);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
exports.de_CreateGroupCommand = de_CreateGroupCommand;
|
|
533
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context),
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "InvalidRequestException":
|
|
541
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
542
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ThrottledException":
|
|
544
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
545
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
546
|
-
default:
|
|
547
|
-
const parsedBody = parsedOutput.body;
|
|
548
|
-
return throwDefaultError({
|
|
549
|
-
output,
|
|
550
|
-
parsedBody,
|
|
551
|
-
errorCode,
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
const de_CreateSamplingRuleCommand = async (output, context) => {
|
|
556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
-
return de_CreateSamplingRuleCommandError(output, context);
|
|
558
|
-
}
|
|
559
|
-
const contents = (0, smithy_client_1.map)({
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
});
|
|
562
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
564
|
-
SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
|
|
565
|
-
});
|
|
566
|
-
Object.assign(contents, doc);
|
|
567
|
-
return contents;
|
|
568
|
-
};
|
|
569
|
-
exports.de_CreateSamplingRuleCommand = de_CreateSamplingRuleCommand;
|
|
570
|
-
const de_CreateSamplingRuleCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "InvalidRequestException":
|
|
578
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
579
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
580
|
-
case "RuleLimitExceededException":
|
|
581
|
-
case "com.amazonaws.xray#RuleLimitExceededException":
|
|
582
|
-
throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ThrottledException":
|
|
584
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
585
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
586
|
-
default:
|
|
587
|
-
const parsedBody = parsedOutput.body;
|
|
588
|
-
return throwDefaultError({
|
|
589
|
-
output,
|
|
590
|
-
parsedBody,
|
|
591
|
-
errorCode,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
const de_DeleteGroupCommand = async (output, context) => {
|
|
596
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return de_DeleteGroupCommandError(output, context);
|
|
598
|
-
}
|
|
599
|
-
const contents = (0, smithy_client_1.map)({
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
});
|
|
602
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
603
|
-
return contents;
|
|
604
|
-
};
|
|
605
|
-
exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
|
|
606
|
-
const de_DeleteGroupCommandError = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "InvalidRequestException":
|
|
614
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
615
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ThrottledException":
|
|
617
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
618
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const contents = (0, smithy_client_1.map)({
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
});
|
|
635
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
636
|
-
return contents;
|
|
637
|
-
};
|
|
638
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
639
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
640
|
-
const parsedOutput = {
|
|
641
|
-
...output,
|
|
642
|
-
body: await parseErrorBody(output.body, context),
|
|
643
|
-
};
|
|
644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "InvalidPolicyRevisionIdException":
|
|
647
|
-
case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
|
|
648
|
-
throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
|
|
649
|
-
case "InvalidRequestException":
|
|
650
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
651
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ThrottledException":
|
|
653
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
654
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
const de_DeleteSamplingRuleCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
-
return de_DeleteSamplingRuleCommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const contents = (0, smithy_client_1.map)({
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
});
|
|
671
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
672
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
673
|
-
SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
|
|
674
|
-
});
|
|
675
|
-
Object.assign(contents, doc);
|
|
676
|
-
return contents;
|
|
677
|
-
};
|
|
678
|
-
exports.de_DeleteSamplingRuleCommand = de_DeleteSamplingRuleCommand;
|
|
679
|
-
const de_DeleteSamplingRuleCommandError = async (output, context) => {
|
|
680
|
-
const parsedOutput = {
|
|
681
|
-
...output,
|
|
682
|
-
body: await parseErrorBody(output.body, context),
|
|
683
|
-
};
|
|
684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
-
switch (errorCode) {
|
|
686
|
-
case "InvalidRequestException":
|
|
687
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
688
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ThrottledException":
|
|
690
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
691
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
const de_GetEncryptionConfigCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return de_GetEncryptionConfigCommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = (0, smithy_client_1.map)({
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
});
|
|
708
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
709
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
710
|
-
EncryptionConfig: smithy_client_1._json,
|
|
711
|
-
});
|
|
712
|
-
Object.assign(contents, doc);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
exports.de_GetEncryptionConfigCommand = de_GetEncryptionConfigCommand;
|
|
716
|
-
const de_GetEncryptionConfigCommandError = async (output, context) => {
|
|
717
|
-
const parsedOutput = {
|
|
718
|
-
...output,
|
|
719
|
-
body: await parseErrorBody(output.body, context),
|
|
720
|
-
};
|
|
721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
|
-
switch (errorCode) {
|
|
723
|
-
case "InvalidRequestException":
|
|
724
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
725
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
726
|
-
case "ThrottledException":
|
|
727
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
728
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
729
|
-
default:
|
|
730
|
-
const parsedBody = parsedOutput.body;
|
|
731
|
-
return throwDefaultError({
|
|
732
|
-
output,
|
|
733
|
-
parsedBody,
|
|
734
|
-
errorCode,
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
const de_GetGroupCommand = async (output, context) => {
|
|
739
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return de_GetGroupCommandError(output, context);
|
|
741
|
-
}
|
|
742
|
-
const contents = (0, smithy_client_1.map)({
|
|
743
|
-
$metadata: deserializeMetadata(output),
|
|
744
|
-
});
|
|
745
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
746
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
747
|
-
Group: smithy_client_1._json,
|
|
748
|
-
});
|
|
749
|
-
Object.assign(contents, doc);
|
|
750
|
-
return contents;
|
|
751
|
-
};
|
|
752
|
-
exports.de_GetGroupCommand = de_GetGroupCommand;
|
|
753
|
-
const de_GetGroupCommandError = async (output, context) => {
|
|
754
|
-
const parsedOutput = {
|
|
755
|
-
...output,
|
|
756
|
-
body: await parseErrorBody(output.body, context),
|
|
757
|
-
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
-
switch (errorCode) {
|
|
760
|
-
case "InvalidRequestException":
|
|
761
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
762
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ThrottledException":
|
|
764
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
765
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode,
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
const de_GetGroupsCommand = async (output, context) => {
|
|
776
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return de_GetGroupsCommandError(output, context);
|
|
778
|
-
}
|
|
779
|
-
const contents = (0, smithy_client_1.map)({
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
});
|
|
782
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
783
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
784
|
-
Groups: smithy_client_1._json,
|
|
785
|
-
NextToken: smithy_client_1.expectString,
|
|
786
|
-
});
|
|
787
|
-
Object.assign(contents, doc);
|
|
788
|
-
return contents;
|
|
789
|
-
};
|
|
790
|
-
exports.de_GetGroupsCommand = de_GetGroupsCommand;
|
|
791
|
-
const de_GetGroupsCommandError = async (output, context) => {
|
|
792
|
-
const parsedOutput = {
|
|
793
|
-
...output,
|
|
794
|
-
body: await parseErrorBody(output.body, context),
|
|
795
|
-
};
|
|
796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
|
-
switch (errorCode) {
|
|
798
|
-
case "InvalidRequestException":
|
|
799
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
800
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ThrottledException":
|
|
802
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
803
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode,
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
const de_GetInsightCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return de_GetInsightCommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const contents = (0, smithy_client_1.map)({
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
});
|
|
820
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
821
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
822
|
-
Insight: (_) => de_Insight(_, context),
|
|
823
|
-
});
|
|
824
|
-
Object.assign(contents, doc);
|
|
825
|
-
return contents;
|
|
826
|
-
};
|
|
827
|
-
exports.de_GetInsightCommand = de_GetInsightCommand;
|
|
828
|
-
const de_GetInsightCommandError = async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context),
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "InvalidRequestException":
|
|
836
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
837
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ThrottledException":
|
|
839
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
840
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
841
|
-
default:
|
|
842
|
-
const parsedBody = parsedOutput.body;
|
|
843
|
-
return throwDefaultError({
|
|
844
|
-
output,
|
|
845
|
-
parsedBody,
|
|
846
|
-
errorCode,
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
const de_GetInsightEventsCommand = async (output, context) => {
|
|
851
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
-
return de_GetInsightEventsCommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const contents = (0, smithy_client_1.map)({
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
});
|
|
857
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
858
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
859
|
-
InsightEvents: (_) => de_InsightEventList(_, context),
|
|
860
|
-
NextToken: smithy_client_1.expectString,
|
|
861
|
-
});
|
|
862
|
-
Object.assign(contents, doc);
|
|
863
|
-
return contents;
|
|
864
|
-
};
|
|
865
|
-
exports.de_GetInsightEventsCommand = de_GetInsightEventsCommand;
|
|
866
|
-
const de_GetInsightEventsCommandError = async (output, context) => {
|
|
867
|
-
const parsedOutput = {
|
|
868
|
-
...output,
|
|
869
|
-
body: await parseErrorBody(output.body, context),
|
|
870
|
-
};
|
|
871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
switch (errorCode) {
|
|
873
|
-
case "InvalidRequestException":
|
|
874
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
875
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ThrottledException":
|
|
877
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
878
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const de_GetInsightImpactGraphCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return de_GetInsightImpactGraphCommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, smithy_client_1.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
});
|
|
895
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
896
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
897
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
898
|
-
InsightId: smithy_client_1.expectString,
|
|
899
|
-
NextToken: smithy_client_1.expectString,
|
|
900
|
-
ServiceGraphEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
901
|
-
ServiceGraphStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
902
|
-
Services: smithy_client_1._json,
|
|
903
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
return contents;
|
|
907
|
-
};
|
|
908
|
-
exports.de_GetInsightImpactGraphCommand = de_GetInsightImpactGraphCommand;
|
|
909
|
-
const de_GetInsightImpactGraphCommandError = async (output, context) => {
|
|
910
|
-
const parsedOutput = {
|
|
911
|
-
...output,
|
|
912
|
-
body: await parseErrorBody(output.body, context),
|
|
913
|
-
};
|
|
914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
|
-
switch (errorCode) {
|
|
916
|
-
case "InvalidRequestException":
|
|
917
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
918
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ThrottledException":
|
|
920
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
921
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
922
|
-
default:
|
|
923
|
-
const parsedBody = parsedOutput.body;
|
|
924
|
-
return throwDefaultError({
|
|
925
|
-
output,
|
|
926
|
-
parsedBody,
|
|
927
|
-
errorCode,
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
|
-
const de_GetInsightSummariesCommand = async (output, context) => {
|
|
932
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return de_GetInsightSummariesCommandError(output, context);
|
|
934
|
-
}
|
|
935
|
-
const contents = (0, smithy_client_1.map)({
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
});
|
|
938
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
939
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
940
|
-
InsightSummaries: (_) => de_InsightSummaryList(_, context),
|
|
941
|
-
NextToken: smithy_client_1.expectString,
|
|
942
|
-
});
|
|
943
|
-
Object.assign(contents, doc);
|
|
944
|
-
return contents;
|
|
945
|
-
};
|
|
946
|
-
exports.de_GetInsightSummariesCommand = de_GetInsightSummariesCommand;
|
|
947
|
-
const de_GetInsightSummariesCommandError = async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context),
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "InvalidRequestException":
|
|
955
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
956
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ThrottledException":
|
|
958
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
959
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
960
|
-
default:
|
|
961
|
-
const parsedBody = parsedOutput.body;
|
|
962
|
-
return throwDefaultError({
|
|
963
|
-
output,
|
|
964
|
-
parsedBody,
|
|
965
|
-
errorCode,
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
};
|
|
969
|
-
const de_GetSamplingRulesCommand = async (output, context) => {
|
|
970
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return de_GetSamplingRulesCommandError(output, context);
|
|
972
|
-
}
|
|
973
|
-
const contents = (0, smithy_client_1.map)({
|
|
974
|
-
$metadata: deserializeMetadata(output),
|
|
975
|
-
});
|
|
976
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
977
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
978
|
-
NextToken: smithy_client_1.expectString,
|
|
979
|
-
SamplingRuleRecords: (_) => de_SamplingRuleRecordList(_, context),
|
|
980
|
-
});
|
|
981
|
-
Object.assign(contents, doc);
|
|
982
|
-
return contents;
|
|
983
|
-
};
|
|
984
|
-
exports.de_GetSamplingRulesCommand = de_GetSamplingRulesCommand;
|
|
985
|
-
const de_GetSamplingRulesCommandError = async (output, context) => {
|
|
986
|
-
const parsedOutput = {
|
|
987
|
-
...output,
|
|
988
|
-
body: await parseErrorBody(output.body, context),
|
|
989
|
-
};
|
|
990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
-
switch (errorCode) {
|
|
992
|
-
case "InvalidRequestException":
|
|
993
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
994
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ThrottledException":
|
|
996
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
997
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
998
|
-
default:
|
|
999
|
-
const parsedBody = parsedOutput.body;
|
|
1000
|
-
return throwDefaultError({
|
|
1001
|
-
output,
|
|
1002
|
-
parsedBody,
|
|
1003
|
-
errorCode,
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
const de_GetSamplingStatisticSummariesCommand = async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return de_GetSamplingStatisticSummariesCommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = (0, smithy_client_1.map)({
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
});
|
|
1014
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1015
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1016
|
-
NextToken: smithy_client_1.expectString,
|
|
1017
|
-
SamplingStatisticSummaries: (_) => de_SamplingStatisticSummaryList(_, context),
|
|
1018
|
-
});
|
|
1019
|
-
Object.assign(contents, doc);
|
|
1020
|
-
return contents;
|
|
1021
|
-
};
|
|
1022
|
-
exports.de_GetSamplingStatisticSummariesCommand = de_GetSamplingStatisticSummariesCommand;
|
|
1023
|
-
const de_GetSamplingStatisticSummariesCommandError = async (output, context) => {
|
|
1024
|
-
const parsedOutput = {
|
|
1025
|
-
...output,
|
|
1026
|
-
body: await parseErrorBody(output.body, context),
|
|
1027
|
-
};
|
|
1028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
-
switch (errorCode) {
|
|
1030
|
-
case "InvalidRequestException":
|
|
1031
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1032
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ThrottledException":
|
|
1034
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1035
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1036
|
-
default:
|
|
1037
|
-
const parsedBody = parsedOutput.body;
|
|
1038
|
-
return throwDefaultError({
|
|
1039
|
-
output,
|
|
1040
|
-
parsedBody,
|
|
1041
|
-
errorCode,
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
const de_GetSamplingTargetsCommand = async (output, context) => {
|
|
1046
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return de_GetSamplingTargetsCommandError(output, context);
|
|
1048
|
-
}
|
|
1049
|
-
const contents = (0, smithy_client_1.map)({
|
|
1050
|
-
$metadata: deserializeMetadata(output),
|
|
1051
|
-
});
|
|
1052
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1054
|
-
LastRuleModification: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1055
|
-
SamplingTargetDocuments: (_) => de_SamplingTargetDocumentList(_, context),
|
|
1056
|
-
UnprocessedStatistics: smithy_client_1._json,
|
|
1057
|
-
});
|
|
1058
|
-
Object.assign(contents, doc);
|
|
1059
|
-
return contents;
|
|
1060
|
-
};
|
|
1061
|
-
exports.de_GetSamplingTargetsCommand = de_GetSamplingTargetsCommand;
|
|
1062
|
-
const de_GetSamplingTargetsCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "InvalidRequestException":
|
|
1070
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1071
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ThrottledException":
|
|
1073
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1074
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1075
|
-
default:
|
|
1076
|
-
const parsedBody = parsedOutput.body;
|
|
1077
|
-
return throwDefaultError({
|
|
1078
|
-
output,
|
|
1079
|
-
parsedBody,
|
|
1080
|
-
errorCode,
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
const de_GetServiceGraphCommand = async (output, context) => {
|
|
1085
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1086
|
-
return de_GetServiceGraphCommandError(output, context);
|
|
1087
|
-
}
|
|
1088
|
-
const contents = (0, smithy_client_1.map)({
|
|
1089
|
-
$metadata: deserializeMetadata(output),
|
|
1090
|
-
});
|
|
1091
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1092
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1093
|
-
ContainsOldGroupVersions: smithy_client_1.expectBoolean,
|
|
1094
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1095
|
-
NextToken: smithy_client_1.expectString,
|
|
1096
|
-
Services: (_) => de_ServiceList(_, context),
|
|
1097
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1098
|
-
});
|
|
1099
|
-
Object.assign(contents, doc);
|
|
1100
|
-
return contents;
|
|
1101
|
-
};
|
|
1102
|
-
exports.de_GetServiceGraphCommand = de_GetServiceGraphCommand;
|
|
1103
|
-
const de_GetServiceGraphCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "InvalidRequestException":
|
|
1111
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1112
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ThrottledException":
|
|
1114
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1115
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
const de_GetTimeSeriesServiceStatisticsCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return de_GetTimeSeriesServiceStatisticsCommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const contents = (0, smithy_client_1.map)({
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
});
|
|
1132
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1133
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
-
ContainsOldGroupVersions: smithy_client_1.expectBoolean,
|
|
1135
|
-
NextToken: smithy_client_1.expectString,
|
|
1136
|
-
TimeSeriesServiceStatistics: (_) => de_TimeSeriesServiceStatisticsList(_, context),
|
|
1137
|
-
});
|
|
1138
|
-
Object.assign(contents, doc);
|
|
1139
|
-
return contents;
|
|
1140
|
-
};
|
|
1141
|
-
exports.de_GetTimeSeriesServiceStatisticsCommand = de_GetTimeSeriesServiceStatisticsCommand;
|
|
1142
|
-
const de_GetTimeSeriesServiceStatisticsCommandError = async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context),
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "InvalidRequestException":
|
|
1150
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1151
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ThrottledException":
|
|
1153
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1154
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1155
|
-
default:
|
|
1156
|
-
const parsedBody = parsedOutput.body;
|
|
1157
|
-
return throwDefaultError({
|
|
1158
|
-
output,
|
|
1159
|
-
parsedBody,
|
|
1160
|
-
errorCode,
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
|
-
const de_GetTraceGraphCommand = async (output, context) => {
|
|
1165
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return de_GetTraceGraphCommandError(output, context);
|
|
1167
|
-
}
|
|
1168
|
-
const contents = (0, smithy_client_1.map)({
|
|
1169
|
-
$metadata: deserializeMetadata(output),
|
|
1170
|
-
});
|
|
1171
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1172
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1173
|
-
NextToken: smithy_client_1.expectString,
|
|
1174
|
-
Services: (_) => de_ServiceList(_, context),
|
|
1175
|
-
});
|
|
1176
|
-
Object.assign(contents, doc);
|
|
1177
|
-
return contents;
|
|
1178
|
-
};
|
|
1179
|
-
exports.de_GetTraceGraphCommand = de_GetTraceGraphCommand;
|
|
1180
|
-
const de_GetTraceGraphCommandError = async (output, context) => {
|
|
1181
|
-
const parsedOutput = {
|
|
1182
|
-
...output,
|
|
1183
|
-
body: await parseErrorBody(output.body, context),
|
|
1184
|
-
};
|
|
1185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
|
-
switch (errorCode) {
|
|
1187
|
-
case "InvalidRequestException":
|
|
1188
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1189
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ThrottledException":
|
|
1191
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1192
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
const de_GetTraceSummariesCommand = async (output, context) => {
|
|
1203
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1204
|
-
return de_GetTraceSummariesCommandError(output, context);
|
|
1205
|
-
}
|
|
1206
|
-
const contents = (0, smithy_client_1.map)({
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
});
|
|
1209
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1210
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1211
|
-
ApproximateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1212
|
-
NextToken: smithy_client_1.expectString,
|
|
1213
|
-
TraceSummaries: (_) => de_TraceSummaryList(_, context),
|
|
1214
|
-
TracesProcessedCount: smithy_client_1.expectLong,
|
|
1215
|
-
});
|
|
1216
|
-
Object.assign(contents, doc);
|
|
1217
|
-
return contents;
|
|
1218
|
-
};
|
|
1219
|
-
exports.de_GetTraceSummariesCommand = de_GetTraceSummariesCommand;
|
|
1220
|
-
const de_GetTraceSummariesCommandError = async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context),
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "InvalidRequestException":
|
|
1228
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1229
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ThrottledException":
|
|
1231
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1232
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1233
|
-
default:
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode,
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
const de_ListResourcePoliciesCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
-
return de_ListResourcePoliciesCommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const contents = (0, smithy_client_1.map)({
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
});
|
|
1249
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1250
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1251
|
-
NextToken: smithy_client_1.expectString,
|
|
1252
|
-
ResourcePolicies: (_) => de_ResourcePolicyList(_, context),
|
|
1253
|
-
});
|
|
1254
|
-
Object.assign(contents, doc);
|
|
1255
|
-
return contents;
|
|
1256
|
-
};
|
|
1257
|
-
exports.de_ListResourcePoliciesCommand = de_ListResourcePoliciesCommand;
|
|
1258
|
-
const de_ListResourcePoliciesCommandError = async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await parseErrorBody(output.body, context),
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "InvalidRequestException":
|
|
1266
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1267
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ThrottledException":
|
|
1269
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1270
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode,
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1281
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1283
|
-
}
|
|
1284
|
-
const contents = (0, smithy_client_1.map)({
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
});
|
|
1287
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1288
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1289
|
-
NextToken: smithy_client_1.expectString,
|
|
1290
|
-
Tags: smithy_client_1._json,
|
|
1291
|
-
});
|
|
1292
|
-
Object.assign(contents, doc);
|
|
1293
|
-
return contents;
|
|
1294
|
-
};
|
|
1295
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1296
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1297
|
-
const parsedOutput = {
|
|
1298
|
-
...output,
|
|
1299
|
-
body: await parseErrorBody(output.body, context),
|
|
1300
|
-
};
|
|
1301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
-
switch (errorCode) {
|
|
1303
|
-
case "InvalidRequestException":
|
|
1304
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1305
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ResourceNotFoundException":
|
|
1307
|
-
case "com.amazonaws.xray#ResourceNotFoundException":
|
|
1308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ThrottledException":
|
|
1310
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1311
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1312
|
-
default:
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode,
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
const de_PutEncryptionConfigCommand = async (output, context) => {
|
|
1322
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
|
-
return de_PutEncryptionConfigCommandError(output, context);
|
|
1324
|
-
}
|
|
1325
|
-
const contents = (0, smithy_client_1.map)({
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
});
|
|
1328
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1329
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1330
|
-
EncryptionConfig: smithy_client_1._json,
|
|
1331
|
-
});
|
|
1332
|
-
Object.assign(contents, doc);
|
|
1333
|
-
return contents;
|
|
1334
|
-
};
|
|
1335
|
-
exports.de_PutEncryptionConfigCommand = de_PutEncryptionConfigCommand;
|
|
1336
|
-
const de_PutEncryptionConfigCommandError = async (output, context) => {
|
|
1337
|
-
const parsedOutput = {
|
|
1338
|
-
...output,
|
|
1339
|
-
body: await parseErrorBody(output.body, context),
|
|
1340
|
-
};
|
|
1341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
-
switch (errorCode) {
|
|
1343
|
-
case "InvalidRequestException":
|
|
1344
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1345
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ThrottledException":
|
|
1347
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1348
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode,
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
1361
|
-
}
|
|
1362
|
-
const contents = (0, smithy_client_1.map)({
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
});
|
|
1365
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1366
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1367
|
-
ResourcePolicy: (_) => de_ResourcePolicy(_, context),
|
|
1368
|
-
});
|
|
1369
|
-
Object.assign(contents, doc);
|
|
1370
|
-
return contents;
|
|
1371
|
-
};
|
|
1372
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1373
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1374
|
-
const parsedOutput = {
|
|
1375
|
-
...output,
|
|
1376
|
-
body: await parseErrorBody(output.body, context),
|
|
1377
|
-
};
|
|
1378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
|
-
switch (errorCode) {
|
|
1380
|
-
case "InvalidPolicyRevisionIdException":
|
|
1381
|
-
case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
|
|
1382
|
-
throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "LockoutPreventionException":
|
|
1384
|
-
case "com.amazonaws.xray#LockoutPreventionException":
|
|
1385
|
-
throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "MalformedPolicyDocumentException":
|
|
1387
|
-
case "com.amazonaws.xray#MalformedPolicyDocumentException":
|
|
1388
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "PolicyCountLimitExceededException":
|
|
1390
|
-
case "com.amazonaws.xray#PolicyCountLimitExceededException":
|
|
1391
|
-
throw await de_PolicyCountLimitExceededExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "PolicySizeLimitExceededException":
|
|
1393
|
-
case "com.amazonaws.xray#PolicySizeLimitExceededException":
|
|
1394
|
-
throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ThrottledException":
|
|
1396
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1397
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
const de_PutTelemetryRecordsCommand = async (output, context) => {
|
|
1408
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
-
return de_PutTelemetryRecordsCommandError(output, context);
|
|
1410
|
-
}
|
|
1411
|
-
const contents = (0, smithy_client_1.map)({
|
|
1412
|
-
$metadata: deserializeMetadata(output),
|
|
1413
|
-
});
|
|
1414
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1415
|
-
return contents;
|
|
1416
|
-
};
|
|
1417
|
-
exports.de_PutTelemetryRecordsCommand = de_PutTelemetryRecordsCommand;
|
|
1418
|
-
const de_PutTelemetryRecordsCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "InvalidRequestException":
|
|
1426
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1427
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ThrottledException":
|
|
1429
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1430
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1431
|
-
default:
|
|
1432
|
-
const parsedBody = parsedOutput.body;
|
|
1433
|
-
return throwDefaultError({
|
|
1434
|
-
output,
|
|
1435
|
-
parsedBody,
|
|
1436
|
-
errorCode,
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
const de_PutTraceSegmentsCommand = async (output, context) => {
|
|
1441
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
|
-
return de_PutTraceSegmentsCommandError(output, context);
|
|
1443
|
-
}
|
|
1444
|
-
const contents = (0, smithy_client_1.map)({
|
|
1445
|
-
$metadata: deserializeMetadata(output),
|
|
1446
|
-
});
|
|
1447
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1448
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1449
|
-
UnprocessedTraceSegments: smithy_client_1._json,
|
|
1450
|
-
});
|
|
1451
|
-
Object.assign(contents, doc);
|
|
1452
|
-
return contents;
|
|
1453
|
-
};
|
|
1454
|
-
exports.de_PutTraceSegmentsCommand = de_PutTraceSegmentsCommand;
|
|
1455
|
-
const de_PutTraceSegmentsCommandError = async (output, context) => {
|
|
1456
|
-
const parsedOutput = {
|
|
1457
|
-
...output,
|
|
1458
|
-
body: await parseErrorBody(output.body, context),
|
|
1459
|
-
};
|
|
1460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
|
-
switch (errorCode) {
|
|
1462
|
-
case "InvalidRequestException":
|
|
1463
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1464
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ThrottledException":
|
|
1466
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1467
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode,
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
};
|
|
1477
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1478
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1479
|
-
return de_TagResourceCommandError(output, context);
|
|
1480
|
-
}
|
|
1481
|
-
const contents = (0, smithy_client_1.map)({
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
});
|
|
1484
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1485
|
-
return contents;
|
|
1486
|
-
};
|
|
1487
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1488
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1489
|
-
const parsedOutput = {
|
|
1490
|
-
...output,
|
|
1491
|
-
body: await parseErrorBody(output.body, context),
|
|
1492
|
-
};
|
|
1493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
-
switch (errorCode) {
|
|
1495
|
-
case "InvalidRequestException":
|
|
1496
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1497
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ResourceNotFoundException":
|
|
1499
|
-
case "com.amazonaws.xray#ResourceNotFoundException":
|
|
1500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ThrottledException":
|
|
1502
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1503
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "TooManyTagsException":
|
|
1505
|
-
case "com.amazonaws.xray#TooManyTagsException":
|
|
1506
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode,
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1517
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1518
|
-
return de_UntagResourceCommandError(output, context);
|
|
1519
|
-
}
|
|
1520
|
-
const contents = (0, smithy_client_1.map)({
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
});
|
|
1523
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1524
|
-
return contents;
|
|
1525
|
-
};
|
|
1526
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1527
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context),
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "InvalidRequestException":
|
|
1535
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1536
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ResourceNotFoundException":
|
|
1538
|
-
case "com.amazonaws.xray#ResourceNotFoundException":
|
|
1539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ThrottledException":
|
|
1541
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1542
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1543
|
-
default:
|
|
1544
|
-
const parsedBody = parsedOutput.body;
|
|
1545
|
-
return throwDefaultError({
|
|
1546
|
-
output,
|
|
1547
|
-
parsedBody,
|
|
1548
|
-
errorCode,
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
const de_UpdateGroupCommand = async (output, context) => {
|
|
1553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1554
|
-
return de_UpdateGroupCommandError(output, context);
|
|
1555
|
-
}
|
|
1556
|
-
const contents = (0, smithy_client_1.map)({
|
|
1557
|
-
$metadata: deserializeMetadata(output),
|
|
1558
|
-
});
|
|
1559
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1560
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1561
|
-
Group: smithy_client_1._json,
|
|
1562
|
-
});
|
|
1563
|
-
Object.assign(contents, doc);
|
|
1564
|
-
return contents;
|
|
1565
|
-
};
|
|
1566
|
-
exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
|
|
1567
|
-
const de_UpdateGroupCommandError = async (output, context) => {
|
|
1568
|
-
const parsedOutput = {
|
|
1569
|
-
...output,
|
|
1570
|
-
body: await parseErrorBody(output.body, context),
|
|
1571
|
-
};
|
|
1572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
-
switch (errorCode) {
|
|
1574
|
-
case "InvalidRequestException":
|
|
1575
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1576
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ThrottledException":
|
|
1578
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1579
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1580
|
-
default:
|
|
1581
|
-
const parsedBody = parsedOutput.body;
|
|
1582
|
-
return throwDefaultError({
|
|
1583
|
-
output,
|
|
1584
|
-
parsedBody,
|
|
1585
|
-
errorCode,
|
|
1586
|
-
});
|
|
1587
|
-
}
|
|
1588
|
-
};
|
|
1589
|
-
const de_UpdateSamplingRuleCommand = async (output, context) => {
|
|
1590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return de_UpdateSamplingRuleCommandError(output, context);
|
|
1592
|
-
}
|
|
1593
|
-
const contents = (0, smithy_client_1.map)({
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
});
|
|
1596
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1597
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1598
|
-
SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
|
|
1599
|
-
});
|
|
1600
|
-
Object.assign(contents, doc);
|
|
1601
|
-
return contents;
|
|
1602
|
-
};
|
|
1603
|
-
exports.de_UpdateSamplingRuleCommand = de_UpdateSamplingRuleCommand;
|
|
1604
|
-
const de_UpdateSamplingRuleCommandError = async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context),
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "InvalidRequestException":
|
|
1612
|
-
case "com.amazonaws.xray#InvalidRequestException":
|
|
1613
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ThrottledException":
|
|
1615
|
-
case "com.amazonaws.xray#ThrottledException":
|
|
1616
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1617
|
-
default:
|
|
1618
|
-
const parsedBody = parsedOutput.body;
|
|
1619
|
-
return throwDefaultError({
|
|
1620
|
-
output,
|
|
1621
|
-
parsedBody,
|
|
1622
|
-
errorCode,
|
|
1623
|
-
});
|
|
1624
|
-
}
|
|
1625
|
-
};
|
|
1626
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(XRayServiceException_1.XRayServiceException);
|
|
1627
|
-
const de_InvalidPolicyRevisionIdExceptionRes = async (parsedOutput, context) => {
|
|
1628
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1629
|
-
const data = parsedOutput.body;
|
|
1630
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1631
|
-
Message: smithy_client_1.expectString,
|
|
1632
|
-
});
|
|
1633
|
-
Object.assign(contents, doc);
|
|
1634
|
-
const exception = new models_0_1.InvalidPolicyRevisionIdException({
|
|
1635
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1636
|
-
...contents,
|
|
1637
|
-
});
|
|
1638
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1639
|
-
};
|
|
1640
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1641
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1642
|
-
const data = parsedOutput.body;
|
|
1643
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1644
|
-
Message: smithy_client_1.expectString,
|
|
1645
|
-
});
|
|
1646
|
-
Object.assign(contents, doc);
|
|
1647
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
1648
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1649
|
-
...contents,
|
|
1650
|
-
});
|
|
1651
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1652
|
-
};
|
|
1653
|
-
const de_LockoutPreventionExceptionRes = async (parsedOutput, context) => {
|
|
1654
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1655
|
-
const data = parsedOutput.body;
|
|
1656
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1657
|
-
Message: smithy_client_1.expectString,
|
|
1658
|
-
});
|
|
1659
|
-
Object.assign(contents, doc);
|
|
1660
|
-
const exception = new models_0_1.LockoutPreventionException({
|
|
1661
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1662
|
-
...contents,
|
|
1663
|
-
});
|
|
1664
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1665
|
-
};
|
|
1666
|
-
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
1667
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1668
|
-
const data = parsedOutput.body;
|
|
1669
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1670
|
-
Message: smithy_client_1.expectString,
|
|
1671
|
-
});
|
|
1672
|
-
Object.assign(contents, doc);
|
|
1673
|
-
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
1674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1675
|
-
...contents,
|
|
1676
|
-
});
|
|
1677
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1678
|
-
};
|
|
1679
|
-
const de_PolicyCountLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1680
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1681
|
-
const data = parsedOutput.body;
|
|
1682
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1683
|
-
Message: smithy_client_1.expectString,
|
|
1684
|
-
});
|
|
1685
|
-
Object.assign(contents, doc);
|
|
1686
|
-
const exception = new models_0_1.PolicyCountLimitExceededException({
|
|
1687
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1688
|
-
...contents,
|
|
1689
|
-
});
|
|
1690
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1691
|
-
};
|
|
1692
|
-
const de_PolicySizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1693
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1694
|
-
const data = parsedOutput.body;
|
|
1695
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1696
|
-
Message: smithy_client_1.expectString,
|
|
1697
|
-
});
|
|
1698
|
-
Object.assign(contents, doc);
|
|
1699
|
-
const exception = new models_0_1.PolicySizeLimitExceededException({
|
|
1700
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1701
|
-
...contents,
|
|
1702
|
-
});
|
|
1703
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1704
|
-
};
|
|
1705
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1706
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1707
|
-
const data = parsedOutput.body;
|
|
1708
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1709
|
-
Message: smithy_client_1.expectString,
|
|
1710
|
-
ResourceName: smithy_client_1.expectString,
|
|
1711
|
-
});
|
|
1712
|
-
Object.assign(contents, doc);
|
|
1713
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1714
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1715
|
-
...contents,
|
|
1716
|
-
});
|
|
1717
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1718
|
-
};
|
|
1719
|
-
const de_RuleLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1720
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1721
|
-
const data = parsedOutput.body;
|
|
1722
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1723
|
-
Message: smithy_client_1.expectString,
|
|
1724
|
-
});
|
|
1725
|
-
Object.assign(contents, doc);
|
|
1726
|
-
const exception = new models_0_1.RuleLimitExceededException({
|
|
1727
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1728
|
-
...contents,
|
|
1729
|
-
});
|
|
1730
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1731
|
-
};
|
|
1732
|
-
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
1733
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1734
|
-
const data = parsedOutput.body;
|
|
1735
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1736
|
-
Message: smithy_client_1.expectString,
|
|
1737
|
-
});
|
|
1738
|
-
Object.assign(contents, doc);
|
|
1739
|
-
const exception = new models_0_1.ThrottledException({
|
|
1740
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1741
|
-
...contents,
|
|
1742
|
-
});
|
|
1743
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1744
|
-
};
|
|
1745
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1746
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1747
|
-
const data = parsedOutput.body;
|
|
1748
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1749
|
-
Message: smithy_client_1.expectString,
|
|
1750
|
-
ResourceName: smithy_client_1.expectString,
|
|
1751
|
-
});
|
|
1752
|
-
Object.assign(contents, doc);
|
|
1753
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1754
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1755
|
-
...contents,
|
|
1756
|
-
});
|
|
1757
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1758
|
-
};
|
|
1759
|
-
const se_SamplingRule = (input, context) => {
|
|
1760
|
-
return (0, smithy_client_1.take)(input, {
|
|
1761
|
-
Attributes: smithy_client_1._json,
|
|
1762
|
-
FixedRate: smithy_client_1.serializeFloat,
|
|
1763
|
-
HTTPMethod: [],
|
|
1764
|
-
Host: [],
|
|
1765
|
-
Priority: [],
|
|
1766
|
-
ReservoirSize: [],
|
|
1767
|
-
ResourceARN: [],
|
|
1768
|
-
RuleARN: [],
|
|
1769
|
-
RuleName: [],
|
|
1770
|
-
ServiceName: [],
|
|
1771
|
-
ServiceType: [],
|
|
1772
|
-
URLPath: [],
|
|
1773
|
-
Version: [],
|
|
1774
|
-
});
|
|
1775
|
-
};
|
|
1776
|
-
const se_SamplingRuleUpdate = (input, context) => {
|
|
1777
|
-
return (0, smithy_client_1.take)(input, {
|
|
1778
|
-
Attributes: smithy_client_1._json,
|
|
1779
|
-
FixedRate: smithy_client_1.serializeFloat,
|
|
1780
|
-
HTTPMethod: [],
|
|
1781
|
-
Host: [],
|
|
1782
|
-
Priority: [],
|
|
1783
|
-
ReservoirSize: [],
|
|
1784
|
-
ResourceARN: [],
|
|
1785
|
-
RuleARN: [],
|
|
1786
|
-
RuleName: [],
|
|
1787
|
-
ServiceName: [],
|
|
1788
|
-
ServiceType: [],
|
|
1789
|
-
URLPath: [],
|
|
1790
|
-
});
|
|
1791
|
-
};
|
|
1792
|
-
const se_SamplingStatisticsDocument = (input, context) => {
|
|
1793
|
-
return (0, smithy_client_1.take)(input, {
|
|
1794
|
-
BorrowCount: [],
|
|
1795
|
-
ClientID: [],
|
|
1796
|
-
RequestCount: [],
|
|
1797
|
-
RuleName: [],
|
|
1798
|
-
SampledCount: [],
|
|
1799
|
-
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1800
|
-
});
|
|
1801
|
-
};
|
|
1802
|
-
const se_SamplingStatisticsDocumentList = (input, context) => {
|
|
1803
|
-
return input
|
|
1804
|
-
.filter((e) => e != null)
|
|
1805
|
-
.map((entry) => {
|
|
1806
|
-
return se_SamplingStatisticsDocument(entry, context);
|
|
1807
|
-
});
|
|
1808
|
-
};
|
|
1809
|
-
const se_SamplingStrategy = (input, context) => {
|
|
1810
|
-
return (0, smithy_client_1.take)(input, {
|
|
1811
|
-
Name: [],
|
|
1812
|
-
Value: smithy_client_1.serializeFloat,
|
|
1813
|
-
});
|
|
1814
|
-
};
|
|
1815
|
-
const se_TelemetryRecord = (input, context) => {
|
|
1816
|
-
return (0, smithy_client_1.take)(input, {
|
|
1817
|
-
BackendConnectionErrors: smithy_client_1._json,
|
|
1818
|
-
SegmentsReceivedCount: [],
|
|
1819
|
-
SegmentsRejectedCount: [],
|
|
1820
|
-
SegmentsSentCount: [],
|
|
1821
|
-
SegmentsSpilloverCount: [],
|
|
1822
|
-
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1823
|
-
});
|
|
1824
|
-
};
|
|
1825
|
-
const se_TelemetryRecordList = (input, context) => {
|
|
1826
|
-
return input
|
|
1827
|
-
.filter((e) => e != null)
|
|
1828
|
-
.map((entry) => {
|
|
1829
|
-
return se_TelemetryRecord(entry, context);
|
|
1830
|
-
});
|
|
1831
|
-
};
|
|
1832
|
-
const de_Annotations = (output, context) => {
|
|
1833
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1834
|
-
if (value === null) {
|
|
1835
|
-
return acc;
|
|
1836
|
-
}
|
|
1837
|
-
acc[key] = de_ValuesWithServiceIds(value, context);
|
|
1838
|
-
return acc;
|
|
1839
|
-
}, {});
|
|
1840
|
-
};
|
|
1841
|
-
const de_AnnotationValue = (output, context) => {
|
|
1842
|
-
if ((0, smithy_client_1.expectBoolean)(output.BooleanValue) !== undefined) {
|
|
1843
|
-
return { BooleanValue: (0, smithy_client_1.expectBoolean)(output.BooleanValue) };
|
|
1844
|
-
}
|
|
1845
|
-
if ((0, smithy_client_1.limitedParseDouble)(output.NumberValue) !== undefined) {
|
|
1846
|
-
return { NumberValue: (0, smithy_client_1.limitedParseDouble)(output.NumberValue) };
|
|
1847
|
-
}
|
|
1848
|
-
if ((0, smithy_client_1.expectString)(output.StringValue) !== undefined) {
|
|
1849
|
-
return { StringValue: (0, smithy_client_1.expectString)(output.StringValue) };
|
|
1850
|
-
}
|
|
1851
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1852
|
-
};
|
|
1853
|
-
const de_Edge = (output, context) => {
|
|
1854
|
-
return (0, smithy_client_1.take)(output, {
|
|
1855
|
-
Aliases: smithy_client_1._json,
|
|
1856
|
-
EdgeType: smithy_client_1.expectString,
|
|
1857
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1858
|
-
ReceivedEventAgeHistogram: (_) => de_Histogram(_, context),
|
|
1859
|
-
ReferenceId: smithy_client_1.expectInt32,
|
|
1860
|
-
ResponseTimeHistogram: (_) => de_Histogram(_, context),
|
|
1861
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1862
|
-
SummaryStatistics: (_) => de_EdgeStatistics(_, context),
|
|
1863
|
-
});
|
|
1864
|
-
};
|
|
1865
|
-
const de_EdgeList = (output, context) => {
|
|
1866
|
-
const retVal = (output || [])
|
|
1867
|
-
.filter((e) => e != null)
|
|
1868
|
-
.map((entry) => {
|
|
1869
|
-
return de_Edge(entry, context);
|
|
1870
|
-
});
|
|
1871
|
-
return retVal;
|
|
1872
|
-
};
|
|
1873
|
-
const de_EdgeStatistics = (output, context) => {
|
|
1874
|
-
return (0, smithy_client_1.take)(output, {
|
|
1875
|
-
ErrorStatistics: smithy_client_1._json,
|
|
1876
|
-
FaultStatistics: smithy_client_1._json,
|
|
1877
|
-
OkCount: smithy_client_1.expectLong,
|
|
1878
|
-
TotalCount: smithy_client_1.expectLong,
|
|
1879
|
-
TotalResponseTime: smithy_client_1.limitedParseDouble,
|
|
1880
|
-
});
|
|
1881
|
-
};
|
|
1882
|
-
const de_Histogram = (output, context) => {
|
|
1883
|
-
const retVal = (output || [])
|
|
1884
|
-
.filter((e) => e != null)
|
|
1885
|
-
.map((entry) => {
|
|
1886
|
-
return de_HistogramEntry(entry, context);
|
|
1887
|
-
});
|
|
1888
|
-
return retVal;
|
|
1889
|
-
};
|
|
1890
|
-
const de_HistogramEntry = (output, context) => {
|
|
1891
|
-
return (0, smithy_client_1.take)(output, {
|
|
1892
|
-
Count: smithy_client_1.expectInt32,
|
|
1893
|
-
Value: smithy_client_1.limitedParseDouble,
|
|
1894
|
-
});
|
|
1895
|
-
};
|
|
1896
|
-
const de_Insight = (output, context) => {
|
|
1897
|
-
return (0, smithy_client_1.take)(output, {
|
|
1898
|
-
Categories: smithy_client_1._json,
|
|
1899
|
-
ClientRequestImpactStatistics: smithy_client_1._json,
|
|
1900
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1901
|
-
GroupARN: smithy_client_1.expectString,
|
|
1902
|
-
GroupName: smithy_client_1.expectString,
|
|
1903
|
-
InsightId: smithy_client_1.expectString,
|
|
1904
|
-
RootCauseServiceId: smithy_client_1._json,
|
|
1905
|
-
RootCauseServiceRequestImpactStatistics: smithy_client_1._json,
|
|
1906
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1907
|
-
State: smithy_client_1.expectString,
|
|
1908
|
-
Summary: smithy_client_1.expectString,
|
|
1909
|
-
TopAnomalousServices: smithy_client_1._json,
|
|
1910
|
-
});
|
|
1911
|
-
};
|
|
1912
|
-
const de_InsightEvent = (output, context) => {
|
|
1913
|
-
return (0, smithy_client_1.take)(output, {
|
|
1914
|
-
ClientRequestImpactStatistics: smithy_client_1._json,
|
|
1915
|
-
EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1916
|
-
RootCauseServiceRequestImpactStatistics: smithy_client_1._json,
|
|
1917
|
-
Summary: smithy_client_1.expectString,
|
|
1918
|
-
TopAnomalousServices: smithy_client_1._json,
|
|
1919
|
-
});
|
|
1920
|
-
};
|
|
1921
|
-
const de_InsightEventList = (output, context) => {
|
|
1922
|
-
const retVal = (output || [])
|
|
1923
|
-
.filter((e) => e != null)
|
|
1924
|
-
.map((entry) => {
|
|
1925
|
-
return de_InsightEvent(entry, context);
|
|
1926
|
-
});
|
|
1927
|
-
return retVal;
|
|
1928
|
-
};
|
|
1929
|
-
const de_InsightSummary = (output, context) => {
|
|
1930
|
-
return (0, smithy_client_1.take)(output, {
|
|
1931
|
-
Categories: smithy_client_1._json,
|
|
1932
|
-
ClientRequestImpactStatistics: smithy_client_1._json,
|
|
1933
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1934
|
-
GroupARN: smithy_client_1.expectString,
|
|
1935
|
-
GroupName: smithy_client_1.expectString,
|
|
1936
|
-
InsightId: smithy_client_1.expectString,
|
|
1937
|
-
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1938
|
-
RootCauseServiceId: smithy_client_1._json,
|
|
1939
|
-
RootCauseServiceRequestImpactStatistics: smithy_client_1._json,
|
|
1940
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1941
|
-
State: smithy_client_1.expectString,
|
|
1942
|
-
Summary: smithy_client_1.expectString,
|
|
1943
|
-
TopAnomalousServices: smithy_client_1._json,
|
|
1944
|
-
});
|
|
1945
|
-
};
|
|
1946
|
-
const de_InsightSummaryList = (output, context) => {
|
|
1947
|
-
const retVal = (output || [])
|
|
1948
|
-
.filter((e) => e != null)
|
|
1949
|
-
.map((entry) => {
|
|
1950
|
-
return de_InsightSummary(entry, context);
|
|
1951
|
-
});
|
|
1952
|
-
return retVal;
|
|
1953
|
-
};
|
|
1954
|
-
const de_ResourcePolicy = (output, context) => {
|
|
1955
|
-
return (0, smithy_client_1.take)(output, {
|
|
1956
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1957
|
-
PolicyDocument: smithy_client_1.expectString,
|
|
1958
|
-
PolicyName: smithy_client_1.expectString,
|
|
1959
|
-
PolicyRevisionId: smithy_client_1.expectString,
|
|
1960
|
-
});
|
|
1961
|
-
};
|
|
1962
|
-
const de_ResourcePolicyList = (output, context) => {
|
|
1963
|
-
const retVal = (output || [])
|
|
1964
|
-
.filter((e) => e != null)
|
|
1965
|
-
.map((entry) => {
|
|
1966
|
-
return de_ResourcePolicy(entry, context);
|
|
1967
|
-
});
|
|
1968
|
-
return retVal;
|
|
1969
|
-
};
|
|
1970
|
-
const de_ResponseTimeRootCause = (output, context) => {
|
|
1971
|
-
return (0, smithy_client_1.take)(output, {
|
|
1972
|
-
ClientImpacting: smithy_client_1.expectBoolean,
|
|
1973
|
-
Services: (_) => de_ResponseTimeRootCauseServices(_, context),
|
|
1974
|
-
});
|
|
1975
|
-
};
|
|
1976
|
-
const de_ResponseTimeRootCauseEntity = (output, context) => {
|
|
1977
|
-
return (0, smithy_client_1.take)(output, {
|
|
1978
|
-
Coverage: smithy_client_1.limitedParseDouble,
|
|
1979
|
-
Name: smithy_client_1.expectString,
|
|
1980
|
-
Remote: smithy_client_1.expectBoolean,
|
|
1981
|
-
});
|
|
1982
|
-
};
|
|
1983
|
-
const de_ResponseTimeRootCauseEntityPath = (output, context) => {
|
|
1984
|
-
const retVal = (output || [])
|
|
1985
|
-
.filter((e) => e != null)
|
|
1986
|
-
.map((entry) => {
|
|
1987
|
-
return de_ResponseTimeRootCauseEntity(entry, context);
|
|
1988
|
-
});
|
|
1989
|
-
return retVal;
|
|
1990
|
-
};
|
|
1991
|
-
const de_ResponseTimeRootCauses = (output, context) => {
|
|
1992
|
-
const retVal = (output || [])
|
|
1993
|
-
.filter((e) => e != null)
|
|
1994
|
-
.map((entry) => {
|
|
1995
|
-
return de_ResponseTimeRootCause(entry, context);
|
|
1996
|
-
});
|
|
1997
|
-
return retVal;
|
|
1998
|
-
};
|
|
1999
|
-
const de_ResponseTimeRootCauseService = (output, context) => {
|
|
2000
|
-
return (0, smithy_client_1.take)(output, {
|
|
2001
|
-
AccountId: smithy_client_1.expectString,
|
|
2002
|
-
EntityPath: (_) => de_ResponseTimeRootCauseEntityPath(_, context),
|
|
2003
|
-
Inferred: smithy_client_1.expectBoolean,
|
|
2004
|
-
Name: smithy_client_1.expectString,
|
|
2005
|
-
Names: smithy_client_1._json,
|
|
2006
|
-
Type: smithy_client_1.expectString,
|
|
2007
|
-
});
|
|
2008
|
-
};
|
|
2009
|
-
const de_ResponseTimeRootCauseServices = (output, context) => {
|
|
2010
|
-
const retVal = (output || [])
|
|
2011
|
-
.filter((e) => e != null)
|
|
2012
|
-
.map((entry) => {
|
|
2013
|
-
return de_ResponseTimeRootCauseService(entry, context);
|
|
2014
|
-
});
|
|
2015
|
-
return retVal;
|
|
2016
|
-
};
|
|
2017
|
-
const de_SamplingRule = (output, context) => {
|
|
2018
|
-
return (0, smithy_client_1.take)(output, {
|
|
2019
|
-
Attributes: smithy_client_1._json,
|
|
2020
|
-
FixedRate: smithy_client_1.limitedParseDouble,
|
|
2021
|
-
HTTPMethod: smithy_client_1.expectString,
|
|
2022
|
-
Host: smithy_client_1.expectString,
|
|
2023
|
-
Priority: smithy_client_1.expectInt32,
|
|
2024
|
-
ReservoirSize: smithy_client_1.expectInt32,
|
|
2025
|
-
ResourceARN: smithy_client_1.expectString,
|
|
2026
|
-
RuleARN: smithy_client_1.expectString,
|
|
2027
|
-
RuleName: smithy_client_1.expectString,
|
|
2028
|
-
ServiceName: smithy_client_1.expectString,
|
|
2029
|
-
ServiceType: smithy_client_1.expectString,
|
|
2030
|
-
URLPath: smithy_client_1.expectString,
|
|
2031
|
-
Version: smithy_client_1.expectInt32,
|
|
2032
|
-
});
|
|
2033
|
-
};
|
|
2034
|
-
const de_SamplingRuleRecord = (output, context) => {
|
|
2035
|
-
return (0, smithy_client_1.take)(output, {
|
|
2036
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2037
|
-
ModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2038
|
-
SamplingRule: (_) => de_SamplingRule(_, context),
|
|
2039
|
-
});
|
|
2040
|
-
};
|
|
2041
|
-
const de_SamplingRuleRecordList = (output, context) => {
|
|
2042
|
-
const retVal = (output || [])
|
|
2043
|
-
.filter((e) => e != null)
|
|
2044
|
-
.map((entry) => {
|
|
2045
|
-
return de_SamplingRuleRecord(entry, context);
|
|
2046
|
-
});
|
|
2047
|
-
return retVal;
|
|
2048
|
-
};
|
|
2049
|
-
const de_SamplingStatisticSummary = (output, context) => {
|
|
2050
|
-
return (0, smithy_client_1.take)(output, {
|
|
2051
|
-
BorrowCount: smithy_client_1.expectInt32,
|
|
2052
|
-
RequestCount: smithy_client_1.expectInt32,
|
|
2053
|
-
RuleName: smithy_client_1.expectString,
|
|
2054
|
-
SampledCount: smithy_client_1.expectInt32,
|
|
2055
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2056
|
-
});
|
|
2057
|
-
};
|
|
2058
|
-
const de_SamplingStatisticSummaryList = (output, context) => {
|
|
2059
|
-
const retVal = (output || [])
|
|
2060
|
-
.filter((e) => e != null)
|
|
2061
|
-
.map((entry) => {
|
|
2062
|
-
return de_SamplingStatisticSummary(entry, context);
|
|
2063
|
-
});
|
|
2064
|
-
return retVal;
|
|
2065
|
-
};
|
|
2066
|
-
const de_SamplingTargetDocument = (output, context) => {
|
|
2067
|
-
return (0, smithy_client_1.take)(output, {
|
|
2068
|
-
FixedRate: smithy_client_1.limitedParseDouble,
|
|
2069
|
-
Interval: smithy_client_1.expectInt32,
|
|
2070
|
-
ReservoirQuota: smithy_client_1.expectInt32,
|
|
2071
|
-
ReservoirQuotaTTL: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2072
|
-
RuleName: smithy_client_1.expectString,
|
|
2073
|
-
});
|
|
2074
|
-
};
|
|
2075
|
-
const de_SamplingTargetDocumentList = (output, context) => {
|
|
2076
|
-
const retVal = (output || [])
|
|
2077
|
-
.filter((e) => e != null)
|
|
2078
|
-
.map((entry) => {
|
|
2079
|
-
return de_SamplingTargetDocument(entry, context);
|
|
2080
|
-
});
|
|
2081
|
-
return retVal;
|
|
2082
|
-
};
|
|
2083
|
-
const de_Service = (output, context) => {
|
|
2084
|
-
return (0, smithy_client_1.take)(output, {
|
|
2085
|
-
AccountId: smithy_client_1.expectString,
|
|
2086
|
-
DurationHistogram: (_) => de_Histogram(_, context),
|
|
2087
|
-
Edges: (_) => de_EdgeList(_, context),
|
|
2088
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2089
|
-
Name: smithy_client_1.expectString,
|
|
2090
|
-
Names: smithy_client_1._json,
|
|
2091
|
-
ReferenceId: smithy_client_1.expectInt32,
|
|
2092
|
-
ResponseTimeHistogram: (_) => de_Histogram(_, context),
|
|
2093
|
-
Root: smithy_client_1.expectBoolean,
|
|
2094
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2095
|
-
State: smithy_client_1.expectString,
|
|
2096
|
-
SummaryStatistics: (_) => de_ServiceStatistics(_, context),
|
|
2097
|
-
Type: smithy_client_1.expectString,
|
|
2098
|
-
});
|
|
2099
|
-
};
|
|
2100
|
-
const de_ServiceList = (output, context) => {
|
|
2101
|
-
const retVal = (output || [])
|
|
2102
|
-
.filter((e) => e != null)
|
|
2103
|
-
.map((entry) => {
|
|
2104
|
-
return de_Service(entry, context);
|
|
2105
|
-
});
|
|
2106
|
-
return retVal;
|
|
2107
|
-
};
|
|
2108
|
-
const de_ServiceStatistics = (output, context) => {
|
|
2109
|
-
return (0, smithy_client_1.take)(output, {
|
|
2110
|
-
ErrorStatistics: smithy_client_1._json,
|
|
2111
|
-
FaultStatistics: smithy_client_1._json,
|
|
2112
|
-
OkCount: smithy_client_1.expectLong,
|
|
2113
|
-
TotalCount: smithy_client_1.expectLong,
|
|
2114
|
-
TotalResponseTime: smithy_client_1.limitedParseDouble,
|
|
2115
|
-
});
|
|
2116
|
-
};
|
|
2117
|
-
const de_TimeSeriesServiceStatistics = (output, context) => {
|
|
2118
|
-
return (0, smithy_client_1.take)(output, {
|
|
2119
|
-
EdgeSummaryStatistics: (_) => de_EdgeStatistics(_, context),
|
|
2120
|
-
ResponseTimeHistogram: (_) => de_Histogram(_, context),
|
|
2121
|
-
ServiceForecastStatistics: smithy_client_1._json,
|
|
2122
|
-
ServiceSummaryStatistics: (_) => de_ServiceStatistics(_, context),
|
|
2123
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
const de_TimeSeriesServiceStatisticsList = (output, context) => {
|
|
2127
|
-
const retVal = (output || [])
|
|
2128
|
-
.filter((e) => e != null)
|
|
2129
|
-
.map((entry) => {
|
|
2130
|
-
return de_TimeSeriesServiceStatistics(entry, context);
|
|
2131
|
-
});
|
|
2132
|
-
return retVal;
|
|
2133
|
-
};
|
|
2134
|
-
const de_Trace = (output, context) => {
|
|
2135
|
-
return (0, smithy_client_1.take)(output, {
|
|
2136
|
-
Duration: smithy_client_1.limitedParseDouble,
|
|
2137
|
-
Id: smithy_client_1.expectString,
|
|
2138
|
-
LimitExceeded: smithy_client_1.expectBoolean,
|
|
2139
|
-
Segments: smithy_client_1._json,
|
|
2140
|
-
});
|
|
2141
|
-
};
|
|
2142
|
-
const de_TraceList = (output, context) => {
|
|
2143
|
-
const retVal = (output || [])
|
|
2144
|
-
.filter((e) => e != null)
|
|
2145
|
-
.map((entry) => {
|
|
2146
|
-
return de_Trace(entry, context);
|
|
2147
|
-
});
|
|
2148
|
-
return retVal;
|
|
2149
|
-
};
|
|
2150
|
-
const de_TraceSummary = (output, context) => {
|
|
2151
|
-
return (0, smithy_client_1.take)(output, {
|
|
2152
|
-
Annotations: (_) => de_Annotations(_, context),
|
|
2153
|
-
AvailabilityZones: smithy_client_1._json,
|
|
2154
|
-
Duration: smithy_client_1.limitedParseDouble,
|
|
2155
|
-
EntryPoint: smithy_client_1._json,
|
|
2156
|
-
ErrorRootCauses: smithy_client_1._json,
|
|
2157
|
-
FaultRootCauses: smithy_client_1._json,
|
|
2158
|
-
HasError: smithy_client_1.expectBoolean,
|
|
2159
|
-
HasFault: smithy_client_1.expectBoolean,
|
|
2160
|
-
HasThrottle: smithy_client_1.expectBoolean,
|
|
2161
|
-
Http: smithy_client_1._json,
|
|
2162
|
-
Id: smithy_client_1.expectString,
|
|
2163
|
-
InstanceIds: smithy_client_1._json,
|
|
2164
|
-
IsPartial: smithy_client_1.expectBoolean,
|
|
2165
|
-
MatchedEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2166
|
-
ResourceARNs: smithy_client_1._json,
|
|
2167
|
-
ResponseTime: smithy_client_1.limitedParseDouble,
|
|
2168
|
-
ResponseTimeRootCauses: (_) => de_ResponseTimeRootCauses(_, context),
|
|
2169
|
-
Revision: smithy_client_1.expectInt32,
|
|
2170
|
-
ServiceIds: smithy_client_1._json,
|
|
2171
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2172
|
-
Users: smithy_client_1._json,
|
|
2173
|
-
});
|
|
2174
|
-
};
|
|
2175
|
-
const de_TraceSummaryList = (output, context) => {
|
|
2176
|
-
const retVal = (output || [])
|
|
2177
|
-
.filter((e) => e != null)
|
|
2178
|
-
.map((entry) => {
|
|
2179
|
-
return de_TraceSummary(entry, context);
|
|
2180
|
-
});
|
|
2181
|
-
return retVal;
|
|
2182
|
-
};
|
|
2183
|
-
const de_ValuesWithServiceIds = (output, context) => {
|
|
2184
|
-
const retVal = (output || [])
|
|
2185
|
-
.filter((e) => e != null)
|
|
2186
|
-
.map((entry) => {
|
|
2187
|
-
return de_ValueWithServiceIds(entry, context);
|
|
2188
|
-
});
|
|
2189
|
-
return retVal;
|
|
2190
|
-
};
|
|
2191
|
-
const de_ValueWithServiceIds = (output, context) => {
|
|
2192
|
-
return (0, smithy_client_1.take)(output, {
|
|
2193
|
-
AnnotationValue: (_) => de_AnnotationValue((0, core_1.awsExpectUnion)(_), context),
|
|
2194
|
-
ServiceIds: smithy_client_1._json,
|
|
2195
|
-
});
|
|
2196
|
-
};
|
|
2197
|
-
const deserializeMetadata = (output) => ({
|
|
2198
|
-
httpStatusCode: output.statusCode,
|
|
2199
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2200
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2201
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2202
|
-
});
|
|
2203
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2204
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2205
|
-
value !== null &&
|
|
2206
|
-
value !== "" &&
|
|
2207
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2208
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2209
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2210
|
-
if (encoded.length) {
|
|
2211
|
-
return JSON.parse(encoded);
|
|
2212
|
-
}
|
|
2213
|
-
return {};
|
|
2214
|
-
});
|
|
2215
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2216
|
-
const value = await parseBody(errorBody, context);
|
|
2217
|
-
value.message = value.message ?? value.Message;
|
|
2218
|
-
return value;
|
|
2219
|
-
};
|
|
2220
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2221
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2222
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2223
|
-
let cleanValue = rawValue;
|
|
2224
|
-
if (typeof cleanValue === "number") {
|
|
2225
|
-
cleanValue = cleanValue.toString();
|
|
2226
|
-
}
|
|
2227
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2228
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2229
|
-
}
|
|
2230
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2231
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2232
|
-
}
|
|
2233
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2234
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2235
|
-
}
|
|
2236
|
-
return cleanValue;
|
|
2237
|
-
};
|
|
2238
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2239
|
-
if (headerKey !== undefined) {
|
|
2240
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2241
|
-
}
|
|
2242
|
-
if (data.code !== undefined) {
|
|
2243
|
-
return sanitizeErrorCode(data.code);
|
|
2244
|
-
}
|
|
2245
|
-
if (data["__type"] !== undefined) {
|
|
2246
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2247
|
-
}
|
|
2248
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|