@aws-sdk/client-resource-explorer-2 3.476.0 → 3.478.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.
@@ -1,81 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateViewCommand = exports.de_UpdateIndexTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchCommand = exports.de_ListViewsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSupportedResourceTypesCommand = exports.de_ListIndexesForMembersCommand = exports.de_ListIndexesCommand = exports.de_GetViewCommand = exports.de_GetIndexCommand = exports.de_GetDefaultViewCommand = exports.de_GetAccountLevelServiceConfigurationCommand = exports.de_DisassociateDefaultViewCommand = exports.de_DeleteViewCommand = exports.de_DeleteIndexCommand = exports.de_CreateViewCommand = exports.de_CreateIndexCommand = exports.de_BatchGetViewCommand = exports.de_AssociateDefaultViewCommand = exports.se_UpdateViewCommand = exports.se_UpdateIndexTypeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchCommand = exports.se_ListViewsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSupportedResourceTypesCommand = exports.se_ListIndexesForMembersCommand = exports.se_ListIndexesCommand = exports.se_GetViewCommand = exports.se_GetIndexCommand = exports.se_GetDefaultViewCommand = exports.se_GetAccountLevelServiceConfigurationCommand = exports.se_DisassociateDefaultViewCommand = exports.se_DeleteViewCommand = exports.se_DeleteIndexCommand = exports.se_CreateViewCommand = exports.se_CreateIndexCommand = exports.se_BatchGetViewCommand = exports.se_AssociateDefaultViewCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const ResourceExplorer2ServiceException_1 = require("../models/ResourceExplorer2ServiceException");
9
9
  const se_AssociateDefaultViewCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateDefaultView";
14
+ b.bp("/AssociateDefaultView");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  ViewArn: [],
18
18
  }));
19
- return new protocol_http_1.HttpRequest({
20
- protocol,
21
- hostname,
22
- port,
23
- method: "POST",
24
- headers,
25
- path: resolvedPath,
26
- body,
27
- });
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
28
21
  };
29
22
  exports.se_AssociateDefaultViewCommand = se_AssociateDefaultViewCommand;
30
23
  const se_BatchGetViewCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = (0, core_1.requestBuilder)(input, context);
32
25
  const headers = {
33
26
  "content-type": "application/json",
34
27
  };
35
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetView";
28
+ b.bp("/BatchGetView");
36
29
  let body;
37
30
  body = JSON.stringify((0, smithy_client_1.take)(input, {
38
31
  ViewArns: (_) => (0, smithy_client_1._json)(_),
39
32
  }));
40
- return new protocol_http_1.HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "POST",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
33
+ b.m("POST").h(headers).b(body);
34
+ return b.build();
49
35
  };
50
36
  exports.se_BatchGetViewCommand = se_BatchGetViewCommand;
51
37
  const se_CreateIndexCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = (0, core_1.requestBuilder)(input, context);
53
39
  const headers = {
54
40
  "content-type": "application/json",
55
41
  };
56
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateIndex";
42
+ b.bp("/CreateIndex");
57
43
  let body;
58
44
  body = JSON.stringify((0, smithy_client_1.take)(input, {
59
45
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
60
46
  Tags: (_) => (0, smithy_client_1._json)(_),
61
47
  }));
62
- return new protocol_http_1.HttpRequest({
63
- protocol,
64
- hostname,
65
- port,
66
- method: "POST",
67
- headers,
68
- path: resolvedPath,
69
- body,
70
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
71
50
  };
72
51
  exports.se_CreateIndexCommand = se_CreateIndexCommand;
73
52
  const se_CreateViewCommand = async (input, context) => {
74
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
75
54
  const headers = {
76
55
  "content-type": "application/json",
77
56
  };
78
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateView";
57
+ b.bp("/CreateView");
79
58
  let body;
80
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
81
60
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -85,162 +64,106 @@ const se_CreateViewCommand = async (input, context) => {
85
64
  Tags: (_) => (0, smithy_client_1._json)(_),
86
65
  ViewName: [],
87
66
  }));
88
- return new protocol_http_1.HttpRequest({
89
- protocol,
90
- hostname,
91
- port,
92
- method: "POST",
93
- headers,
94
- path: resolvedPath,
95
- body,
96
- });
67
+ b.m("POST").h(headers).b(body);
68
+ return b.build();
97
69
  };
98
70
  exports.se_CreateViewCommand = se_CreateViewCommand;
99
71
  const se_DeleteIndexCommand = async (input, context) => {
100
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
+ const b = (0, core_1.requestBuilder)(input, context);
101
73
  const headers = {
102
74
  "content-type": "application/json",
103
75
  };
104
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteIndex";
76
+ b.bp("/DeleteIndex");
105
77
  let body;
106
78
  body = JSON.stringify((0, smithy_client_1.take)(input, {
107
79
  Arn: [],
108
80
  }));
109
- return new protocol_http_1.HttpRequest({
110
- protocol,
111
- hostname,
112
- port,
113
- method: "POST",
114
- headers,
115
- path: resolvedPath,
116
- body,
117
- });
81
+ b.m("POST").h(headers).b(body);
82
+ return b.build();
118
83
  };
119
84
  exports.se_DeleteIndexCommand = se_DeleteIndexCommand;
120
85
  const se_DeleteViewCommand = async (input, context) => {
121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = (0, core_1.requestBuilder)(input, context);
122
87
  const headers = {
123
88
  "content-type": "application/json",
124
89
  };
125
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteView";
90
+ b.bp("/DeleteView");
126
91
  let body;
127
92
  body = JSON.stringify((0, smithy_client_1.take)(input, {
128
93
  ViewArn: [],
129
94
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
95
+ b.m("POST").h(headers).b(body);
96
+ return b.build();
139
97
  };
140
98
  exports.se_DeleteViewCommand = se_DeleteViewCommand;
141
99
  const se_DisassociateDefaultViewCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = (0, core_1.requestBuilder)(input, context);
143
101
  const headers = {
144
102
  "content-type": "application/json",
145
103
  };
146
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateDefaultView";
104
+ b.bp("/DisassociateDefaultView");
147
105
  let body;
148
106
  body = "";
149
- return new protocol_http_1.HttpRequest({
150
- protocol,
151
- hostname,
152
- port,
153
- method: "POST",
154
- headers,
155
- path: resolvedPath,
156
- body,
157
- });
107
+ b.m("POST").h(headers).b(body);
108
+ return b.build();
158
109
  };
159
110
  exports.se_DisassociateDefaultViewCommand = se_DisassociateDefaultViewCommand;
160
111
  const se_GetAccountLevelServiceConfigurationCommand = async (input, context) => {
161
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = (0, core_1.requestBuilder)(input, context);
162
113
  const headers = {
163
114
  "content-type": "application/json",
164
115
  };
165
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetAccountLevelServiceConfiguration";
116
+ b.bp("/GetAccountLevelServiceConfiguration");
166
117
  let body;
167
118
  body = "";
168
- return new protocol_http_1.HttpRequest({
169
- protocol,
170
- hostname,
171
- port,
172
- method: "POST",
173
- headers,
174
- path: resolvedPath,
175
- body,
176
- });
119
+ b.m("POST").h(headers).b(body);
120
+ return b.build();
177
121
  };
178
122
  exports.se_GetAccountLevelServiceConfigurationCommand = se_GetAccountLevelServiceConfigurationCommand;
179
123
  const se_GetDefaultViewCommand = async (input, context) => {
180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = (0, core_1.requestBuilder)(input, context);
181
125
  const headers = {
182
126
  "content-type": "application/json",
183
127
  };
184
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDefaultView";
128
+ b.bp("/GetDefaultView");
185
129
  let body;
186
130
  body = "";
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
131
+ b.m("POST").h(headers).b(body);
132
+ return b.build();
196
133
  };
197
134
  exports.se_GetDefaultViewCommand = se_GetDefaultViewCommand;
198
135
  const se_GetIndexCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = (0, core_1.requestBuilder)(input, context);
200
137
  const headers = {
201
138
  "content-type": "application/json",
202
139
  };
203
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetIndex";
140
+ b.bp("/GetIndex");
204
141
  let body;
205
142
  body = "";
206
- return new protocol_http_1.HttpRequest({
207
- protocol,
208
- hostname,
209
- port,
210
- method: "POST",
211
- headers,
212
- path: resolvedPath,
213
- body,
214
- });
143
+ b.m("POST").h(headers).b(body);
144
+ return b.build();
215
145
  };
216
146
  exports.se_GetIndexCommand = se_GetIndexCommand;
217
147
  const se_GetViewCommand = async (input, context) => {
218
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_1.requestBuilder)(input, context);
219
149
  const headers = {
220
150
  "content-type": "application/json",
221
151
  };
222
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetView";
152
+ b.bp("/GetView");
223
153
  let body;
224
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
225
155
  ViewArn: [],
226
156
  }));
227
- return new protocol_http_1.HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "POST",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
157
+ b.m("POST").h(headers).b(body);
158
+ return b.build();
236
159
  };
237
160
  exports.se_GetViewCommand = se_GetViewCommand;
238
161
  const se_ListIndexesCommand = async (input, context) => {
239
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_1.requestBuilder)(input, context);
240
163
  const headers = {
241
164
  "content-type": "application/json",
242
165
  };
243
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexes";
166
+ b.bp("/ListIndexes");
244
167
  let body;
245
168
  body = JSON.stringify((0, smithy_client_1.take)(input, {
246
169
  MaxResults: [],
@@ -248,107 +171,72 @@ const se_ListIndexesCommand = async (input, context) => {
248
171
  Regions: (_) => (0, smithy_client_1._json)(_),
249
172
  Type: [],
250
173
  }));
251
- return new protocol_http_1.HttpRequest({
252
- protocol,
253
- hostname,
254
- port,
255
- method: "POST",
256
- headers,
257
- path: resolvedPath,
258
- body,
259
- });
174
+ b.m("POST").h(headers).b(body);
175
+ return b.build();
260
176
  };
261
177
  exports.se_ListIndexesCommand = se_ListIndexesCommand;
262
178
  const se_ListIndexesForMembersCommand = async (input, context) => {
263
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = (0, core_1.requestBuilder)(input, context);
264
180
  const headers = {
265
181
  "content-type": "application/json",
266
182
  };
267
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexesForMembers";
183
+ b.bp("/ListIndexesForMembers");
268
184
  let body;
269
185
  body = JSON.stringify((0, smithy_client_1.take)(input, {
270
186
  AccountIdList: (_) => (0, smithy_client_1._json)(_),
271
187
  MaxResults: [],
272
188
  NextToken: [],
273
189
  }));
274
- return new protocol_http_1.HttpRequest({
275
- protocol,
276
- hostname,
277
- port,
278
- method: "POST",
279
- headers,
280
- path: resolvedPath,
281
- body,
282
- });
190
+ b.m("POST").h(headers).b(body);
191
+ return b.build();
283
192
  };
284
193
  exports.se_ListIndexesForMembersCommand = se_ListIndexesForMembersCommand;
285
194
  const se_ListSupportedResourceTypesCommand = async (input, context) => {
286
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = (0, core_1.requestBuilder)(input, context);
287
196
  const headers = {
288
197
  "content-type": "application/json",
289
198
  };
290
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSupportedResourceTypes";
199
+ b.bp("/ListSupportedResourceTypes");
291
200
  let body;
292
201
  body = JSON.stringify((0, smithy_client_1.take)(input, {
293
202
  MaxResults: [],
294
203
  NextToken: [],
295
204
  }));
296
- return new protocol_http_1.HttpRequest({
297
- protocol,
298
- hostname,
299
- port,
300
- method: "POST",
301
- headers,
302
- path: resolvedPath,
303
- body,
304
- });
205
+ b.m("POST").h(headers).b(body);
206
+ return b.build();
305
207
  };
306
208
  exports.se_ListSupportedResourceTypesCommand = se_ListSupportedResourceTypesCommand;
307
209
  const se_ListTagsForResourceCommand = async (input, context) => {
308
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
309
211
  const headers = {};
310
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
311
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
212
+ b.bp("/tags/{resourceArn}");
213
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
312
214
  let body;
313
- return new protocol_http_1.HttpRequest({
314
- protocol,
315
- hostname,
316
- port,
317
- method: "GET",
318
- headers,
319
- path: resolvedPath,
320
- body,
321
- });
215
+ b.m("GET").h(headers).b(body);
216
+ return b.build();
322
217
  };
323
218
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
324
219
  const se_ListViewsCommand = async (input, context) => {
325
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const b = (0, core_1.requestBuilder)(input, context);
326
221
  const headers = {
327
222
  "content-type": "application/json",
328
223
  };
329
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListViews";
224
+ b.bp("/ListViews");
330
225
  let body;
331
226
  body = JSON.stringify((0, smithy_client_1.take)(input, {
332
227
  MaxResults: [],
333
228
  NextToken: [],
334
229
  }));
335
- return new protocol_http_1.HttpRequest({
336
- protocol,
337
- hostname,
338
- port,
339
- method: "POST",
340
- headers,
341
- path: resolvedPath,
342
- body,
343
- });
230
+ b.m("POST").h(headers).b(body);
231
+ return b.build();
344
232
  };
345
233
  exports.se_ListViewsCommand = se_ListViewsCommand;
346
234
  const se_SearchCommand = async (input, context) => {
347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const b = (0, core_1.requestBuilder)(input, context);
348
236
  const headers = {
349
237
  "content-type": "application/json",
350
238
  };
351
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Search";
239
+ b.bp("/Search");
352
240
  let body;
353
241
  body = JSON.stringify((0, smithy_client_1.take)(input, {
354
242
  MaxResults: [],
@@ -356,106 +244,70 @@ const se_SearchCommand = async (input, context) => {
356
244
  QueryString: [],
357
245
  ViewArn: [],
358
246
  }));
359
- return new protocol_http_1.HttpRequest({
360
- protocol,
361
- hostname,
362
- port,
363
- method: "POST",
364
- headers,
365
- path: resolvedPath,
366
- body,
367
- });
247
+ b.m("POST").h(headers).b(body);
248
+ return b.build();
368
249
  };
369
250
  exports.se_SearchCommand = se_SearchCommand;
370
251
  const se_TagResourceCommand = async (input, context) => {
371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
+ const b = (0, core_1.requestBuilder)(input, context);
372
253
  const headers = {
373
254
  "content-type": "application/json",
374
255
  };
375
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
376
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
256
+ b.bp("/tags/{resourceArn}");
257
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
377
258
  let body;
378
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
379
260
  Tags: (_) => (0, smithy_client_1._json)(_),
380
261
  }));
381
- return new protocol_http_1.HttpRequest({
382
- protocol,
383
- hostname,
384
- port,
385
- method: "POST",
386
- headers,
387
- path: resolvedPath,
388
- body,
389
- });
262
+ b.m("POST").h(headers).b(body);
263
+ return b.build();
390
264
  };
391
265
  exports.se_TagResourceCommand = se_TagResourceCommand;
392
266
  const se_UntagResourceCommand = async (input, context) => {
393
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = (0, core_1.requestBuilder)(input, context);
394
268
  const headers = {};
395
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
396
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
269
+ b.bp("/tags/{resourceArn}");
270
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
397
271
  const query = (0, smithy_client_1.map)({
398
- tagKeys: [
272
+ [_tK]: [
399
273
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
400
- () => (input.tagKeys || []).map((_entry) => _entry),
274
+ () => (input[_tK] || []).map((_entry) => _entry),
401
275
  ],
402
276
  });
403
277
  let body;
404
- return new protocol_http_1.HttpRequest({
405
- protocol,
406
- hostname,
407
- port,
408
- method: "DELETE",
409
- headers,
410
- path: resolvedPath,
411
- query,
412
- body,
413
- });
278
+ b.m("DELETE").h(headers).q(query).b(body);
279
+ return b.build();
414
280
  };
415
281
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
416
282
  const se_UpdateIndexTypeCommand = async (input, context) => {
417
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
+ const b = (0, core_1.requestBuilder)(input, context);
418
284
  const headers = {
419
285
  "content-type": "application/json",
420
286
  };
421
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateIndexType";
287
+ b.bp("/UpdateIndexType");
422
288
  let body;
423
289
  body = JSON.stringify((0, smithy_client_1.take)(input, {
424
290
  Arn: [],
425
291
  Type: [],
426
292
  }));
427
- return new protocol_http_1.HttpRequest({
428
- protocol,
429
- hostname,
430
- port,
431
- method: "POST",
432
- headers,
433
- path: resolvedPath,
434
- body,
435
- });
293
+ b.m("POST").h(headers).b(body);
294
+ return b.build();
436
295
  };
437
296
  exports.se_UpdateIndexTypeCommand = se_UpdateIndexTypeCommand;
438
297
  const se_UpdateViewCommand = async (input, context) => {
439
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
+ const b = (0, core_1.requestBuilder)(input, context);
440
299
  const headers = {
441
300
  "content-type": "application/json",
442
301
  };
443
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateView";
302
+ b.bp("/UpdateView");
444
303
  let body;
445
304
  body = JSON.stringify((0, smithy_client_1.take)(input, {
446
305
  Filters: (_) => (0, smithy_client_1._json)(_),
447
306
  IncludedProperties: (_) => (0, smithy_client_1._json)(_),
448
307
  ViewArn: [],
449
308
  }));
450
- return new protocol_http_1.HttpRequest({
451
- protocol,
452
- hostname,
453
- port,
454
- method: "POST",
455
- headers,
456
- path: resolvedPath,
457
- body,
458
- });
309
+ b.m("POST").h(headers).b(body);
310
+ return b.build();
459
311
  };
460
312
  exports.se_UpdateViewCommand = se_UpdateViewCommand;
461
313
  const de_AssociateDefaultViewCommand = async (output, context) => {
@@ -1628,6 +1480,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1628
1480
  value !== "" &&
1629
1481
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1630
1482
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1483
+ const _tK = "tagKeys";
1631
1484
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1632
1485
  if (encoded.length) {
1633
1486
  return JSON.parse(encoded);
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIndexesForMembersCommand, } from "../commands/ListIndexesForMembersCommand";
2
3
  import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIndexesForMembersCommand(input), ...args);
5
- };
6
- export async function* paginateListIndexesForMembers(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof ResourceExplorer2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListIndexesForMembers = createPaginator(ResourceExplorer2Client, ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIndexesCommand } from "../commands/ListIndexesCommand";
2
3
  import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIndexesCommand(input), ...args);
5
- };
6
- export async function* paginateListIndexes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof ResourceExplorer2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListIndexes = createPaginator(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSupportedResourceTypesCommand, } from "../commands/ListSupportedResourceTypesCommand";
2
3
  import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSupportedResourceTypesCommand(input), ...args);
5
- };
6
- export async function* paginateListSupportedResourceTypes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof ResourceExplorer2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSupportedResourceTypes = createPaginator(ResourceExplorer2Client, ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");