@aws-sdk/client-resiliencehub 3.474.0 → 3.477.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,56 +1,42 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { ResiliencehubServiceException as __BaseException } from "../models/ResiliencehubServiceException";
6
6
  export const se_AddDraftAppVersionResourceMappingsCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/add-draft-app-version-resource-mappings";
11
+ b.bp("/add-draft-app-version-resource-mappings");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  appArn: [],
15
15
  resourceMappings: (_) => _json(_),
16
16
  }));
17
- return new __HttpRequest({
18
- protocol,
19
- hostname,
20
- port,
21
- method: "POST",
22
- headers,
23
- path: resolvedPath,
24
- body,
25
- });
17
+ b.m("POST").h(headers).b(body);
18
+ return b.build();
26
19
  };
27
20
  export const se_BatchUpdateRecommendationStatusCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
21
+ const b = rb(input, context);
29
22
  const headers = {
30
23
  "content-type": "application/json",
31
24
  };
32
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-update-recommendation-status";
25
+ b.bp("/batch-update-recommendation-status");
33
26
  let body;
34
27
  body = JSON.stringify(take(input, {
35
28
  appArn: [],
36
29
  requestEntries: (_) => _json(_),
37
30
  }));
38
- return new __HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "POST",
43
- headers,
44
- path: resolvedPath,
45
- body,
46
- });
31
+ b.m("POST").h(headers).b(body);
32
+ return b.build();
47
33
  };
48
34
  export const se_CreateAppCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
50
36
  const headers = {
51
37
  "content-type": "application/json",
52
38
  };
53
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app";
39
+ b.bp("/create-app");
54
40
  let body;
55
41
  body = JSON.stringify(take(input, {
56
42
  assessmentSchedule: [],
@@ -62,22 +48,15 @@ export const se_CreateAppCommand = async (input, context) => {
62
48
  policyArn: [],
63
49
  tags: (_) => _json(_),
64
50
  }));
65
- return new __HttpRequest({
66
- protocol,
67
- hostname,
68
- port,
69
- method: "POST",
70
- headers,
71
- path: resolvedPath,
72
- body,
73
- });
51
+ b.m("POST").h(headers).b(body);
52
+ return b.build();
74
53
  };
75
54
  export const se_CreateAppVersionAppComponentCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = rb(input, context);
77
56
  const headers = {
78
57
  "content-type": "application/json",
79
58
  };
80
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component";
59
+ b.bp("/create-app-version-app-component");
81
60
  let body;
82
61
  body = JSON.stringify(take(input, {
83
62
  additionalInfo: (_) => _json(_),
@@ -87,22 +66,15 @@ export const se_CreateAppVersionAppComponentCommand = async (input, context) =>
87
66
  name: [],
88
67
  type: [],
89
68
  }));
90
- return new __HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
69
+ b.m("POST").h(headers).b(body);
70
+ return b.build();
99
71
  };
100
72
  export const se_CreateAppVersionResourceCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
102
74
  const headers = {
103
75
  "content-type": "application/json",
104
76
  };
105
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource";
77
+ b.bp("/create-app-version-resource");
106
78
  let body;
107
79
  body = JSON.stringify(take(input, {
108
80
  additionalInfo: (_) => _json(_),
@@ -116,22 +88,15 @@ export const se_CreateAppVersionResourceCommand = async (input, context) => {
116
88
  resourceName: [],
117
89
  resourceType: [],
118
90
  }));
119
- return new __HttpRequest({
120
- protocol,
121
- hostname,
122
- port,
123
- method: "POST",
124
- headers,
125
- path: resolvedPath,
126
- body,
127
- });
91
+ b.m("POST").h(headers).b(body);
92
+ return b.build();
128
93
  };
129
94
  export const se_CreateRecommendationTemplateCommand = async (input, context) => {
130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = rb(input, context);
131
96
  const headers = {
132
97
  "content-type": "application/json",
133
98
  };
134
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-recommendation-template";
99
+ b.bp("/create-recommendation-template");
135
100
  let body;
136
101
  body = JSON.stringify(take(input, {
137
102
  assessmentArn: [],
@@ -143,22 +108,15 @@ export const se_CreateRecommendationTemplateCommand = async (input, context) =>
143
108
  recommendationTypes: (_) => _json(_),
144
109
  tags: (_) => _json(_),
145
110
  }));
146
- return new __HttpRequest({
147
- protocol,
148
- hostname,
149
- port,
150
- method: "POST",
151
- headers,
152
- path: resolvedPath,
153
- body,
154
- });
111
+ b.m("POST").h(headers).b(body);
112
+ return b.build();
155
113
  };
156
114
  export const se_CreateResiliencyPolicyCommand = async (input, context) => {
157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = rb(input, context);
158
116
  const headers = {
159
117
  "content-type": "application/json",
160
118
  };
161
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-resiliency-policy";
119
+ b.bp("/create-resiliency-policy");
162
120
  let body;
163
121
  body = JSON.stringify(take(input, {
164
122
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -169,65 +127,44 @@ export const se_CreateResiliencyPolicyCommand = async (input, context) => {
169
127
  tags: (_) => _json(_),
170
128
  tier: [],
171
129
  }));
172
- return new __HttpRequest({
173
- protocol,
174
- hostname,
175
- port,
176
- method: "POST",
177
- headers,
178
- path: resolvedPath,
179
- body,
180
- });
130
+ b.m("POST").h(headers).b(body);
131
+ return b.build();
181
132
  };
182
133
  export const se_DeleteAppCommand = async (input, context) => {
183
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
+ const b = rb(input, context);
184
135
  const headers = {
185
136
  "content-type": "application/json",
186
137
  };
187
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app";
138
+ b.bp("/delete-app");
188
139
  let body;
189
140
  body = JSON.stringify(take(input, {
190
141
  appArn: [],
191
142
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
192
143
  forceDelete: [],
193
144
  }));
194
- return new __HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "POST",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
145
+ b.m("POST").h(headers).b(body);
146
+ return b.build();
203
147
  };
204
148
  export const se_DeleteAppAssessmentCommand = async (input, context) => {
205
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = rb(input, context);
206
150
  const headers = {
207
151
  "content-type": "application/json",
208
152
  };
209
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-assessment";
153
+ b.bp("/delete-app-assessment");
210
154
  let body;
211
155
  body = JSON.stringify(take(input, {
212
156
  assessmentArn: [],
213
157
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
214
158
  }));
215
- return new __HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "POST",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
224
161
  };
225
162
  export const se_DeleteAppInputSourceCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = rb(input, context);
227
164
  const headers = {
228
165
  "content-type": "application/json",
229
166
  };
230
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-input-source";
167
+ b.bp("/delete-app-input-source");
231
168
  let body;
232
169
  body = JSON.stringify(take(input, {
233
170
  appArn: [],
@@ -236,44 +173,30 @@ export const se_DeleteAppInputSourceCommand = async (input, context) => {
236
173
  sourceArn: [],
237
174
  terraformSource: (_) => _json(_),
238
175
  }));
239
- return new __HttpRequest({
240
- protocol,
241
- hostname,
242
- port,
243
- method: "POST",
244
- headers,
245
- path: resolvedPath,
246
- body,
247
- });
176
+ b.m("POST").h(headers).b(body);
177
+ return b.build();
248
178
  };
249
179
  export const se_DeleteAppVersionAppComponentCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
+ const b = rb(input, context);
251
181
  const headers = {
252
182
  "content-type": "application/json",
253
183
  };
254
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-app-component";
184
+ b.bp("/delete-app-version-app-component");
255
185
  let body;
256
186
  body = JSON.stringify(take(input, {
257
187
  appArn: [],
258
188
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
259
189
  id: [],
260
190
  }));
261
- return new __HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "POST",
266
- headers,
267
- path: resolvedPath,
268
- body,
269
- });
191
+ b.m("POST").h(headers).b(body);
192
+ return b.build();
270
193
  };
271
194
  export const se_DeleteAppVersionResourceCommand = async (input, context) => {
272
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = rb(input, context);
273
196
  const headers = {
274
197
  "content-type": "application/json",
275
198
  };
276
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-resource";
199
+ b.bp("/delete-app-version-resource");
277
200
  let body;
278
201
  body = JSON.stringify(take(input, {
279
202
  appArn: [],
@@ -284,147 +207,98 @@ export const se_DeleteAppVersionResourceCommand = async (input, context) => {
284
207
  physicalResourceId: [],
285
208
  resourceName: [],
286
209
  }));
287
- return new __HttpRequest({
288
- protocol,
289
- hostname,
290
- port,
291
- method: "POST",
292
- headers,
293
- path: resolvedPath,
294
- body,
295
- });
210
+ b.m("POST").h(headers).b(body);
211
+ return b.build();
296
212
  };
297
213
  export const se_DeleteRecommendationTemplateCommand = async (input, context) => {
298
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = rb(input, context);
299
215
  const headers = {
300
216
  "content-type": "application/json",
301
217
  };
302
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-recommendation-template";
218
+ b.bp("/delete-recommendation-template");
303
219
  let body;
304
220
  body = JSON.stringify(take(input, {
305
221
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
306
222
  recommendationTemplateArn: [],
307
223
  }));
308
- return new __HttpRequest({
309
- protocol,
310
- hostname,
311
- port,
312
- method: "POST",
313
- headers,
314
- path: resolvedPath,
315
- body,
316
- });
224
+ b.m("POST").h(headers).b(body);
225
+ return b.build();
317
226
  };
318
227
  export const se_DeleteResiliencyPolicyCommand = async (input, context) => {
319
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
+ const b = rb(input, context);
320
229
  const headers = {
321
230
  "content-type": "application/json",
322
231
  };
323
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resiliency-policy";
232
+ b.bp("/delete-resiliency-policy");
324
233
  let body;
325
234
  body = JSON.stringify(take(input, {
326
235
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
327
236
  policyArn: [],
328
237
  }));
329
- return new __HttpRequest({
330
- protocol,
331
- hostname,
332
- port,
333
- method: "POST",
334
- headers,
335
- path: resolvedPath,
336
- body,
337
- });
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
338
240
  };
339
241
  export const se_DescribeAppCommand = async (input, context) => {
340
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const b = rb(input, context);
341
243
  const headers = {
342
244
  "content-type": "application/json",
343
245
  };
344
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app";
246
+ b.bp("/describe-app");
345
247
  let body;
346
248
  body = JSON.stringify(take(input, {
347
249
  appArn: [],
348
250
  }));
349
- return new __HttpRequest({
350
- protocol,
351
- hostname,
352
- port,
353
- method: "POST",
354
- headers,
355
- path: resolvedPath,
356
- body,
357
- });
251
+ b.m("POST").h(headers).b(body);
252
+ return b.build();
358
253
  };
359
254
  export const se_DescribeAppAssessmentCommand = async (input, context) => {
360
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
+ const b = rb(input, context);
361
256
  const headers = {
362
257
  "content-type": "application/json",
363
258
  };
364
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-assessment";
259
+ b.bp("/describe-app-assessment");
365
260
  let body;
366
261
  body = JSON.stringify(take(input, {
367
262
  assessmentArn: [],
368
263
  }));
369
- return new __HttpRequest({
370
- protocol,
371
- hostname,
372
- port,
373
- method: "POST",
374
- headers,
375
- path: resolvedPath,
376
- body,
377
- });
264
+ b.m("POST").h(headers).b(body);
265
+ return b.build();
378
266
  };
379
267
  export const se_DescribeAppVersionCommand = async (input, context) => {
380
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = rb(input, context);
381
269
  const headers = {
382
270
  "content-type": "application/json",
383
271
  };
384
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version";
272
+ b.bp("/describe-app-version");
385
273
  let body;
386
274
  body = JSON.stringify(take(input, {
387
275
  appArn: [],
388
276
  appVersion: [],
389
277
  }));
390
- return new __HttpRequest({
391
- protocol,
392
- hostname,
393
- port,
394
- method: "POST",
395
- headers,
396
- path: resolvedPath,
397
- body,
398
- });
278
+ b.m("POST").h(headers).b(body);
279
+ return b.build();
399
280
  };
400
281
  export const se_DescribeAppVersionAppComponentCommand = async (input, context) => {
401
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
+ const b = rb(input, context);
402
283
  const headers = {
403
284
  "content-type": "application/json",
404
285
  };
405
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-app-component";
286
+ b.bp("/describe-app-version-app-component");
406
287
  let body;
407
288
  body = JSON.stringify(take(input, {
408
289
  appArn: [],
409
290
  appVersion: [],
410
291
  id: [],
411
292
  }));
412
- return new __HttpRequest({
413
- protocol,
414
- hostname,
415
- port,
416
- method: "POST",
417
- headers,
418
- path: resolvedPath,
419
- body,
420
- });
293
+ b.m("POST").h(headers).b(body);
294
+ return b.build();
421
295
  };
422
296
  export const se_DescribeAppVersionResourceCommand = async (input, context) => {
423
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
297
+ const b = rb(input, context);
424
298
  const headers = {
425
299
  "content-type": "application/json",
426
300
  };
427
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-resource";
301
+ b.bp("/describe-app-version-resource");
428
302
  let body;
429
303
  body = JSON.stringify(take(input, {
430
304
  appArn: [],
@@ -435,107 +309,70 @@ export const se_DescribeAppVersionResourceCommand = async (input, context) => {
435
309
  physicalResourceId: [],
436
310
  resourceName: [],
437
311
  }));
438
- return new __HttpRequest({
439
- protocol,
440
- hostname,
441
- port,
442
- method: "POST",
443
- headers,
444
- path: resolvedPath,
445
- body,
446
- });
312
+ b.m("POST").h(headers).b(body);
313
+ return b.build();
447
314
  };
448
315
  export const se_DescribeAppVersionResourcesResolutionStatusCommand = async (input, context) => {
449
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
316
+ const b = rb(input, context);
450
317
  const headers = {
451
318
  "content-type": "application/json",
452
319
  };
453
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
454
- "/describe-app-version-resources-resolution-status";
320
+ b.bp("/describe-app-version-resources-resolution-status");
455
321
  let body;
456
322
  body = JSON.stringify(take(input, {
457
323
  appArn: [],
458
324
  appVersion: [],
459
325
  resolutionId: [],
460
326
  }));
461
- return new __HttpRequest({
462
- protocol,
463
- hostname,
464
- port,
465
- method: "POST",
466
- headers,
467
- path: resolvedPath,
468
- body,
469
- });
327
+ b.m("POST").h(headers).b(body);
328
+ return b.build();
470
329
  };
471
330
  export const se_DescribeAppVersionTemplateCommand = async (input, context) => {
472
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
+ const b = rb(input, context);
473
332
  const headers = {
474
333
  "content-type": "application/json",
475
334
  };
476
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-template";
335
+ b.bp("/describe-app-version-template");
477
336
  let body;
478
337
  body = JSON.stringify(take(input, {
479
338
  appArn: [],
480
339
  appVersion: [],
481
340
  }));
482
- return new __HttpRequest({
483
- protocol,
484
- hostname,
485
- port,
486
- method: "POST",
487
- headers,
488
- path: resolvedPath,
489
- body,
490
- });
341
+ b.m("POST").h(headers).b(body);
342
+ return b.build();
491
343
  };
492
344
  export const se_DescribeDraftAppVersionResourcesImportStatusCommand = async (input, context) => {
493
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
+ const b = rb(input, context);
494
346
  const headers = {
495
347
  "content-type": "application/json",
496
348
  };
497
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
498
- "/describe-draft-app-version-resources-import-status";
349
+ b.bp("/describe-draft-app-version-resources-import-status");
499
350
  let body;
500
351
  body = JSON.stringify(take(input, {
501
352
  appArn: [],
502
353
  }));
503
- return new __HttpRequest({
504
- protocol,
505
- hostname,
506
- port,
507
- method: "POST",
508
- headers,
509
- path: resolvedPath,
510
- body,
511
- });
354
+ b.m("POST").h(headers).b(body);
355
+ return b.build();
512
356
  };
513
357
  export const se_DescribeResiliencyPolicyCommand = async (input, context) => {
514
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
+ const b = rb(input, context);
515
359
  const headers = {
516
360
  "content-type": "application/json",
517
361
  };
518
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-resiliency-policy";
362
+ b.bp("/describe-resiliency-policy");
519
363
  let body;
520
364
  body = JSON.stringify(take(input, {
521
365
  policyArn: [],
522
366
  }));
523
- return new __HttpRequest({
524
- protocol,
525
- hostname,
526
- port,
527
- method: "POST",
528
- headers,
529
- path: resolvedPath,
530
- body,
531
- });
367
+ b.m("POST").h(headers).b(body);
368
+ return b.build();
532
369
  };
533
370
  export const se_ImportResourcesToDraftAppVersionCommand = async (input, context) => {
534
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
371
+ const b = rb(input, context);
535
372
  const headers = {
536
373
  "content-type": "application/json",
537
374
  };
538
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import-resources-to-draft-app-version";
375
+ b.bp("/import-resources-to-draft-app-version");
539
376
  let body;
540
377
  body = JSON.stringify(take(input, {
541
378
  appArn: [],
@@ -544,139 +381,93 @@ export const se_ImportResourcesToDraftAppVersionCommand = async (input, context)
544
381
  sourceArns: (_) => _json(_),
545
382
  terraformSources: (_) => _json(_),
546
383
  }));
547
- return new __HttpRequest({
548
- protocol,
549
- hostname,
550
- port,
551
- method: "POST",
552
- headers,
553
- path: resolvedPath,
554
- body,
555
- });
384
+ b.m("POST").h(headers).b(body);
385
+ return b.build();
556
386
  };
557
387
  export const se_ListAlarmRecommendationsCommand = async (input, context) => {
558
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
+ const b = rb(input, context);
559
389
  const headers = {
560
390
  "content-type": "application/json",
561
391
  };
562
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-alarm-recommendations";
392
+ b.bp("/list-alarm-recommendations");
563
393
  let body;
564
394
  body = JSON.stringify(take(input, {
565
395
  assessmentArn: [],
566
396
  maxResults: [],
567
397
  nextToken: [],
568
398
  }));
569
- return new __HttpRequest({
570
- protocol,
571
- hostname,
572
- port,
573
- method: "POST",
574
- headers,
575
- path: resolvedPath,
576
- body,
577
- });
399
+ b.m("POST").h(headers).b(body);
400
+ return b.build();
578
401
  };
579
402
  export const se_ListAppAssessmentComplianceDriftsCommand = async (input, context) => {
580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const b = rb(input, context);
581
404
  const headers = {
582
405
  "content-type": "application/json",
583
406
  };
584
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessment-compliance-drifts";
407
+ b.bp("/list-app-assessment-compliance-drifts");
585
408
  let body;
586
409
  body = JSON.stringify(take(input, {
587
410
  assessmentArn: [],
588
411
  maxResults: [],
589
412
  nextToken: [],
590
413
  }));
591
- return new __HttpRequest({
592
- protocol,
593
- hostname,
594
- port,
595
- method: "POST",
596
- headers,
597
- path: resolvedPath,
598
- body,
599
- });
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
600
416
  };
601
417
  export const se_ListAppAssessmentsCommand = async (input, context) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
+ const b = rb(input, context);
603
419
  const headers = {};
604
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessments";
420
+ b.bp("/list-app-assessments");
605
421
  const query = map({
606
- appArn: [, input.appArn],
607
- assessmentName: [, input.assessmentName],
608
- assessmentStatus: [
609
- () => input.assessmentStatus !== void 0,
610
- () => (input.assessmentStatus || []).map((_entry) => _entry),
611
- ],
612
- complianceStatus: [, input.complianceStatus],
613
- invoker: [, input.invoker],
614
- reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
615
- nextToken: [, input.nextToken],
616
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
422
+ [_aA]: [, input[_aA]],
423
+ [_aN]: [, input[_aN]],
424
+ [_aS]: [() => input.assessmentStatus !== void 0, () => (input[_aS] || []).map((_entry) => _entry)],
425
+ [_cS]: [, input[_cS]],
426
+ [_i]: [, input[_i]],
427
+ [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO].toString()],
428
+ [_nT]: [, input[_nT]],
429
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
617
430
  });
618
431
  let body;
619
- return new __HttpRequest({
620
- protocol,
621
- hostname,
622
- port,
623
- method: "GET",
624
- headers,
625
- path: resolvedPath,
626
- query,
627
- body,
628
- });
432
+ b.m("GET").h(headers).q(query).b(body);
433
+ return b.build();
629
434
  };
630
435
  export const se_ListAppComponentCompliancesCommand = async (input, context) => {
631
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
+ const b = rb(input, context);
632
437
  const headers = {
633
438
  "content-type": "application/json",
634
439
  };
635
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-compliances";
440
+ b.bp("/list-app-component-compliances");
636
441
  let body;
637
442
  body = JSON.stringify(take(input, {
638
443
  assessmentArn: [],
639
444
  maxResults: [],
640
445
  nextToken: [],
641
446
  }));
642
- return new __HttpRequest({
643
- protocol,
644
- hostname,
645
- port,
646
- method: "POST",
647
- headers,
648
- path: resolvedPath,
649
- body,
650
- });
447
+ b.m("POST").h(headers).b(body);
448
+ return b.build();
651
449
  };
652
450
  export const se_ListAppComponentRecommendationsCommand = async (input, context) => {
653
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
451
+ const b = rb(input, context);
654
452
  const headers = {
655
453
  "content-type": "application/json",
656
454
  };
657
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-recommendations";
455
+ b.bp("/list-app-component-recommendations");
658
456
  let body;
659
457
  body = JSON.stringify(take(input, {
660
458
  assessmentArn: [],
661
459
  maxResults: [],
662
460
  nextToken: [],
663
461
  }));
664
- return new __HttpRequest({
665
- protocol,
666
- hostname,
667
- port,
668
- method: "POST",
669
- headers,
670
- path: resolvedPath,
671
- body,
672
- });
462
+ b.m("POST").h(headers).b(body);
463
+ return b.build();
673
464
  };
674
465
  export const se_ListAppInputSourcesCommand = async (input, context) => {
675
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
466
+ const b = rb(input, context);
676
467
  const headers = {
677
468
  "content-type": "application/json",
678
469
  };
679
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-input-sources";
470
+ b.bp("/list-app-input-sources");
680
471
  let body;
681
472
  body = JSON.stringify(take(input, {
682
473
  appArn: [],
@@ -684,53 +475,38 @@ export const se_ListAppInputSourcesCommand = async (input, context) => {
684
475
  maxResults: [],
685
476
  nextToken: [],
686
477
  }));
687
- return new __HttpRequest({
688
- protocol,
689
- hostname,
690
- port,
691
- method: "POST",
692
- headers,
693
- path: resolvedPath,
694
- body,
695
- });
478
+ b.m("POST").h(headers).b(body);
479
+ return b.build();
696
480
  };
697
481
  export const se_ListAppsCommand = async (input, context) => {
698
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const b = rb(input, context);
699
483
  const headers = {};
700
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-apps";
484
+ b.bp("/list-apps");
701
485
  const query = map({
702
- nextToken: [, input.nextToken],
703
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
704
- name: [, input.name],
705
- appArn: [, input.appArn],
706
- fromLastAssessmentTime: [
486
+ [_nT]: [, input[_nT]],
487
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
488
+ [_n]: [, input[_n]],
489
+ [_aA]: [, input[_aA]],
490
+ [_fLAT]: [
707
491
  () => input.fromLastAssessmentTime !== void 0,
708
- () => (input.fromLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
492
+ () => (input[_fLAT].toISOString().split(".")[0] + "Z").toString(),
709
493
  ],
710
- toLastAssessmentTime: [
494
+ [_tLAT]: [
711
495
  () => input.toLastAssessmentTime !== void 0,
712
- () => (input.toLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
496
+ () => (input[_tLAT].toISOString().split(".")[0] + "Z").toString(),
713
497
  ],
714
- reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
498
+ [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO].toString()],
715
499
  });
716
500
  let body;
717
- return new __HttpRequest({
718
- protocol,
719
- hostname,
720
- port,
721
- method: "GET",
722
- headers,
723
- path: resolvedPath,
724
- query,
725
- body,
726
- });
501
+ b.m("GET").h(headers).q(query).b(body);
502
+ return b.build();
727
503
  };
728
504
  export const se_ListAppVersionAppComponentsCommand = async (input, context) => {
729
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
505
+ const b = rb(input, context);
730
506
  const headers = {
731
507
  "content-type": "application/json",
732
508
  };
733
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-app-components";
509
+ b.bp("/list-app-version-app-components");
734
510
  let body;
735
511
  body = JSON.stringify(take(input, {
736
512
  appArn: [],
@@ -738,22 +514,15 @@ export const se_ListAppVersionAppComponentsCommand = async (input, context) => {
738
514
  maxResults: [],
739
515
  nextToken: [],
740
516
  }));
741
- return new __HttpRequest({
742
- protocol,
743
- hostname,
744
- port,
745
- method: "POST",
746
- headers,
747
- path: resolvedPath,
748
- body,
749
- });
517
+ b.m("POST").h(headers).b(body);
518
+ return b.build();
750
519
  };
751
520
  export const se_ListAppVersionResourceMappingsCommand = async (input, context) => {
752
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
+ const b = rb(input, context);
753
522
  const headers = {
754
523
  "content-type": "application/json",
755
524
  };
756
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resource-mappings";
525
+ b.bp("/list-app-version-resource-mappings");
757
526
  let body;
758
527
  body = JSON.stringify(take(input, {
759
528
  appArn: [],
@@ -761,22 +530,15 @@ export const se_ListAppVersionResourceMappingsCommand = async (input, context) =
761
530
  maxResults: [],
762
531
  nextToken: [],
763
532
  }));
764
- return new __HttpRequest({
765
- protocol,
766
- hostname,
767
- port,
768
- method: "POST",
769
- headers,
770
- path: resolvedPath,
771
- body,
772
- });
533
+ b.m("POST").h(headers).b(body);
534
+ return b.build();
773
535
  };
774
536
  export const se_ListAppVersionResourcesCommand = async (input, context) => {
775
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
537
+ const b = rb(input, context);
776
538
  const headers = {
777
539
  "content-type": "application/json",
778
540
  };
779
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resources";
541
+ b.bp("/list-app-version-resources");
780
542
  let body;
781
543
  body = JSON.stringify(take(input, {
782
544
  appArn: [],
@@ -785,22 +547,15 @@ export const se_ListAppVersionResourcesCommand = async (input, context) => {
785
547
  nextToken: [],
786
548
  resolutionId: [],
787
549
  }));
788
- return new __HttpRequest({
789
- protocol,
790
- hostname,
791
- port,
792
- method: "POST",
793
- headers,
794
- path: resolvedPath,
795
- body,
796
- });
550
+ b.m("POST").h(headers).b(body);
551
+ return b.build();
797
552
  };
798
553
  export const se_ListAppVersionsCommand = async (input, context) => {
799
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
554
+ const b = rb(input, context);
800
555
  const headers = {
801
556
  "content-type": "application/json",
802
557
  };
803
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-versions";
558
+ b.bp("/list-app-versions");
804
559
  let body;
805
560
  body = JSON.stringify(take(input, {
806
561
  appArn: [],
@@ -809,148 +564,96 @@ export const se_ListAppVersionsCommand = async (input, context) => {
809
564
  nextToken: [],
810
565
  startTime: (_) => Math.round(_.getTime() / 1000),
811
566
  }));
812
- return new __HttpRequest({
813
- protocol,
814
- hostname,
815
- port,
816
- method: "POST",
817
- headers,
818
- path: resolvedPath,
819
- body,
820
- });
567
+ b.m("POST").h(headers).b(body);
568
+ return b.build();
821
569
  };
822
570
  export const se_ListRecommendationTemplatesCommand = async (input, context) => {
823
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
571
+ const b = rb(input, context);
824
572
  const headers = {};
825
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-recommendation-templates";
573
+ b.bp("/list-recommendation-templates");
826
574
  const query = map({
827
- assessmentArn: [, __expectNonNull(input.assessmentArn, `assessmentArn`)],
828
- reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
829
- status: [() => input.status !== void 0, () => (input.status || []).map((_entry) => _entry)],
830
- recommendationTemplateArn: [, input.recommendationTemplateArn],
831
- name: [, input.name],
832
- nextToken: [, input.nextToken],
833
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
575
+ [_aAs]: [, __expectNonNull(input[_aAs], `assessmentArn`)],
576
+ [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO].toString()],
577
+ [_s]: [() => input.status !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
578
+ [_rTA]: [, input[_rTA]],
579
+ [_n]: [, input[_n]],
580
+ [_nT]: [, input[_nT]],
581
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
834
582
  });
835
583
  let body;
836
- return new __HttpRequest({
837
- protocol,
838
- hostname,
839
- port,
840
- method: "GET",
841
- headers,
842
- path: resolvedPath,
843
- query,
844
- body,
845
- });
584
+ b.m("GET").h(headers).q(query).b(body);
585
+ return b.build();
846
586
  };
847
587
  export const se_ListResiliencyPoliciesCommand = async (input, context) => {
848
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
588
+ const b = rb(input, context);
849
589
  const headers = {};
850
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-resiliency-policies";
590
+ b.bp("/list-resiliency-policies");
851
591
  const query = map({
852
- policyName: [, input.policyName],
853
- nextToken: [, input.nextToken],
854
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
592
+ [_pN]: [, input[_pN]],
593
+ [_nT]: [, input[_nT]],
594
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
855
595
  });
856
596
  let body;
857
- return new __HttpRequest({
858
- protocol,
859
- hostname,
860
- port,
861
- method: "GET",
862
- headers,
863
- path: resolvedPath,
864
- query,
865
- body,
866
- });
597
+ b.m("GET").h(headers).q(query).b(body);
598
+ return b.build();
867
599
  };
868
600
  export const se_ListSopRecommendationsCommand = async (input, context) => {
869
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
+ const b = rb(input, context);
870
602
  const headers = {
871
603
  "content-type": "application/json",
872
604
  };
873
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-sop-recommendations";
605
+ b.bp("/list-sop-recommendations");
874
606
  let body;
875
607
  body = JSON.stringify(take(input, {
876
608
  assessmentArn: [],
877
609
  maxResults: [],
878
610
  nextToken: [],
879
611
  }));
880
- return new __HttpRequest({
881
- protocol,
882
- hostname,
883
- port,
884
- method: "POST",
885
- headers,
886
- path: resolvedPath,
887
- body,
888
- });
612
+ b.m("POST").h(headers).b(body);
613
+ return b.build();
889
614
  };
890
615
  export const se_ListSuggestedResiliencyPoliciesCommand = async (input, context) => {
891
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = rb(input, context);
892
617
  const headers = {};
893
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-suggested-resiliency-policies";
618
+ b.bp("/list-suggested-resiliency-policies");
894
619
  const query = map({
895
- nextToken: [, input.nextToken],
896
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
620
+ [_nT]: [, input[_nT]],
621
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
897
622
  });
898
623
  let body;
899
- return new __HttpRequest({
900
- protocol,
901
- hostname,
902
- port,
903
- method: "GET",
904
- headers,
905
- path: resolvedPath,
906
- query,
907
- body,
908
- });
624
+ b.m("GET").h(headers).q(query).b(body);
625
+ return b.build();
909
626
  };
910
627
  export const se_ListTagsForResourceCommand = async (input, context) => {
911
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
+ const b = rb(input, context);
912
629
  const headers = {};
913
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
914
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
630
+ b.bp("/tags/{resourceArn}");
631
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
915
632
  let body;
916
- return new __HttpRequest({
917
- protocol,
918
- hostname,
919
- port,
920
- method: "GET",
921
- headers,
922
- path: resolvedPath,
923
- body,
924
- });
633
+ b.m("GET").h(headers).b(body);
634
+ return b.build();
925
635
  };
926
636
  export const se_ListTestRecommendationsCommand = async (input, context) => {
927
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
637
+ const b = rb(input, context);
928
638
  const headers = {
929
639
  "content-type": "application/json",
930
640
  };
931
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-test-recommendations";
641
+ b.bp("/list-test-recommendations");
932
642
  let body;
933
643
  body = JSON.stringify(take(input, {
934
644
  assessmentArn: [],
935
645
  maxResults: [],
936
646
  nextToken: [],
937
647
  }));
938
- return new __HttpRequest({
939
- protocol,
940
- hostname,
941
- port,
942
- method: "POST",
943
- headers,
944
- path: resolvedPath,
945
- body,
946
- });
648
+ b.m("POST").h(headers).b(body);
649
+ return b.build();
947
650
  };
948
651
  export const se_ListUnsupportedAppVersionResourcesCommand = async (input, context) => {
949
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
+ const b = rb(input, context);
950
653
  const headers = {
951
654
  "content-type": "application/json",
952
655
  };
953
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-unsupported-app-version-resources";
656
+ b.bp("/list-unsupported-app-version-resources");
954
657
  let body;
955
658
  body = JSON.stringify(take(input, {
956
659
  appArn: [],
@@ -959,65 +662,43 @@ export const se_ListUnsupportedAppVersionResourcesCommand = async (input, contex
959
662
  nextToken: [],
960
663
  resolutionId: [],
961
664
  }));
962
- return new __HttpRequest({
963
- protocol,
964
- hostname,
965
- port,
966
- method: "POST",
967
- headers,
968
- path: resolvedPath,
969
- body,
970
- });
665
+ b.m("POST").h(headers).b(body);
666
+ return b.build();
971
667
  };
972
668
  export const se_PublishAppVersionCommand = async (input, context) => {
973
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
669
+ const b = rb(input, context);
974
670
  const headers = {
975
671
  "content-type": "application/json",
976
672
  };
977
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/publish-app-version";
673
+ b.bp("/publish-app-version");
978
674
  let body;
979
675
  body = JSON.stringify(take(input, {
980
676
  appArn: [],
981
677
  versionName: [],
982
678
  }));
983
- return new __HttpRequest({
984
- protocol,
985
- hostname,
986
- port,
987
- method: "POST",
988
- headers,
989
- path: resolvedPath,
990
- body,
991
- });
679
+ b.m("POST").h(headers).b(body);
680
+ return b.build();
992
681
  };
993
682
  export const se_PutDraftAppVersionTemplateCommand = async (input, context) => {
994
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
+ const b = rb(input, context);
995
684
  const headers = {
996
685
  "content-type": "application/json",
997
686
  };
998
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-draft-app-version-template";
687
+ b.bp("/put-draft-app-version-template");
999
688
  let body;
1000
689
  body = JSON.stringify(take(input, {
1001
690
  appArn: [],
1002
691
  appTemplateBody: [],
1003
692
  }));
1004
- return new __HttpRequest({
1005
- protocol,
1006
- hostname,
1007
- port,
1008
- method: "POST",
1009
- headers,
1010
- path: resolvedPath,
1011
- body,
1012
- });
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
1013
695
  };
1014
696
  export const se_RemoveDraftAppVersionResourceMappingsCommand = async (input, context) => {
1015
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const b = rb(input, context);
1016
698
  const headers = {
1017
699
  "content-type": "application/json",
1018
700
  };
1019
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1020
- "/remove-draft-app-version-resource-mappings";
701
+ b.bp("/remove-draft-app-version-resource-mappings");
1021
702
  let body;
1022
703
  body = JSON.stringify(take(input, {
1023
704
  appArn: [],
@@ -1028,43 +709,29 @@ export const se_RemoveDraftAppVersionResourceMappingsCommand = async (input, con
1028
709
  resourceNames: (_) => _json(_),
1029
710
  terraformSourceNames: (_) => _json(_),
1030
711
  }));
1031
- return new __HttpRequest({
1032
- protocol,
1033
- hostname,
1034
- port,
1035
- method: "POST",
1036
- headers,
1037
- path: resolvedPath,
1038
- body,
1039
- });
712
+ b.m("POST").h(headers).b(body);
713
+ return b.build();
1040
714
  };
1041
715
  export const se_ResolveAppVersionResourcesCommand = async (input, context) => {
1042
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
716
+ const b = rb(input, context);
1043
717
  const headers = {
1044
718
  "content-type": "application/json",
1045
719
  };
1046
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resolve-app-version-resources";
720
+ b.bp("/resolve-app-version-resources");
1047
721
  let body;
1048
722
  body = JSON.stringify(take(input, {
1049
723
  appArn: [],
1050
724
  appVersion: [],
1051
725
  }));
1052
- return new __HttpRequest({
1053
- protocol,
1054
- hostname,
1055
- port,
1056
- method: "POST",
1057
- headers,
1058
- path: resolvedPath,
1059
- body,
1060
- });
726
+ b.m("POST").h(headers).b(body);
727
+ return b.build();
1061
728
  };
1062
729
  export const se_StartAppAssessmentCommand = async (input, context) => {
1063
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
730
+ const b = rb(input, context);
1064
731
  const headers = {
1065
732
  "content-type": "application/json",
1066
733
  };
1067
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-app-assessment";
734
+ b.bp("/start-app-assessment");
1068
735
  let body;
1069
736
  body = JSON.stringify(take(input, {
1070
737
  appArn: [],
@@ -1073,66 +740,44 @@ export const se_StartAppAssessmentCommand = async (input, context) => {
1073
740
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1074
741
  tags: (_) => _json(_),
1075
742
  }));
1076
- return new __HttpRequest({
1077
- protocol,
1078
- hostname,
1079
- port,
1080
- method: "POST",
1081
- headers,
1082
- path: resolvedPath,
1083
- body,
1084
- });
743
+ b.m("POST").h(headers).b(body);
744
+ return b.build();
1085
745
  };
1086
746
  export const se_TagResourceCommand = async (input, context) => {
1087
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
747
+ const b = rb(input, context);
1088
748
  const headers = {
1089
749
  "content-type": "application/json",
1090
750
  };
1091
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1092
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
751
+ b.bp("/tags/{resourceArn}");
752
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1093
753
  let body;
1094
754
  body = JSON.stringify(take(input, {
1095
755
  tags: (_) => _json(_),
1096
756
  }));
1097
- return new __HttpRequest({
1098
- protocol,
1099
- hostname,
1100
- port,
1101
- method: "POST",
1102
- headers,
1103
- path: resolvedPath,
1104
- body,
1105
- });
757
+ b.m("POST").h(headers).b(body);
758
+ return b.build();
1106
759
  };
1107
760
  export const se_UntagResourceCommand = async (input, context) => {
1108
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
+ const b = rb(input, context);
1109
762
  const headers = {};
1110
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1111
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
763
+ b.bp("/tags/{resourceArn}");
764
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1112
765
  const query = map({
1113
- tagKeys: [
766
+ [_tK]: [
1114
767
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
1115
- () => (input.tagKeys || []).map((_entry) => _entry),
768
+ () => (input[_tK] || []).map((_entry) => _entry),
1116
769
  ],
1117
770
  });
1118
771
  let body;
1119
- return new __HttpRequest({
1120
- protocol,
1121
- hostname,
1122
- port,
1123
- method: "DELETE",
1124
- headers,
1125
- path: resolvedPath,
1126
- query,
1127
- body,
1128
- });
772
+ b.m("DELETE").h(headers).q(query).b(body);
773
+ return b.build();
1129
774
  };
1130
775
  export const se_UpdateAppCommand = async (input, context) => {
1131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const b = rb(input, context);
1132
777
  const headers = {
1133
778
  "content-type": "application/json",
1134
779
  };
1135
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app";
780
+ b.bp("/update-app");
1136
781
  let body;
1137
782
  body = JSON.stringify(take(input, {
1138
783
  appArn: [],
@@ -1143,43 +788,29 @@ export const se_UpdateAppCommand = async (input, context) => {
1143
788
  permissionModel: (_) => _json(_),
1144
789
  policyArn: [],
1145
790
  }));
1146
- return new __HttpRequest({
1147
- protocol,
1148
- hostname,
1149
- port,
1150
- method: "POST",
1151
- headers,
1152
- path: resolvedPath,
1153
- body,
1154
- });
791
+ b.m("POST").h(headers).b(body);
792
+ return b.build();
1155
793
  };
1156
794
  export const se_UpdateAppVersionCommand = async (input, context) => {
1157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
795
+ const b = rb(input, context);
1158
796
  const headers = {
1159
797
  "content-type": "application/json",
1160
798
  };
1161
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version";
799
+ b.bp("/update-app-version");
1162
800
  let body;
1163
801
  body = JSON.stringify(take(input, {
1164
802
  additionalInfo: (_) => _json(_),
1165
803
  appArn: [],
1166
804
  }));
1167
- return new __HttpRequest({
1168
- protocol,
1169
- hostname,
1170
- port,
1171
- method: "POST",
1172
- headers,
1173
- path: resolvedPath,
1174
- body,
1175
- });
805
+ b.m("POST").h(headers).b(body);
806
+ return b.build();
1176
807
  };
1177
808
  export const se_UpdateAppVersionAppComponentCommand = async (input, context) => {
1178
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
809
+ const b = rb(input, context);
1179
810
  const headers = {
1180
811
  "content-type": "application/json",
1181
812
  };
1182
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component";
813
+ b.bp("/update-app-version-app-component");
1183
814
  let body;
1184
815
  body = JSON.stringify(take(input, {
1185
816
  additionalInfo: (_) => _json(_),
@@ -1188,22 +819,15 @@ export const se_UpdateAppVersionAppComponentCommand = async (input, context) =>
1188
819
  name: [],
1189
820
  type: [],
1190
821
  }));
1191
- return new __HttpRequest({
1192
- protocol,
1193
- hostname,
1194
- port,
1195
- method: "POST",
1196
- headers,
1197
- path: resolvedPath,
1198
- body,
1199
- });
822
+ b.m("POST").h(headers).b(body);
823
+ return b.build();
1200
824
  };
1201
825
  export const se_UpdateAppVersionResourceCommand = async (input, context) => {
1202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
826
+ const b = rb(input, context);
1203
827
  const headers = {
1204
828
  "content-type": "application/json",
1205
829
  };
1206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource";
830
+ b.bp("/update-app-version-resource");
1207
831
  let body;
1208
832
  body = JSON.stringify(take(input, {
1209
833
  additionalInfo: (_) => _json(_),
@@ -1217,22 +841,15 @@ export const se_UpdateAppVersionResourceCommand = async (input, context) => {
1217
841
  resourceName: [],
1218
842
  resourceType: [],
1219
843
  }));
1220
- return new __HttpRequest({
1221
- protocol,
1222
- hostname,
1223
- port,
1224
- method: "POST",
1225
- headers,
1226
- path: resolvedPath,
1227
- body,
1228
- });
844
+ b.m("POST").h(headers).b(body);
845
+ return b.build();
1229
846
  };
1230
847
  export const se_UpdateResiliencyPolicyCommand = async (input, context) => {
1231
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
848
+ const b = rb(input, context);
1232
849
  const headers = {
1233
850
  "content-type": "application/json",
1234
851
  };
1235
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy";
852
+ b.bp("/update-resiliency-policy");
1236
853
  let body;
1237
854
  body = JSON.stringify(take(input, {
1238
855
  dataLocationConstraint: [],
@@ -1242,15 +859,8 @@ export const se_UpdateResiliencyPolicyCommand = async (input, context) => {
1242
859
  policyName: [],
1243
860
  tier: [],
1244
861
  }));
1245
- return new __HttpRequest({
1246
- protocol,
1247
- hostname,
1248
- port,
1249
- method: "POST",
1250
- headers,
1251
- path: resolvedPath,
1252
- body,
1253
- });
862
+ b.m("POST").h(headers).b(body);
863
+ return b.build();
1254
864
  };
1255
865
  export const de_AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
1256
866
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -4202,6 +3812,22 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4202
3812
  value !== "" &&
4203
3813
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4204
3814
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3815
+ const _aA = "appArn";
3816
+ const _aAs = "assessmentArn";
3817
+ const _aN = "assessmentName";
3818
+ const _aS = "assessmentStatus";
3819
+ const _cS = "complianceStatus";
3820
+ const _fLAT = "fromLastAssessmentTime";
3821
+ const _i = "invoker";
3822
+ const _mR = "maxResults";
3823
+ const _n = "name";
3824
+ const _nT = "nextToken";
3825
+ const _pN = "policyName";
3826
+ const _rO = "reverseOrder";
3827
+ const _rTA = "recommendationTemplateArn";
3828
+ const _s = "status";
3829
+ const _tK = "tagKeys";
3830
+ const _tLAT = "toLastAssessmentTime";
4205
3831
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4206
3832
  if (encoded.length) {
4207
3833
  return JSON.parse(encoded);