@aws-sdk/client-fis 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,14 +1,14 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, 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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { FisServiceException as __BaseException } from "../models/FisServiceException";
5
5
  import { ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
6
6
  export const se_CreateExperimentTemplateCommand = 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 || ""}` + "/experimentTemplates";
11
+ b.bp("/experimentTemplates");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  actions: (_) => _json(_),
@@ -21,423 +21,254 @@ export const se_CreateExperimentTemplateCommand = async (input, context) => {
21
21
  tags: (_) => _json(_),
22
22
  targets: (_) => _json(_),
23
23
  }));
24
- return new __HttpRequest({
25
- protocol,
26
- hostname,
27
- port,
28
- method: "POST",
29
- headers,
30
- path: resolvedPath,
31
- body,
32
- });
24
+ b.m("POST").h(headers).b(body);
25
+ return b.build();
33
26
  };
34
27
  export const se_CreateTargetAccountConfigurationCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = rb(input, context);
36
29
  const headers = {
37
30
  "content-type": "application/json",
38
31
  };
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
40
- "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
41
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
42
- resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
32
+ b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
33
+ b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
34
+ b.p("accountId", () => input.accountId, "{accountId}", false);
43
35
  let body;
44
36
  body = JSON.stringify(take(input, {
45
37
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
46
38
  description: [],
47
39
  roleArn: [],
48
40
  }));
49
- return new __HttpRequest({
50
- protocol,
51
- hostname,
52
- port,
53
- method: "POST",
54
- headers,
55
- path: resolvedPath,
56
- body,
57
- });
41
+ b.m("POST").h(headers).b(body);
42
+ return b.build();
58
43
  };
59
44
  export const se_DeleteExperimentTemplateCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = rb(input, context);
61
46
  const headers = {};
62
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}";
63
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
47
+ b.bp("/experimentTemplates/{id}");
48
+ b.p("id", () => input.id, "{id}", false);
64
49
  let body;
65
- return new __HttpRequest({
66
- protocol,
67
- hostname,
68
- port,
69
- method: "DELETE",
70
- headers,
71
- path: resolvedPath,
72
- body,
73
- });
50
+ b.m("DELETE").h(headers).b(body);
51
+ return b.build();
74
52
  };
75
53
  export const se_DeleteTargetAccountConfigurationCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = rb(input, context);
77
55
  const headers = {};
78
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
79
- "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
80
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
81
- resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
56
+ b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
57
+ b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
58
+ b.p("accountId", () => input.accountId, "{accountId}", false);
82
59
  let body;
83
- return new __HttpRequest({
84
- protocol,
85
- hostname,
86
- port,
87
- method: "DELETE",
88
- headers,
89
- path: resolvedPath,
90
- body,
91
- });
60
+ b.m("DELETE").h(headers).b(body);
61
+ return b.build();
92
62
  };
93
63
  export const se_GetActionCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
+ const b = rb(input, context);
95
65
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{id}";
97
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
66
+ b.bp("/actions/{id}");
67
+ b.p("id", () => input.id, "{id}", false);
98
68
  let body;
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
69
+ b.m("GET").h(headers).b(body);
70
+ return b.build();
108
71
  };
109
72
  export const se_GetExperimentCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
111
74
  const headers = {};
112
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}";
113
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
75
+ b.bp("/experiments/{id}");
76
+ b.p("id", () => input.id, "{id}", false);
114
77
  let body;
115
- return new __HttpRequest({
116
- protocol,
117
- hostname,
118
- port,
119
- method: "GET",
120
- headers,
121
- path: resolvedPath,
122
- body,
123
- });
78
+ b.m("GET").h(headers).b(body);
79
+ return b.build();
124
80
  };
125
81
  export const se_GetExperimentTargetAccountConfigurationCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = rb(input, context);
127
83
  const headers = {};
128
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
129
- "/experiments/{experimentId}/targetAccountConfigurations/{accountId}";
130
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
131
- resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
84
+ b.bp("/experiments/{experimentId}/targetAccountConfigurations/{accountId}");
85
+ b.p("experimentId", () => input.experimentId, "{experimentId}", false);
86
+ b.p("accountId", () => input.accountId, "{accountId}", false);
132
87
  let body;
133
- return new __HttpRequest({
134
- protocol,
135
- hostname,
136
- port,
137
- method: "GET",
138
- headers,
139
- path: resolvedPath,
140
- body,
141
- });
88
+ b.m("GET").h(headers).b(body);
89
+ return b.build();
142
90
  };
143
91
  export const se_GetExperimentTemplateCommand = async (input, context) => {
144
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = rb(input, context);
145
93
  const headers = {};
146
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}";
147
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
94
+ b.bp("/experimentTemplates/{id}");
95
+ b.p("id", () => input.id, "{id}", false);
148
96
  let body;
149
- return new __HttpRequest({
150
- protocol,
151
- hostname,
152
- port,
153
- method: "GET",
154
- headers,
155
- path: resolvedPath,
156
- body,
157
- });
97
+ b.m("GET").h(headers).b(body);
98
+ return b.build();
158
99
  };
159
100
  export const se_GetTargetAccountConfigurationCommand = async (input, context) => {
160
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
+ const b = rb(input, context);
161
102
  const headers = {};
162
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
163
- "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
164
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
165
- resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
103
+ b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
104
+ b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
105
+ b.p("accountId", () => input.accountId, "{accountId}", false);
166
106
  let body;
167
- return new __HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
107
+ b.m("GET").h(headers).b(body);
108
+ return b.build();
176
109
  };
177
110
  export const se_GetTargetResourceTypeCommand = async (input, context) => {
178
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = rb(input, context);
179
112
  const headers = {};
180
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes/{resourceType}";
181
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
113
+ b.bp("/targetResourceTypes/{resourceType}");
114
+ b.p("resourceType", () => input.resourceType, "{resourceType}", false);
182
115
  let body;
183
- return new __HttpRequest({
184
- protocol,
185
- hostname,
186
- port,
187
- method: "GET",
188
- headers,
189
- path: resolvedPath,
190
- body,
191
- });
116
+ b.m("GET").h(headers).b(body);
117
+ return b.build();
192
118
  };
193
119
  export const se_ListActionsCommand = async (input, context) => {
194
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = rb(input, context);
195
121
  const headers = {};
196
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
122
+ b.bp("/actions");
197
123
  const query = map({
198
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
199
- nextToken: [, input.nextToken],
124
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
125
+ [_nT]: [, input[_nT]],
200
126
  });
201
127
  let body;
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "GET",
207
- headers,
208
- path: resolvedPath,
209
- query,
210
- body,
211
- });
128
+ b.m("GET").h(headers).q(query).b(body);
129
+ return b.build();
212
130
  };
213
131
  export const se_ListExperimentResolvedTargetsCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = rb(input, context);
215
133
  const headers = {};
216
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
217
- "/experiments/{experimentId}/resolvedTargets";
218
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
134
+ b.bp("/experiments/{experimentId}/resolvedTargets");
135
+ b.p("experimentId", () => input.experimentId, "{experimentId}", false);
219
136
  const query = map({
220
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
221
- nextToken: [, input.nextToken],
222
- targetName: [, input.targetName],
137
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
138
+ [_nT]: [, input[_nT]],
139
+ [_tN]: [, input[_tN]],
223
140
  });
224
141
  let body;
225
- return new __HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "GET",
230
- headers,
231
- path: resolvedPath,
232
- query,
233
- body,
234
- });
142
+ b.m("GET").h(headers).q(query).b(body);
143
+ return b.build();
235
144
  };
236
145
  export const se_ListExperimentsCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = rb(input, context);
238
147
  const headers = {};
239
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
148
+ b.bp("/experiments");
240
149
  const query = map({
241
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
242
- nextToken: [, input.nextToken],
150
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
151
+ [_nT]: [, input[_nT]],
243
152
  });
244
153
  let body;
245
- return new __HttpRequest({
246
- protocol,
247
- hostname,
248
- port,
249
- method: "GET",
250
- headers,
251
- path: resolvedPath,
252
- query,
253
- body,
254
- });
154
+ b.m("GET").h(headers).q(query).b(body);
155
+ return b.build();
255
156
  };
256
157
  export const se_ListExperimentTargetAccountConfigurationsCommand = async (input, context) => {
257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = rb(input, context);
258
159
  const headers = {};
259
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
260
- "/experiments/{experimentId}/targetAccountConfigurations";
261
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
160
+ b.bp("/experiments/{experimentId}/targetAccountConfigurations");
161
+ b.p("experimentId", () => input.experimentId, "{experimentId}", false);
262
162
  const query = map({
263
- nextToken: [, input.nextToken],
163
+ [_nT]: [, input[_nT]],
264
164
  });
265
165
  let body;
266
- return new __HttpRequest({
267
- protocol,
268
- hostname,
269
- port,
270
- method: "GET",
271
- headers,
272
- path: resolvedPath,
273
- query,
274
- body,
275
- });
166
+ b.m("GET").h(headers).q(query).b(body);
167
+ return b.build();
276
168
  };
277
169
  export const se_ListExperimentTemplatesCommand = async (input, context) => {
278
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = rb(input, context);
279
171
  const headers = {};
280
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates";
172
+ b.bp("/experimentTemplates");
281
173
  const query = map({
282
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
283
- nextToken: [, input.nextToken],
174
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
175
+ [_nT]: [, input[_nT]],
284
176
  });
285
177
  let body;
286
- return new __HttpRequest({
287
- protocol,
288
- hostname,
289
- port,
290
- method: "GET",
291
- headers,
292
- path: resolvedPath,
293
- query,
294
- body,
295
- });
178
+ b.m("GET").h(headers).q(query).b(body);
179
+ return b.build();
296
180
  };
297
181
  export const se_ListTagsForResourceCommand = async (input, context) => {
298
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = rb(input, context);
299
183
  const headers = {};
300
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
301
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
184
+ b.bp("/tags/{resourceArn}");
185
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
302
186
  let body;
303
- return new __HttpRequest({
304
- protocol,
305
- hostname,
306
- port,
307
- method: "GET",
308
- headers,
309
- path: resolvedPath,
310
- body,
311
- });
187
+ b.m("GET").h(headers).b(body);
188
+ return b.build();
312
189
  };
313
190
  export const se_ListTargetAccountConfigurationsCommand = async (input, context) => {
314
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = rb(input, context);
315
192
  const headers = {};
316
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
317
- "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations";
318
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
193
+ b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations");
194
+ b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
319
195
  const query = map({
320
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
321
- nextToken: [, input.nextToken],
196
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
197
+ [_nT]: [, input[_nT]],
322
198
  });
323
199
  let body;
324
- return new __HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "GET",
329
- headers,
330
- path: resolvedPath,
331
- query,
332
- body,
333
- });
200
+ b.m("GET").h(headers).q(query).b(body);
201
+ return b.build();
334
202
  };
335
203
  export const se_ListTargetResourceTypesCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = rb(input, context);
337
205
  const headers = {};
338
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes";
206
+ b.bp("/targetResourceTypes");
339
207
  const query = map({
340
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
341
- nextToken: [, input.nextToken],
208
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
209
+ [_nT]: [, input[_nT]],
342
210
  });
343
211
  let body;
344
- return new __HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "GET",
349
- headers,
350
- path: resolvedPath,
351
- query,
352
- body,
353
- });
212
+ b.m("GET").h(headers).q(query).b(body);
213
+ return b.build();
354
214
  };
355
215
  export const se_StartExperimentCommand = async (input, context) => {
356
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
+ const b = rb(input, context);
357
217
  const headers = {
358
218
  "content-type": "application/json",
359
219
  };
360
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
220
+ b.bp("/experiments");
361
221
  let body;
362
222
  body = JSON.stringify(take(input, {
363
223
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
364
224
  experimentTemplateId: [],
365
225
  tags: (_) => _json(_),
366
226
  }));
367
- return new __HttpRequest({
368
- protocol,
369
- hostname,
370
- port,
371
- method: "POST",
372
- headers,
373
- path: resolvedPath,
374
- body,
375
- });
227
+ b.m("POST").h(headers).b(body);
228
+ return b.build();
376
229
  };
377
230
  export const se_StopExperimentCommand = async (input, context) => {
378
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = rb(input, context);
379
232
  const headers = {};
380
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}";
381
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
233
+ b.bp("/experiments/{id}");
234
+ b.p("id", () => input.id, "{id}", false);
382
235
  let body;
383
- return new __HttpRequest({
384
- protocol,
385
- hostname,
386
- port,
387
- method: "DELETE",
388
- headers,
389
- path: resolvedPath,
390
- body,
391
- });
236
+ b.m("DELETE").h(headers).b(body);
237
+ return b.build();
392
238
  };
393
239
  export const se_TagResourceCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
240
+ const b = rb(input, context);
395
241
  const headers = {
396
242
  "content-type": "application/json",
397
243
  };
398
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
399
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
244
+ b.bp("/tags/{resourceArn}");
245
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
400
246
  let body;
401
247
  body = JSON.stringify(take(input, {
402
248
  tags: (_) => _json(_),
403
249
  }));
404
- return new __HttpRequest({
405
- protocol,
406
- hostname,
407
- port,
408
- method: "POST",
409
- headers,
410
- path: resolvedPath,
411
- body,
412
- });
250
+ b.m("POST").h(headers).b(body);
251
+ return b.build();
413
252
  };
414
253
  export const se_UntagResourceCommand = async (input, context) => {
415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = rb(input, context);
416
255
  const headers = {};
417
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
418
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
256
+ b.bp("/tags/{resourceArn}");
257
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
419
258
  const query = map({
420
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
259
+ [_tK]: [() => input.tagKeys !== void 0, () => (input[_tK] || []).map((_entry) => _entry)],
421
260
  });
422
261
  let body;
423
- return new __HttpRequest({
424
- protocol,
425
- hostname,
426
- port,
427
- method: "DELETE",
428
- headers,
429
- path: resolvedPath,
430
- query,
431
- body,
432
- });
262
+ b.m("DELETE").h(headers).q(query).b(body);
263
+ return b.build();
433
264
  };
434
265
  export const se_UpdateExperimentTemplateCommand = async (input, context) => {
435
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = rb(input, context);
436
267
  const headers = {
437
268
  "content-type": "application/json",
438
269
  };
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}";
440
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
270
+ b.bp("/experimentTemplates/{id}");
271
+ b.p("id", () => input.id, "{id}", false);
441
272
  let body;
442
273
  body = JSON.stringify(take(input, {
443
274
  actions: (_) => _json(_),
@@ -448,39 +279,24 @@ export const se_UpdateExperimentTemplateCommand = async (input, context) => {
448
279
  stopConditions: (_) => _json(_),
449
280
  targets: (_) => _json(_),
450
281
  }));
451
- return new __HttpRequest({
452
- protocol,
453
- hostname,
454
- port,
455
- method: "PATCH",
456
- headers,
457
- path: resolvedPath,
458
- body,
459
- });
282
+ b.m("PATCH").h(headers).b(body);
283
+ return b.build();
460
284
  };
461
285
  export const se_UpdateTargetAccountConfigurationCommand = async (input, context) => {
462
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const b = rb(input, context);
463
287
  const headers = {
464
288
  "content-type": "application/json",
465
289
  };
466
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
467
- "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
468
- resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
469
- resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
290
+ b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
291
+ b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
292
+ b.p("accountId", () => input.accountId, "{accountId}", false);
470
293
  let body;
471
294
  body = JSON.stringify(take(input, {
472
295
  description: [],
473
296
  roleArn: [],
474
297
  }));
475
- return new __HttpRequest({
476
- protocol,
477
- hostname,
478
- port,
479
- method: "PATCH",
480
- headers,
481
- path: resolvedPath,
482
- body,
483
- });
298
+ b.m("PATCH").h(headers).b(body);
299
+ return b.build();
484
300
  };
485
301
  export const de_CreateExperimentTemplateCommand = async (output, context) => {
486
302
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1481,6 +1297,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1481
1297
  value !== "" &&
1482
1298
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1483
1299
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1300
+ const _mR = "maxResults";
1301
+ const _nT = "nextToken";
1302
+ const _tK = "tagKeys";
1303
+ const _tN = "targetName";
1484
1304
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1485
1305
  if (encoded.length) {
1486
1306
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-fis",
3
3
  "description": "AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native",
4
- "version": "3.474.0",
4
+ "version": "3.477.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.474.0",
24
- "@aws-sdk/core": "3.474.0",
25
- "@aws-sdk/credential-provider-node": "3.474.0",
23
+ "@aws-sdk/client-sts": "3.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,6 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",