@aws-sdk/client-resource-explorer-2 3.928.0 → 3.930.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 +991 -1509
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ResourceExplorer2Client.js +2 -0
- package/dist-es/commands/AssociateDefaultViewCommand.js +3 -9
- package/dist-es/commands/BatchGetViewCommand.js +3 -10
- package/dist-es/commands/CreateIndexCommand.js +3 -10
- package/dist-es/commands/CreateResourceExplorerSetupCommand.js +3 -9
- package/dist-es/commands/CreateViewCommand.js +3 -10
- package/dist-es/commands/DeleteIndexCommand.js +3 -9
- package/dist-es/commands/DeleteResourceExplorerSetupCommand.js +3 -9
- package/dist-es/commands/DeleteViewCommand.js +3 -9
- package/dist-es/commands/DisassociateDefaultViewCommand.js +3 -9
- package/dist-es/commands/GetAccountLevelServiceConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDefaultViewCommand.js +3 -9
- package/dist-es/commands/GetIndexCommand.js +3 -10
- package/dist-es/commands/GetManagedViewCommand.js +3 -10
- package/dist-es/commands/GetResourceExplorerSetupCommand.js +3 -10
- package/dist-es/commands/GetServiceIndexCommand.js +3 -9
- package/dist-es/commands/GetServiceViewCommand.js +3 -10
- package/dist-es/commands/GetViewCommand.js +3 -10
- package/dist-es/commands/ListIndexesCommand.js +3 -9
- package/dist-es/commands/ListIndexesForMembersCommand.js +3 -9
- package/dist-es/commands/ListManagedViewsCommand.js +3 -9
- package/dist-es/commands/ListResourcesCommand.js +3 -10
- package/dist-es/commands/ListServiceIndexesCommand.js +3 -9
- package/dist-es/commands/ListServiceViewsCommand.js +3 -9
- package/dist-es/commands/ListStreamingAccessForServicesCommand.js +3 -9
- package/dist-es/commands/ListSupportedResourceTypesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/ListViewsCommand.js +3 -9
- package/dist-es/commands/SearchCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateIndexTypeCommand.js +3 -9
- package/dist-es/commands/UpdateViewCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -88
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +907 -0
- package/dist-types/ResourceExplorer2Client.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -88
- 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 +139 -0
- package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -52
- 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 +146 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -1154
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -290
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -389
|
@@ -1,1154 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { ResourceExplorer2ServiceException as __BaseException } from "../models/ResourceExplorer2ServiceException";
|
|
7
|
-
export const se_AssociateDefaultViewCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/AssociateDefaultView");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ViewArn: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_BatchGetViewCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/BatchGetView");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
ViewArns: (_) => _json(_),
|
|
29
|
-
}));
|
|
30
|
-
b.m("POST").h(headers).b(body);
|
|
31
|
-
return b.build();
|
|
32
|
-
};
|
|
33
|
-
export const se_CreateIndexCommand = async (input, context) => {
|
|
34
|
-
const b = rb(input, context);
|
|
35
|
-
const headers = {
|
|
36
|
-
"content-type": "application/json",
|
|
37
|
-
};
|
|
38
|
-
b.bp("/CreateIndex");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(take(input, {
|
|
41
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
42
|
-
Tags: (_) => _json(_),
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
export const se_CreateResourceExplorerSetupCommand = async (input, context) => {
|
|
48
|
-
const b = rb(input, context);
|
|
49
|
-
const headers = {
|
|
50
|
-
"content-type": "application/json",
|
|
51
|
-
};
|
|
52
|
-
b.bp("/CreateResourceExplorerSetup");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify(take(input, {
|
|
55
|
-
AggregatorRegions: (_) => _json(_),
|
|
56
|
-
RegionList: (_) => _json(_),
|
|
57
|
-
ViewName: [],
|
|
58
|
-
}));
|
|
59
|
-
b.m("POST").h(headers).b(body);
|
|
60
|
-
return b.build();
|
|
61
|
-
};
|
|
62
|
-
export const se_CreateViewCommand = async (input, context) => {
|
|
63
|
-
const b = rb(input, context);
|
|
64
|
-
const headers = {
|
|
65
|
-
"content-type": "application/json",
|
|
66
|
-
};
|
|
67
|
-
b.bp("/CreateView");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(take(input, {
|
|
70
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
71
|
-
Filters: (_) => _json(_),
|
|
72
|
-
IncludedProperties: (_) => _json(_),
|
|
73
|
-
Scope: [],
|
|
74
|
-
Tags: (_) => _json(_),
|
|
75
|
-
ViewName: [],
|
|
76
|
-
}));
|
|
77
|
-
b.m("POST").h(headers).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
export const se_DeleteIndexCommand = async (input, context) => {
|
|
81
|
-
const b = rb(input, context);
|
|
82
|
-
const headers = {
|
|
83
|
-
"content-type": "application/json",
|
|
84
|
-
};
|
|
85
|
-
b.bp("/DeleteIndex");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(take(input, {
|
|
88
|
-
Arn: [],
|
|
89
|
-
}));
|
|
90
|
-
b.m("POST").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
export const se_DeleteResourceExplorerSetupCommand = async (input, context) => {
|
|
94
|
-
const b = rb(input, context);
|
|
95
|
-
const headers = {
|
|
96
|
-
"content-type": "application/json",
|
|
97
|
-
};
|
|
98
|
-
b.bp("/DeleteResourceExplorerSetup");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(take(input, {
|
|
101
|
-
DeleteInAllRegions: [],
|
|
102
|
-
RegionList: (_) => _json(_),
|
|
103
|
-
}));
|
|
104
|
-
b.m("POST").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
export const se_DeleteViewCommand = async (input, context) => {
|
|
108
|
-
const b = rb(input, context);
|
|
109
|
-
const headers = {
|
|
110
|
-
"content-type": "application/json",
|
|
111
|
-
};
|
|
112
|
-
b.bp("/DeleteView");
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify(take(input, {
|
|
115
|
-
ViewArn: [],
|
|
116
|
-
}));
|
|
117
|
-
b.m("POST").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
export const se_DisassociateDefaultViewCommand = async (input, context) => {
|
|
121
|
-
const b = rb(input, context);
|
|
122
|
-
const headers = {};
|
|
123
|
-
b.bp("/DisassociateDefaultView");
|
|
124
|
-
let body;
|
|
125
|
-
b.m("POST").h(headers).b(body);
|
|
126
|
-
return b.build();
|
|
127
|
-
};
|
|
128
|
-
export const se_GetAccountLevelServiceConfigurationCommand = async (input, context) => {
|
|
129
|
-
const b = rb(input, context);
|
|
130
|
-
const headers = {};
|
|
131
|
-
b.bp("/GetAccountLevelServiceConfiguration");
|
|
132
|
-
let body;
|
|
133
|
-
b.m("POST").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
export const se_GetDefaultViewCommand = async (input, context) => {
|
|
137
|
-
const b = rb(input, context);
|
|
138
|
-
const headers = {};
|
|
139
|
-
b.bp("/GetDefaultView");
|
|
140
|
-
let body;
|
|
141
|
-
b.m("POST").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
export const se_GetIndexCommand = async (input, context) => {
|
|
145
|
-
const b = rb(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/GetIndex");
|
|
148
|
-
let body;
|
|
149
|
-
b.m("POST").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
export const se_GetManagedViewCommand = async (input, context) => {
|
|
153
|
-
const b = rb(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/GetManagedView");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(take(input, {
|
|
160
|
-
ManagedViewArn: [],
|
|
161
|
-
}));
|
|
162
|
-
b.m("POST").h(headers).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
export const se_GetResourceExplorerSetupCommand = async (input, context) => {
|
|
166
|
-
const b = rb(input, context);
|
|
167
|
-
const headers = {
|
|
168
|
-
"content-type": "application/json",
|
|
169
|
-
};
|
|
170
|
-
b.bp("/GetResourceExplorerSetup");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
MaxResults: [],
|
|
174
|
-
NextToken: [],
|
|
175
|
-
TaskId: [],
|
|
176
|
-
}));
|
|
177
|
-
b.m("POST").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_GetServiceIndexCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {};
|
|
183
|
-
b.bp("/GetServiceIndex");
|
|
184
|
-
let body;
|
|
185
|
-
b.m("POST").h(headers).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
export const se_GetServiceViewCommand = async (input, context) => {
|
|
189
|
-
const b = rb(input, context);
|
|
190
|
-
const headers = {
|
|
191
|
-
"content-type": "application/json",
|
|
192
|
-
};
|
|
193
|
-
b.bp("/GetServiceView");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(take(input, {
|
|
196
|
-
ServiceViewArn: [],
|
|
197
|
-
}));
|
|
198
|
-
b.m("POST").h(headers).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
export const se_GetViewCommand = async (input, context) => {
|
|
202
|
-
const b = rb(input, context);
|
|
203
|
-
const headers = {
|
|
204
|
-
"content-type": "application/json",
|
|
205
|
-
};
|
|
206
|
-
b.bp("/GetView");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(take(input, {
|
|
209
|
-
ViewArn: [],
|
|
210
|
-
}));
|
|
211
|
-
b.m("POST").h(headers).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
export const se_ListIndexesCommand = async (input, context) => {
|
|
215
|
-
const b = rb(input, context);
|
|
216
|
-
const headers = {
|
|
217
|
-
"content-type": "application/json",
|
|
218
|
-
};
|
|
219
|
-
b.bp("/ListIndexes");
|
|
220
|
-
let body;
|
|
221
|
-
body = JSON.stringify(take(input, {
|
|
222
|
-
MaxResults: [],
|
|
223
|
-
NextToken: [],
|
|
224
|
-
Regions: (_) => _json(_),
|
|
225
|
-
Type: [],
|
|
226
|
-
}));
|
|
227
|
-
b.m("POST").h(headers).b(body);
|
|
228
|
-
return b.build();
|
|
229
|
-
};
|
|
230
|
-
export const se_ListIndexesForMembersCommand = async (input, context) => {
|
|
231
|
-
const b = rb(input, context);
|
|
232
|
-
const headers = {
|
|
233
|
-
"content-type": "application/json",
|
|
234
|
-
};
|
|
235
|
-
b.bp("/ListIndexesForMembers");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(take(input, {
|
|
238
|
-
AccountIdList: (_) => _json(_),
|
|
239
|
-
MaxResults: [],
|
|
240
|
-
NextToken: [],
|
|
241
|
-
}));
|
|
242
|
-
b.m("POST").h(headers).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const se_ListManagedViewsCommand = async (input, context) => {
|
|
246
|
-
const b = rb(input, context);
|
|
247
|
-
const headers = {
|
|
248
|
-
"content-type": "application/json",
|
|
249
|
-
};
|
|
250
|
-
b.bp("/ListManagedViews");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify(take(input, {
|
|
253
|
-
MaxResults: [],
|
|
254
|
-
NextToken: [],
|
|
255
|
-
ServicePrincipal: [],
|
|
256
|
-
}));
|
|
257
|
-
b.m("POST").h(headers).b(body);
|
|
258
|
-
return b.build();
|
|
259
|
-
};
|
|
260
|
-
export const se_ListResourcesCommand = async (input, context) => {
|
|
261
|
-
const b = rb(input, context);
|
|
262
|
-
const headers = {
|
|
263
|
-
"content-type": "application/json",
|
|
264
|
-
};
|
|
265
|
-
b.bp("/ListResources");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(take(input, {
|
|
268
|
-
Filters: (_) => _json(_),
|
|
269
|
-
MaxResults: [],
|
|
270
|
-
NextToken: [],
|
|
271
|
-
ViewArn: [],
|
|
272
|
-
}));
|
|
273
|
-
b.m("POST").h(headers).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
export const se_ListServiceIndexesCommand = async (input, context) => {
|
|
277
|
-
const b = rb(input, context);
|
|
278
|
-
const headers = {
|
|
279
|
-
"content-type": "application/json",
|
|
280
|
-
};
|
|
281
|
-
b.bp("/ListServiceIndexes");
|
|
282
|
-
let body;
|
|
283
|
-
body = JSON.stringify(take(input, {
|
|
284
|
-
MaxResults: [],
|
|
285
|
-
NextToken: [],
|
|
286
|
-
Regions: (_) => _json(_),
|
|
287
|
-
}));
|
|
288
|
-
b.m("POST").h(headers).b(body);
|
|
289
|
-
return b.build();
|
|
290
|
-
};
|
|
291
|
-
export const se_ListServiceViewsCommand = async (input, context) => {
|
|
292
|
-
const b = rb(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/ListServiceViews");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(take(input, {
|
|
299
|
-
MaxResults: [],
|
|
300
|
-
NextToken: [],
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
export const se_ListStreamingAccessForServicesCommand = async (input, context) => {
|
|
306
|
-
const b = rb(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/ListStreamingAccessForServices");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(take(input, {
|
|
313
|
-
MaxResults: [],
|
|
314
|
-
NextToken: [],
|
|
315
|
-
}));
|
|
316
|
-
b.m("POST").h(headers).b(body);
|
|
317
|
-
return b.build();
|
|
318
|
-
};
|
|
319
|
-
export const se_ListSupportedResourceTypesCommand = async (input, context) => {
|
|
320
|
-
const b = rb(input, context);
|
|
321
|
-
const headers = {
|
|
322
|
-
"content-type": "application/json",
|
|
323
|
-
};
|
|
324
|
-
b.bp("/ListSupportedResourceTypes");
|
|
325
|
-
let body;
|
|
326
|
-
body = JSON.stringify(take(input, {
|
|
327
|
-
MaxResults: [],
|
|
328
|
-
NextToken: [],
|
|
329
|
-
}));
|
|
330
|
-
b.m("POST").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
334
|
-
const b = rb(input, context);
|
|
335
|
-
const headers = {};
|
|
336
|
-
b.bp("/tags/{resourceArn}");
|
|
337
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
338
|
-
let body;
|
|
339
|
-
b.m("GET").h(headers).b(body);
|
|
340
|
-
return b.build();
|
|
341
|
-
};
|
|
342
|
-
export const se_ListViewsCommand = async (input, context) => {
|
|
343
|
-
const b = rb(input, context);
|
|
344
|
-
const headers = {
|
|
345
|
-
"content-type": "application/json",
|
|
346
|
-
};
|
|
347
|
-
b.bp("/ListViews");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify(take(input, {
|
|
350
|
-
MaxResults: [],
|
|
351
|
-
NextToken: [],
|
|
352
|
-
}));
|
|
353
|
-
b.m("POST").h(headers).b(body);
|
|
354
|
-
return b.build();
|
|
355
|
-
};
|
|
356
|
-
export const se_SearchCommand = async (input, context) => {
|
|
357
|
-
const b = rb(input, context);
|
|
358
|
-
const headers = {
|
|
359
|
-
"content-type": "application/json",
|
|
360
|
-
};
|
|
361
|
-
b.bp("/Search");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify(take(input, {
|
|
364
|
-
MaxResults: [],
|
|
365
|
-
NextToken: [],
|
|
366
|
-
QueryString: [],
|
|
367
|
-
ViewArn: [],
|
|
368
|
-
}));
|
|
369
|
-
b.m("POST").h(headers).b(body);
|
|
370
|
-
return b.build();
|
|
371
|
-
};
|
|
372
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
373
|
-
const b = rb(input, context);
|
|
374
|
-
const headers = {
|
|
375
|
-
"content-type": "application/json",
|
|
376
|
-
};
|
|
377
|
-
b.bp("/tags/{resourceArn}");
|
|
378
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
379
|
-
let body;
|
|
380
|
-
body = JSON.stringify(take(input, {
|
|
381
|
-
Tags: (_) => _json(_),
|
|
382
|
-
}));
|
|
383
|
-
b.m("POST").h(headers).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
};
|
|
386
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
387
|
-
const b = rb(input, context);
|
|
388
|
-
const headers = {};
|
|
389
|
-
b.bp("/tags/{resourceArn}");
|
|
390
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
391
|
-
const query = map({
|
|
392
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
393
|
-
});
|
|
394
|
-
let body;
|
|
395
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
};
|
|
398
|
-
export const se_UpdateIndexTypeCommand = async (input, context) => {
|
|
399
|
-
const b = rb(input, context);
|
|
400
|
-
const headers = {
|
|
401
|
-
"content-type": "application/json",
|
|
402
|
-
};
|
|
403
|
-
b.bp("/UpdateIndexType");
|
|
404
|
-
let body;
|
|
405
|
-
body = JSON.stringify(take(input, {
|
|
406
|
-
Arn: [],
|
|
407
|
-
Type: [],
|
|
408
|
-
}));
|
|
409
|
-
b.m("POST").h(headers).b(body);
|
|
410
|
-
return b.build();
|
|
411
|
-
};
|
|
412
|
-
export const se_UpdateViewCommand = async (input, context) => {
|
|
413
|
-
const b = rb(input, context);
|
|
414
|
-
const headers = {
|
|
415
|
-
"content-type": "application/json",
|
|
416
|
-
};
|
|
417
|
-
b.bp("/UpdateView");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify(take(input, {
|
|
420
|
-
Filters: (_) => _json(_),
|
|
421
|
-
IncludedProperties: (_) => _json(_),
|
|
422
|
-
ViewArn: [],
|
|
423
|
-
}));
|
|
424
|
-
b.m("POST").h(headers).b(body);
|
|
425
|
-
return b.build();
|
|
426
|
-
};
|
|
427
|
-
export const de_AssociateDefaultViewCommand = async (output, context) => {
|
|
428
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
429
|
-
return de_CommandError(output, context);
|
|
430
|
-
}
|
|
431
|
-
const contents = map({
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
});
|
|
434
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
435
|
-
const doc = take(data, {
|
|
436
|
-
ViewArn: __expectString,
|
|
437
|
-
});
|
|
438
|
-
Object.assign(contents, doc);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
export const de_BatchGetViewCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = map({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
449
|
-
const doc = take(data, {
|
|
450
|
-
Errors: _json,
|
|
451
|
-
Views: (_) => de_ViewList(_, context),
|
|
452
|
-
});
|
|
453
|
-
Object.assign(contents, doc);
|
|
454
|
-
return contents;
|
|
455
|
-
};
|
|
456
|
-
export const de_CreateIndexCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const contents = map({
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
});
|
|
463
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
464
|
-
const doc = take(data, {
|
|
465
|
-
Arn: __expectString,
|
|
466
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
467
|
-
State: __expectString,
|
|
468
|
-
});
|
|
469
|
-
Object.assign(contents, doc);
|
|
470
|
-
return contents;
|
|
471
|
-
};
|
|
472
|
-
export const de_CreateResourceExplorerSetupCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const contents = map({
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
});
|
|
479
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
480
|
-
const doc = take(data, {
|
|
481
|
-
TaskId: __expectString,
|
|
482
|
-
});
|
|
483
|
-
Object.assign(contents, doc);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
|
-
export const de_CreateViewCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const contents = map({
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
});
|
|
493
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
494
|
-
const doc = take(data, {
|
|
495
|
-
View: (_) => de_View(_, context),
|
|
496
|
-
});
|
|
497
|
-
Object.assign(contents, doc);
|
|
498
|
-
return contents;
|
|
499
|
-
};
|
|
500
|
-
export const de_DeleteIndexCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const contents = map({
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
});
|
|
507
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
|
-
const doc = take(data, {
|
|
509
|
-
Arn: __expectString,
|
|
510
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
511
|
-
State: __expectString,
|
|
512
|
-
});
|
|
513
|
-
Object.assign(contents, doc);
|
|
514
|
-
return contents;
|
|
515
|
-
};
|
|
516
|
-
export const de_DeleteResourceExplorerSetupCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const contents = map({
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
});
|
|
523
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
524
|
-
const doc = take(data, {
|
|
525
|
-
TaskId: __expectString,
|
|
526
|
-
});
|
|
527
|
-
Object.assign(contents, doc);
|
|
528
|
-
return contents;
|
|
529
|
-
};
|
|
530
|
-
export const de_DeleteViewCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = map({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
});
|
|
537
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
538
|
-
const doc = take(data, {
|
|
539
|
-
ViewArn: __expectString,
|
|
540
|
-
});
|
|
541
|
-
Object.assign(contents, doc);
|
|
542
|
-
return contents;
|
|
543
|
-
};
|
|
544
|
-
export const de_DisassociateDefaultViewCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
-
return de_CommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const contents = map({
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
});
|
|
551
|
-
await collectBody(output.body, context);
|
|
552
|
-
return contents;
|
|
553
|
-
};
|
|
554
|
-
export const de_GetAccountLevelServiceConfigurationCommand = async (output, context) => {
|
|
555
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
|
-
return de_CommandError(output, context);
|
|
557
|
-
}
|
|
558
|
-
const contents = map({
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
});
|
|
561
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
562
|
-
const doc = take(data, {
|
|
563
|
-
OrgConfiguration: _json,
|
|
564
|
-
});
|
|
565
|
-
Object.assign(contents, doc);
|
|
566
|
-
return contents;
|
|
567
|
-
};
|
|
568
|
-
export const de_GetDefaultViewCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const contents = map({
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
});
|
|
575
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
576
|
-
const doc = take(data, {
|
|
577
|
-
ViewArn: __expectString,
|
|
578
|
-
});
|
|
579
|
-
Object.assign(contents, doc);
|
|
580
|
-
return contents;
|
|
581
|
-
};
|
|
582
|
-
export const de_GetIndexCommand = async (output, context) => {
|
|
583
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
|
-
return de_CommandError(output, context);
|
|
585
|
-
}
|
|
586
|
-
const contents = map({
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
});
|
|
589
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
590
|
-
const doc = take(data, {
|
|
591
|
-
Arn: __expectString,
|
|
592
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
593
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
594
|
-
ReplicatingFrom: _json,
|
|
595
|
-
ReplicatingTo: _json,
|
|
596
|
-
State: __expectString,
|
|
597
|
-
Tags: _json,
|
|
598
|
-
Type: __expectString,
|
|
599
|
-
});
|
|
600
|
-
Object.assign(contents, doc);
|
|
601
|
-
return contents;
|
|
602
|
-
};
|
|
603
|
-
export const de_GetManagedViewCommand = async (output, context) => {
|
|
604
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
605
|
-
return de_CommandError(output, context);
|
|
606
|
-
}
|
|
607
|
-
const contents = map({
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
});
|
|
610
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
611
|
-
const doc = take(data, {
|
|
612
|
-
ManagedView: (_) => de_ManagedView(_, context),
|
|
613
|
-
});
|
|
614
|
-
Object.assign(contents, doc);
|
|
615
|
-
return contents;
|
|
616
|
-
};
|
|
617
|
-
export const de_GetResourceExplorerSetupCommand = async (output, context) => {
|
|
618
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
|
-
return de_CommandError(output, context);
|
|
620
|
-
}
|
|
621
|
-
const contents = map({
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
});
|
|
624
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
625
|
-
const doc = take(data, {
|
|
626
|
-
NextToken: __expectString,
|
|
627
|
-
Regions: (_) => de_RegionStatusList(_, context),
|
|
628
|
-
});
|
|
629
|
-
Object.assign(contents, doc);
|
|
630
|
-
return contents;
|
|
631
|
-
};
|
|
632
|
-
export const de_GetServiceIndexCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const contents = map({
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
});
|
|
639
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
640
|
-
const doc = take(data, {
|
|
641
|
-
Arn: __expectString,
|
|
642
|
-
Type: __expectString,
|
|
643
|
-
});
|
|
644
|
-
Object.assign(contents, doc);
|
|
645
|
-
return contents;
|
|
646
|
-
};
|
|
647
|
-
export const de_GetServiceViewCommand = async (output, context) => {
|
|
648
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return de_CommandError(output, context);
|
|
650
|
-
}
|
|
651
|
-
const contents = map({
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
});
|
|
654
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
655
|
-
const doc = take(data, {
|
|
656
|
-
View: _json,
|
|
657
|
-
});
|
|
658
|
-
Object.assign(contents, doc);
|
|
659
|
-
return contents;
|
|
660
|
-
};
|
|
661
|
-
export const de_GetViewCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
-
return de_CommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const contents = map({
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
});
|
|
668
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
669
|
-
const doc = take(data, {
|
|
670
|
-
Tags: _json,
|
|
671
|
-
View: (_) => de_View(_, context),
|
|
672
|
-
});
|
|
673
|
-
Object.assign(contents, doc);
|
|
674
|
-
return contents;
|
|
675
|
-
};
|
|
676
|
-
export const de_ListIndexesCommand = async (output, context) => {
|
|
677
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return de_CommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
const contents = map({
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
});
|
|
683
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
684
|
-
const doc = take(data, {
|
|
685
|
-
Indexes: _json,
|
|
686
|
-
NextToken: __expectString,
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
export const de_ListIndexesForMembersCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const contents = map({
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
});
|
|
698
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
699
|
-
const doc = take(data, {
|
|
700
|
-
Indexes: _json,
|
|
701
|
-
NextToken: __expectString,
|
|
702
|
-
});
|
|
703
|
-
Object.assign(contents, doc);
|
|
704
|
-
return contents;
|
|
705
|
-
};
|
|
706
|
-
export const de_ListManagedViewsCommand = async (output, context) => {
|
|
707
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
const contents = map({
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
});
|
|
713
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
714
|
-
const doc = take(data, {
|
|
715
|
-
ManagedViews: _json,
|
|
716
|
-
NextToken: __expectString,
|
|
717
|
-
});
|
|
718
|
-
Object.assign(contents, doc);
|
|
719
|
-
return contents;
|
|
720
|
-
};
|
|
721
|
-
export const de_ListResourcesCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const contents = map({
|
|
726
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
-
});
|
|
728
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
729
|
-
const doc = take(data, {
|
|
730
|
-
NextToken: __expectString,
|
|
731
|
-
Resources: (_) => de_ResourceList(_, context),
|
|
732
|
-
ViewArn: __expectString,
|
|
733
|
-
});
|
|
734
|
-
Object.assign(contents, doc);
|
|
735
|
-
return contents;
|
|
736
|
-
};
|
|
737
|
-
export const de_ListServiceIndexesCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return de_CommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const contents = map({
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
});
|
|
744
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
-
const doc = take(data, {
|
|
746
|
-
Indexes: _json,
|
|
747
|
-
NextToken: __expectString,
|
|
748
|
-
});
|
|
749
|
-
Object.assign(contents, doc);
|
|
750
|
-
return contents;
|
|
751
|
-
};
|
|
752
|
-
export const de_ListServiceViewsCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const contents = map({
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
});
|
|
759
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
760
|
-
const doc = take(data, {
|
|
761
|
-
NextToken: __expectString,
|
|
762
|
-
ServiceViews: _json,
|
|
763
|
-
});
|
|
764
|
-
Object.assign(contents, doc);
|
|
765
|
-
return contents;
|
|
766
|
-
};
|
|
767
|
-
export const de_ListStreamingAccessForServicesCommand = async (output, context) => {
|
|
768
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return de_CommandError(output, context);
|
|
770
|
-
}
|
|
771
|
-
const contents = map({
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
});
|
|
774
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
775
|
-
const doc = take(data, {
|
|
776
|
-
NextToken: __expectString,
|
|
777
|
-
StreamingAccessForServices: (_) => de_StreamingAccessDetailsList(_, context),
|
|
778
|
-
});
|
|
779
|
-
Object.assign(contents, doc);
|
|
780
|
-
return contents;
|
|
781
|
-
};
|
|
782
|
-
export const de_ListSupportedResourceTypesCommand = async (output, context) => {
|
|
783
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
784
|
-
return de_CommandError(output, context);
|
|
785
|
-
}
|
|
786
|
-
const contents = map({
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
});
|
|
789
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
790
|
-
const doc = take(data, {
|
|
791
|
-
NextToken: __expectString,
|
|
792
|
-
ResourceTypes: _json,
|
|
793
|
-
});
|
|
794
|
-
Object.assign(contents, doc);
|
|
795
|
-
return contents;
|
|
796
|
-
};
|
|
797
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return de_CommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const contents = map({
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
});
|
|
804
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
805
|
-
const doc = take(data, {
|
|
806
|
-
Tags: _json,
|
|
807
|
-
});
|
|
808
|
-
Object.assign(contents, doc);
|
|
809
|
-
return contents;
|
|
810
|
-
};
|
|
811
|
-
export const de_ListViewsCommand = async (output, context) => {
|
|
812
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
-
return de_CommandError(output, context);
|
|
814
|
-
}
|
|
815
|
-
const contents = map({
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
});
|
|
818
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
819
|
-
const doc = take(data, {
|
|
820
|
-
NextToken: __expectString,
|
|
821
|
-
Views: _json,
|
|
822
|
-
});
|
|
823
|
-
Object.assign(contents, doc);
|
|
824
|
-
return contents;
|
|
825
|
-
};
|
|
826
|
-
export const de_SearchCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = map({
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
});
|
|
833
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
834
|
-
const doc = take(data, {
|
|
835
|
-
Count: _json,
|
|
836
|
-
NextToken: __expectString,
|
|
837
|
-
Resources: (_) => de_ResourceList(_, context),
|
|
838
|
-
ViewArn: __expectString,
|
|
839
|
-
});
|
|
840
|
-
Object.assign(contents, doc);
|
|
841
|
-
return contents;
|
|
842
|
-
};
|
|
843
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
844
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
-
return de_CommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const contents = map({
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
});
|
|
850
|
-
await collectBody(output.body, context);
|
|
851
|
-
return contents;
|
|
852
|
-
};
|
|
853
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = map({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
await collectBody(output.body, context);
|
|
861
|
-
return contents;
|
|
862
|
-
};
|
|
863
|
-
export const de_UpdateIndexTypeCommand = async (output, context) => {
|
|
864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
-
return de_CommandError(output, context);
|
|
866
|
-
}
|
|
867
|
-
const contents = map({
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
});
|
|
870
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
871
|
-
const doc = take(data, {
|
|
872
|
-
Arn: __expectString,
|
|
873
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
874
|
-
State: __expectString,
|
|
875
|
-
Type: __expectString,
|
|
876
|
-
});
|
|
877
|
-
Object.assign(contents, doc);
|
|
878
|
-
return contents;
|
|
879
|
-
};
|
|
880
|
-
export const de_UpdateViewCommand = async (output, context) => {
|
|
881
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
882
|
-
return de_CommandError(output, context);
|
|
883
|
-
}
|
|
884
|
-
const contents = map({
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
});
|
|
887
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
888
|
-
const doc = take(data, {
|
|
889
|
-
View: (_) => de_View(_, context),
|
|
890
|
-
});
|
|
891
|
-
Object.assign(contents, doc);
|
|
892
|
-
return contents;
|
|
893
|
-
};
|
|
894
|
-
const de_CommandError = async (output, context) => {
|
|
895
|
-
const parsedOutput = {
|
|
896
|
-
...output,
|
|
897
|
-
body: await parseErrorBody(output.body, context),
|
|
898
|
-
};
|
|
899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
-
switch (errorCode) {
|
|
901
|
-
case "AccessDeniedException":
|
|
902
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
903
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InternalServerException":
|
|
905
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ResourceNotFoundException":
|
|
908
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ThrottlingException":
|
|
911
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
912
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ValidationException":
|
|
914
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
-
case "UnauthorizedException":
|
|
917
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
918
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ConflictException":
|
|
920
|
-
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
921
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ServiceQuotaExceededException":
|
|
923
|
-
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
924
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
925
|
-
default:
|
|
926
|
-
const parsedBody = parsedOutput.body;
|
|
927
|
-
return throwDefaultError({
|
|
928
|
-
output,
|
|
929
|
-
parsedBody,
|
|
930
|
-
errorCode,
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
935
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
936
|
-
const contents = map({});
|
|
937
|
-
const data = parsedOutput.body;
|
|
938
|
-
const doc = take(data, {
|
|
939
|
-
Message: __expectString,
|
|
940
|
-
});
|
|
941
|
-
Object.assign(contents, doc);
|
|
942
|
-
const exception = new AccessDeniedException({
|
|
943
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
944
|
-
...contents,
|
|
945
|
-
});
|
|
946
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
947
|
-
};
|
|
948
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
949
|
-
const contents = map({});
|
|
950
|
-
const data = parsedOutput.body;
|
|
951
|
-
const doc = take(data, {
|
|
952
|
-
Message: __expectString,
|
|
953
|
-
});
|
|
954
|
-
Object.assign(contents, doc);
|
|
955
|
-
const exception = new ConflictException({
|
|
956
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
957
|
-
...contents,
|
|
958
|
-
});
|
|
959
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
960
|
-
};
|
|
961
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
962
|
-
const contents = map({});
|
|
963
|
-
const data = parsedOutput.body;
|
|
964
|
-
const doc = take(data, {
|
|
965
|
-
Message: __expectString,
|
|
966
|
-
});
|
|
967
|
-
Object.assign(contents, doc);
|
|
968
|
-
const exception = new InternalServerException({
|
|
969
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
970
|
-
...contents,
|
|
971
|
-
});
|
|
972
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
973
|
-
};
|
|
974
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
975
|
-
const contents = map({});
|
|
976
|
-
const data = parsedOutput.body;
|
|
977
|
-
const doc = take(data, {
|
|
978
|
-
Message: __expectString,
|
|
979
|
-
});
|
|
980
|
-
Object.assign(contents, doc);
|
|
981
|
-
const exception = new ResourceNotFoundException({
|
|
982
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
983
|
-
...contents,
|
|
984
|
-
});
|
|
985
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
986
|
-
};
|
|
987
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
988
|
-
const contents = map({});
|
|
989
|
-
const data = parsedOutput.body;
|
|
990
|
-
const doc = take(data, {
|
|
991
|
-
Message: __expectString,
|
|
992
|
-
Name: __expectString,
|
|
993
|
-
Value: __expectString,
|
|
994
|
-
});
|
|
995
|
-
Object.assign(contents, doc);
|
|
996
|
-
const exception = new ServiceQuotaExceededException({
|
|
997
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
998
|
-
...contents,
|
|
999
|
-
});
|
|
1000
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1001
|
-
};
|
|
1002
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1003
|
-
const contents = map({});
|
|
1004
|
-
const data = parsedOutput.body;
|
|
1005
|
-
const doc = take(data, {
|
|
1006
|
-
Message: __expectString,
|
|
1007
|
-
});
|
|
1008
|
-
Object.assign(contents, doc);
|
|
1009
|
-
const exception = new ThrottlingException({
|
|
1010
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1011
|
-
...contents,
|
|
1012
|
-
});
|
|
1013
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1014
|
-
};
|
|
1015
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1016
|
-
const contents = map({});
|
|
1017
|
-
const data = parsedOutput.body;
|
|
1018
|
-
const doc = take(data, {
|
|
1019
|
-
Message: __expectString,
|
|
1020
|
-
});
|
|
1021
|
-
Object.assign(contents, doc);
|
|
1022
|
-
const exception = new UnauthorizedException({
|
|
1023
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1024
|
-
...contents,
|
|
1025
|
-
});
|
|
1026
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1027
|
-
};
|
|
1028
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1029
|
-
const contents = map({});
|
|
1030
|
-
const data = parsedOutput.body;
|
|
1031
|
-
const doc = take(data, {
|
|
1032
|
-
FieldList: _json,
|
|
1033
|
-
Message: __expectString,
|
|
1034
|
-
});
|
|
1035
|
-
Object.assign(contents, doc);
|
|
1036
|
-
const exception = new ValidationException({
|
|
1037
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
|
-
...contents,
|
|
1039
|
-
});
|
|
1040
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1041
|
-
};
|
|
1042
|
-
const de_ManagedView = (output, context) => {
|
|
1043
|
-
return take(output, {
|
|
1044
|
-
Filters: _json,
|
|
1045
|
-
IncludedProperties: _json,
|
|
1046
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1047
|
-
ManagedViewArn: __expectString,
|
|
1048
|
-
ManagedViewName: __expectString,
|
|
1049
|
-
Owner: __expectString,
|
|
1050
|
-
ResourcePolicy: __expectString,
|
|
1051
|
-
Scope: __expectString,
|
|
1052
|
-
TrustedService: __expectString,
|
|
1053
|
-
Version: __expectString,
|
|
1054
|
-
});
|
|
1055
|
-
};
|
|
1056
|
-
const de_RegionStatus = (output, context) => {
|
|
1057
|
-
return take(output, {
|
|
1058
|
-
Index: _json,
|
|
1059
|
-
Region: __expectString,
|
|
1060
|
-
View: (_) => de_ViewStatus(_, context),
|
|
1061
|
-
});
|
|
1062
|
-
};
|
|
1063
|
-
const de_RegionStatusList = (output, context) => {
|
|
1064
|
-
const retVal = (output || [])
|
|
1065
|
-
.filter((e) => e != null)
|
|
1066
|
-
.map((entry) => {
|
|
1067
|
-
return de_RegionStatus(entry, context);
|
|
1068
|
-
});
|
|
1069
|
-
return retVal;
|
|
1070
|
-
};
|
|
1071
|
-
const de_Resource = (output, context) => {
|
|
1072
|
-
return take(output, {
|
|
1073
|
-
Arn: __expectString,
|
|
1074
|
-
LastReportedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1075
|
-
OwningAccountId: __expectString,
|
|
1076
|
-
Properties: (_) => de_ResourcePropertyList(_, context),
|
|
1077
|
-
Region: __expectString,
|
|
1078
|
-
ResourceType: __expectString,
|
|
1079
|
-
Service: __expectString,
|
|
1080
|
-
});
|
|
1081
|
-
};
|
|
1082
|
-
const de_ResourceList = (output, context) => {
|
|
1083
|
-
const retVal = (output || [])
|
|
1084
|
-
.filter((e) => e != null)
|
|
1085
|
-
.map((entry) => {
|
|
1086
|
-
return de_Resource(entry, context);
|
|
1087
|
-
});
|
|
1088
|
-
return retVal;
|
|
1089
|
-
};
|
|
1090
|
-
const de_ResourceProperty = (output, context) => {
|
|
1091
|
-
return take(output, {
|
|
1092
|
-
Data: (_) => de_Document(_, context),
|
|
1093
|
-
LastReportedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1094
|
-
Name: __expectString,
|
|
1095
|
-
});
|
|
1096
|
-
};
|
|
1097
|
-
const de_ResourcePropertyList = (output, context) => {
|
|
1098
|
-
const retVal = (output || [])
|
|
1099
|
-
.filter((e) => e != null)
|
|
1100
|
-
.map((entry) => {
|
|
1101
|
-
return de_ResourceProperty(entry, context);
|
|
1102
|
-
});
|
|
1103
|
-
return retVal;
|
|
1104
|
-
};
|
|
1105
|
-
const de_StreamingAccessDetails = (output, context) => {
|
|
1106
|
-
return take(output, {
|
|
1107
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1108
|
-
ServicePrincipal: __expectString,
|
|
1109
|
-
});
|
|
1110
|
-
};
|
|
1111
|
-
const de_StreamingAccessDetailsList = (output, context) => {
|
|
1112
|
-
const retVal = (output || [])
|
|
1113
|
-
.filter((e) => e != null)
|
|
1114
|
-
.map((entry) => {
|
|
1115
|
-
return de_StreamingAccessDetails(entry, context);
|
|
1116
|
-
});
|
|
1117
|
-
return retVal;
|
|
1118
|
-
};
|
|
1119
|
-
const de_View = (output, context) => {
|
|
1120
|
-
return take(output, {
|
|
1121
|
-
Filters: _json,
|
|
1122
|
-
IncludedProperties: _json,
|
|
1123
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1124
|
-
Owner: __expectString,
|
|
1125
|
-
Scope: __expectString,
|
|
1126
|
-
ViewArn: __expectString,
|
|
1127
|
-
});
|
|
1128
|
-
};
|
|
1129
|
-
const de_ViewList = (output, context) => {
|
|
1130
|
-
const retVal = (output || [])
|
|
1131
|
-
.filter((e) => e != null)
|
|
1132
|
-
.map((entry) => {
|
|
1133
|
-
return de_View(entry, context);
|
|
1134
|
-
});
|
|
1135
|
-
return retVal;
|
|
1136
|
-
};
|
|
1137
|
-
const de_ViewStatus = (output, context) => {
|
|
1138
|
-
return take(output, {
|
|
1139
|
-
ErrorDetails: _json,
|
|
1140
|
-
Status: __expectString,
|
|
1141
|
-
View: (_) => de_View(_, context),
|
|
1142
|
-
});
|
|
1143
|
-
};
|
|
1144
|
-
const de_Document = (output, context) => {
|
|
1145
|
-
return output;
|
|
1146
|
-
};
|
|
1147
|
-
const deserializeMetadata = (output) => ({
|
|
1148
|
-
httpStatusCode: output.statusCode,
|
|
1149
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1150
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1151
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1152
|
-
});
|
|
1153
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1154
|
-
const _tK = "tagKeys";
|