@aws-sdk/client-ssm-incidents 3.476.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.
@@ -3,62 +3,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListResponsePlansCommand = exports.de_ListReplicationSetsCommand = exports.de_ListRelatedItemsCommand = exports.de_ListIncidentRecordsCommand = exports.de_ListIncidentFindingsCommand = exports.de_GetTimelineEventCommand = exports.de_GetResponsePlanCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetReplicationSetCommand = exports.de_GetIncidentRecordCommand = exports.de_DeleteTimelineEventCommand = exports.de_DeleteResponsePlanCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteReplicationSetCommand = exports.de_DeleteIncidentRecordCommand = exports.de_CreateTimelineEventCommand = exports.de_CreateResponsePlanCommand = exports.de_CreateReplicationSetCommand = exports.de_BatchGetIncidentFindingsCommand = exports.se_UpdateTimelineEventCommand = exports.se_UpdateResponsePlanCommand = exports.se_UpdateReplicationSetCommand = exports.se_UpdateRelatedItemsCommand = exports.se_UpdateIncidentRecordCommand = exports.se_UpdateDeletionProtectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartIncidentCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTimelineEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResponsePlansCommand = exports.se_ListReplicationSetsCommand = exports.se_ListRelatedItemsCommand = exports.se_ListIncidentRecordsCommand = exports.se_ListIncidentFindingsCommand = exports.se_GetTimelineEventCommand = exports.se_GetResponsePlanCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetReplicationSetCommand = exports.se_GetIncidentRecordCommand = exports.se_DeleteTimelineEventCommand = exports.se_DeleteResponsePlanCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteReplicationSetCommand = exports.se_DeleteIncidentRecordCommand = exports.se_CreateTimelineEventCommand = exports.se_CreateResponsePlanCommand = exports.se_CreateReplicationSetCommand = exports.se_BatchGetIncidentFindingsCommand = void 0;
4
4
  exports.de_UpdateTimelineEventCommand = exports.de_UpdateResponsePlanCommand = exports.de_UpdateReplicationSetCommand = exports.de_UpdateRelatedItemsCommand = exports.de_UpdateIncidentRecordCommand = exports.de_UpdateDeletionProtectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartIncidentCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTimelineEventsCommand = exports.de_ListTagsForResourceCommand = void 0;
5
5
  const core_1 = require("@aws-sdk/core");
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_2 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const SSMIncidentsServiceException_1 = require("../models/SSMIncidentsServiceException");
11
11
  const se_BatchGetIncidentFindingsCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_2.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchGetIncidentFindings";
16
+ b.bp("/batchGetIncidentFindings");
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  findingIds: (_) => (0, smithy_client_1._json)(_),
20
20
  incidentRecordArn: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_BatchGetIncidentFindingsCommand = se_BatchGetIncidentFindingsCommand;
33
26
  const se_CreateReplicationSetCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_2.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
31
+ b.bp("/createReplicationSet");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
42
35
  regions: (_) => (0, smithy_client_1._json)(_),
43
36
  tags: (_) => (0, smithy_client_1._json)(_),
44
37
  }));
45
- return new protocol_http_1.HttpRequest({
46
- protocol,
47
- hostname,
48
- port,
49
- method: "POST",
50
- headers,
51
- path: resolvedPath,
52
- body,
53
- });
38
+ b.m("POST").h(headers).b(body);
39
+ return b.build();
54
40
  };
55
41
  exports.se_CreateReplicationSetCommand = se_CreateReplicationSetCommand;
56
42
  const se_CreateResponsePlanCommand = async (input, context) => {
57
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = (0, core_2.requestBuilder)(input, context);
58
44
  const headers = {
59
45
  "content-type": "application/json",
60
46
  };
61
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
47
+ b.bp("/createResponsePlan");
62
48
  let body;
63
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
50
  actions: (_) => (0, smithy_client_1._json)(_),
@@ -71,23 +57,16 @@ const se_CreateResponsePlanCommand = async (input, context) => {
71
57
  name: [],
72
58
  tags: (_) => (0, smithy_client_1._json)(_),
73
59
  }));
74
- return new protocol_http_1.HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "POST",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
60
+ b.m("POST").h(headers).b(body);
61
+ return b.build();
83
62
  };
84
63
  exports.se_CreateResponsePlanCommand = se_CreateResponsePlanCommand;
85
64
  const se_CreateTimelineEventCommand = async (input, context) => {
86
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = (0, core_2.requestBuilder)(input, context);
87
66
  const headers = {
88
67
  "content-type": "application/json",
89
68
  };
90
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
69
+ b.bp("/createTimelineEvent");
91
70
  let body;
92
71
  body = JSON.stringify((0, smithy_client_1.take)(input, {
93
72
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -97,366 +76,241 @@ const se_CreateTimelineEventCommand = async (input, context) => {
97
76
  eventType: [],
98
77
  incidentRecordArn: [],
99
78
  }));
100
- return new protocol_http_1.HttpRequest({
101
- protocol,
102
- hostname,
103
- port,
104
- method: "POST",
105
- headers,
106
- path: resolvedPath,
107
- body,
108
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
109
81
  };
110
82
  exports.se_CreateTimelineEventCommand = se_CreateTimelineEventCommand;
111
83
  const se_DeleteIncidentRecordCommand = async (input, context) => {
112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_2.requestBuilder)(input, context);
113
85
  const headers = {
114
86
  "content-type": "application/json",
115
87
  };
116
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
88
+ b.bp("/deleteIncidentRecord");
117
89
  let body;
118
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
119
91
  arn: [],
120
92
  }));
121
- return new protocol_http_1.HttpRequest({
122
- protocol,
123
- hostname,
124
- port,
125
- method: "POST",
126
- headers,
127
- path: resolvedPath,
128
- body,
129
- });
93
+ b.m("POST").h(headers).b(body);
94
+ return b.build();
130
95
  };
131
96
  exports.se_DeleteIncidentRecordCommand = se_DeleteIncidentRecordCommand;
132
97
  const se_DeleteReplicationSetCommand = async (input, context) => {
133
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = (0, core_2.requestBuilder)(input, context);
134
99
  const headers = {};
135
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet";
100
+ b.bp("/deleteReplicationSet");
136
101
  const query = (0, smithy_client_1.map)({
137
- arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
102
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
138
103
  });
139
104
  let body;
140
- return new protocol_http_1.HttpRequest({
141
- protocol,
142
- hostname,
143
- port,
144
- method: "POST",
145
- headers,
146
- path: resolvedPath,
147
- query,
148
- body,
149
- });
105
+ b.m("POST").h(headers).q(query).b(body);
106
+ return b.build();
150
107
  };
151
108
  exports.se_DeleteReplicationSetCommand = se_DeleteReplicationSetCommand;
152
109
  const se_DeleteResourcePolicyCommand = async (input, context) => {
153
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const b = (0, core_2.requestBuilder)(input, context);
154
111
  const headers = {
155
112
  "content-type": "application/json",
156
113
  };
157
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
114
+ b.bp("/deleteResourcePolicy");
158
115
  let body;
159
116
  body = JSON.stringify((0, smithy_client_1.take)(input, {
160
117
  policyId: [],
161
118
  resourceArn: [],
162
119
  }));
163
- return new protocol_http_1.HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "POST",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
172
122
  };
173
123
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
174
124
  const se_DeleteResponsePlanCommand = async (input, context) => {
175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
+ const b = (0, core_2.requestBuilder)(input, context);
176
126
  const headers = {
177
127
  "content-type": "application/json",
178
128
  };
179
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
129
+ b.bp("/deleteResponsePlan");
180
130
  let body;
181
131
  body = JSON.stringify((0, smithy_client_1.take)(input, {
182
132
  arn: [],
183
133
  }));
184
- return new protocol_http_1.HttpRequest({
185
- protocol,
186
- hostname,
187
- port,
188
- method: "POST",
189
- headers,
190
- path: resolvedPath,
191
- body,
192
- });
134
+ b.m("POST").h(headers).b(body);
135
+ return b.build();
193
136
  };
194
137
  exports.se_DeleteResponsePlanCommand = se_DeleteResponsePlanCommand;
195
138
  const se_DeleteTimelineEventCommand = async (input, context) => {
196
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_2.requestBuilder)(input, context);
197
140
  const headers = {
198
141
  "content-type": "application/json",
199
142
  };
200
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
143
+ b.bp("/deleteTimelineEvent");
201
144
  let body;
202
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
203
146
  eventId: [],
204
147
  incidentRecordArn: [],
205
148
  }));
206
- return new protocol_http_1.HttpRequest({
207
- protocol,
208
- hostname,
209
- port,
210
- method: "POST",
211
- headers,
212
- path: resolvedPath,
213
- body,
214
- });
149
+ b.m("POST").h(headers).b(body);
150
+ return b.build();
215
151
  };
216
152
  exports.se_DeleteTimelineEventCommand = se_DeleteTimelineEventCommand;
217
153
  const se_GetIncidentRecordCommand = async (input, context) => {
218
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
+ const b = (0, core_2.requestBuilder)(input, context);
219
155
  const headers = {};
220
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord";
156
+ b.bp("/getIncidentRecord");
221
157
  const query = (0, smithy_client_1.map)({
222
- arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
158
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
223
159
  });
224
160
  let body;
225
- return new protocol_http_1.HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "GET",
230
- headers,
231
- path: resolvedPath,
232
- query,
233
- body,
234
- });
161
+ b.m("GET").h(headers).q(query).b(body);
162
+ return b.build();
235
163
  };
236
164
  exports.se_GetIncidentRecordCommand = se_GetIncidentRecordCommand;
237
165
  const se_GetReplicationSetCommand = async (input, context) => {
238
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
+ const b = (0, core_2.requestBuilder)(input, context);
239
167
  const headers = {};
240
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet";
168
+ b.bp("/getReplicationSet");
241
169
  const query = (0, smithy_client_1.map)({
242
- arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
170
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
243
171
  });
244
172
  let body;
245
- return new protocol_http_1.HttpRequest({
246
- protocol,
247
- hostname,
248
- port,
249
- method: "GET",
250
- headers,
251
- path: resolvedPath,
252
- query,
253
- body,
254
- });
173
+ b.m("GET").h(headers).q(query).b(body);
174
+ return b.build();
255
175
  };
256
176
  exports.se_GetReplicationSetCommand = se_GetReplicationSetCommand;
257
177
  const se_GetResourcePoliciesCommand = async (input, context) => {
258
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_2.requestBuilder)(input, context);
259
179
  const headers = {
260
180
  "content-type": "application/json",
261
181
  };
262
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResourcePolicies";
182
+ b.bp("/getResourcePolicies");
263
183
  const query = (0, smithy_client_1.map)({
264
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
184
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
265
185
  });
266
186
  let body;
267
187
  body = JSON.stringify((0, smithy_client_1.take)(input, {
268
188
  maxResults: [],
269
189
  nextToken: [],
270
190
  }));
271
- return new protocol_http_1.HttpRequest({
272
- protocol,
273
- hostname,
274
- port,
275
- method: "POST",
276
- headers,
277
- path: resolvedPath,
278
- query,
279
- body,
280
- });
191
+ b.m("POST").h(headers).q(query).b(body);
192
+ return b.build();
281
193
  };
282
194
  exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand;
283
195
  const se_GetResponsePlanCommand = async (input, context) => {
284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
196
+ const b = (0, core_2.requestBuilder)(input, context);
285
197
  const headers = {};
286
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan";
198
+ b.bp("/getResponsePlan");
287
199
  const query = (0, smithy_client_1.map)({
288
- arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
200
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
289
201
  });
290
202
  let body;
291
- return new protocol_http_1.HttpRequest({
292
- protocol,
293
- hostname,
294
- port,
295
- method: "GET",
296
- headers,
297
- path: resolvedPath,
298
- query,
299
- body,
300
- });
203
+ b.m("GET").h(headers).q(query).b(body);
204
+ return b.build();
301
205
  };
302
206
  exports.se_GetResponsePlanCommand = se_GetResponsePlanCommand;
303
207
  const se_GetTimelineEventCommand = async (input, context) => {
304
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_2.requestBuilder)(input, context);
305
209
  const headers = {};
306
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent";
210
+ b.bp("/getTimelineEvent");
307
211
  const query = (0, smithy_client_1.map)({
308
- incidentRecordArn: [, (0, smithy_client_1.expectNonNull)(input.incidentRecordArn, `incidentRecordArn`)],
309
- eventId: [, (0, smithy_client_1.expectNonNull)(input.eventId, `eventId`)],
212
+ [_iRA]: [, (0, smithy_client_1.expectNonNull)(input[_iRA], `incidentRecordArn`)],
213
+ [_eI]: [, (0, smithy_client_1.expectNonNull)(input[_eI], `eventId`)],
310
214
  });
311
215
  let body;
312
- return new protocol_http_1.HttpRequest({
313
- protocol,
314
- hostname,
315
- port,
316
- method: "GET",
317
- headers,
318
- path: resolvedPath,
319
- query,
320
- body,
321
- });
216
+ b.m("GET").h(headers).q(query).b(body);
217
+ return b.build();
322
218
  };
323
219
  exports.se_GetTimelineEventCommand = se_GetTimelineEventCommand;
324
220
  const se_ListIncidentFindingsCommand = async (input, context) => {
325
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const b = (0, core_2.requestBuilder)(input, context);
326
222
  const headers = {
327
223
  "content-type": "application/json",
328
224
  };
329
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentFindings";
225
+ b.bp("/listIncidentFindings");
330
226
  let body;
331
227
  body = JSON.stringify((0, smithy_client_1.take)(input, {
332
228
  incidentRecordArn: [],
333
229
  maxResults: [],
334
230
  nextToken: [],
335
231
  }));
336
- return new protocol_http_1.HttpRequest({
337
- protocol,
338
- hostname,
339
- port,
340
- method: "POST",
341
- headers,
342
- path: resolvedPath,
343
- body,
344
- });
232
+ b.m("POST").h(headers).b(body);
233
+ return b.build();
345
234
  };
346
235
  exports.se_ListIncidentFindingsCommand = se_ListIncidentFindingsCommand;
347
236
  const se_ListIncidentRecordsCommand = async (input, context) => {
348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = (0, core_2.requestBuilder)(input, context);
349
238
  const headers = {
350
239
  "content-type": "application/json",
351
240
  };
352
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
241
+ b.bp("/listIncidentRecords");
353
242
  let body;
354
243
  body = JSON.stringify((0, smithy_client_1.take)(input, {
355
244
  filters: (_) => se_FilterList(_, context),
356
245
  maxResults: [],
357
246
  nextToken: [],
358
247
  }));
359
- return new protocol_http_1.HttpRequest({
360
- protocol,
361
- hostname,
362
- port,
363
- method: "POST",
364
- headers,
365
- path: resolvedPath,
366
- body,
367
- });
248
+ b.m("POST").h(headers).b(body);
249
+ return b.build();
368
250
  };
369
251
  exports.se_ListIncidentRecordsCommand = se_ListIncidentRecordsCommand;
370
252
  const se_ListRelatedItemsCommand = async (input, context) => {
371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_2.requestBuilder)(input, context);
372
254
  const headers = {
373
255
  "content-type": "application/json",
374
256
  };
375
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
257
+ b.bp("/listRelatedItems");
376
258
  let body;
377
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
378
260
  incidentRecordArn: [],
379
261
  maxResults: [],
380
262
  nextToken: [],
381
263
  }));
382
- return new protocol_http_1.HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
264
+ b.m("POST").h(headers).b(body);
265
+ return b.build();
391
266
  };
392
267
  exports.se_ListRelatedItemsCommand = se_ListRelatedItemsCommand;
393
268
  const se_ListReplicationSetsCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
269
+ const b = (0, core_2.requestBuilder)(input, context);
395
270
  const headers = {
396
271
  "content-type": "application/json",
397
272
  };
398
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
273
+ b.bp("/listReplicationSets");
399
274
  let body;
400
275
  body = JSON.stringify((0, smithy_client_1.take)(input, {
401
276
  maxResults: [],
402
277
  nextToken: [],
403
278
  }));
404
- return new protocol_http_1.HttpRequest({
405
- protocol,
406
- hostname,
407
- port,
408
- method: "POST",
409
- headers,
410
- path: resolvedPath,
411
- body,
412
- });
279
+ b.m("POST").h(headers).b(body);
280
+ return b.build();
413
281
  };
414
282
  exports.se_ListReplicationSetsCommand = se_ListReplicationSetsCommand;
415
283
  const se_ListResponsePlansCommand = async (input, context) => {
416
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
+ const b = (0, core_2.requestBuilder)(input, context);
417
285
  const headers = {
418
286
  "content-type": "application/json",
419
287
  };
420
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
288
+ b.bp("/listResponsePlans");
421
289
  let body;
422
290
  body = JSON.stringify((0, smithy_client_1.take)(input, {
423
291
  maxResults: [],
424
292
  nextToken: [],
425
293
  }));
426
- return new protocol_http_1.HttpRequest({
427
- protocol,
428
- hostname,
429
- port,
430
- method: "POST",
431
- headers,
432
- path: resolvedPath,
433
- body,
434
- });
294
+ b.m("POST").h(headers).b(body);
295
+ return b.build();
435
296
  };
436
297
  exports.se_ListResponsePlansCommand = se_ListResponsePlansCommand;
437
298
  const se_ListTagsForResourceCommand = async (input, context) => {
438
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = (0, core_2.requestBuilder)(input, context);
439
300
  const headers = {};
440
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
301
+ b.bp("/tags/{resourceArn}");
302
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
442
303
  let body;
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "GET",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
304
+ b.m("GET").h(headers).b(body);
305
+ return b.build();
452
306
  };
453
307
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
454
308
  const se_ListTimelineEventsCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
309
+ const b = (0, core_2.requestBuilder)(input, context);
456
310
  const headers = {
457
311
  "content-type": "application/json",
458
312
  };
459
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
313
+ b.bp("/listTimelineEvents");
460
314
  let body;
461
315
  body = JSON.stringify((0, smithy_client_1.take)(input, {
462
316
  filters: (_) => se_FilterList(_, context),
@@ -466,45 +320,31 @@ const se_ListTimelineEventsCommand = async (input, context) => {
466
320
  sortBy: [],
467
321
  sortOrder: [],
468
322
  }));
469
- return new protocol_http_1.HttpRequest({
470
- protocol,
471
- hostname,
472
- port,
473
- method: "POST",
474
- headers,
475
- path: resolvedPath,
476
- body,
477
- });
323
+ b.m("POST").h(headers).b(body);
324
+ return b.build();
478
325
  };
479
326
  exports.se_ListTimelineEventsCommand = se_ListTimelineEventsCommand;
480
327
  const se_PutResourcePolicyCommand = async (input, context) => {
481
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_2.requestBuilder)(input, context);
482
329
  const headers = {
483
330
  "content-type": "application/json",
484
331
  };
485
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
332
+ b.bp("/putResourcePolicy");
486
333
  let body;
487
334
  body = JSON.stringify((0, smithy_client_1.take)(input, {
488
335
  policy: [],
489
336
  resourceArn: [],
490
337
  }));
491
- return new protocol_http_1.HttpRequest({
492
- protocol,
493
- hostname,
494
- port,
495
- method: "POST",
496
- headers,
497
- path: resolvedPath,
498
- body,
499
- });
338
+ b.m("POST").h(headers).b(body);
339
+ return b.build();
500
340
  };
501
341
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
502
342
  const se_StartIncidentCommand = async (input, context) => {
503
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = (0, core_2.requestBuilder)(input, context);
504
344
  const headers = {
505
345
  "content-type": "application/json",
506
346
  };
507
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
347
+ b.bp("/startIncident");
508
348
  let body;
509
349
  body = JSON.stringify((0, smithy_client_1.take)(input, {
510
350
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -514,92 +354,63 @@ const se_StartIncidentCommand = async (input, context) => {
514
354
  title: [],
515
355
  triggerDetails: (_) => se_TriggerDetails(_, context),
516
356
  }));
517
- return new protocol_http_1.HttpRequest({
518
- protocol,
519
- hostname,
520
- port,
521
- method: "POST",
522
- headers,
523
- path: resolvedPath,
524
- body,
525
- });
357
+ b.m("POST").h(headers).b(body);
358
+ return b.build();
526
359
  };
527
360
  exports.se_StartIncidentCommand = se_StartIncidentCommand;
528
361
  const se_TagResourceCommand = async (input, context) => {
529
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
362
+ const b = (0, core_2.requestBuilder)(input, context);
530
363
  const headers = {
531
364
  "content-type": "application/json",
532
365
  };
533
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
366
+ b.bp("/tags/{resourceArn}");
367
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
535
368
  let body;
536
369
  body = JSON.stringify((0, smithy_client_1.take)(input, {
537
370
  tags: (_) => (0, smithy_client_1._json)(_),
538
371
  }));
539
- return new protocol_http_1.HttpRequest({
540
- protocol,
541
- hostname,
542
- port,
543
- method: "POST",
544
- headers,
545
- path: resolvedPath,
546
- body,
547
- });
372
+ b.m("POST").h(headers).b(body);
373
+ return b.build();
548
374
  };
549
375
  exports.se_TagResourceCommand = se_TagResourceCommand;
550
376
  const se_UntagResourceCommand = async (input, context) => {
551
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
+ const b = (0, core_2.requestBuilder)(input, context);
552
378
  const headers = {};
553
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
554
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
379
+ b.bp("/tags/{resourceArn}");
380
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
555
381
  const query = (0, smithy_client_1.map)({
556
- tagKeys: [
382
+ [_tK]: [
557
383
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
558
- () => (input.tagKeys || []).map((_entry) => _entry),
384
+ () => (input[_tK] || []).map((_entry) => _entry),
559
385
  ],
560
386
  });
561
387
  let body;
562
- return new protocol_http_1.HttpRequest({
563
- protocol,
564
- hostname,
565
- port,
566
- method: "DELETE",
567
- headers,
568
- path: resolvedPath,
569
- query,
570
- body,
571
- });
388
+ b.m("DELETE").h(headers).q(query).b(body);
389
+ return b.build();
572
390
  };
573
391
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
574
392
  const se_UpdateDeletionProtectionCommand = async (input, context) => {
575
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
+ const b = (0, core_2.requestBuilder)(input, context);
576
394
  const headers = {
577
395
  "content-type": "application/json",
578
396
  };
579
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
397
+ b.bp("/updateDeletionProtection");
580
398
  let body;
581
399
  body = JSON.stringify((0, smithy_client_1.take)(input, {
582
400
  arn: [],
583
401
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
584
402
  deletionProtected: [],
585
403
  }));
586
- return new protocol_http_1.HttpRequest({
587
- protocol,
588
- hostname,
589
- port,
590
- method: "POST",
591
- headers,
592
- path: resolvedPath,
593
- body,
594
- });
404
+ b.m("POST").h(headers).b(body);
405
+ return b.build();
595
406
  };
596
407
  exports.se_UpdateDeletionProtectionCommand = se_UpdateDeletionProtectionCommand;
597
408
  const se_UpdateIncidentRecordCommand = async (input, context) => {
598
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
409
+ const b = (0, core_2.requestBuilder)(input, context);
599
410
  const headers = {
600
411
  "content-type": "application/json",
601
412
  };
602
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
413
+ b.bp("/updateIncidentRecord");
603
414
  let body;
604
415
  body = JSON.stringify((0, smithy_client_1.take)(input, {
605
416
  arn: [],
@@ -611,69 +422,48 @@ const se_UpdateIncidentRecordCommand = async (input, context) => {
611
422
  summary: [],
612
423
  title: [],
613
424
  }));
614
- return new protocol_http_1.HttpRequest({
615
- protocol,
616
- hostname,
617
- port,
618
- method: "POST",
619
- headers,
620
- path: resolvedPath,
621
- body,
622
- });
425
+ b.m("POST").h(headers).b(body);
426
+ return b.build();
623
427
  };
624
428
  exports.se_UpdateIncidentRecordCommand = se_UpdateIncidentRecordCommand;
625
429
  const se_UpdateRelatedItemsCommand = async (input, context) => {
626
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
430
+ const b = (0, core_2.requestBuilder)(input, context);
627
431
  const headers = {
628
432
  "content-type": "application/json",
629
433
  };
630
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
434
+ b.bp("/updateRelatedItems");
631
435
  let body;
632
436
  body = JSON.stringify((0, smithy_client_1.take)(input, {
633
437
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
634
438
  incidentRecordArn: [],
635
439
  relatedItemsUpdate: (_) => (0, smithy_client_1._json)(_),
636
440
  }));
637
- return new protocol_http_1.HttpRequest({
638
- protocol,
639
- hostname,
640
- port,
641
- method: "POST",
642
- headers,
643
- path: resolvedPath,
644
- body,
645
- });
441
+ b.m("POST").h(headers).b(body);
442
+ return b.build();
646
443
  };
647
444
  exports.se_UpdateRelatedItemsCommand = se_UpdateRelatedItemsCommand;
648
445
  const se_UpdateReplicationSetCommand = async (input, context) => {
649
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
446
+ const b = (0, core_2.requestBuilder)(input, context);
650
447
  const headers = {
651
448
  "content-type": "application/json",
652
449
  };
653
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
450
+ b.bp("/updateReplicationSet");
654
451
  let body;
655
452
  body = JSON.stringify((0, smithy_client_1.take)(input, {
656
453
  actions: (_) => (0, smithy_client_1._json)(_),
657
454
  arn: [],
658
455
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
659
456
  }));
660
- return new protocol_http_1.HttpRequest({
661
- protocol,
662
- hostname,
663
- port,
664
- method: "POST",
665
- headers,
666
- path: resolvedPath,
667
- body,
668
- });
457
+ b.m("POST").h(headers).b(body);
458
+ return b.build();
669
459
  };
670
460
  exports.se_UpdateReplicationSetCommand = se_UpdateReplicationSetCommand;
671
461
  const se_UpdateResponsePlanCommand = async (input, context) => {
672
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
462
+ const b = (0, core_2.requestBuilder)(input, context);
673
463
  const headers = {
674
464
  "content-type": "application/json",
675
465
  };
676
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
466
+ b.bp("/updateResponsePlan");
677
467
  let body;
678
468
  body = JSON.stringify((0, smithy_client_1.take)(input, {
679
469
  actions: (_) => (0, smithy_client_1._json)(_),
@@ -690,23 +480,16 @@ const se_UpdateResponsePlanCommand = async (input, context) => {
690
480
  incidentTemplateTitle: [],
691
481
  integrations: (_) => (0, smithy_client_1._json)(_),
692
482
  }));
693
- return new protocol_http_1.HttpRequest({
694
- protocol,
695
- hostname,
696
- port,
697
- method: "POST",
698
- headers,
699
- path: resolvedPath,
700
- body,
701
- });
483
+ b.m("POST").h(headers).b(body);
484
+ return b.build();
702
485
  };
703
486
  exports.se_UpdateResponsePlanCommand = se_UpdateResponsePlanCommand;
704
487
  const se_UpdateTimelineEventCommand = async (input, context) => {
705
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
+ const b = (0, core_2.requestBuilder)(input, context);
706
489
  const headers = {
707
490
  "content-type": "application/json",
708
491
  };
709
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
492
+ b.bp("/updateTimelineEvent");
710
493
  let body;
711
494
  body = JSON.stringify((0, smithy_client_1.take)(input, {
712
495
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -717,15 +500,8 @@ const se_UpdateTimelineEventCommand = async (input, context) => {
717
500
  eventType: [],
718
501
  incidentRecordArn: [],
719
502
  }));
720
- return new protocol_http_1.HttpRequest({
721
- protocol,
722
- hostname,
723
- port,
724
- method: "POST",
725
- headers,
726
- path: resolvedPath,
727
- body,
728
- });
503
+ b.m("POST").h(headers).b(body);
504
+ return b.build();
729
505
  };
730
506
  exports.se_UpdateTimelineEventCommand = se_UpdateTimelineEventCommand;
731
507
  const de_BatchGetIncidentFindingsCommand = async (output, context) => {
@@ -2427,6 +2203,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2427
2203
  value !== "" &&
2428
2204
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2429
2205
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2206
+ const _a = "arn";
2207
+ const _eI = "eventId";
2208
+ const _iRA = "incidentRecordArn";
2209
+ const _rA = "resourceArn";
2210
+ const _tK = "tagKeys";
2430
2211
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2431
2212
  if (encoded.length) {
2432
2213
  return JSON.parse(encoded);