@aws-sdk/client-application-signals 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1416 -1212
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ApplicationSignalsClient.js +2 -0
- package/dist-es/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +3 -9
- package/dist-es/commands/BatchUpdateExclusionWindowsCommand.js +3 -9
- package/dist-es/commands/CreateServiceLevelObjectiveCommand.js +3 -9
- package/dist-es/commands/DeleteGroupingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteServiceLevelObjectiveCommand.js +3 -9
- package/dist-es/commands/GetServiceCommand.js +3 -9
- package/dist-es/commands/GetServiceLevelObjectiveCommand.js +3 -9
- package/dist-es/commands/ListAuditFindingsCommand.js +3 -9
- package/dist-es/commands/ListGroupingAttributeDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListServiceDependenciesCommand.js +3 -9
- package/dist-es/commands/ListServiceDependentsCommand.js +3 -9
- package/dist-es/commands/ListServiceLevelObjectiveExclusionWindowsCommand.js +3 -9
- package/dist-es/commands/ListServiceLevelObjectivesCommand.js +3 -9
- package/dist-es/commands/ListServiceOperationsCommand.js +3 -9
- package/dist-es/commands/ListServiceStatesCommand.js +3 -9
- package/dist-es/commands/ListServicesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutGroupingConfigurationCommand.js +3 -9
- package/dist-es/commands/StartDiscoveryCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateServiceLevelObjectiveCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1371 -0
- package/dist-types/ApplicationSignalsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +160 -0
- package/dist-types/ts3.4/ApplicationSignalsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +165 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -1050
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -269
|
@@ -1,1050 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ApplicationSignalsServiceException as __BaseException } from "../models/ApplicationSignalsServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, Interval, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_BatchGetServiceLevelObjectiveBudgetReportCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/budget-report");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
SloIds: (_) => _json(_),
|
|
15
|
-
Timestamp: (_) => _.getTime() / 1_000,
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_BatchUpdateExclusionWindowsCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/exclusion-windows");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
AddExclusionWindows: (_) => se_ExclusionWindows(_, context),
|
|
29
|
-
RemoveExclusionWindows: (_) => se_ExclusionWindows(_, context),
|
|
30
|
-
SloIds: (_) => _json(_),
|
|
31
|
-
}));
|
|
32
|
-
b.m("PATCH").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_CreateServiceLevelObjectiveCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = {
|
|
38
|
-
"content-type": "application/json",
|
|
39
|
-
};
|
|
40
|
-
b.bp("/slo");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(take(input, {
|
|
43
|
-
BurnRateConfigurations: (_) => _json(_),
|
|
44
|
-
Description: [],
|
|
45
|
-
Goal: (_) => se_Goal(_, context),
|
|
46
|
-
Name: [],
|
|
47
|
-
RequestBasedSliConfig: (_) => se_RequestBasedServiceLevelIndicatorConfig(_, context),
|
|
48
|
-
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
49
|
-
Tags: (_) => _json(_),
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_DeleteGroupingConfigurationCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {};
|
|
57
|
-
b.bp("/grouping-configuration");
|
|
58
|
-
let body;
|
|
59
|
-
b.m("DELETE").h(headers).b(body);
|
|
60
|
-
return b.build();
|
|
61
|
-
};
|
|
62
|
-
export const se_DeleteServiceLevelObjectiveCommand = async (input, context) => {
|
|
63
|
-
const b = rb(input, context);
|
|
64
|
-
const headers = {};
|
|
65
|
-
b.bp("/slo/{Id}");
|
|
66
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
67
|
-
let body;
|
|
68
|
-
b.m("DELETE").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
export const se_GetServiceCommand = async (input, context) => {
|
|
72
|
-
const b = rb(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/service");
|
|
77
|
-
const query = map({
|
|
78
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
79
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
80
|
-
});
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(take(input, {
|
|
83
|
-
KeyAttributes: (_) => _json(_),
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const se_GetServiceLevelObjectiveCommand = async (input, context) => {
|
|
89
|
-
const b = rb(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/slo/{Id}");
|
|
92
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
93
|
-
let body;
|
|
94
|
-
b.m("GET").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_ListAuditFindingsCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/auditFindings");
|
|
103
|
-
const query = map({
|
|
104
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
105
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
106
|
-
});
|
|
107
|
-
let body;
|
|
108
|
-
body = JSON.stringify(take(input, {
|
|
109
|
-
AuditTargets: (_) => _json(_),
|
|
110
|
-
Auditors: (_) => _json(_),
|
|
111
|
-
MaxResults: [],
|
|
112
|
-
NextToken: [],
|
|
113
|
-
}));
|
|
114
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
export const se_ListGroupingAttributeDefinitionsCommand = async (input, context) => {
|
|
118
|
-
const b = rb(input, context);
|
|
119
|
-
const headers = {};
|
|
120
|
-
b.bp("/grouping-attribute-definitions");
|
|
121
|
-
const query = map({
|
|
122
|
-
[_NT]: [, input[_NT]],
|
|
123
|
-
});
|
|
124
|
-
let body;
|
|
125
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
126
|
-
return b.build();
|
|
127
|
-
};
|
|
128
|
-
export const se_ListServiceDependenciesCommand = async (input, context) => {
|
|
129
|
-
const b = rb(input, context);
|
|
130
|
-
const headers = {
|
|
131
|
-
"content-type": "application/json",
|
|
132
|
-
};
|
|
133
|
-
b.bp("/service-dependencies");
|
|
134
|
-
const query = map({
|
|
135
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
136
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
137
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
138
|
-
[_NT]: [, input[_NT]],
|
|
139
|
-
});
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(take(input, {
|
|
142
|
-
KeyAttributes: (_) => _json(_),
|
|
143
|
-
}));
|
|
144
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
145
|
-
return b.build();
|
|
146
|
-
};
|
|
147
|
-
export const se_ListServiceDependentsCommand = async (input, context) => {
|
|
148
|
-
const b = rb(input, context);
|
|
149
|
-
const headers = {
|
|
150
|
-
"content-type": "application/json",
|
|
151
|
-
};
|
|
152
|
-
b.bp("/service-dependents");
|
|
153
|
-
const query = map({
|
|
154
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
155
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
156
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
157
|
-
[_NT]: [, input[_NT]],
|
|
158
|
-
});
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(take(input, {
|
|
161
|
-
KeyAttributes: (_) => _json(_),
|
|
162
|
-
}));
|
|
163
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
164
|
-
return b.build();
|
|
165
|
-
};
|
|
166
|
-
export const se_ListServiceLevelObjectiveExclusionWindowsCommand = async (input, context) => {
|
|
167
|
-
const b = rb(input, context);
|
|
168
|
-
const headers = {};
|
|
169
|
-
b.bp("/slo/{Id}/exclusion-windows");
|
|
170
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
171
|
-
const query = map({
|
|
172
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
173
|
-
[_NT]: [, input[_NT]],
|
|
174
|
-
});
|
|
175
|
-
let body;
|
|
176
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
177
|
-
return b.build();
|
|
178
|
-
};
|
|
179
|
-
export const se_ListServiceLevelObjectivesCommand = async (input, context) => {
|
|
180
|
-
const b = rb(input, context);
|
|
181
|
-
const headers = {
|
|
182
|
-
"content-type": "application/json",
|
|
183
|
-
};
|
|
184
|
-
b.bp("/slos");
|
|
185
|
-
const query = map({
|
|
186
|
-
[_ON]: [, input[_ON]],
|
|
187
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
188
|
-
[_NT]: [, input[_NT]],
|
|
189
|
-
[_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
|
|
190
|
-
[_SOAAI]: [, input[_SOAAI]],
|
|
191
|
-
});
|
|
192
|
-
let body;
|
|
193
|
-
body = JSON.stringify(take(input, {
|
|
194
|
-
DependencyConfig: (_) => _json(_),
|
|
195
|
-
KeyAttributes: (_) => _json(_),
|
|
196
|
-
MetricSourceTypes: (_) => _json(_),
|
|
197
|
-
}));
|
|
198
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
export const se_ListServiceOperationsCommand = async (input, context) => {
|
|
202
|
-
const b = rb(input, context);
|
|
203
|
-
const headers = {
|
|
204
|
-
"content-type": "application/json",
|
|
205
|
-
};
|
|
206
|
-
b.bp("/service-operations");
|
|
207
|
-
const query = map({
|
|
208
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
209
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
210
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
211
|
-
[_NT]: [, input[_NT]],
|
|
212
|
-
});
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify(take(input, {
|
|
215
|
-
KeyAttributes: (_) => _json(_),
|
|
216
|
-
}));
|
|
217
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
218
|
-
return b.build();
|
|
219
|
-
};
|
|
220
|
-
export const se_ListServicesCommand = async (input, context) => {
|
|
221
|
-
const b = rb(input, context);
|
|
222
|
-
const headers = {};
|
|
223
|
-
b.bp("/services");
|
|
224
|
-
const query = map({
|
|
225
|
-
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
226
|
-
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
227
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
228
|
-
[_NT]: [, input[_NT]],
|
|
229
|
-
[_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
|
|
230
|
-
[_AAI]: [, input[_AAI]],
|
|
231
|
-
});
|
|
232
|
-
let body;
|
|
233
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
export const se_ListServiceStatesCommand = async (input, context) => {
|
|
237
|
-
const b = rb(input, context);
|
|
238
|
-
const headers = {
|
|
239
|
-
"content-type": "application/json",
|
|
240
|
-
};
|
|
241
|
-
b.bp("/service/states");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(take(input, {
|
|
244
|
-
AttributeFilters: (_) => _json(_),
|
|
245
|
-
AwsAccountId: [],
|
|
246
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
247
|
-
IncludeLinkedAccounts: [],
|
|
248
|
-
MaxResults: [],
|
|
249
|
-
NextToken: [],
|
|
250
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
251
|
-
}));
|
|
252
|
-
b.m("POST").h(headers).b(body);
|
|
253
|
-
return b.build();
|
|
254
|
-
};
|
|
255
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
256
|
-
const b = rb(input, context);
|
|
257
|
-
const headers = {};
|
|
258
|
-
b.bp("/tags");
|
|
259
|
-
const query = map({
|
|
260
|
-
[_RA]: [, __expectNonNull(input[_RA], `ResourceArn`)],
|
|
261
|
-
});
|
|
262
|
-
let body;
|
|
263
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
264
|
-
return b.build();
|
|
265
|
-
};
|
|
266
|
-
export const se_PutGroupingConfigurationCommand = async (input, context) => {
|
|
267
|
-
const b = rb(input, context);
|
|
268
|
-
const headers = {
|
|
269
|
-
"content-type": "application/json",
|
|
270
|
-
};
|
|
271
|
-
b.bp("/grouping-configuration");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(take(input, {
|
|
274
|
-
GroupingAttributeDefinitions: (_) => _json(_),
|
|
275
|
-
}));
|
|
276
|
-
b.m("PUT").h(headers).b(body);
|
|
277
|
-
return b.build();
|
|
278
|
-
};
|
|
279
|
-
export const se_StartDiscoveryCommand = async (input, context) => {
|
|
280
|
-
const b = rb(input, context);
|
|
281
|
-
const headers = {};
|
|
282
|
-
b.bp("/start-discovery");
|
|
283
|
-
let body;
|
|
284
|
-
b.m("POST").h(headers).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
288
|
-
const b = rb(input, context);
|
|
289
|
-
const headers = {
|
|
290
|
-
"content-type": "application/json",
|
|
291
|
-
};
|
|
292
|
-
b.bp("/tag-resource");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify(take(input, {
|
|
295
|
-
ResourceArn: [],
|
|
296
|
-
Tags: (_) => _json(_),
|
|
297
|
-
}));
|
|
298
|
-
b.m("POST").h(headers).b(body);
|
|
299
|
-
return b.build();
|
|
300
|
-
};
|
|
301
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
302
|
-
const b = rb(input, context);
|
|
303
|
-
const headers = {
|
|
304
|
-
"content-type": "application/json",
|
|
305
|
-
};
|
|
306
|
-
b.bp("/untag-resource");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify(take(input, {
|
|
309
|
-
ResourceArn: [],
|
|
310
|
-
TagKeys: (_) => _json(_),
|
|
311
|
-
}));
|
|
312
|
-
b.m("POST").h(headers).b(body);
|
|
313
|
-
return b.build();
|
|
314
|
-
};
|
|
315
|
-
export const se_UpdateServiceLevelObjectiveCommand = async (input, context) => {
|
|
316
|
-
const b = rb(input, context);
|
|
317
|
-
const headers = {
|
|
318
|
-
"content-type": "application/json",
|
|
319
|
-
};
|
|
320
|
-
b.bp("/slo/{Id}");
|
|
321
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify(take(input, {
|
|
324
|
-
BurnRateConfigurations: (_) => _json(_),
|
|
325
|
-
Description: [],
|
|
326
|
-
Goal: (_) => se_Goal(_, context),
|
|
327
|
-
RequestBasedSliConfig: (_) => se_RequestBasedServiceLevelIndicatorConfig(_, context),
|
|
328
|
-
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
329
|
-
}));
|
|
330
|
-
b.m("PATCH").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
export const de_BatchGetServiceLevelObjectiveBudgetReportCommand = async (output, context) => {
|
|
334
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
|
-
return de_CommandError(output, context);
|
|
336
|
-
}
|
|
337
|
-
const contents = map({
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
});
|
|
340
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
341
|
-
const doc = take(data, {
|
|
342
|
-
Errors: _json,
|
|
343
|
-
Reports: (_) => de_ServiceLevelObjectiveBudgetReports(_, context),
|
|
344
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
345
|
-
});
|
|
346
|
-
Object.assign(contents, doc);
|
|
347
|
-
return contents;
|
|
348
|
-
};
|
|
349
|
-
export const de_BatchUpdateExclusionWindowsCommand = async (output, context) => {
|
|
350
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
|
-
return de_CommandError(output, context);
|
|
352
|
-
}
|
|
353
|
-
const contents = map({
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
});
|
|
356
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
357
|
-
const doc = take(data, {
|
|
358
|
-
Errors: _json,
|
|
359
|
-
SloIds: _json,
|
|
360
|
-
});
|
|
361
|
-
Object.assign(contents, doc);
|
|
362
|
-
return contents;
|
|
363
|
-
};
|
|
364
|
-
export const de_CreateServiceLevelObjectiveCommand = async (output, context) => {
|
|
365
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
366
|
-
return de_CommandError(output, context);
|
|
367
|
-
}
|
|
368
|
-
const contents = map({
|
|
369
|
-
$metadata: deserializeMetadata(output),
|
|
370
|
-
});
|
|
371
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
372
|
-
const doc = take(data, {
|
|
373
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
374
|
-
});
|
|
375
|
-
Object.assign(contents, doc);
|
|
376
|
-
return contents;
|
|
377
|
-
};
|
|
378
|
-
export const de_DeleteGroupingConfigurationCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
-
return de_CommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const contents = map({
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
});
|
|
385
|
-
await collectBody(output.body, context);
|
|
386
|
-
return contents;
|
|
387
|
-
};
|
|
388
|
-
export const de_DeleteServiceLevelObjectiveCommand = async (output, context) => {
|
|
389
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
390
|
-
return de_CommandError(output, context);
|
|
391
|
-
}
|
|
392
|
-
const contents = map({
|
|
393
|
-
$metadata: deserializeMetadata(output),
|
|
394
|
-
});
|
|
395
|
-
await collectBody(output.body, context);
|
|
396
|
-
return contents;
|
|
397
|
-
};
|
|
398
|
-
export const de_GetServiceCommand = async (output, context) => {
|
|
399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
-
return de_CommandError(output, context);
|
|
401
|
-
}
|
|
402
|
-
const contents = map({
|
|
403
|
-
$metadata: deserializeMetadata(output),
|
|
404
|
-
});
|
|
405
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
406
|
-
const doc = take(data, {
|
|
407
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
408
|
-
LogGroupReferences: _json,
|
|
409
|
-
Service: _json,
|
|
410
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
411
|
-
});
|
|
412
|
-
Object.assign(contents, doc);
|
|
413
|
-
return contents;
|
|
414
|
-
};
|
|
415
|
-
export const de_GetServiceLevelObjectiveCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
417
|
-
return de_CommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const contents = map({
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
});
|
|
422
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
423
|
-
const doc = take(data, {
|
|
424
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
425
|
-
});
|
|
426
|
-
Object.assign(contents, doc);
|
|
427
|
-
return contents;
|
|
428
|
-
};
|
|
429
|
-
export const de_ListAuditFindingsCommand = async (output, context) => {
|
|
430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
431
|
-
return de_CommandError(output, context);
|
|
432
|
-
}
|
|
433
|
-
const contents = map({
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
});
|
|
436
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
437
|
-
const doc = take(data, {
|
|
438
|
-
AuditFindings: (_) => de_AuditFindings(_, context),
|
|
439
|
-
NextToken: __expectString,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
return contents;
|
|
443
|
-
};
|
|
444
|
-
export const de_ListGroupingAttributeDefinitionsCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
-
return de_CommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const contents = map({
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
});
|
|
451
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
452
|
-
const doc = take(data, {
|
|
453
|
-
GroupingAttributeDefinitions: _json,
|
|
454
|
-
NextToken: __expectString,
|
|
455
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
456
|
-
});
|
|
457
|
-
Object.assign(contents, doc);
|
|
458
|
-
return contents;
|
|
459
|
-
};
|
|
460
|
-
export const de_ListServiceDependenciesCommand = async (output, context) => {
|
|
461
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
-
return de_CommandError(output, context);
|
|
463
|
-
}
|
|
464
|
-
const contents = map({
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
});
|
|
467
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
468
|
-
const doc = take(data, {
|
|
469
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
470
|
-
NextToken: __expectString,
|
|
471
|
-
ServiceDependencies: _json,
|
|
472
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
473
|
-
});
|
|
474
|
-
Object.assign(contents, doc);
|
|
475
|
-
return contents;
|
|
476
|
-
};
|
|
477
|
-
export const de_ListServiceDependentsCommand = async (output, context) => {
|
|
478
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
479
|
-
return de_CommandError(output, context);
|
|
480
|
-
}
|
|
481
|
-
const contents = map({
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
});
|
|
484
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
485
|
-
const doc = take(data, {
|
|
486
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
487
|
-
NextToken: __expectString,
|
|
488
|
-
ServiceDependents: _json,
|
|
489
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
490
|
-
});
|
|
491
|
-
Object.assign(contents, doc);
|
|
492
|
-
return contents;
|
|
493
|
-
};
|
|
494
|
-
export const de_ListServiceLevelObjectiveExclusionWindowsCommand = async (output, context) => {
|
|
495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
-
return de_CommandError(output, context);
|
|
497
|
-
}
|
|
498
|
-
const contents = map({
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
});
|
|
501
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
502
|
-
const doc = take(data, {
|
|
503
|
-
ExclusionWindows: (_) => de_ExclusionWindows(_, context),
|
|
504
|
-
NextToken: __expectString,
|
|
505
|
-
});
|
|
506
|
-
Object.assign(contents, doc);
|
|
507
|
-
return contents;
|
|
508
|
-
};
|
|
509
|
-
export const de_ListServiceLevelObjectivesCommand = async (output, context) => {
|
|
510
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
-
return de_CommandError(output, context);
|
|
512
|
-
}
|
|
513
|
-
const contents = map({
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
});
|
|
516
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
517
|
-
const doc = take(data, {
|
|
518
|
-
NextToken: __expectString,
|
|
519
|
-
SloSummaries: (_) => de_ServiceLevelObjectiveSummaries(_, context),
|
|
520
|
-
});
|
|
521
|
-
Object.assign(contents, doc);
|
|
522
|
-
return contents;
|
|
523
|
-
};
|
|
524
|
-
export const de_ListServiceOperationsCommand = async (output, context) => {
|
|
525
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
526
|
-
return de_CommandError(output, context);
|
|
527
|
-
}
|
|
528
|
-
const contents = map({
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
});
|
|
531
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
532
|
-
const doc = take(data, {
|
|
533
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
534
|
-
NextToken: __expectString,
|
|
535
|
-
ServiceOperations: _json,
|
|
536
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
537
|
-
});
|
|
538
|
-
Object.assign(contents, doc);
|
|
539
|
-
return contents;
|
|
540
|
-
};
|
|
541
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
542
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return de_CommandError(output, context);
|
|
544
|
-
}
|
|
545
|
-
const contents = map({
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
});
|
|
548
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
549
|
-
const doc = take(data, {
|
|
550
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
551
|
-
NextToken: __expectString,
|
|
552
|
-
ServiceSummaries: _json,
|
|
553
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
554
|
-
});
|
|
555
|
-
Object.assign(contents, doc);
|
|
556
|
-
return contents;
|
|
557
|
-
};
|
|
558
|
-
export const de_ListServiceStatesCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = map({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
566
|
-
const doc = take(data, {
|
|
567
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
568
|
-
NextToken: __expectString,
|
|
569
|
-
ServiceStates: (_) => de_ServiceStates(_, context),
|
|
570
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
571
|
-
});
|
|
572
|
-
Object.assign(contents, doc);
|
|
573
|
-
return contents;
|
|
574
|
-
};
|
|
575
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const contents = map({
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
});
|
|
582
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
583
|
-
const doc = take(data, {
|
|
584
|
-
Tags: _json,
|
|
585
|
-
});
|
|
586
|
-
Object.assign(contents, doc);
|
|
587
|
-
return contents;
|
|
588
|
-
};
|
|
589
|
-
export const de_PutGroupingConfigurationCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const contents = map({
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
});
|
|
596
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
597
|
-
const doc = take(data, {
|
|
598
|
-
GroupingConfiguration: (_) => de_GroupingConfiguration(_, context),
|
|
599
|
-
});
|
|
600
|
-
Object.assign(contents, doc);
|
|
601
|
-
return contents;
|
|
602
|
-
};
|
|
603
|
-
export const de_StartDiscoveryCommand = async (output, context) => {
|
|
604
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
605
|
-
return de_CommandError(output, context);
|
|
606
|
-
}
|
|
607
|
-
const contents = map({
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
});
|
|
610
|
-
await collectBody(output.body, context);
|
|
611
|
-
return contents;
|
|
612
|
-
};
|
|
613
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
615
|
-
return de_CommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const contents = map({
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
});
|
|
620
|
-
await collectBody(output.body, context);
|
|
621
|
-
return contents;
|
|
622
|
-
};
|
|
623
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
624
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
|
-
return de_CommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const contents = map({
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
});
|
|
630
|
-
await collectBody(output.body, context);
|
|
631
|
-
return contents;
|
|
632
|
-
};
|
|
633
|
-
export const de_UpdateServiceLevelObjectiveCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
|
-
return de_CommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const contents = map({
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
});
|
|
640
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
641
|
-
const doc = take(data, {
|
|
642
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
643
|
-
});
|
|
644
|
-
Object.assign(contents, doc);
|
|
645
|
-
return contents;
|
|
646
|
-
};
|
|
647
|
-
const de_CommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "ThrottlingException":
|
|
655
|
-
case "com.amazonaws.applicationsignals#ThrottlingException":
|
|
656
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ValidationException":
|
|
658
|
-
case "com.amazonaws.applicationsignals#ValidationException":
|
|
659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ResourceNotFoundException":
|
|
661
|
-
case "com.amazonaws.applicationsignals#ResourceNotFoundException":
|
|
662
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
663
|
-
case "AccessDeniedException":
|
|
664
|
-
case "com.amazonaws.applicationsignals#AccessDeniedException":
|
|
665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ConflictException":
|
|
667
|
-
case "com.amazonaws.applicationsignals#ConflictException":
|
|
668
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ServiceQuotaExceededException":
|
|
670
|
-
case "com.amazonaws.applicationsignals#ServiceQuotaExceededException":
|
|
671
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
682
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
683
|
-
const contents = map({});
|
|
684
|
-
const data = parsedOutput.body;
|
|
685
|
-
const doc = take(data, {
|
|
686
|
-
Message: __expectString,
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
const exception = new AccessDeniedException({
|
|
690
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
691
|
-
...contents,
|
|
692
|
-
});
|
|
693
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
694
|
-
};
|
|
695
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
696
|
-
const contents = map({});
|
|
697
|
-
const data = parsedOutput.body;
|
|
698
|
-
const doc = take(data, {
|
|
699
|
-
Message: __expectString,
|
|
700
|
-
});
|
|
701
|
-
Object.assign(contents, doc);
|
|
702
|
-
const exception = new ConflictException({
|
|
703
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
704
|
-
...contents,
|
|
705
|
-
});
|
|
706
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
707
|
-
};
|
|
708
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
709
|
-
const contents = map({});
|
|
710
|
-
const data = parsedOutput.body;
|
|
711
|
-
const doc = take(data, {
|
|
712
|
-
Message: __expectString,
|
|
713
|
-
ResourceId: __expectString,
|
|
714
|
-
ResourceType: __expectString,
|
|
715
|
-
});
|
|
716
|
-
Object.assign(contents, doc);
|
|
717
|
-
const exception = new ResourceNotFoundException({
|
|
718
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
719
|
-
...contents,
|
|
720
|
-
});
|
|
721
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
722
|
-
};
|
|
723
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
724
|
-
const contents = map({});
|
|
725
|
-
const data = parsedOutput.body;
|
|
726
|
-
const doc = take(data, {
|
|
727
|
-
Message: __expectString,
|
|
728
|
-
});
|
|
729
|
-
Object.assign(contents, doc);
|
|
730
|
-
const exception = new ServiceQuotaExceededException({
|
|
731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
732
|
-
...contents,
|
|
733
|
-
});
|
|
734
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
735
|
-
};
|
|
736
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
737
|
-
const contents = map({});
|
|
738
|
-
const data = parsedOutput.body;
|
|
739
|
-
const doc = take(data, {
|
|
740
|
-
Message: __expectString,
|
|
741
|
-
});
|
|
742
|
-
Object.assign(contents, doc);
|
|
743
|
-
const exception = new ThrottlingException({
|
|
744
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
745
|
-
...contents,
|
|
746
|
-
});
|
|
747
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
748
|
-
};
|
|
749
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
750
|
-
const contents = map({});
|
|
751
|
-
const data = parsedOutput.body;
|
|
752
|
-
const doc = take(data, {
|
|
753
|
-
message: __expectString,
|
|
754
|
-
});
|
|
755
|
-
Object.assign(contents, doc);
|
|
756
|
-
const exception = new ValidationException({
|
|
757
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
758
|
-
...contents,
|
|
759
|
-
});
|
|
760
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
761
|
-
};
|
|
762
|
-
const se_CalendarInterval = (input, context) => {
|
|
763
|
-
return take(input, {
|
|
764
|
-
Duration: [],
|
|
765
|
-
DurationUnit: [],
|
|
766
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
767
|
-
});
|
|
768
|
-
};
|
|
769
|
-
const se_ExclusionWindow = (input, context) => {
|
|
770
|
-
return take(input, {
|
|
771
|
-
Reason: [],
|
|
772
|
-
RecurrenceRule: _json,
|
|
773
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
774
|
-
Window: _json,
|
|
775
|
-
});
|
|
776
|
-
};
|
|
777
|
-
const se_ExclusionWindows = (input, context) => {
|
|
778
|
-
return input
|
|
779
|
-
.filter((e) => e != null)
|
|
780
|
-
.map((entry) => {
|
|
781
|
-
return se_ExclusionWindow(entry, context);
|
|
782
|
-
});
|
|
783
|
-
};
|
|
784
|
-
const se_Goal = (input, context) => {
|
|
785
|
-
return take(input, {
|
|
786
|
-
AttainmentGoal: __serializeFloat,
|
|
787
|
-
Interval: (_) => se_Interval(_, context),
|
|
788
|
-
WarningThreshold: __serializeFloat,
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
const se_Interval = (input, context) => {
|
|
792
|
-
return Interval.visit(input, {
|
|
793
|
-
CalendarInterval: (value) => ({ CalendarInterval: se_CalendarInterval(value, context) }),
|
|
794
|
-
RollingInterval: (value) => ({ RollingInterval: _json(value) }),
|
|
795
|
-
_: (name, value) => ({ [name]: value }),
|
|
796
|
-
});
|
|
797
|
-
};
|
|
798
|
-
const se_RequestBasedServiceLevelIndicatorConfig = (input, context) => {
|
|
799
|
-
return take(input, {
|
|
800
|
-
ComparisonOperator: [],
|
|
801
|
-
MetricThreshold: __serializeFloat,
|
|
802
|
-
RequestBasedSliMetricConfig: _json,
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
const se_ServiceLevelIndicatorConfig = (input, context) => {
|
|
806
|
-
return take(input, {
|
|
807
|
-
ComparisonOperator: [],
|
|
808
|
-
MetricThreshold: __serializeFloat,
|
|
809
|
-
SliMetricConfig: _json,
|
|
810
|
-
});
|
|
811
|
-
};
|
|
812
|
-
const de_AuditFinding = (output, context) => {
|
|
813
|
-
return take(output, {
|
|
814
|
-
AuditorResults: _json,
|
|
815
|
-
DependencyGraph: (_) => de_DependencyGraph(_, context),
|
|
816
|
-
KeyAttributes: _json,
|
|
817
|
-
MetricGraph: (_) => de_MetricGraph(_, context),
|
|
818
|
-
Operation: __expectString,
|
|
819
|
-
Type: __expectString,
|
|
820
|
-
});
|
|
821
|
-
};
|
|
822
|
-
const de_AuditFindings = (output, context) => {
|
|
823
|
-
const retVal = (output || [])
|
|
824
|
-
.filter((e) => e != null)
|
|
825
|
-
.map((entry) => {
|
|
826
|
-
return de_AuditFinding(entry, context);
|
|
827
|
-
});
|
|
828
|
-
return retVal;
|
|
829
|
-
};
|
|
830
|
-
const de_CalendarInterval = (output, context) => {
|
|
831
|
-
return take(output, {
|
|
832
|
-
Duration: __expectInt32,
|
|
833
|
-
DurationUnit: __expectString,
|
|
834
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
835
|
-
});
|
|
836
|
-
};
|
|
837
|
-
const de_ChangeEvent = (output, context) => {
|
|
838
|
-
return take(output, {
|
|
839
|
-
AccountId: __expectString,
|
|
840
|
-
ChangeEventType: __expectString,
|
|
841
|
-
Entity: _json,
|
|
842
|
-
EventId: __expectString,
|
|
843
|
-
EventName: __expectString,
|
|
844
|
-
Region: __expectString,
|
|
845
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
846
|
-
UserName: __expectString,
|
|
847
|
-
});
|
|
848
|
-
};
|
|
849
|
-
const de_DependencyGraph = (output, context) => {
|
|
850
|
-
return take(output, {
|
|
851
|
-
Edges: (_) => de_Edges(_, context),
|
|
852
|
-
Nodes: (_) => de_Nodes(_, context),
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
const de_Edge = (output, context) => {
|
|
856
|
-
return take(output, {
|
|
857
|
-
ConnectionType: __expectString,
|
|
858
|
-
DestinationNodeId: __expectString,
|
|
859
|
-
Duration: __limitedParseDouble,
|
|
860
|
-
SourceNodeId: __expectString,
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
const de_Edges = (output, context) => {
|
|
864
|
-
const retVal = (output || [])
|
|
865
|
-
.filter((e) => e != null)
|
|
866
|
-
.map((entry) => {
|
|
867
|
-
return de_Edge(entry, context);
|
|
868
|
-
});
|
|
869
|
-
return retVal;
|
|
870
|
-
};
|
|
871
|
-
const de_ExclusionWindow = (output, context) => {
|
|
872
|
-
return take(output, {
|
|
873
|
-
Reason: __expectString,
|
|
874
|
-
RecurrenceRule: _json,
|
|
875
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
876
|
-
Window: _json,
|
|
877
|
-
});
|
|
878
|
-
};
|
|
879
|
-
const de_ExclusionWindows = (output, context) => {
|
|
880
|
-
const retVal = (output || [])
|
|
881
|
-
.filter((e) => e != null)
|
|
882
|
-
.map((entry) => {
|
|
883
|
-
return de_ExclusionWindow(entry, context);
|
|
884
|
-
});
|
|
885
|
-
return retVal;
|
|
886
|
-
};
|
|
887
|
-
const de_Goal = (output, context) => {
|
|
888
|
-
return take(output, {
|
|
889
|
-
AttainmentGoal: __limitedParseDouble,
|
|
890
|
-
Interval: (_) => de_Interval(__expectUnion(_), context),
|
|
891
|
-
WarningThreshold: __limitedParseDouble,
|
|
892
|
-
});
|
|
893
|
-
};
|
|
894
|
-
const de_GroupingConfiguration = (output, context) => {
|
|
895
|
-
return take(output, {
|
|
896
|
-
GroupingAttributeDefinitions: _json,
|
|
897
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
898
|
-
});
|
|
899
|
-
};
|
|
900
|
-
const de_Interval = (output, context) => {
|
|
901
|
-
if (output.CalendarInterval != null) {
|
|
902
|
-
return {
|
|
903
|
-
CalendarInterval: de_CalendarInterval(output.CalendarInterval, context),
|
|
904
|
-
};
|
|
905
|
-
}
|
|
906
|
-
if (output.RollingInterval != null) {
|
|
907
|
-
return {
|
|
908
|
-
RollingInterval: _json(output.RollingInterval),
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
return { $unknown: Object.entries(output)[0] };
|
|
912
|
-
};
|
|
913
|
-
const de_LatestChangeEvents = (output, context) => {
|
|
914
|
-
const retVal = (output || [])
|
|
915
|
-
.filter((e) => e != null)
|
|
916
|
-
.map((entry) => {
|
|
917
|
-
return de_ChangeEvent(entry, context);
|
|
918
|
-
});
|
|
919
|
-
return retVal;
|
|
920
|
-
};
|
|
921
|
-
const de_MetricGraph = (output, context) => {
|
|
922
|
-
return take(output, {
|
|
923
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
924
|
-
MetricDataQueries: _json,
|
|
925
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
926
|
-
});
|
|
927
|
-
};
|
|
928
|
-
const de_Node = (output, context) => {
|
|
929
|
-
return take(output, {
|
|
930
|
-
Duration: __limitedParseDouble,
|
|
931
|
-
KeyAttributes: _json,
|
|
932
|
-
Name: __expectString,
|
|
933
|
-
NodeId: __expectString,
|
|
934
|
-
Operation: __expectString,
|
|
935
|
-
Status: __expectString,
|
|
936
|
-
Type: __expectString,
|
|
937
|
-
});
|
|
938
|
-
};
|
|
939
|
-
const de_Nodes = (output, context) => {
|
|
940
|
-
const retVal = (output || [])
|
|
941
|
-
.filter((e) => e != null)
|
|
942
|
-
.map((entry) => {
|
|
943
|
-
return de_Node(entry, context);
|
|
944
|
-
});
|
|
945
|
-
return retVal;
|
|
946
|
-
};
|
|
947
|
-
const de_RequestBasedServiceLevelIndicator = (output, context) => {
|
|
948
|
-
return take(output, {
|
|
949
|
-
ComparisonOperator: __expectString,
|
|
950
|
-
MetricThreshold: __limitedParseDouble,
|
|
951
|
-
RequestBasedSliMetric: _json,
|
|
952
|
-
});
|
|
953
|
-
};
|
|
954
|
-
const de_ServiceLevelIndicator = (output, context) => {
|
|
955
|
-
return take(output, {
|
|
956
|
-
ComparisonOperator: __expectString,
|
|
957
|
-
MetricThreshold: __limitedParseDouble,
|
|
958
|
-
SliMetric: _json,
|
|
959
|
-
});
|
|
960
|
-
};
|
|
961
|
-
const de_ServiceLevelObjective = (output, context) => {
|
|
962
|
-
return take(output, {
|
|
963
|
-
Arn: __expectString,
|
|
964
|
-
BurnRateConfigurations: _json,
|
|
965
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
966
|
-
Description: __expectString,
|
|
967
|
-
EvaluationType: __expectString,
|
|
968
|
-
Goal: (_) => de_Goal(_, context),
|
|
969
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
970
|
-
MetricSourceType: __expectString,
|
|
971
|
-
Name: __expectString,
|
|
972
|
-
RequestBasedSli: (_) => de_RequestBasedServiceLevelIndicator(_, context),
|
|
973
|
-
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
974
|
-
});
|
|
975
|
-
};
|
|
976
|
-
const de_ServiceLevelObjectiveBudgetReport = (output, context) => {
|
|
977
|
-
return take(output, {
|
|
978
|
-
Arn: __expectString,
|
|
979
|
-
Attainment: __limitedParseDouble,
|
|
980
|
-
BudgetRequestsRemaining: __expectInt32,
|
|
981
|
-
BudgetSecondsRemaining: __expectInt32,
|
|
982
|
-
BudgetStatus: __expectString,
|
|
983
|
-
EvaluationType: __expectString,
|
|
984
|
-
Goal: (_) => de_Goal(_, context),
|
|
985
|
-
Name: __expectString,
|
|
986
|
-
RequestBasedSli: (_) => de_RequestBasedServiceLevelIndicator(_, context),
|
|
987
|
-
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
988
|
-
TotalBudgetRequests: __expectInt32,
|
|
989
|
-
TotalBudgetSeconds: __expectInt32,
|
|
990
|
-
});
|
|
991
|
-
};
|
|
992
|
-
const de_ServiceLevelObjectiveBudgetReports = (output, context) => {
|
|
993
|
-
const retVal = (output || [])
|
|
994
|
-
.filter((e) => e != null)
|
|
995
|
-
.map((entry) => {
|
|
996
|
-
return de_ServiceLevelObjectiveBudgetReport(entry, context);
|
|
997
|
-
});
|
|
998
|
-
return retVal;
|
|
999
|
-
};
|
|
1000
|
-
const de_ServiceLevelObjectiveSummaries = (output, context) => {
|
|
1001
|
-
const retVal = (output || [])
|
|
1002
|
-
.filter((e) => e != null)
|
|
1003
|
-
.map((entry) => {
|
|
1004
|
-
return de_ServiceLevelObjectiveSummary(entry, context);
|
|
1005
|
-
});
|
|
1006
|
-
return retVal;
|
|
1007
|
-
};
|
|
1008
|
-
const de_ServiceLevelObjectiveSummary = (output, context) => {
|
|
1009
|
-
return take(output, {
|
|
1010
|
-
Arn: __expectString,
|
|
1011
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1012
|
-
DependencyConfig: _json,
|
|
1013
|
-
EvaluationType: __expectString,
|
|
1014
|
-
KeyAttributes: _json,
|
|
1015
|
-
MetricSourceType: __expectString,
|
|
1016
|
-
Name: __expectString,
|
|
1017
|
-
OperationName: __expectString,
|
|
1018
|
-
});
|
|
1019
|
-
};
|
|
1020
|
-
const de_ServiceState = (output, context) => {
|
|
1021
|
-
return take(output, {
|
|
1022
|
-
AttributeFilters: _json,
|
|
1023
|
-
LatestChangeEvents: (_) => de_LatestChangeEvents(_, context),
|
|
1024
|
-
Service: _json,
|
|
1025
|
-
});
|
|
1026
|
-
};
|
|
1027
|
-
const de_ServiceStates = (output, context) => {
|
|
1028
|
-
const retVal = (output || [])
|
|
1029
|
-
.filter((e) => e != null)
|
|
1030
|
-
.map((entry) => {
|
|
1031
|
-
return de_ServiceState(entry, context);
|
|
1032
|
-
});
|
|
1033
|
-
return retVal;
|
|
1034
|
-
};
|
|
1035
|
-
const deserializeMetadata = (output) => ({
|
|
1036
|
-
httpStatusCode: output.statusCode,
|
|
1037
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1038
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1039
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1040
|
-
});
|
|
1041
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1042
|
-
const _AAI = "AwsAccountId";
|
|
1043
|
-
const _ET = "EndTime";
|
|
1044
|
-
const _ILA = "IncludeLinkedAccounts";
|
|
1045
|
-
const _MR = "MaxResults";
|
|
1046
|
-
const _NT = "NextToken";
|
|
1047
|
-
const _ON = "OperationName";
|
|
1048
|
-
const _RA = "ResourceArn";
|
|
1049
|
-
const _SOAAI = "SloOwnerAwsAccountId";
|
|
1050
|
-
const _ST = "StartTime";
|