@aws-sdk/client-amp 3.927.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 +1777 -1895
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AmpClient.js +2 -0
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/CreateScraperCommand.js +3 -9
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -9
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/DeleteScraperCommand.js +3 -9
- package/dist-es/commands/DeleteScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -9
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/DescribeAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/DescribeScraperCommand.js +3 -9
- package/dist-es/commands/DescribeScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeWorkspaceCommand.js +3 -9
- package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +3 -9
- package/dist-es/commands/ListAnomalyDetectorsCommand.js +3 -9
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +3 -9
- package/dist-es/commands/ListScrapersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkspacesCommand.js +3 -9
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/PutAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateScraperCommand.js +3 -9
- package/dist-es/commands/UpdateScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +3 -9
- package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1681 -0
- package/dist-types/AmpClient.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 +190 -0
- package/dist-types/ts3.4/AmpClient.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 +196 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -1573
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -398
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -533
|
@@ -1,1573 +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, convertMap, 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, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AmpServiceException as __BaseException } from "../models/AmpServiceException";
|
|
6
|
-
import { AccessDeniedException, AnomalyDetectorConfiguration, ConflictException, IgnoreNearExpected, InternalServerException, ResourceNotFoundException, ScrapeConfiguration, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateAlertManagerDefinitionCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/workspaces/{workspaceId}/alertmanager/definition");
|
|
13
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
-
data: (_) => context.base64Encoder(_),
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_CreateAnomalyDetectorCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {
|
|
25
|
-
"content-type": "application/json",
|
|
26
|
-
};
|
|
27
|
-
b.bp("/workspaces/{workspaceId}/anomalydetectors");
|
|
28
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
alias: [],
|
|
32
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
33
|
-
configuration: (_) => se_AnomalyDetectorConfiguration(_, context),
|
|
34
|
-
evaluationIntervalInSeconds: [],
|
|
35
|
-
labels: (_) => _json(_),
|
|
36
|
-
missingDataAction: (_) => _json(_),
|
|
37
|
-
tags: (_) => _json(_),
|
|
38
|
-
}));
|
|
39
|
-
b.m("POST").h(headers).b(body);
|
|
40
|
-
return b.build();
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
43
|
-
const b = rb(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/workspaces/{workspaceId}/logging");
|
|
48
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
49
|
-
let body;
|
|
50
|
-
body = JSON.stringify(take(input, {
|
|
51
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
52
|
-
logGroupArn: [],
|
|
53
|
-
}));
|
|
54
|
-
b.m("POST").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
export const se_CreateQueryLoggingConfigurationCommand = async (input, context) => {
|
|
58
|
-
const b = rb(input, context);
|
|
59
|
-
const headers = {
|
|
60
|
-
"content-type": "application/json",
|
|
61
|
-
};
|
|
62
|
-
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
63
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify(take(input, {
|
|
66
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
67
|
-
destinations: (_) => _json(_),
|
|
68
|
-
}));
|
|
69
|
-
b.m("POST").h(headers).b(body);
|
|
70
|
-
return b.build();
|
|
71
|
-
};
|
|
72
|
-
export const se_CreateRuleGroupsNamespaceCommand = async (input, context) => {
|
|
73
|
-
const b = rb(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces");
|
|
78
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
79
|
-
let body;
|
|
80
|
-
body = JSON.stringify(take(input, {
|
|
81
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
82
|
-
data: (_) => context.base64Encoder(_),
|
|
83
|
-
name: [],
|
|
84
|
-
tags: (_) => _json(_),
|
|
85
|
-
}));
|
|
86
|
-
b.m("POST").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
export const se_CreateScraperCommand = async (input, context) => {
|
|
90
|
-
const b = rb(input, context);
|
|
91
|
-
const headers = {
|
|
92
|
-
"content-type": "application/json",
|
|
93
|
-
};
|
|
94
|
-
b.bp("/scrapers");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify(take(input, {
|
|
97
|
-
alias: [],
|
|
98
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
99
|
-
destination: (_) => _json(_),
|
|
100
|
-
roleConfiguration: (_) => _json(_),
|
|
101
|
-
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context),
|
|
102
|
-
source: (_) => _json(_),
|
|
103
|
-
tags: (_) => _json(_),
|
|
104
|
-
}));
|
|
105
|
-
b.m("POST").h(headers).b(body);
|
|
106
|
-
return b.build();
|
|
107
|
-
};
|
|
108
|
-
export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
109
|
-
const b = rb(input, context);
|
|
110
|
-
const headers = {
|
|
111
|
-
"content-type": "application/json",
|
|
112
|
-
};
|
|
113
|
-
b.bp("/workspaces");
|
|
114
|
-
let body;
|
|
115
|
-
body = JSON.stringify(take(input, {
|
|
116
|
-
alias: [],
|
|
117
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
118
|
-
kmsKeyArn: [],
|
|
119
|
-
tags: (_) => _json(_),
|
|
120
|
-
}));
|
|
121
|
-
b.m("POST").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_DeleteAlertManagerDefinitionCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {};
|
|
127
|
-
b.bp("/workspaces/{workspaceId}/alertmanager/definition");
|
|
128
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
129
|
-
const query = map({
|
|
130
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
131
|
-
});
|
|
132
|
-
let body;
|
|
133
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
export const se_DeleteAnomalyDetectorCommand = async (input, context) => {
|
|
137
|
-
const b = rb(input, context);
|
|
138
|
-
const headers = {};
|
|
139
|
-
b.bp("/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}");
|
|
140
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
141
|
-
b.p("anomalyDetectorId", () => input.anomalyDetectorId, "{anomalyDetectorId}", false);
|
|
142
|
-
const query = map({
|
|
143
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
144
|
-
});
|
|
145
|
-
let body;
|
|
146
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
150
|
-
const b = rb(input, context);
|
|
151
|
-
const headers = {};
|
|
152
|
-
b.bp("/workspaces/{workspaceId}/logging");
|
|
153
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
154
|
-
const query = map({
|
|
155
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
156
|
-
});
|
|
157
|
-
let body;
|
|
158
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_DeleteQueryLoggingConfigurationCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = {};
|
|
164
|
-
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
165
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
166
|
-
const query = map({
|
|
167
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
168
|
-
});
|
|
169
|
-
let body;
|
|
170
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/workspaces/{workspaceId}/policy");
|
|
177
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
178
|
-
const query = map({
|
|
179
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
180
|
-
[_rI]: [, input[_rI]],
|
|
181
|
-
});
|
|
182
|
-
let body;
|
|
183
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
export const se_DeleteRuleGroupsNamespaceCommand = async (input, context) => {
|
|
187
|
-
const b = rb(input, context);
|
|
188
|
-
const headers = {};
|
|
189
|
-
b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}");
|
|
190
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
191
|
-
b.p("name", () => input.name, "{name}", false);
|
|
192
|
-
const query = map({
|
|
193
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
194
|
-
});
|
|
195
|
-
let body;
|
|
196
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
export const se_DeleteScraperCommand = async (input, context) => {
|
|
200
|
-
const b = rb(input, context);
|
|
201
|
-
const headers = {};
|
|
202
|
-
b.bp("/scrapers/{scraperId}");
|
|
203
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
204
|
-
const query = map({
|
|
205
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
206
|
-
});
|
|
207
|
-
let body;
|
|
208
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
export const se_DeleteScraperLoggingConfigurationCommand = async (input, context) => {
|
|
212
|
-
const b = rb(input, context);
|
|
213
|
-
const headers = {};
|
|
214
|
-
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
215
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
216
|
-
const query = map({
|
|
217
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
218
|
-
});
|
|
219
|
-
let body;
|
|
220
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/workspaces/{workspaceId}");
|
|
227
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
228
|
-
const query = map({
|
|
229
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
230
|
-
});
|
|
231
|
-
let body;
|
|
232
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
export const se_DescribeAlertManagerDefinitionCommand = async (input, context) => {
|
|
236
|
-
const b = rb(input, context);
|
|
237
|
-
const headers = {};
|
|
238
|
-
b.bp("/workspaces/{workspaceId}/alertmanager/definition");
|
|
239
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
240
|
-
let body;
|
|
241
|
-
b.m("GET").h(headers).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
export const se_DescribeAnomalyDetectorCommand = async (input, context) => {
|
|
245
|
-
const b = rb(input, context);
|
|
246
|
-
const headers = {};
|
|
247
|
-
b.bp("/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}");
|
|
248
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
249
|
-
b.p("anomalyDetectorId", () => input.anomalyDetectorId, "{anomalyDetectorId}", false);
|
|
250
|
-
let body;
|
|
251
|
-
b.m("GET").h(headers).b(body);
|
|
252
|
-
return b.build();
|
|
253
|
-
};
|
|
254
|
-
export const se_DescribeLoggingConfigurationCommand = async (input, context) => {
|
|
255
|
-
const b = rb(input, context);
|
|
256
|
-
const headers = {};
|
|
257
|
-
b.bp("/workspaces/{workspaceId}/logging");
|
|
258
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
259
|
-
let body;
|
|
260
|
-
b.m("GET").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
export const se_DescribeQueryLoggingConfigurationCommand = async (input, context) => {
|
|
264
|
-
const b = rb(input, context);
|
|
265
|
-
const headers = {};
|
|
266
|
-
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
267
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
268
|
-
let body;
|
|
269
|
-
b.m("GET").h(headers).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
273
|
-
const b = rb(input, context);
|
|
274
|
-
const headers = {};
|
|
275
|
-
b.bp("/workspaces/{workspaceId}/policy");
|
|
276
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
277
|
-
let body;
|
|
278
|
-
b.m("GET").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
export const se_DescribeRuleGroupsNamespaceCommand = async (input, context) => {
|
|
282
|
-
const b = rb(input, context);
|
|
283
|
-
const headers = {};
|
|
284
|
-
b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}");
|
|
285
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
286
|
-
b.p("name", () => input.name, "{name}", false);
|
|
287
|
-
let body;
|
|
288
|
-
b.m("GET").h(headers).b(body);
|
|
289
|
-
return b.build();
|
|
290
|
-
};
|
|
291
|
-
export const se_DescribeScraperCommand = async (input, context) => {
|
|
292
|
-
const b = rb(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/scrapers/{scraperId}");
|
|
295
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
296
|
-
let body;
|
|
297
|
-
b.m("GET").h(headers).b(body);
|
|
298
|
-
return b.build();
|
|
299
|
-
};
|
|
300
|
-
export const se_DescribeScraperLoggingConfigurationCommand = async (input, context) => {
|
|
301
|
-
const b = rb(input, context);
|
|
302
|
-
const headers = {};
|
|
303
|
-
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
304
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
305
|
-
let body;
|
|
306
|
-
b.m("GET").h(headers).b(body);
|
|
307
|
-
return b.build();
|
|
308
|
-
};
|
|
309
|
-
export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
310
|
-
const b = rb(input, context);
|
|
311
|
-
const headers = {};
|
|
312
|
-
b.bp("/workspaces/{workspaceId}");
|
|
313
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
314
|
-
let body;
|
|
315
|
-
b.m("GET").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
export const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
319
|
-
const b = rb(input, context);
|
|
320
|
-
const headers = {};
|
|
321
|
-
b.bp("/workspaces/{workspaceId}/configuration");
|
|
322
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
323
|
-
let body;
|
|
324
|
-
b.m("GET").h(headers).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
export const se_GetDefaultScraperConfigurationCommand = async (input, context) => {
|
|
328
|
-
const b = rb(input, context);
|
|
329
|
-
const headers = {};
|
|
330
|
-
b.bp("/scraperconfiguration");
|
|
331
|
-
let body;
|
|
332
|
-
b.m("GET").h(headers).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
export const se_ListAnomalyDetectorsCommand = async (input, context) => {
|
|
336
|
-
const b = rb(input, context);
|
|
337
|
-
const headers = {};
|
|
338
|
-
b.bp("/workspaces/{workspaceId}/anomalydetectors");
|
|
339
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
340
|
-
const query = map({
|
|
341
|
-
[_a]: [, input[_a]],
|
|
342
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
343
|
-
[_nT]: [, input[_nT]],
|
|
344
|
-
});
|
|
345
|
-
let body;
|
|
346
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
export const se_ListRuleGroupsNamespacesCommand = async (input, context) => {
|
|
350
|
-
const b = rb(input, context);
|
|
351
|
-
const headers = {};
|
|
352
|
-
b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces");
|
|
353
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
354
|
-
const query = map({
|
|
355
|
-
[_n]: [, input[_n]],
|
|
356
|
-
[_nT]: [, input[_nT]],
|
|
357
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
358
|
-
});
|
|
359
|
-
let body;
|
|
360
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
361
|
-
return b.build();
|
|
362
|
-
};
|
|
363
|
-
export const se_ListScrapersCommand = async (input, context) => {
|
|
364
|
-
const b = rb(input, context);
|
|
365
|
-
const headers = {};
|
|
366
|
-
b.bp("/scrapers");
|
|
367
|
-
const query = map({
|
|
368
|
-
...convertMap(input.filters),
|
|
369
|
-
[_nT]: [, input[_nT]],
|
|
370
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
371
|
-
});
|
|
372
|
-
let body;
|
|
373
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
374
|
-
return b.build();
|
|
375
|
-
};
|
|
376
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
377
|
-
const b = rb(input, context);
|
|
378
|
-
const headers = {};
|
|
379
|
-
b.bp("/tags/{resourceArn}");
|
|
380
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
381
|
-
let body;
|
|
382
|
-
b.m("GET").h(headers).b(body);
|
|
383
|
-
return b.build();
|
|
384
|
-
};
|
|
385
|
-
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
386
|
-
const b = rb(input, context);
|
|
387
|
-
const headers = {};
|
|
388
|
-
b.bp("/workspaces");
|
|
389
|
-
const query = map({
|
|
390
|
-
[_nT]: [, input[_nT]],
|
|
391
|
-
[_a]: [, input[_a]],
|
|
392
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
393
|
-
});
|
|
394
|
-
let body;
|
|
395
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
};
|
|
398
|
-
export const se_PutAlertManagerDefinitionCommand = async (input, context) => {
|
|
399
|
-
const b = rb(input, context);
|
|
400
|
-
const headers = {
|
|
401
|
-
"content-type": "application/json",
|
|
402
|
-
};
|
|
403
|
-
b.bp("/workspaces/{workspaceId}/alertmanager/definition");
|
|
404
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify(take(input, {
|
|
407
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
408
|
-
data: (_) => context.base64Encoder(_),
|
|
409
|
-
}));
|
|
410
|
-
b.m("PUT").h(headers).b(body);
|
|
411
|
-
return b.build();
|
|
412
|
-
};
|
|
413
|
-
export const se_PutAnomalyDetectorCommand = async (input, context) => {
|
|
414
|
-
const b = rb(input, context);
|
|
415
|
-
const headers = {
|
|
416
|
-
"content-type": "application/json",
|
|
417
|
-
};
|
|
418
|
-
b.bp("/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}");
|
|
419
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
420
|
-
b.p("anomalyDetectorId", () => input.anomalyDetectorId, "{anomalyDetectorId}", false);
|
|
421
|
-
let body;
|
|
422
|
-
body = JSON.stringify(take(input, {
|
|
423
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
424
|
-
configuration: (_) => se_AnomalyDetectorConfiguration(_, context),
|
|
425
|
-
evaluationIntervalInSeconds: [],
|
|
426
|
-
labels: (_) => _json(_),
|
|
427
|
-
missingDataAction: (_) => _json(_),
|
|
428
|
-
}));
|
|
429
|
-
b.m("PUT").h(headers).b(body);
|
|
430
|
-
return b.build();
|
|
431
|
-
};
|
|
432
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
433
|
-
const b = rb(input, context);
|
|
434
|
-
const headers = {
|
|
435
|
-
"content-type": "application/json",
|
|
436
|
-
};
|
|
437
|
-
b.bp("/workspaces/{workspaceId}/policy");
|
|
438
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify(take(input, {
|
|
441
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
442
|
-
policyDocument: [],
|
|
443
|
-
revisionId: [],
|
|
444
|
-
}));
|
|
445
|
-
b.m("PUT").h(headers).b(body);
|
|
446
|
-
return b.build();
|
|
447
|
-
};
|
|
448
|
-
export const se_PutRuleGroupsNamespaceCommand = async (input, context) => {
|
|
449
|
-
const b = rb(input, context);
|
|
450
|
-
const headers = {
|
|
451
|
-
"content-type": "application/json",
|
|
452
|
-
};
|
|
453
|
-
b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}");
|
|
454
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
455
|
-
b.p("name", () => input.name, "{name}", false);
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify(take(input, {
|
|
458
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
459
|
-
data: (_) => context.base64Encoder(_),
|
|
460
|
-
}));
|
|
461
|
-
b.m("PUT").h(headers).b(body);
|
|
462
|
-
return b.build();
|
|
463
|
-
};
|
|
464
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
465
|
-
const b = rb(input, context);
|
|
466
|
-
const headers = {
|
|
467
|
-
"content-type": "application/json",
|
|
468
|
-
};
|
|
469
|
-
b.bp("/tags/{resourceArn}");
|
|
470
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
471
|
-
let body;
|
|
472
|
-
body = JSON.stringify(take(input, {
|
|
473
|
-
tags: (_) => _json(_),
|
|
474
|
-
}));
|
|
475
|
-
b.m("POST").h(headers).b(body);
|
|
476
|
-
return b.build();
|
|
477
|
-
};
|
|
478
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
479
|
-
const b = rb(input, context);
|
|
480
|
-
const headers = {};
|
|
481
|
-
b.bp("/tags/{resourceArn}");
|
|
482
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
483
|
-
const query = map({
|
|
484
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
485
|
-
});
|
|
486
|
-
let body;
|
|
487
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
488
|
-
return b.build();
|
|
489
|
-
};
|
|
490
|
-
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
491
|
-
const b = rb(input, context);
|
|
492
|
-
const headers = {
|
|
493
|
-
"content-type": "application/json",
|
|
494
|
-
};
|
|
495
|
-
b.bp("/workspaces/{workspaceId}/logging");
|
|
496
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
497
|
-
let body;
|
|
498
|
-
body = JSON.stringify(take(input, {
|
|
499
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
500
|
-
logGroupArn: [],
|
|
501
|
-
}));
|
|
502
|
-
b.m("PUT").h(headers).b(body);
|
|
503
|
-
return b.build();
|
|
504
|
-
};
|
|
505
|
-
export const se_UpdateQueryLoggingConfigurationCommand = async (input, context) => {
|
|
506
|
-
const b = rb(input, context);
|
|
507
|
-
const headers = {
|
|
508
|
-
"content-type": "application/json",
|
|
509
|
-
};
|
|
510
|
-
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
511
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
512
|
-
let body;
|
|
513
|
-
body = JSON.stringify(take(input, {
|
|
514
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
515
|
-
destinations: (_) => _json(_),
|
|
516
|
-
}));
|
|
517
|
-
b.m("PUT").h(headers).b(body);
|
|
518
|
-
return b.build();
|
|
519
|
-
};
|
|
520
|
-
export const se_UpdateScraperCommand = async (input, context) => {
|
|
521
|
-
const b = rb(input, context);
|
|
522
|
-
const headers = {
|
|
523
|
-
"content-type": "application/json",
|
|
524
|
-
};
|
|
525
|
-
b.bp("/scrapers/{scraperId}");
|
|
526
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
527
|
-
let body;
|
|
528
|
-
body = JSON.stringify(take(input, {
|
|
529
|
-
alias: [],
|
|
530
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
531
|
-
destination: (_) => _json(_),
|
|
532
|
-
roleConfiguration: (_) => _json(_),
|
|
533
|
-
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context),
|
|
534
|
-
}));
|
|
535
|
-
b.m("PUT").h(headers).b(body);
|
|
536
|
-
return b.build();
|
|
537
|
-
};
|
|
538
|
-
export const se_UpdateScraperLoggingConfigurationCommand = async (input, context) => {
|
|
539
|
-
const b = rb(input, context);
|
|
540
|
-
const headers = {
|
|
541
|
-
"content-type": "application/json",
|
|
542
|
-
};
|
|
543
|
-
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
544
|
-
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
545
|
-
let body;
|
|
546
|
-
body = JSON.stringify(take(input, {
|
|
547
|
-
loggingDestination: (_) => _json(_),
|
|
548
|
-
scraperComponents: (_) => _json(_),
|
|
549
|
-
}));
|
|
550
|
-
b.m("PUT").h(headers).b(body);
|
|
551
|
-
return b.build();
|
|
552
|
-
};
|
|
553
|
-
export const se_UpdateWorkspaceAliasCommand = async (input, context) => {
|
|
554
|
-
const b = rb(input, context);
|
|
555
|
-
const headers = {
|
|
556
|
-
"content-type": "application/json",
|
|
557
|
-
};
|
|
558
|
-
b.bp("/workspaces/{workspaceId}/alias");
|
|
559
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
560
|
-
let body;
|
|
561
|
-
body = JSON.stringify(take(input, {
|
|
562
|
-
alias: [],
|
|
563
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
564
|
-
}));
|
|
565
|
-
b.m("POST").h(headers).b(body);
|
|
566
|
-
return b.build();
|
|
567
|
-
};
|
|
568
|
-
export const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
569
|
-
const b = rb(input, context);
|
|
570
|
-
const headers = {
|
|
571
|
-
"content-type": "application/json",
|
|
572
|
-
};
|
|
573
|
-
b.bp("/workspaces/{workspaceId}/configuration");
|
|
574
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
575
|
-
let body;
|
|
576
|
-
body = JSON.stringify(take(input, {
|
|
577
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
578
|
-
limitsPerLabelSet: (_) => _json(_),
|
|
579
|
-
retentionPeriodInDays: [],
|
|
580
|
-
}));
|
|
581
|
-
b.m("PATCH").h(headers).b(body);
|
|
582
|
-
return b.build();
|
|
583
|
-
};
|
|
584
|
-
export const de_CreateAlertManagerDefinitionCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const contents = map({
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
});
|
|
591
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
592
|
-
const doc = take(data, {
|
|
593
|
-
status: _json,
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
return contents;
|
|
597
|
-
};
|
|
598
|
-
export const de_CreateAnomalyDetectorCommand = async (output, context) => {
|
|
599
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
600
|
-
return de_CommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const contents = map({
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
});
|
|
605
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
606
|
-
const doc = take(data, {
|
|
607
|
-
anomalyDetectorId: __expectString,
|
|
608
|
-
arn: __expectString,
|
|
609
|
-
status: _json,
|
|
610
|
-
tags: _json,
|
|
611
|
-
});
|
|
612
|
-
Object.assign(contents, doc);
|
|
613
|
-
return contents;
|
|
614
|
-
};
|
|
615
|
-
export const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
617
|
-
return de_CommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const contents = map({
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
});
|
|
622
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
623
|
-
const doc = take(data, {
|
|
624
|
-
status: _json,
|
|
625
|
-
});
|
|
626
|
-
Object.assign(contents, doc);
|
|
627
|
-
return contents;
|
|
628
|
-
};
|
|
629
|
-
export const de_CreateQueryLoggingConfigurationCommand = async (output, context) => {
|
|
630
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
631
|
-
return de_CommandError(output, context);
|
|
632
|
-
}
|
|
633
|
-
const contents = map({
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
});
|
|
636
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
637
|
-
const doc = take(data, {
|
|
638
|
-
status: _json,
|
|
639
|
-
});
|
|
640
|
-
Object.assign(contents, doc);
|
|
641
|
-
return contents;
|
|
642
|
-
};
|
|
643
|
-
export const de_CreateRuleGroupsNamespaceCommand = async (output, context) => {
|
|
644
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
645
|
-
return de_CommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const contents = map({
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
});
|
|
650
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
651
|
-
const doc = take(data, {
|
|
652
|
-
arn: __expectString,
|
|
653
|
-
name: __expectString,
|
|
654
|
-
status: _json,
|
|
655
|
-
tags: _json,
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
return contents;
|
|
659
|
-
};
|
|
660
|
-
export const de_CreateScraperCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
662
|
-
return de_CommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = map({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
});
|
|
667
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
668
|
-
const doc = take(data, {
|
|
669
|
-
arn: __expectString,
|
|
670
|
-
scraperId: __expectString,
|
|
671
|
-
status: _json,
|
|
672
|
-
tags: _json,
|
|
673
|
-
});
|
|
674
|
-
Object.assign(contents, doc);
|
|
675
|
-
return contents;
|
|
676
|
-
};
|
|
677
|
-
export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const contents = map({
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
});
|
|
684
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
685
|
-
const doc = take(data, {
|
|
686
|
-
arn: __expectString,
|
|
687
|
-
kmsKeyArn: __expectString,
|
|
688
|
-
status: _json,
|
|
689
|
-
tags: _json,
|
|
690
|
-
workspaceId: __expectString,
|
|
691
|
-
});
|
|
692
|
-
Object.assign(contents, doc);
|
|
693
|
-
return contents;
|
|
694
|
-
};
|
|
695
|
-
export const de_DeleteAlertManagerDefinitionCommand = async (output, context) => {
|
|
696
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
697
|
-
return de_CommandError(output, context);
|
|
698
|
-
}
|
|
699
|
-
const contents = map({
|
|
700
|
-
$metadata: deserializeMetadata(output),
|
|
701
|
-
});
|
|
702
|
-
await collectBody(output.body, context);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
export const de_DeleteAnomalyDetectorCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = map({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
await collectBody(output.body, context);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
717
|
-
return de_CommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
});
|
|
722
|
-
await collectBody(output.body, context);
|
|
723
|
-
return contents;
|
|
724
|
-
};
|
|
725
|
-
export const de_DeleteQueryLoggingConfigurationCommand = async (output, context) => {
|
|
726
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
727
|
-
return de_CommandError(output, context);
|
|
728
|
-
}
|
|
729
|
-
const contents = map({
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
});
|
|
732
|
-
await collectBody(output.body, context);
|
|
733
|
-
return contents;
|
|
734
|
-
};
|
|
735
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const contents = map({
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
});
|
|
742
|
-
await collectBody(output.body, context);
|
|
743
|
-
return contents;
|
|
744
|
-
};
|
|
745
|
-
export const de_DeleteRuleGroupsNamespaceCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
747
|
-
return de_CommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const contents = map({
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
});
|
|
752
|
-
await collectBody(output.body, context);
|
|
753
|
-
return contents;
|
|
754
|
-
};
|
|
755
|
-
export const de_DeleteScraperCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = map({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
});
|
|
762
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
763
|
-
const doc = take(data, {
|
|
764
|
-
scraperId: __expectString,
|
|
765
|
-
status: _json,
|
|
766
|
-
});
|
|
767
|
-
Object.assign(contents, doc);
|
|
768
|
-
return contents;
|
|
769
|
-
};
|
|
770
|
-
export const de_DeleteScraperLoggingConfigurationCommand = async (output, context) => {
|
|
771
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
772
|
-
return de_CommandError(output, context);
|
|
773
|
-
}
|
|
774
|
-
const contents = map({
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
});
|
|
777
|
-
await collectBody(output.body, context);
|
|
778
|
-
return contents;
|
|
779
|
-
};
|
|
780
|
-
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
781
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
782
|
-
return de_CommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const contents = map({
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
});
|
|
787
|
-
await collectBody(output.body, context);
|
|
788
|
-
return contents;
|
|
789
|
-
};
|
|
790
|
-
export const de_DescribeAlertManagerDefinitionCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return de_CommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const contents = map({
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
});
|
|
797
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
798
|
-
const doc = take(data, {
|
|
799
|
-
alertManagerDefinition: (_) => de_AlertManagerDefinitionDescription(_, context),
|
|
800
|
-
});
|
|
801
|
-
Object.assign(contents, doc);
|
|
802
|
-
return contents;
|
|
803
|
-
};
|
|
804
|
-
export const de_DescribeAnomalyDetectorCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const contents = map({
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
});
|
|
811
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
812
|
-
const doc = take(data, {
|
|
813
|
-
anomalyDetector: (_) => de_AnomalyDetectorDescription(_, context),
|
|
814
|
-
});
|
|
815
|
-
Object.assign(contents, doc);
|
|
816
|
-
return contents;
|
|
817
|
-
};
|
|
818
|
-
export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
819
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return de_CommandError(output, context);
|
|
821
|
-
}
|
|
822
|
-
const contents = map({
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
824
|
-
});
|
|
825
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
826
|
-
const doc = take(data, {
|
|
827
|
-
loggingConfiguration: (_) => de_LoggingConfigurationMetadata(_, context),
|
|
828
|
-
});
|
|
829
|
-
Object.assign(contents, doc);
|
|
830
|
-
return contents;
|
|
831
|
-
};
|
|
832
|
-
export const de_DescribeQueryLoggingConfigurationCommand = async (output, context) => {
|
|
833
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
-
return de_CommandError(output, context);
|
|
835
|
-
}
|
|
836
|
-
const contents = map({
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
});
|
|
839
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
840
|
-
const doc = take(data, {
|
|
841
|
-
queryLoggingConfiguration: (_) => de_QueryLoggingConfigurationMetadata(_, context),
|
|
842
|
-
});
|
|
843
|
-
Object.assign(contents, doc);
|
|
844
|
-
return contents;
|
|
845
|
-
};
|
|
846
|
-
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const contents = map({
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
});
|
|
853
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
854
|
-
const doc = take(data, {
|
|
855
|
-
policyDocument: __expectString,
|
|
856
|
-
policyStatus: __expectString,
|
|
857
|
-
revisionId: __expectString,
|
|
858
|
-
});
|
|
859
|
-
Object.assign(contents, doc);
|
|
860
|
-
return contents;
|
|
861
|
-
};
|
|
862
|
-
export const de_DescribeRuleGroupsNamespaceCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
-
return de_CommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const contents = map({
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
});
|
|
869
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
870
|
-
const doc = take(data, {
|
|
871
|
-
ruleGroupsNamespace: (_) => de_RuleGroupsNamespaceDescription(_, context),
|
|
872
|
-
});
|
|
873
|
-
Object.assign(contents, doc);
|
|
874
|
-
return contents;
|
|
875
|
-
};
|
|
876
|
-
export const de_DescribeScraperCommand = async (output, context) => {
|
|
877
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
-
return de_CommandError(output, context);
|
|
879
|
-
}
|
|
880
|
-
const contents = map({
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
});
|
|
883
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
884
|
-
const doc = take(data, {
|
|
885
|
-
scraper: (_) => de_ScraperDescription(_, context),
|
|
886
|
-
});
|
|
887
|
-
Object.assign(contents, doc);
|
|
888
|
-
return contents;
|
|
889
|
-
};
|
|
890
|
-
export const de_DescribeScraperLoggingConfigurationCommand = async (output, context) => {
|
|
891
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return de_CommandError(output, context);
|
|
893
|
-
}
|
|
894
|
-
const contents = map({
|
|
895
|
-
$metadata: deserializeMetadata(output),
|
|
896
|
-
});
|
|
897
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
898
|
-
const doc = take(data, {
|
|
899
|
-
loggingDestination: (_) => _json(__expectUnion(_)),
|
|
900
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
901
|
-
scraperComponents: _json,
|
|
902
|
-
scraperId: __expectString,
|
|
903
|
-
status: _json,
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
return contents;
|
|
907
|
-
};
|
|
908
|
-
export const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const contents = map({
|
|
913
|
-
$metadata: deserializeMetadata(output),
|
|
914
|
-
});
|
|
915
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
916
|
-
const doc = take(data, {
|
|
917
|
-
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
918
|
-
});
|
|
919
|
-
Object.assign(contents, doc);
|
|
920
|
-
return contents;
|
|
921
|
-
};
|
|
922
|
-
export const de_DescribeWorkspaceConfigurationCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const contents = map({
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
});
|
|
929
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
930
|
-
const doc = take(data, {
|
|
931
|
-
workspaceConfiguration: _json,
|
|
932
|
-
});
|
|
933
|
-
Object.assign(contents, doc);
|
|
934
|
-
return contents;
|
|
935
|
-
};
|
|
936
|
-
export const de_GetDefaultScraperConfigurationCommand = async (output, context) => {
|
|
937
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
|
-
return de_CommandError(output, context);
|
|
939
|
-
}
|
|
940
|
-
const contents = map({
|
|
941
|
-
$metadata: deserializeMetadata(output),
|
|
942
|
-
});
|
|
943
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
944
|
-
const doc = take(data, {
|
|
945
|
-
configuration: context.base64Decoder,
|
|
946
|
-
});
|
|
947
|
-
Object.assign(contents, doc);
|
|
948
|
-
return contents;
|
|
949
|
-
};
|
|
950
|
-
export const de_ListAnomalyDetectorsCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const contents = map({
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
});
|
|
957
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
958
|
-
const doc = take(data, {
|
|
959
|
-
anomalyDetectors: (_) => de_AnomalyDetectorSummaryList(_, context),
|
|
960
|
-
nextToken: __expectString,
|
|
961
|
-
});
|
|
962
|
-
Object.assign(contents, doc);
|
|
963
|
-
return contents;
|
|
964
|
-
};
|
|
965
|
-
export const de_ListRuleGroupsNamespacesCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return de_CommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const contents = map({
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
});
|
|
972
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
973
|
-
const doc = take(data, {
|
|
974
|
-
nextToken: __expectString,
|
|
975
|
-
ruleGroupsNamespaces: (_) => de_RuleGroupsNamespaceSummaryList(_, context),
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
return contents;
|
|
979
|
-
};
|
|
980
|
-
export const de_ListScrapersCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return de_CommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = map({
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
});
|
|
987
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
988
|
-
const doc = take(data, {
|
|
989
|
-
nextToken: __expectString,
|
|
990
|
-
scrapers: (_) => de_ScraperSummaryList(_, context),
|
|
991
|
-
});
|
|
992
|
-
Object.assign(contents, doc);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
996
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
997
|
-
return de_CommandError(output, context);
|
|
998
|
-
}
|
|
999
|
-
const contents = map({
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
});
|
|
1002
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1003
|
-
const doc = take(data, {
|
|
1004
|
-
tags: _json,
|
|
1005
|
-
});
|
|
1006
|
-
Object.assign(contents, doc);
|
|
1007
|
-
return contents;
|
|
1008
|
-
};
|
|
1009
|
-
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return de_CommandError(output, context);
|
|
1012
|
-
}
|
|
1013
|
-
const contents = map({
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
});
|
|
1016
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1017
|
-
const doc = take(data, {
|
|
1018
|
-
nextToken: __expectString,
|
|
1019
|
-
workspaces: (_) => de_WorkspaceSummaryList(_, context),
|
|
1020
|
-
});
|
|
1021
|
-
Object.assign(contents, doc);
|
|
1022
|
-
return contents;
|
|
1023
|
-
};
|
|
1024
|
-
export const de_PutAlertManagerDefinitionCommand = async (output, context) => {
|
|
1025
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1026
|
-
return de_CommandError(output, context);
|
|
1027
|
-
}
|
|
1028
|
-
const contents = map({
|
|
1029
|
-
$metadata: deserializeMetadata(output),
|
|
1030
|
-
});
|
|
1031
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1032
|
-
const doc = take(data, {
|
|
1033
|
-
status: _json,
|
|
1034
|
-
});
|
|
1035
|
-
Object.assign(contents, doc);
|
|
1036
|
-
return contents;
|
|
1037
|
-
};
|
|
1038
|
-
export const de_PutAnomalyDetectorCommand = async (output, context) => {
|
|
1039
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1040
|
-
return de_CommandError(output, context);
|
|
1041
|
-
}
|
|
1042
|
-
const contents = map({
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
});
|
|
1045
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1046
|
-
const doc = take(data, {
|
|
1047
|
-
anomalyDetectorId: __expectString,
|
|
1048
|
-
arn: __expectString,
|
|
1049
|
-
status: _json,
|
|
1050
|
-
tags: _json,
|
|
1051
|
-
});
|
|
1052
|
-
Object.assign(contents, doc);
|
|
1053
|
-
return contents;
|
|
1054
|
-
};
|
|
1055
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1056
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1057
|
-
return de_CommandError(output, context);
|
|
1058
|
-
}
|
|
1059
|
-
const contents = map({
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
});
|
|
1062
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1063
|
-
const doc = take(data, {
|
|
1064
|
-
policyStatus: __expectString,
|
|
1065
|
-
revisionId: __expectString,
|
|
1066
|
-
});
|
|
1067
|
-
Object.assign(contents, doc);
|
|
1068
|
-
return contents;
|
|
1069
|
-
};
|
|
1070
|
-
export const de_PutRuleGroupsNamespaceCommand = async (output, context) => {
|
|
1071
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1072
|
-
return de_CommandError(output, context);
|
|
1073
|
-
}
|
|
1074
|
-
const contents = map({
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
});
|
|
1077
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1078
|
-
const doc = take(data, {
|
|
1079
|
-
arn: __expectString,
|
|
1080
|
-
name: __expectString,
|
|
1081
|
-
status: _json,
|
|
1082
|
-
tags: _json,
|
|
1083
|
-
});
|
|
1084
|
-
Object.assign(contents, doc);
|
|
1085
|
-
return contents;
|
|
1086
|
-
};
|
|
1087
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return de_CommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const contents = map({
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
});
|
|
1094
|
-
await collectBody(output.body, context);
|
|
1095
|
-
return contents;
|
|
1096
|
-
};
|
|
1097
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1098
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return de_CommandError(output, context);
|
|
1100
|
-
}
|
|
1101
|
-
const contents = map({
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
});
|
|
1104
|
-
await collectBody(output.body, context);
|
|
1105
|
-
return contents;
|
|
1106
|
-
};
|
|
1107
|
-
export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
1108
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1109
|
-
return de_CommandError(output, context);
|
|
1110
|
-
}
|
|
1111
|
-
const contents = map({
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
});
|
|
1114
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1115
|
-
const doc = take(data, {
|
|
1116
|
-
status: _json,
|
|
1117
|
-
});
|
|
1118
|
-
Object.assign(contents, doc);
|
|
1119
|
-
return contents;
|
|
1120
|
-
};
|
|
1121
|
-
export const de_UpdateQueryLoggingConfigurationCommand = async (output, context) => {
|
|
1122
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1123
|
-
return de_CommandError(output, context);
|
|
1124
|
-
}
|
|
1125
|
-
const contents = map({
|
|
1126
|
-
$metadata: deserializeMetadata(output),
|
|
1127
|
-
});
|
|
1128
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1129
|
-
const doc = take(data, {
|
|
1130
|
-
status: _json,
|
|
1131
|
-
});
|
|
1132
|
-
Object.assign(contents, doc);
|
|
1133
|
-
return contents;
|
|
1134
|
-
};
|
|
1135
|
-
export const de_UpdateScraperCommand = async (output, context) => {
|
|
1136
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1137
|
-
return de_CommandError(output, context);
|
|
1138
|
-
}
|
|
1139
|
-
const contents = map({
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
});
|
|
1142
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1143
|
-
const doc = take(data, {
|
|
1144
|
-
arn: __expectString,
|
|
1145
|
-
scraperId: __expectString,
|
|
1146
|
-
status: _json,
|
|
1147
|
-
tags: _json,
|
|
1148
|
-
});
|
|
1149
|
-
Object.assign(contents, doc);
|
|
1150
|
-
return contents;
|
|
1151
|
-
};
|
|
1152
|
-
export const de_UpdateScraperLoggingConfigurationCommand = async (output, context) => {
|
|
1153
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1154
|
-
return de_CommandError(output, context);
|
|
1155
|
-
}
|
|
1156
|
-
const contents = map({
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
});
|
|
1159
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1160
|
-
const doc = take(data, {
|
|
1161
|
-
status: _json,
|
|
1162
|
-
});
|
|
1163
|
-
Object.assign(contents, doc);
|
|
1164
|
-
return contents;
|
|
1165
|
-
};
|
|
1166
|
-
export const de_UpdateWorkspaceAliasCommand = async (output, context) => {
|
|
1167
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1168
|
-
return de_CommandError(output, context);
|
|
1169
|
-
}
|
|
1170
|
-
const contents = map({
|
|
1171
|
-
$metadata: deserializeMetadata(output),
|
|
1172
|
-
});
|
|
1173
|
-
await collectBody(output.body, context);
|
|
1174
|
-
return contents;
|
|
1175
|
-
};
|
|
1176
|
-
export const de_UpdateWorkspaceConfigurationCommand = async (output, context) => {
|
|
1177
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1178
|
-
return de_CommandError(output, context);
|
|
1179
|
-
}
|
|
1180
|
-
const contents = map({
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
});
|
|
1183
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1184
|
-
const doc = take(data, {
|
|
1185
|
-
status: _json,
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
return contents;
|
|
1189
|
-
};
|
|
1190
|
-
const de_CommandError = async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context),
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "AccessDeniedException":
|
|
1198
|
-
case "com.amazonaws.amp#AccessDeniedException":
|
|
1199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ConflictException":
|
|
1201
|
-
case "com.amazonaws.amp#ConflictException":
|
|
1202
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.amp#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ResourceNotFoundException":
|
|
1207
|
-
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ServiceQuotaExceededException":
|
|
1210
|
-
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
1211
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ThrottlingException":
|
|
1213
|
-
case "com.amazonaws.amp#ThrottlingException":
|
|
1214
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ValidationException":
|
|
1216
|
-
case "com.amazonaws.amp#ValidationException":
|
|
1217
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1218
|
-
default:
|
|
1219
|
-
const parsedBody = parsedOutput.body;
|
|
1220
|
-
return throwDefaultError({
|
|
1221
|
-
output,
|
|
1222
|
-
parsedBody,
|
|
1223
|
-
errorCode,
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1228
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1229
|
-
const contents = map({});
|
|
1230
|
-
const data = parsedOutput.body;
|
|
1231
|
-
const doc = take(data, {
|
|
1232
|
-
message: __expectString,
|
|
1233
|
-
});
|
|
1234
|
-
Object.assign(contents, doc);
|
|
1235
|
-
const exception = new AccessDeniedException({
|
|
1236
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
|
-
...contents,
|
|
1238
|
-
});
|
|
1239
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1240
|
-
};
|
|
1241
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1242
|
-
const contents = map({});
|
|
1243
|
-
const data = parsedOutput.body;
|
|
1244
|
-
const doc = take(data, {
|
|
1245
|
-
message: __expectString,
|
|
1246
|
-
resourceId: __expectString,
|
|
1247
|
-
resourceType: __expectString,
|
|
1248
|
-
});
|
|
1249
|
-
Object.assign(contents, doc);
|
|
1250
|
-
const exception = new ConflictException({
|
|
1251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
-
...contents,
|
|
1253
|
-
});
|
|
1254
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1255
|
-
};
|
|
1256
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1257
|
-
const contents = map({
|
|
1258
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1259
|
-
});
|
|
1260
|
-
const data = parsedOutput.body;
|
|
1261
|
-
const doc = take(data, {
|
|
1262
|
-
message: __expectString,
|
|
1263
|
-
});
|
|
1264
|
-
Object.assign(contents, doc);
|
|
1265
|
-
const exception = new InternalServerException({
|
|
1266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
-
...contents,
|
|
1268
|
-
});
|
|
1269
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1270
|
-
};
|
|
1271
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1272
|
-
const contents = map({});
|
|
1273
|
-
const data = parsedOutput.body;
|
|
1274
|
-
const doc = take(data, {
|
|
1275
|
-
message: __expectString,
|
|
1276
|
-
resourceId: __expectString,
|
|
1277
|
-
resourceType: __expectString,
|
|
1278
|
-
});
|
|
1279
|
-
Object.assign(contents, doc);
|
|
1280
|
-
const exception = new ResourceNotFoundException({
|
|
1281
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
|
-
...contents,
|
|
1283
|
-
});
|
|
1284
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1285
|
-
};
|
|
1286
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1287
|
-
const contents = map({});
|
|
1288
|
-
const data = parsedOutput.body;
|
|
1289
|
-
const doc = take(data, {
|
|
1290
|
-
message: __expectString,
|
|
1291
|
-
quotaCode: __expectString,
|
|
1292
|
-
resourceId: __expectString,
|
|
1293
|
-
resourceType: __expectString,
|
|
1294
|
-
serviceCode: __expectString,
|
|
1295
|
-
});
|
|
1296
|
-
Object.assign(contents, doc);
|
|
1297
|
-
const exception = new ServiceQuotaExceededException({
|
|
1298
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1299
|
-
...contents,
|
|
1300
|
-
});
|
|
1301
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1302
|
-
};
|
|
1303
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1304
|
-
const contents = map({
|
|
1305
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1306
|
-
});
|
|
1307
|
-
const data = parsedOutput.body;
|
|
1308
|
-
const doc = take(data, {
|
|
1309
|
-
message: __expectString,
|
|
1310
|
-
quotaCode: __expectString,
|
|
1311
|
-
serviceCode: __expectString,
|
|
1312
|
-
});
|
|
1313
|
-
Object.assign(contents, doc);
|
|
1314
|
-
const exception = new ThrottlingException({
|
|
1315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
|
-
...contents,
|
|
1317
|
-
});
|
|
1318
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1319
|
-
};
|
|
1320
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1321
|
-
const contents = map({});
|
|
1322
|
-
const data = parsedOutput.body;
|
|
1323
|
-
const doc = take(data, {
|
|
1324
|
-
fieldList: _json,
|
|
1325
|
-
message: __expectString,
|
|
1326
|
-
reason: __expectString,
|
|
1327
|
-
});
|
|
1328
|
-
Object.assign(contents, doc);
|
|
1329
|
-
const exception = new ValidationException({
|
|
1330
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1331
|
-
...contents,
|
|
1332
|
-
});
|
|
1333
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1334
|
-
};
|
|
1335
|
-
const se_AnomalyDetectorConfiguration = (input, context) => {
|
|
1336
|
-
return AnomalyDetectorConfiguration.visit(input, {
|
|
1337
|
-
randomCutForest: (value) => ({ randomCutForest: se_RandomCutForestConfiguration(value, context) }),
|
|
1338
|
-
_: (name, value) => ({ [name]: value }),
|
|
1339
|
-
});
|
|
1340
|
-
};
|
|
1341
|
-
const se_IgnoreNearExpected = (input, context) => {
|
|
1342
|
-
return IgnoreNearExpected.visit(input, {
|
|
1343
|
-
amount: (value) => ({ amount: __serializeFloat(value) }),
|
|
1344
|
-
ratio: (value) => ({ ratio: __serializeFloat(value) }),
|
|
1345
|
-
_: (name, value) => ({ [name]: value }),
|
|
1346
|
-
});
|
|
1347
|
-
};
|
|
1348
|
-
const se_RandomCutForestConfiguration = (input, context) => {
|
|
1349
|
-
return take(input, {
|
|
1350
|
-
ignoreNearExpectedFromAbove: (_) => se_IgnoreNearExpected(_, context),
|
|
1351
|
-
ignoreNearExpectedFromBelow: (_) => se_IgnoreNearExpected(_, context),
|
|
1352
|
-
query: [],
|
|
1353
|
-
sampleSize: [],
|
|
1354
|
-
shingleSize: [],
|
|
1355
|
-
});
|
|
1356
|
-
};
|
|
1357
|
-
const se_ScrapeConfiguration = (input, context) => {
|
|
1358
|
-
return ScrapeConfiguration.visit(input, {
|
|
1359
|
-
configurationBlob: (value) => ({ configurationBlob: context.base64Encoder(value) }),
|
|
1360
|
-
_: (name, value) => ({ [name]: value }),
|
|
1361
|
-
});
|
|
1362
|
-
};
|
|
1363
|
-
const de_AlertManagerDefinitionDescription = (output, context) => {
|
|
1364
|
-
return take(output, {
|
|
1365
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1366
|
-
data: context.base64Decoder,
|
|
1367
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1368
|
-
status: _json,
|
|
1369
|
-
});
|
|
1370
|
-
};
|
|
1371
|
-
const de_AnomalyDetectorConfiguration = (output, context) => {
|
|
1372
|
-
if (output.randomCutForest != null) {
|
|
1373
|
-
return {
|
|
1374
|
-
randomCutForest: de_RandomCutForestConfiguration(output.randomCutForest, context),
|
|
1375
|
-
};
|
|
1376
|
-
}
|
|
1377
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1378
|
-
};
|
|
1379
|
-
const de_AnomalyDetectorDescription = (output, context) => {
|
|
1380
|
-
return take(output, {
|
|
1381
|
-
alias: __expectString,
|
|
1382
|
-
anomalyDetectorId: __expectString,
|
|
1383
|
-
arn: __expectString,
|
|
1384
|
-
configuration: (_) => de_AnomalyDetectorConfiguration(__expectUnion(_), context),
|
|
1385
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1386
|
-
evaluationIntervalInSeconds: __expectInt32,
|
|
1387
|
-
labels: _json,
|
|
1388
|
-
missingDataAction: (_) => _json(__expectUnion(_)),
|
|
1389
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1390
|
-
status: _json,
|
|
1391
|
-
tags: _json,
|
|
1392
|
-
});
|
|
1393
|
-
};
|
|
1394
|
-
const de_AnomalyDetectorSummary = (output, context) => {
|
|
1395
|
-
return take(output, {
|
|
1396
|
-
alias: __expectString,
|
|
1397
|
-
anomalyDetectorId: __expectString,
|
|
1398
|
-
arn: __expectString,
|
|
1399
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1400
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1401
|
-
status: _json,
|
|
1402
|
-
tags: _json,
|
|
1403
|
-
});
|
|
1404
|
-
};
|
|
1405
|
-
const de_AnomalyDetectorSummaryList = (output, context) => {
|
|
1406
|
-
const retVal = (output || [])
|
|
1407
|
-
.filter((e) => e != null)
|
|
1408
|
-
.map((entry) => {
|
|
1409
|
-
return de_AnomalyDetectorSummary(entry, context);
|
|
1410
|
-
});
|
|
1411
|
-
return retVal;
|
|
1412
|
-
};
|
|
1413
|
-
const de_IgnoreNearExpected = (output, context) => {
|
|
1414
|
-
if (__limitedParseDouble(output.amount) !== undefined) {
|
|
1415
|
-
return { amount: __limitedParseDouble(output.amount) };
|
|
1416
|
-
}
|
|
1417
|
-
if (__limitedParseDouble(output.ratio) !== undefined) {
|
|
1418
|
-
return { ratio: __limitedParseDouble(output.ratio) };
|
|
1419
|
-
}
|
|
1420
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1421
|
-
};
|
|
1422
|
-
const de_LoggingConfigurationMetadata = (output, context) => {
|
|
1423
|
-
return take(output, {
|
|
1424
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1425
|
-
logGroupArn: __expectString,
|
|
1426
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1427
|
-
status: _json,
|
|
1428
|
-
workspace: __expectString,
|
|
1429
|
-
});
|
|
1430
|
-
};
|
|
1431
|
-
const de_QueryLoggingConfigurationMetadata = (output, context) => {
|
|
1432
|
-
return take(output, {
|
|
1433
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1434
|
-
destinations: _json,
|
|
1435
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1436
|
-
status: _json,
|
|
1437
|
-
workspace: __expectString,
|
|
1438
|
-
});
|
|
1439
|
-
};
|
|
1440
|
-
const de_RandomCutForestConfiguration = (output, context) => {
|
|
1441
|
-
return take(output, {
|
|
1442
|
-
ignoreNearExpectedFromAbove: (_) => de_IgnoreNearExpected(__expectUnion(_), context),
|
|
1443
|
-
ignoreNearExpectedFromBelow: (_) => de_IgnoreNearExpected(__expectUnion(_), context),
|
|
1444
|
-
query: __expectString,
|
|
1445
|
-
sampleSize: __expectInt32,
|
|
1446
|
-
shingleSize: __expectInt32,
|
|
1447
|
-
});
|
|
1448
|
-
};
|
|
1449
|
-
const de_RuleGroupsNamespaceDescription = (output, context) => {
|
|
1450
|
-
return take(output, {
|
|
1451
|
-
arn: __expectString,
|
|
1452
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1453
|
-
data: context.base64Decoder,
|
|
1454
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1455
|
-
name: __expectString,
|
|
1456
|
-
status: _json,
|
|
1457
|
-
tags: _json,
|
|
1458
|
-
});
|
|
1459
|
-
};
|
|
1460
|
-
const de_RuleGroupsNamespaceSummary = (output, context) => {
|
|
1461
|
-
return take(output, {
|
|
1462
|
-
arn: __expectString,
|
|
1463
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1464
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1465
|
-
name: __expectString,
|
|
1466
|
-
status: _json,
|
|
1467
|
-
tags: _json,
|
|
1468
|
-
});
|
|
1469
|
-
};
|
|
1470
|
-
const de_RuleGroupsNamespaceSummaryList = (output, context) => {
|
|
1471
|
-
const retVal = (output || [])
|
|
1472
|
-
.filter((e) => e != null)
|
|
1473
|
-
.map((entry) => {
|
|
1474
|
-
return de_RuleGroupsNamespaceSummary(entry, context);
|
|
1475
|
-
});
|
|
1476
|
-
return retVal;
|
|
1477
|
-
};
|
|
1478
|
-
const de_ScrapeConfiguration = (output, context) => {
|
|
1479
|
-
if (output.configurationBlob != null) {
|
|
1480
|
-
return {
|
|
1481
|
-
configurationBlob: context.base64Decoder(output.configurationBlob),
|
|
1482
|
-
};
|
|
1483
|
-
}
|
|
1484
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1485
|
-
};
|
|
1486
|
-
const de_ScraperDescription = (output, context) => {
|
|
1487
|
-
return take(output, {
|
|
1488
|
-
alias: __expectString,
|
|
1489
|
-
arn: __expectString,
|
|
1490
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1491
|
-
destination: (_) => _json(__expectUnion(_)),
|
|
1492
|
-
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1493
|
-
roleArn: __expectString,
|
|
1494
|
-
roleConfiguration: _json,
|
|
1495
|
-
scrapeConfiguration: (_) => de_ScrapeConfiguration(__expectUnion(_), context),
|
|
1496
|
-
scraperId: __expectString,
|
|
1497
|
-
source: (_) => _json(__expectUnion(_)),
|
|
1498
|
-
status: _json,
|
|
1499
|
-
statusReason: __expectString,
|
|
1500
|
-
tags: _json,
|
|
1501
|
-
});
|
|
1502
|
-
};
|
|
1503
|
-
const de_ScraperSummary = (output, context) => {
|
|
1504
|
-
return take(output, {
|
|
1505
|
-
alias: __expectString,
|
|
1506
|
-
arn: __expectString,
|
|
1507
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1508
|
-
destination: (_) => _json(__expectUnion(_)),
|
|
1509
|
-
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1510
|
-
roleArn: __expectString,
|
|
1511
|
-
roleConfiguration: _json,
|
|
1512
|
-
scraperId: __expectString,
|
|
1513
|
-
source: (_) => _json(__expectUnion(_)),
|
|
1514
|
-
status: _json,
|
|
1515
|
-
statusReason: __expectString,
|
|
1516
|
-
tags: _json,
|
|
1517
|
-
});
|
|
1518
|
-
};
|
|
1519
|
-
const de_ScraperSummaryList = (output, context) => {
|
|
1520
|
-
const retVal = (output || [])
|
|
1521
|
-
.filter((e) => e != null)
|
|
1522
|
-
.map((entry) => {
|
|
1523
|
-
return de_ScraperSummary(entry, context);
|
|
1524
|
-
});
|
|
1525
|
-
return retVal;
|
|
1526
|
-
};
|
|
1527
|
-
const de_WorkspaceDescription = (output, context) => {
|
|
1528
|
-
return take(output, {
|
|
1529
|
-
alias: __expectString,
|
|
1530
|
-
arn: __expectString,
|
|
1531
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1532
|
-
kmsKeyArn: __expectString,
|
|
1533
|
-
prometheusEndpoint: __expectString,
|
|
1534
|
-
status: _json,
|
|
1535
|
-
tags: _json,
|
|
1536
|
-
workspaceId: __expectString,
|
|
1537
|
-
});
|
|
1538
|
-
};
|
|
1539
|
-
const de_WorkspaceSummary = (output, context) => {
|
|
1540
|
-
return take(output, {
|
|
1541
|
-
alias: __expectString,
|
|
1542
|
-
arn: __expectString,
|
|
1543
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1544
|
-
kmsKeyArn: __expectString,
|
|
1545
|
-
status: _json,
|
|
1546
|
-
tags: _json,
|
|
1547
|
-
workspaceId: __expectString,
|
|
1548
|
-
});
|
|
1549
|
-
};
|
|
1550
|
-
const de_WorkspaceSummaryList = (output, context) => {
|
|
1551
|
-
const retVal = (output || [])
|
|
1552
|
-
.filter((e) => e != null)
|
|
1553
|
-
.map((entry) => {
|
|
1554
|
-
return de_WorkspaceSummary(entry, context);
|
|
1555
|
-
});
|
|
1556
|
-
return retVal;
|
|
1557
|
-
};
|
|
1558
|
-
const deserializeMetadata = (output) => ({
|
|
1559
|
-
httpStatusCode: output.statusCode,
|
|
1560
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1561
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1562
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1563
|
-
});
|
|
1564
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1565
|
-
const _a = "alias";
|
|
1566
|
-
const _cT = "clientToken";
|
|
1567
|
-
const _mR = "maxResults";
|
|
1568
|
-
const _n = "name";
|
|
1569
|
-
const _nT = "nextToken";
|
|
1570
|
-
const _rAS = "retryAfterSeconds";
|
|
1571
|
-
const _rI = "revisionId";
|
|
1572
|
-
const _ra = "retry-after";
|
|
1573
|
-
const _tK = "tagKeys";
|