@aws-sdk/client-application-signals 3.893.0 → 3.894.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 +1602 -10
- package/package.json +6 -6
- package/dist-cjs/ApplicationSignals.js +0 -45
- package/dist-cjs/ApplicationSignalsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +0 -26
- package/dist-cjs/commands/BatchUpdateExclusionWindowsCommand.js +0 -26
- package/dist-cjs/commands/CreateServiceLevelObjectiveCommand.js +0 -26
- package/dist-cjs/commands/DeleteServiceLevelObjectiveCommand.js +0 -26
- package/dist-cjs/commands/GetServiceCommand.js +0 -26
- package/dist-cjs/commands/GetServiceLevelObjectiveCommand.js +0 -26
- package/dist-cjs/commands/ListServiceDependenciesCommand.js +0 -26
- package/dist-cjs/commands/ListServiceDependentsCommand.js +0 -26
- package/dist-cjs/commands/ListServiceLevelObjectiveExclusionWindowsCommand.js +0 -26
- package/dist-cjs/commands/ListServiceLevelObjectivesCommand.js +0 -26
- package/dist-cjs/commands/ListServiceOperationsCommand.js +0 -26
- package/dist-cjs/commands/ListServicesCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/StartDiscoveryCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateServiceLevelObjectiveCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -20
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/ApplicationSignalsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -176
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListServiceDependenciesPaginator.js +0 -7
- package/dist-cjs/pagination/ListServiceDependentsPaginator.js +0 -7
- package/dist-cjs/pagination/ListServiceLevelObjectiveExclusionWindowsPaginator.js +0 -7
- package/dist-cjs/pagination/ListServiceLevelObjectivesPaginator.js +0 -7
- package/dist-cjs/pagination/ListServiceOperationsPaginator.js +0 -7
- package/dist-cjs/pagination/ListServicesPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -10
- package/dist-cjs/protocols/Aws_restJson1.js +0 -837
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,837 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateServiceLevelObjectiveCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDiscoveryCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListServiceOperationsCommand = exports.de_ListServiceLevelObjectivesCommand = exports.de_ListServiceLevelObjectiveExclusionWindowsCommand = exports.de_ListServiceDependentsCommand = exports.de_ListServiceDependenciesCommand = exports.de_GetServiceLevelObjectiveCommand = exports.de_GetServiceCommand = exports.de_DeleteServiceLevelObjectiveCommand = exports.de_CreateServiceLevelObjectiveCommand = exports.de_BatchUpdateExclusionWindowsCommand = exports.de_BatchGetServiceLevelObjectiveBudgetReportCommand = exports.se_UpdateServiceLevelObjectiveCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDiscoveryCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListServiceOperationsCommand = exports.se_ListServiceLevelObjectivesCommand = exports.se_ListServiceLevelObjectiveExclusionWindowsCommand = exports.se_ListServiceDependentsCommand = exports.se_ListServiceDependenciesCommand = exports.se_GetServiceLevelObjectiveCommand = exports.se_GetServiceCommand = exports.se_DeleteServiceLevelObjectiveCommand = exports.se_CreateServiceLevelObjectiveCommand = exports.se_BatchUpdateExclusionWindowsCommand = exports.se_BatchGetServiceLevelObjectiveBudgetReportCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const ApplicationSignalsServiceException_1 = require("../models/ApplicationSignalsServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_BatchGetServiceLevelObjectiveBudgetReportCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/budget-report");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
SloIds: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
-
Timestamp: (_) => _.getTime() / 1_000,
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_BatchGetServiceLevelObjectiveBudgetReportCommand = se_BatchGetServiceLevelObjectiveBudgetReportCommand;
|
|
24
|
-
const se_BatchUpdateExclusionWindowsCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/exclusion-windows");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
32
|
-
AddExclusionWindows: (_) => se_ExclusionWindows(_, context),
|
|
33
|
-
RemoveExclusionWindows: (_) => se_ExclusionWindows(_, context),
|
|
34
|
-
SloIds: (_) => (0, smithy_client_1._json)(_),
|
|
35
|
-
}));
|
|
36
|
-
b.m("PATCH").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
exports.se_BatchUpdateExclusionWindowsCommand = se_BatchUpdateExclusionWindowsCommand;
|
|
40
|
-
const se_CreateServiceLevelObjectiveCommand = async (input, context) => {
|
|
41
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/slo");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
BurnRateConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
-
Description: [],
|
|
50
|
-
Goal: (_) => se_Goal(_, context),
|
|
51
|
-
Name: [],
|
|
52
|
-
RequestBasedSliConfig: (_) => se_RequestBasedServiceLevelIndicatorConfig(_, context),
|
|
53
|
-
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
54
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
-
}));
|
|
56
|
-
b.m("POST").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateServiceLevelObjectiveCommand = se_CreateServiceLevelObjectiveCommand;
|
|
60
|
-
const se_DeleteServiceLevelObjectiveCommand = async (input, context) => {
|
|
61
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
|
-
const headers = {};
|
|
63
|
-
b.bp("/slo/{Id}");
|
|
64
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
65
|
-
let body;
|
|
66
|
-
b.m("DELETE").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
exports.se_DeleteServiceLevelObjectiveCommand = se_DeleteServiceLevelObjectiveCommand;
|
|
70
|
-
const se_GetServiceCommand = async (input, context) => {
|
|
71
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
-
const headers = {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
};
|
|
75
|
-
b.bp("/service");
|
|
76
|
-
const query = (0, smithy_client_1.map)({
|
|
77
|
-
[_ST]: [(0, smithy_client_1.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ST]).toString()],
|
|
78
|
-
[_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
|
|
79
|
-
});
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
82
|
-
KeyAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
-
}));
|
|
84
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
exports.se_GetServiceCommand = se_GetServiceCommand;
|
|
88
|
-
const se_GetServiceLevelObjectiveCommand = async (input, context) => {
|
|
89
|
-
const b = (0, core_2.requestBuilder)(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
|
-
exports.se_GetServiceLevelObjectiveCommand = se_GetServiceLevelObjectiveCommand;
|
|
98
|
-
const se_ListServiceDependenciesCommand = async (input, context) => {
|
|
99
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
100
|
-
const headers = {
|
|
101
|
-
"content-type": "application/json",
|
|
102
|
-
};
|
|
103
|
-
b.bp("/service-dependencies");
|
|
104
|
-
const query = (0, smithy_client_1.map)({
|
|
105
|
-
[_ST]: [(0, smithy_client_1.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ST]).toString()],
|
|
106
|
-
[_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
|
|
107
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
108
|
-
[_NT]: [, input[_NT]],
|
|
109
|
-
});
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
|
-
KeyAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
113
|
-
}));
|
|
114
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
exports.se_ListServiceDependenciesCommand = se_ListServiceDependenciesCommand;
|
|
118
|
-
const se_ListServiceDependentsCommand = async (input, context) => {
|
|
119
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
120
|
-
const headers = {
|
|
121
|
-
"content-type": "application/json",
|
|
122
|
-
};
|
|
123
|
-
b.bp("/service-dependents");
|
|
124
|
-
const query = (0, smithy_client_1.map)({
|
|
125
|
-
[_ST]: [(0, smithy_client_1.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ST]).toString()],
|
|
126
|
-
[_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
|
|
127
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
128
|
-
[_NT]: [, input[_NT]],
|
|
129
|
-
});
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
132
|
-
KeyAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
133
|
-
}));
|
|
134
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
exports.se_ListServiceDependentsCommand = se_ListServiceDependentsCommand;
|
|
138
|
-
const se_ListServiceLevelObjectiveExclusionWindowsCommand = async (input, context) => {
|
|
139
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
140
|
-
const headers = {};
|
|
141
|
-
b.bp("/slo/{Id}/exclusion-windows");
|
|
142
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
143
|
-
const query = (0, smithy_client_1.map)({
|
|
144
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
145
|
-
[_NT]: [, input[_NT]],
|
|
146
|
-
});
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
exports.se_ListServiceLevelObjectiveExclusionWindowsCommand = se_ListServiceLevelObjectiveExclusionWindowsCommand;
|
|
152
|
-
const se_ListServiceLevelObjectivesCommand = async (input, context) => {
|
|
153
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/slos");
|
|
158
|
-
const query = (0, smithy_client_1.map)({
|
|
159
|
-
[_ON]: [, input[_ON]],
|
|
160
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
161
|
-
[_NT]: [, input[_NT]],
|
|
162
|
-
[_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
|
|
163
|
-
[_SOAAI]: [, input[_SOAAI]],
|
|
164
|
-
});
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
|
-
DependencyConfig: (_) => (0, smithy_client_1._json)(_),
|
|
168
|
-
KeyAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
169
|
-
MetricSourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
170
|
-
}));
|
|
171
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
exports.se_ListServiceLevelObjectivesCommand = se_ListServiceLevelObjectivesCommand;
|
|
175
|
-
const se_ListServiceOperationsCommand = async (input, context) => {
|
|
176
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
177
|
-
const headers = {
|
|
178
|
-
"content-type": "application/json",
|
|
179
|
-
};
|
|
180
|
-
b.bp("/service-operations");
|
|
181
|
-
const query = (0, smithy_client_1.map)({
|
|
182
|
-
[_ST]: [(0, smithy_client_1.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ST]).toString()],
|
|
183
|
-
[_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
|
|
184
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
185
|
-
[_NT]: [, input[_NT]],
|
|
186
|
-
});
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
189
|
-
KeyAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
190
|
-
}));
|
|
191
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
exports.se_ListServiceOperationsCommand = se_ListServiceOperationsCommand;
|
|
195
|
-
const se_ListServicesCommand = async (input, context) => {
|
|
196
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
197
|
-
const headers = {};
|
|
198
|
-
b.bp("/services");
|
|
199
|
-
const query = (0, smithy_client_1.map)({
|
|
200
|
-
[_ST]: [(0, smithy_client_1.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ST]).toString()],
|
|
201
|
-
[_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
|
|
202
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
203
|
-
[_NT]: [, input[_NT]],
|
|
204
|
-
[_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
|
|
205
|
-
[_AAI]: [, input[_AAI]],
|
|
206
|
-
});
|
|
207
|
-
let body;
|
|
208
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
212
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
213
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
214
|
-
const headers = {};
|
|
215
|
-
b.bp("/tags");
|
|
216
|
-
const query = (0, smithy_client_1.map)({
|
|
217
|
-
[_RA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
|
|
218
|
-
});
|
|
219
|
-
let body;
|
|
220
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
224
|
-
const se_StartDiscoveryCommand = async (input, context) => {
|
|
225
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
226
|
-
const headers = {};
|
|
227
|
-
b.bp("/start-discovery");
|
|
228
|
-
let body;
|
|
229
|
-
b.m("POST").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
exports.se_StartDiscoveryCommand = se_StartDiscoveryCommand;
|
|
233
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
234
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
235
|
-
const headers = {
|
|
236
|
-
"content-type": "application/json",
|
|
237
|
-
};
|
|
238
|
-
b.bp("/tag-resource");
|
|
239
|
-
let body;
|
|
240
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
241
|
-
ResourceArn: [],
|
|
242
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
243
|
-
}));
|
|
244
|
-
b.m("POST").h(headers).b(body);
|
|
245
|
-
return b.build();
|
|
246
|
-
};
|
|
247
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
248
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
249
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
250
|
-
const headers = {
|
|
251
|
-
"content-type": "application/json",
|
|
252
|
-
};
|
|
253
|
-
b.bp("/untag-resource");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
256
|
-
ResourceArn: [],
|
|
257
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
258
|
-
}));
|
|
259
|
-
b.m("POST").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
263
|
-
const se_UpdateServiceLevelObjectiveCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
265
|
-
const headers = {
|
|
266
|
-
"content-type": "application/json",
|
|
267
|
-
};
|
|
268
|
-
b.bp("/slo/{Id}");
|
|
269
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
270
|
-
let body;
|
|
271
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
272
|
-
BurnRateConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
273
|
-
Description: [],
|
|
274
|
-
Goal: (_) => se_Goal(_, context),
|
|
275
|
-
RequestBasedSliConfig: (_) => se_RequestBasedServiceLevelIndicatorConfig(_, context),
|
|
276
|
-
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
277
|
-
}));
|
|
278
|
-
b.m("PATCH").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
exports.se_UpdateServiceLevelObjectiveCommand = se_UpdateServiceLevelObjectiveCommand;
|
|
282
|
-
const de_BatchGetServiceLevelObjectiveBudgetReportCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const contents = (0, smithy_client_1.map)({
|
|
287
|
-
$metadata: deserializeMetadata(output),
|
|
288
|
-
});
|
|
289
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
290
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
291
|
-
Errors: smithy_client_1._json,
|
|
292
|
-
Reports: (_) => de_ServiceLevelObjectiveBudgetReports(_, context),
|
|
293
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
294
|
-
});
|
|
295
|
-
Object.assign(contents, doc);
|
|
296
|
-
return contents;
|
|
297
|
-
};
|
|
298
|
-
exports.de_BatchGetServiceLevelObjectiveBudgetReportCommand = de_BatchGetServiceLevelObjectiveBudgetReportCommand;
|
|
299
|
-
const de_BatchUpdateExclusionWindowsCommand = async (output, context) => {
|
|
300
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
301
|
-
return de_CommandError(output, context);
|
|
302
|
-
}
|
|
303
|
-
const contents = (0, smithy_client_1.map)({
|
|
304
|
-
$metadata: deserializeMetadata(output),
|
|
305
|
-
});
|
|
306
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
307
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
308
|
-
Errors: smithy_client_1._json,
|
|
309
|
-
SloIds: smithy_client_1._json,
|
|
310
|
-
});
|
|
311
|
-
Object.assign(contents, doc);
|
|
312
|
-
return contents;
|
|
313
|
-
};
|
|
314
|
-
exports.de_BatchUpdateExclusionWindowsCommand = de_BatchUpdateExclusionWindowsCommand;
|
|
315
|
-
const de_CreateServiceLevelObjectiveCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
-
return de_CommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const contents = (0, smithy_client_1.map)({
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
});
|
|
322
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
323
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
324
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
325
|
-
});
|
|
326
|
-
Object.assign(contents, doc);
|
|
327
|
-
return contents;
|
|
328
|
-
};
|
|
329
|
-
exports.de_CreateServiceLevelObjectiveCommand = de_CreateServiceLevelObjectiveCommand;
|
|
330
|
-
const de_DeleteServiceLevelObjectiveCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
-
return de_CommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const contents = (0, smithy_client_1.map)({
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
});
|
|
337
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
338
|
-
return contents;
|
|
339
|
-
};
|
|
340
|
-
exports.de_DeleteServiceLevelObjectiveCommand = de_DeleteServiceLevelObjectiveCommand;
|
|
341
|
-
const de_GetServiceCommand = async (output, context) => {
|
|
342
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
343
|
-
return de_CommandError(output, context);
|
|
344
|
-
}
|
|
345
|
-
const contents = (0, smithy_client_1.map)({
|
|
346
|
-
$metadata: deserializeMetadata(output),
|
|
347
|
-
});
|
|
348
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
349
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
350
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
351
|
-
LogGroupReferences: smithy_client_1._json,
|
|
352
|
-
Service: smithy_client_1._json,
|
|
353
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
354
|
-
});
|
|
355
|
-
Object.assign(contents, doc);
|
|
356
|
-
return contents;
|
|
357
|
-
};
|
|
358
|
-
exports.de_GetServiceCommand = de_GetServiceCommand;
|
|
359
|
-
const de_GetServiceLevelObjectiveCommand = async (output, context) => {
|
|
360
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
|
-
return de_CommandError(output, context);
|
|
362
|
-
}
|
|
363
|
-
const contents = (0, smithy_client_1.map)({
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
});
|
|
366
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
367
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
368
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
369
|
-
});
|
|
370
|
-
Object.assign(contents, doc);
|
|
371
|
-
return contents;
|
|
372
|
-
};
|
|
373
|
-
exports.de_GetServiceLevelObjectiveCommand = de_GetServiceLevelObjectiveCommand;
|
|
374
|
-
const de_ListServiceDependenciesCommand = async (output, context) => {
|
|
375
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
|
-
return de_CommandError(output, context);
|
|
377
|
-
}
|
|
378
|
-
const contents = (0, smithy_client_1.map)({
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
});
|
|
381
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
382
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
383
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
384
|
-
NextToken: smithy_client_1.expectString,
|
|
385
|
-
ServiceDependencies: smithy_client_1._json,
|
|
386
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
387
|
-
});
|
|
388
|
-
Object.assign(contents, doc);
|
|
389
|
-
return contents;
|
|
390
|
-
};
|
|
391
|
-
exports.de_ListServiceDependenciesCommand = de_ListServiceDependenciesCommand;
|
|
392
|
-
const de_ListServiceDependentsCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const contents = (0, smithy_client_1.map)({
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
});
|
|
399
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
400
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
401
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
402
|
-
NextToken: smithy_client_1.expectString,
|
|
403
|
-
ServiceDependents: smithy_client_1._json,
|
|
404
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
405
|
-
});
|
|
406
|
-
Object.assign(contents, doc);
|
|
407
|
-
return contents;
|
|
408
|
-
};
|
|
409
|
-
exports.de_ListServiceDependentsCommand = de_ListServiceDependentsCommand;
|
|
410
|
-
const de_ListServiceLevelObjectiveExclusionWindowsCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const contents = (0, smithy_client_1.map)({
|
|
415
|
-
$metadata: deserializeMetadata(output),
|
|
416
|
-
});
|
|
417
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
418
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
419
|
-
ExclusionWindows: (_) => de_ExclusionWindows(_, context),
|
|
420
|
-
NextToken: smithy_client_1.expectString,
|
|
421
|
-
});
|
|
422
|
-
Object.assign(contents, doc);
|
|
423
|
-
return contents;
|
|
424
|
-
};
|
|
425
|
-
exports.de_ListServiceLevelObjectiveExclusionWindowsCommand = de_ListServiceLevelObjectiveExclusionWindowsCommand;
|
|
426
|
-
const de_ListServiceLevelObjectivesCommand = async (output, context) => {
|
|
427
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return de_CommandError(output, context);
|
|
429
|
-
}
|
|
430
|
-
const contents = (0, smithy_client_1.map)({
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
});
|
|
433
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
434
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
435
|
-
NextToken: smithy_client_1.expectString,
|
|
436
|
-
SloSummaries: (_) => de_ServiceLevelObjectiveSummaries(_, context),
|
|
437
|
-
});
|
|
438
|
-
Object.assign(contents, doc);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
exports.de_ListServiceLevelObjectivesCommand = de_ListServiceLevelObjectivesCommand;
|
|
442
|
-
const de_ListServiceOperationsCommand = async (output, context) => {
|
|
443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
-
return de_CommandError(output, context);
|
|
445
|
-
}
|
|
446
|
-
const contents = (0, smithy_client_1.map)({
|
|
447
|
-
$metadata: deserializeMetadata(output),
|
|
448
|
-
});
|
|
449
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
450
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
451
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
452
|
-
NextToken: smithy_client_1.expectString,
|
|
453
|
-
ServiceOperations: smithy_client_1._json,
|
|
454
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
455
|
-
});
|
|
456
|
-
Object.assign(contents, doc);
|
|
457
|
-
return contents;
|
|
458
|
-
};
|
|
459
|
-
exports.de_ListServiceOperationsCommand = de_ListServiceOperationsCommand;
|
|
460
|
-
const de_ListServicesCommand = async (output, context) => {
|
|
461
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
-
return de_CommandError(output, context);
|
|
463
|
-
}
|
|
464
|
-
const contents = (0, smithy_client_1.map)({
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
});
|
|
467
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
468
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
469
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
470
|
-
NextToken: smithy_client_1.expectString,
|
|
471
|
-
ServiceSummaries: smithy_client_1._json,
|
|
472
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
473
|
-
});
|
|
474
|
-
Object.assign(contents, doc);
|
|
475
|
-
return contents;
|
|
476
|
-
};
|
|
477
|
-
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
478
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
479
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return de_CommandError(output, context);
|
|
481
|
-
}
|
|
482
|
-
const contents = (0, smithy_client_1.map)({
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
});
|
|
485
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
486
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
487
|
-
Tags: smithy_client_1._json,
|
|
488
|
-
});
|
|
489
|
-
Object.assign(contents, doc);
|
|
490
|
-
return contents;
|
|
491
|
-
};
|
|
492
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
493
|
-
const de_StartDiscoveryCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
const contents = (0, smithy_client_1.map)({
|
|
498
|
-
$metadata: deserializeMetadata(output),
|
|
499
|
-
});
|
|
500
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
501
|
-
return contents;
|
|
502
|
-
};
|
|
503
|
-
exports.de_StartDiscoveryCommand = de_StartDiscoveryCommand;
|
|
504
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
505
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
-
return de_CommandError(output, context);
|
|
507
|
-
}
|
|
508
|
-
const contents = (0, smithy_client_1.map)({
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
});
|
|
511
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
512
|
-
return contents;
|
|
513
|
-
};
|
|
514
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
515
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
517
|
-
return de_CommandError(output, context);
|
|
518
|
-
}
|
|
519
|
-
const contents = (0, smithy_client_1.map)({
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
});
|
|
522
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
523
|
-
return contents;
|
|
524
|
-
};
|
|
525
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
526
|
-
const de_UpdateServiceLevelObjectiveCommand = async (output, context) => {
|
|
527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const contents = (0, smithy_client_1.map)({
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
});
|
|
533
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
534
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
535
|
-
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
536
|
-
});
|
|
537
|
-
Object.assign(contents, doc);
|
|
538
|
-
return contents;
|
|
539
|
-
};
|
|
540
|
-
exports.de_UpdateServiceLevelObjectiveCommand = de_UpdateServiceLevelObjectiveCommand;
|
|
541
|
-
const de_CommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "ThrottlingException":
|
|
549
|
-
case "com.amazonaws.applicationsignals#ThrottlingException":
|
|
550
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ValidationException":
|
|
552
|
-
case "com.amazonaws.applicationsignals#ValidationException":
|
|
553
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ResourceNotFoundException":
|
|
555
|
-
case "com.amazonaws.applicationsignals#ResourceNotFoundException":
|
|
556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
557
|
-
case "AccessDeniedException":
|
|
558
|
-
case "com.amazonaws.applicationsignals#AccessDeniedException":
|
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ConflictException":
|
|
561
|
-
case "com.amazonaws.applicationsignals#ConflictException":
|
|
562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ServiceQuotaExceededException":
|
|
564
|
-
case "com.amazonaws.applicationsignals#ServiceQuotaExceededException":
|
|
565
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationSignalsServiceException_1.ApplicationSignalsServiceException);
|
|
576
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
577
|
-
const contents = (0, smithy_client_1.map)({});
|
|
578
|
-
const data = parsedOutput.body;
|
|
579
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
580
|
-
Message: smithy_client_1.expectString,
|
|
581
|
-
});
|
|
582
|
-
Object.assign(contents, doc);
|
|
583
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
584
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
585
|
-
...contents,
|
|
586
|
-
});
|
|
587
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
588
|
-
};
|
|
589
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
590
|
-
const contents = (0, smithy_client_1.map)({});
|
|
591
|
-
const data = parsedOutput.body;
|
|
592
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
593
|
-
Message: smithy_client_1.expectString,
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
const exception = new models_0_1.ConflictException({
|
|
597
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
598
|
-
...contents,
|
|
599
|
-
});
|
|
600
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
601
|
-
};
|
|
602
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
603
|
-
const contents = (0, smithy_client_1.map)({});
|
|
604
|
-
const data = parsedOutput.body;
|
|
605
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
606
|
-
Message: smithy_client_1.expectString,
|
|
607
|
-
ResourceId: smithy_client_1.expectString,
|
|
608
|
-
ResourceType: smithy_client_1.expectString,
|
|
609
|
-
});
|
|
610
|
-
Object.assign(contents, doc);
|
|
611
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
612
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
613
|
-
...contents,
|
|
614
|
-
});
|
|
615
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
616
|
-
};
|
|
617
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
618
|
-
const contents = (0, smithy_client_1.map)({});
|
|
619
|
-
const data = parsedOutput.body;
|
|
620
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
621
|
-
Message: smithy_client_1.expectString,
|
|
622
|
-
});
|
|
623
|
-
Object.assign(contents, doc);
|
|
624
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
625
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
626
|
-
...contents,
|
|
627
|
-
});
|
|
628
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
629
|
-
};
|
|
630
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
631
|
-
const contents = (0, smithy_client_1.map)({});
|
|
632
|
-
const data = parsedOutput.body;
|
|
633
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
634
|
-
Message: smithy_client_1.expectString,
|
|
635
|
-
});
|
|
636
|
-
Object.assign(contents, doc);
|
|
637
|
-
const exception = new models_0_1.ThrottlingException({
|
|
638
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
639
|
-
...contents,
|
|
640
|
-
});
|
|
641
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
642
|
-
};
|
|
643
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
644
|
-
const contents = (0, smithy_client_1.map)({});
|
|
645
|
-
const data = parsedOutput.body;
|
|
646
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
647
|
-
message: smithy_client_1.expectString,
|
|
648
|
-
});
|
|
649
|
-
Object.assign(contents, doc);
|
|
650
|
-
const exception = new models_0_1.ValidationException({
|
|
651
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
652
|
-
...contents,
|
|
653
|
-
});
|
|
654
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
655
|
-
};
|
|
656
|
-
const se_CalendarInterval = (input, context) => {
|
|
657
|
-
return (0, smithy_client_1.take)(input, {
|
|
658
|
-
Duration: [],
|
|
659
|
-
DurationUnit: [],
|
|
660
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
661
|
-
});
|
|
662
|
-
};
|
|
663
|
-
const se_ExclusionWindow = (input, context) => {
|
|
664
|
-
return (0, smithy_client_1.take)(input, {
|
|
665
|
-
Reason: [],
|
|
666
|
-
RecurrenceRule: smithy_client_1._json,
|
|
667
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
668
|
-
Window: smithy_client_1._json,
|
|
669
|
-
});
|
|
670
|
-
};
|
|
671
|
-
const se_ExclusionWindows = (input, context) => {
|
|
672
|
-
return input
|
|
673
|
-
.filter((e) => e != null)
|
|
674
|
-
.map((entry) => {
|
|
675
|
-
return se_ExclusionWindow(entry, context);
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
const se_Goal = (input, context) => {
|
|
679
|
-
return (0, smithy_client_1.take)(input, {
|
|
680
|
-
AttainmentGoal: smithy_client_1.serializeFloat,
|
|
681
|
-
Interval: (_) => se_Interval(_, context),
|
|
682
|
-
WarningThreshold: smithy_client_1.serializeFloat,
|
|
683
|
-
});
|
|
684
|
-
};
|
|
685
|
-
const se_Interval = (input, context) => {
|
|
686
|
-
return models_0_1.Interval.visit(input, {
|
|
687
|
-
CalendarInterval: (value) => ({ CalendarInterval: se_CalendarInterval(value, context) }),
|
|
688
|
-
RollingInterval: (value) => ({ RollingInterval: (0, smithy_client_1._json)(value) }),
|
|
689
|
-
_: (name, value) => ({ [name]: value }),
|
|
690
|
-
});
|
|
691
|
-
};
|
|
692
|
-
const se_RequestBasedServiceLevelIndicatorConfig = (input, context) => {
|
|
693
|
-
return (0, smithy_client_1.take)(input, {
|
|
694
|
-
ComparisonOperator: [],
|
|
695
|
-
MetricThreshold: smithy_client_1.serializeFloat,
|
|
696
|
-
RequestBasedSliMetricConfig: smithy_client_1._json,
|
|
697
|
-
});
|
|
698
|
-
};
|
|
699
|
-
const se_ServiceLevelIndicatorConfig = (input, context) => {
|
|
700
|
-
return (0, smithy_client_1.take)(input, {
|
|
701
|
-
ComparisonOperator: [],
|
|
702
|
-
MetricThreshold: smithy_client_1.serializeFloat,
|
|
703
|
-
SliMetricConfig: smithy_client_1._json,
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
|
-
const de_CalendarInterval = (output, context) => {
|
|
707
|
-
return (0, smithy_client_1.take)(output, {
|
|
708
|
-
Duration: smithy_client_1.expectInt32,
|
|
709
|
-
DurationUnit: smithy_client_1.expectString,
|
|
710
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
711
|
-
});
|
|
712
|
-
};
|
|
713
|
-
const de_ExclusionWindow = (output, context) => {
|
|
714
|
-
return (0, smithy_client_1.take)(output, {
|
|
715
|
-
Reason: smithy_client_1.expectString,
|
|
716
|
-
RecurrenceRule: smithy_client_1._json,
|
|
717
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
718
|
-
Window: smithy_client_1._json,
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
const de_ExclusionWindows = (output, context) => {
|
|
722
|
-
const retVal = (output || [])
|
|
723
|
-
.filter((e) => e != null)
|
|
724
|
-
.map((entry) => {
|
|
725
|
-
return de_ExclusionWindow(entry, context);
|
|
726
|
-
});
|
|
727
|
-
return retVal;
|
|
728
|
-
};
|
|
729
|
-
const de_Goal = (output, context) => {
|
|
730
|
-
return (0, smithy_client_1.take)(output, {
|
|
731
|
-
AttainmentGoal: smithy_client_1.limitedParseDouble,
|
|
732
|
-
Interval: (_) => de_Interval((0, core_1.awsExpectUnion)(_), context),
|
|
733
|
-
WarningThreshold: smithy_client_1.limitedParseDouble,
|
|
734
|
-
});
|
|
735
|
-
};
|
|
736
|
-
const de_Interval = (output, context) => {
|
|
737
|
-
if (output.CalendarInterval != null) {
|
|
738
|
-
return {
|
|
739
|
-
CalendarInterval: de_CalendarInterval(output.CalendarInterval, context),
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
if (output.RollingInterval != null) {
|
|
743
|
-
return {
|
|
744
|
-
RollingInterval: (0, smithy_client_1._json)(output.RollingInterval),
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
return { $unknown: Object.entries(output)[0] };
|
|
748
|
-
};
|
|
749
|
-
const de_RequestBasedServiceLevelIndicator = (output, context) => {
|
|
750
|
-
return (0, smithy_client_1.take)(output, {
|
|
751
|
-
ComparisonOperator: smithy_client_1.expectString,
|
|
752
|
-
MetricThreshold: smithy_client_1.limitedParseDouble,
|
|
753
|
-
RequestBasedSliMetric: smithy_client_1._json,
|
|
754
|
-
});
|
|
755
|
-
};
|
|
756
|
-
const de_ServiceLevelIndicator = (output, context) => {
|
|
757
|
-
return (0, smithy_client_1.take)(output, {
|
|
758
|
-
ComparisonOperator: smithy_client_1.expectString,
|
|
759
|
-
MetricThreshold: smithy_client_1.limitedParseDouble,
|
|
760
|
-
SliMetric: smithy_client_1._json,
|
|
761
|
-
});
|
|
762
|
-
};
|
|
763
|
-
const de_ServiceLevelObjective = (output, context) => {
|
|
764
|
-
return (0, smithy_client_1.take)(output, {
|
|
765
|
-
Arn: smithy_client_1.expectString,
|
|
766
|
-
BurnRateConfigurations: smithy_client_1._json,
|
|
767
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
768
|
-
Description: smithy_client_1.expectString,
|
|
769
|
-
EvaluationType: smithy_client_1.expectString,
|
|
770
|
-
Goal: (_) => de_Goal(_, context),
|
|
771
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
772
|
-
MetricSourceType: smithy_client_1.expectString,
|
|
773
|
-
Name: smithy_client_1.expectString,
|
|
774
|
-
RequestBasedSli: (_) => de_RequestBasedServiceLevelIndicator(_, context),
|
|
775
|
-
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
776
|
-
});
|
|
777
|
-
};
|
|
778
|
-
const de_ServiceLevelObjectiveBudgetReport = (output, context) => {
|
|
779
|
-
return (0, smithy_client_1.take)(output, {
|
|
780
|
-
Arn: smithy_client_1.expectString,
|
|
781
|
-
Attainment: smithy_client_1.limitedParseDouble,
|
|
782
|
-
BudgetRequestsRemaining: smithy_client_1.expectInt32,
|
|
783
|
-
BudgetSecondsRemaining: smithy_client_1.expectInt32,
|
|
784
|
-
BudgetStatus: smithy_client_1.expectString,
|
|
785
|
-
EvaluationType: smithy_client_1.expectString,
|
|
786
|
-
Goal: (_) => de_Goal(_, context),
|
|
787
|
-
Name: smithy_client_1.expectString,
|
|
788
|
-
RequestBasedSli: (_) => de_RequestBasedServiceLevelIndicator(_, context),
|
|
789
|
-
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
790
|
-
TotalBudgetRequests: smithy_client_1.expectInt32,
|
|
791
|
-
TotalBudgetSeconds: smithy_client_1.expectInt32,
|
|
792
|
-
});
|
|
793
|
-
};
|
|
794
|
-
const de_ServiceLevelObjectiveBudgetReports = (output, context) => {
|
|
795
|
-
const retVal = (output || [])
|
|
796
|
-
.filter((e) => e != null)
|
|
797
|
-
.map((entry) => {
|
|
798
|
-
return de_ServiceLevelObjectiveBudgetReport(entry, context);
|
|
799
|
-
});
|
|
800
|
-
return retVal;
|
|
801
|
-
};
|
|
802
|
-
const de_ServiceLevelObjectiveSummaries = (output, context) => {
|
|
803
|
-
const retVal = (output || [])
|
|
804
|
-
.filter((e) => e != null)
|
|
805
|
-
.map((entry) => {
|
|
806
|
-
return de_ServiceLevelObjectiveSummary(entry, context);
|
|
807
|
-
});
|
|
808
|
-
return retVal;
|
|
809
|
-
};
|
|
810
|
-
const de_ServiceLevelObjectiveSummary = (output, context) => {
|
|
811
|
-
return (0, smithy_client_1.take)(output, {
|
|
812
|
-
Arn: smithy_client_1.expectString,
|
|
813
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
814
|
-
DependencyConfig: smithy_client_1._json,
|
|
815
|
-
EvaluationType: smithy_client_1.expectString,
|
|
816
|
-
KeyAttributes: smithy_client_1._json,
|
|
817
|
-
MetricSourceType: smithy_client_1.expectString,
|
|
818
|
-
Name: smithy_client_1.expectString,
|
|
819
|
-
OperationName: smithy_client_1.expectString,
|
|
820
|
-
});
|
|
821
|
-
};
|
|
822
|
-
const deserializeMetadata = (output) => ({
|
|
823
|
-
httpStatusCode: output.statusCode,
|
|
824
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
825
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
826
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
827
|
-
});
|
|
828
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
829
|
-
const _AAI = "AwsAccountId";
|
|
830
|
-
const _ET = "EndTime";
|
|
831
|
-
const _ILA = "IncludeLinkedAccounts";
|
|
832
|
-
const _MR = "MaxResults";
|
|
833
|
-
const _NT = "NextToken";
|
|
834
|
-
const _ON = "OperationName";
|
|
835
|
-
const _RA = "ResourceArn";
|
|
836
|
-
const _SOAAI = "SloOwnerAwsAccountId";
|
|
837
|
-
const _ST = "StartTime";
|