@aws-sdk/client-detective 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.
@@ -2,101 +2,73 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListTagsForResourceCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListInvestigationsCommand = exports.de_ListIndicatorsCommand = exports.de_ListGraphsCommand = exports.de_ListDatasourcePackagesCommand = exports.de_GetMembersCommand = exports.de_GetInvestigationCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_DisassociateMembershipCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DeleteMembersCommand = exports.de_DeleteGraphCommand = exports.de_CreateMembersCommand = exports.de_CreateGraphCommand = exports.de_BatchGetMembershipDatasourcesCommand = exports.de_BatchGetGraphMemberDatasourcesCommand = exports.de_AcceptInvitationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInvestigationStateCommand = exports.se_UpdateDatasourcePackagesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMonitoringMemberCommand = exports.se_StartInvestigationCommand = exports.se_RejectInvitationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListInvestigationsCommand = exports.se_ListIndicatorsCommand = exports.se_ListGraphsCommand = exports.se_ListDatasourcePackagesCommand = exports.se_GetMembersCommand = exports.se_GetInvestigationCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_DisassociateMembershipCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DeleteMembersCommand = exports.se_DeleteGraphCommand = exports.se_CreateMembersCommand = exports.se_CreateGraphCommand = exports.se_BatchGetMembershipDatasourcesCommand = exports.se_BatchGetGraphMemberDatasourcesCommand = exports.se_AcceptInvitationCommand = void 0;
4
4
  exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInvestigationStateCommand = exports.de_UpdateDatasourcePackagesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMonitoringMemberCommand = exports.de_StartInvestigationCommand = exports.de_RejectInvitationCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const DetectiveServiceException_1 = require("../models/DetectiveServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AcceptInvitationCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
14
+ b.bp("/invitation");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  GraphArn: [],
18
18
  }));
19
- return new protocol_http_1.HttpRequest({
20
- protocol,
21
- hostname,
22
- port,
23
- method: "PUT",
24
- headers,
25
- path: resolvedPath,
26
- body,
27
- });
19
+ b.m("PUT").h(headers).b(body);
20
+ return b.build();
28
21
  };
29
22
  exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
30
23
  const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = (0, core_1.requestBuilder)(input, context);
32
25
  const headers = {
33
26
  "content-type": "application/json",
34
27
  };
35
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
28
+ b.bp("/graph/datasources/get");
36
29
  let body;
37
30
  body = JSON.stringify((0, smithy_client_1.take)(input, {
38
31
  AccountIds: (_) => (0, smithy_client_1._json)(_),
39
32
  GraphArn: [],
40
33
  }));
41
- return new protocol_http_1.HttpRequest({
42
- protocol,
43
- hostname,
44
- port,
45
- method: "POST",
46
- headers,
47
- path: resolvedPath,
48
- body,
49
- });
34
+ b.m("POST").h(headers).b(body);
35
+ return b.build();
50
36
  };
51
37
  exports.se_BatchGetGraphMemberDatasourcesCommand = se_BatchGetGraphMemberDatasourcesCommand;
52
38
  const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
53
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
+ const b = (0, core_1.requestBuilder)(input, context);
54
40
  const headers = {
55
41
  "content-type": "application/json",
56
42
  };
57
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
43
+ b.bp("/membership/datasources/get");
58
44
  let body;
59
45
  body = JSON.stringify((0, smithy_client_1.take)(input, {
60
46
  GraphArns: (_) => (0, smithy_client_1._json)(_),
61
47
  }));
62
- return new protocol_http_1.HttpRequest({
63
- protocol,
64
- hostname,
65
- port,
66
- method: "POST",
67
- headers,
68
- path: resolvedPath,
69
- body,
70
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
71
50
  };
72
51
  exports.se_BatchGetMembershipDatasourcesCommand = se_BatchGetMembershipDatasourcesCommand;
73
52
  const se_CreateGraphCommand = async (input, context) => {
74
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
75
54
  const headers = {
76
55
  "content-type": "application/json",
77
56
  };
78
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
57
+ b.bp("/graph");
79
58
  let body;
80
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
81
60
  Tags: (_) => (0, smithy_client_1._json)(_),
82
61
  }));
83
- return new protocol_http_1.HttpRequest({
84
- protocol,
85
- hostname,
86
- port,
87
- method: "POST",
88
- headers,
89
- path: resolvedPath,
90
- body,
91
- });
62
+ b.m("POST").h(headers).b(body);
63
+ return b.build();
92
64
  };
93
65
  exports.se_CreateGraphCommand = se_CreateGraphCommand;
94
66
  const se_CreateMembersCommand = async (input, context) => {
95
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
+ const b = (0, core_1.requestBuilder)(input, context);
96
68
  const headers = {
97
69
  "content-type": "application/json",
98
70
  };
99
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
71
+ b.bp("/graph/members");
100
72
  let body;
101
73
  body = JSON.stringify((0, smithy_client_1.take)(input, {
102
74
  Accounts: (_) => (0, smithy_client_1._json)(_),
@@ -104,237 +76,160 @@ const se_CreateMembersCommand = async (input, context) => {
104
76
  GraphArn: [],
105
77
  Message: [],
106
78
  }));
107
- return new protocol_http_1.HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "POST",
112
- headers,
113
- path: resolvedPath,
114
- body,
115
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
116
81
  };
117
82
  exports.se_CreateMembersCommand = se_CreateMembersCommand;
118
83
  const se_DeleteGraphCommand = async (input, context) => {
119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
120
85
  const headers = {
121
86
  "content-type": "application/json",
122
87
  };
123
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/removal";
88
+ b.bp("/graph/removal");
124
89
  let body;
125
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
126
91
  GraphArn: [],
127
92
  }));
128
- return new protocol_http_1.HttpRequest({
129
- protocol,
130
- hostname,
131
- port,
132
- method: "POST",
133
- headers,
134
- path: resolvedPath,
135
- body,
136
- });
93
+ b.m("POST").h(headers).b(body);
94
+ return b.build();
137
95
  };
138
96
  exports.se_DeleteGraphCommand = se_DeleteGraphCommand;
139
97
  const se_DeleteMembersCommand = async (input, context) => {
140
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = (0, core_1.requestBuilder)(input, context);
141
99
  const headers = {
142
100
  "content-type": "application/json",
143
101
  };
144
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
102
+ b.bp("/graph/members/removal");
145
103
  let body;
146
104
  body = JSON.stringify((0, smithy_client_1.take)(input, {
147
105
  AccountIds: (_) => (0, smithy_client_1._json)(_),
148
106
  GraphArn: [],
149
107
  }));
150
- return new protocol_http_1.HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "POST",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
108
+ b.m("POST").h(headers).b(body);
109
+ return b.build();
159
110
  };
160
111
  exports.se_DeleteMembersCommand = se_DeleteMembersCommand;
161
112
  const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
163
114
  const headers = {
164
115
  "content-type": "application/json",
165
116
  };
166
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/describeOrganizationConfiguration";
117
+ b.bp("/orgs/describeOrganizationConfiguration");
167
118
  let body;
168
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
169
120
  GraphArn: [],
170
121
  }));
171
- return new protocol_http_1.HttpRequest({
172
- protocol,
173
- hostname,
174
- port,
175
- method: "POST",
176
- headers,
177
- path: resolvedPath,
178
- body,
179
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
180
124
  };
181
125
  exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
182
126
  const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
183
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
184
128
  const headers = {
185
129
  "content-type": "application/json",
186
130
  };
187
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/disableAdminAccount";
131
+ b.bp("/orgs/disableAdminAccount");
188
132
  let body;
189
133
  body = "";
190
- return new protocol_http_1.HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "POST",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
134
+ b.m("POST").h(headers).b(body);
135
+ return b.build();
199
136
  };
200
137
  exports.se_DisableOrganizationAdminAccountCommand = se_DisableOrganizationAdminAccountCommand;
201
138
  const se_DisassociateMembershipCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_1.requestBuilder)(input, context);
203
140
  const headers = {
204
141
  "content-type": "application/json",
205
142
  };
206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/removal";
143
+ b.bp("/membership/removal");
207
144
  let body;
208
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
209
146
  GraphArn: [],
210
147
  }));
211
- return new protocol_http_1.HttpRequest({
212
- protocol,
213
- hostname,
214
- port,
215
- method: "POST",
216
- headers,
217
- path: resolvedPath,
218
- body,
219
- });
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
220
150
  };
221
151
  exports.se_DisassociateMembershipCommand = se_DisassociateMembershipCommand;
222
152
  const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
224
154
  const headers = {
225
155
  "content-type": "application/json",
226
156
  };
227
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/enableAdminAccount";
157
+ b.bp("/orgs/enableAdminAccount");
228
158
  let body;
229
159
  body = JSON.stringify((0, smithy_client_1.take)(input, {
230
160
  AccountId: [],
231
161
  }));
232
- return new protocol_http_1.HttpRequest({
233
- protocol,
234
- hostname,
235
- port,
236
- method: "POST",
237
- headers,
238
- path: resolvedPath,
239
- body,
240
- });
162
+ b.m("POST").h(headers).b(body);
163
+ return b.build();
241
164
  };
242
165
  exports.se_EnableOrganizationAdminAccountCommand = se_EnableOrganizationAdminAccountCommand;
243
166
  const se_GetInvestigationCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = (0, core_1.requestBuilder)(input, context);
245
168
  const headers = {
246
169
  "content-type": "application/json",
247
170
  };
248
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/getInvestigation";
171
+ b.bp("/investigations/getInvestigation");
249
172
  let body;
250
173
  body = JSON.stringify((0, smithy_client_1.take)(input, {
251
174
  GraphArn: [],
252
175
  InvestigationId: [],
253
176
  }));
254
- return new protocol_http_1.HttpRequest({
255
- protocol,
256
- hostname,
257
- port,
258
- method: "POST",
259
- headers,
260
- path: resolvedPath,
261
- body,
262
- });
177
+ b.m("POST").h(headers).b(body);
178
+ return b.build();
263
179
  };
264
180
  exports.se_GetInvestigationCommand = se_GetInvestigationCommand;
265
181
  const se_GetMembersCommand = async (input, context) => {
266
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = (0, core_1.requestBuilder)(input, context);
267
183
  const headers = {
268
184
  "content-type": "application/json",
269
185
  };
270
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
186
+ b.bp("/graph/members/get");
271
187
  let body;
272
188
  body = JSON.stringify((0, smithy_client_1.take)(input, {
273
189
  AccountIds: (_) => (0, smithy_client_1._json)(_),
274
190
  GraphArn: [],
275
191
  }));
276
- return new protocol_http_1.HttpRequest({
277
- protocol,
278
- hostname,
279
- port,
280
- method: "POST",
281
- headers,
282
- path: resolvedPath,
283
- body,
284
- });
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
285
194
  };
286
195
  exports.se_GetMembersCommand = se_GetMembersCommand;
287
196
  const se_ListDatasourcePackagesCommand = async (input, context) => {
288
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = (0, core_1.requestBuilder)(input, context);
289
198
  const headers = {
290
199
  "content-type": "application/json",
291
200
  };
292
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list";
201
+ b.bp("/graph/datasources/list");
293
202
  let body;
294
203
  body = JSON.stringify((0, smithy_client_1.take)(input, {
295
204
  GraphArn: [],
296
205
  MaxResults: [],
297
206
  NextToken: [],
298
207
  }));
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "POST",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
208
+ b.m("POST").h(headers).b(body);
209
+ return b.build();
308
210
  };
309
211
  exports.se_ListDatasourcePackagesCommand = se_ListDatasourcePackagesCommand;
310
212
  const se_ListGraphsCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
+ const b = (0, core_1.requestBuilder)(input, context);
312
214
  const headers = {
313
215
  "content-type": "application/json",
314
216
  };
315
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/list";
217
+ b.bp("/graphs/list");
316
218
  let body;
317
219
  body = JSON.stringify((0, smithy_client_1.take)(input, {
318
220
  MaxResults: [],
319
221
  NextToken: [],
320
222
  }));
321
- return new protocol_http_1.HttpRequest({
322
- protocol,
323
- hostname,
324
- port,
325
- method: "POST",
326
- headers,
327
- path: resolvedPath,
328
- body,
329
- });
223
+ b.m("POST").h(headers).b(body);
224
+ return b.build();
330
225
  };
331
226
  exports.se_ListGraphsCommand = se_ListGraphsCommand;
332
227
  const se_ListIndicatorsCommand = async (input, context) => {
333
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
+ const b = (0, core_1.requestBuilder)(input, context);
334
229
  const headers = {
335
230
  "content-type": "application/json",
336
231
  };
337
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/listIndicators";
232
+ b.bp("/investigations/listIndicators");
338
233
  let body;
339
234
  body = JSON.stringify((0, smithy_client_1.take)(input, {
340
235
  GraphArn: [],
@@ -343,23 +238,16 @@ const se_ListIndicatorsCommand = async (input, context) => {
343
238
  MaxResults: [],
344
239
  NextToken: [],
345
240
  }));
346
- return new protocol_http_1.HttpRequest({
347
- protocol,
348
- hostname,
349
- port,
350
- method: "POST",
351
- headers,
352
- path: resolvedPath,
353
- body,
354
- });
241
+ b.m("POST").h(headers).b(body);
242
+ return b.build();
355
243
  };
356
244
  exports.se_ListIndicatorsCommand = se_ListIndicatorsCommand;
357
245
  const se_ListInvestigationsCommand = async (input, context) => {
358
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = (0, core_1.requestBuilder)(input, context);
359
247
  const headers = {
360
248
  "content-type": "application/json",
361
249
  };
362
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/listInvestigations";
250
+ b.bp("/investigations/listInvestigations");
363
251
  let body;
364
252
  body = JSON.stringify((0, smithy_client_1.take)(input, {
365
253
  FilterCriteria: (_) => se_FilterCriteria(_, context),
@@ -368,128 +256,86 @@ const se_ListInvestigationsCommand = async (input, context) => {
368
256
  NextToken: [],
369
257
  SortCriteria: (_) => (0, smithy_client_1._json)(_),
370
258
  }));
371
- return new protocol_http_1.HttpRequest({
372
- protocol,
373
- hostname,
374
- port,
375
- method: "POST",
376
- headers,
377
- path: resolvedPath,
378
- body,
379
- });
259
+ b.m("POST").h(headers).b(body);
260
+ return b.build();
380
261
  };
381
262
  exports.se_ListInvestigationsCommand = se_ListInvestigationsCommand;
382
263
  const se_ListInvitationsCommand = async (input, context) => {
383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
+ const b = (0, core_1.requestBuilder)(input, context);
384
265
  const headers = {
385
266
  "content-type": "application/json",
386
267
  };
387
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/list";
268
+ b.bp("/invitations/list");
388
269
  let body;
389
270
  body = JSON.stringify((0, smithy_client_1.take)(input, {
390
271
  MaxResults: [],
391
272
  NextToken: [],
392
273
  }));
393
- return new protocol_http_1.HttpRequest({
394
- protocol,
395
- hostname,
396
- port,
397
- method: "POST",
398
- headers,
399
- path: resolvedPath,
400
- body,
401
- });
274
+ b.m("POST").h(headers).b(body);
275
+ return b.build();
402
276
  };
403
277
  exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
404
278
  const se_ListMembersCommand = async (input, context) => {
405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
279
+ const b = (0, core_1.requestBuilder)(input, context);
406
280
  const headers = {
407
281
  "content-type": "application/json",
408
282
  };
409
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/list";
283
+ b.bp("/graph/members/list");
410
284
  let body;
411
285
  body = JSON.stringify((0, smithy_client_1.take)(input, {
412
286
  GraphArn: [],
413
287
  MaxResults: [],
414
288
  NextToken: [],
415
289
  }));
416
- return new protocol_http_1.HttpRequest({
417
- protocol,
418
- hostname,
419
- port,
420
- method: "POST",
421
- headers,
422
- path: resolvedPath,
423
- body,
424
- });
290
+ b.m("POST").h(headers).b(body);
291
+ return b.build();
425
292
  };
426
293
  exports.se_ListMembersCommand = se_ListMembersCommand;
427
294
  const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
295
+ const b = (0, core_1.requestBuilder)(input, context);
429
296
  const headers = {
430
297
  "content-type": "application/json",
431
298
  };
432
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/adminAccountslist";
299
+ b.bp("/orgs/adminAccountslist");
433
300
  let body;
434
301
  body = JSON.stringify((0, smithy_client_1.take)(input, {
435
302
  MaxResults: [],
436
303
  NextToken: [],
437
304
  }));
438
- return new protocol_http_1.HttpRequest({
439
- protocol,
440
- hostname,
441
- port,
442
- method: "POST",
443
- headers,
444
- path: resolvedPath,
445
- body,
446
- });
305
+ b.m("POST").h(headers).b(body);
306
+ return b.build();
447
307
  };
448
308
  exports.se_ListOrganizationAdminAccountsCommand = se_ListOrganizationAdminAccountsCommand;
449
309
  const se_ListTagsForResourceCommand = async (input, context) => {
450
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
+ const b = (0, core_1.requestBuilder)(input, context);
451
311
  const headers = {};
452
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
453
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
312
+ b.bp("/tags/{ResourceArn}");
313
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
454
314
  let body;
455
- return new protocol_http_1.HttpRequest({
456
- protocol,
457
- hostname,
458
- port,
459
- method: "GET",
460
- headers,
461
- path: resolvedPath,
462
- body,
463
- });
315
+ b.m("GET").h(headers).b(body);
316
+ return b.build();
464
317
  };
465
318
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
466
319
  const se_RejectInvitationCommand = async (input, context) => {
467
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const b = (0, core_1.requestBuilder)(input, context);
468
321
  const headers = {
469
322
  "content-type": "application/json",
470
323
  };
471
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/removal";
324
+ b.bp("/invitation/removal");
472
325
  let body;
473
326
  body = JSON.stringify((0, smithy_client_1.take)(input, {
474
327
  GraphArn: [],
475
328
  }));
476
- return new protocol_http_1.HttpRequest({
477
- protocol,
478
- hostname,
479
- port,
480
- method: "POST",
481
- headers,
482
- path: resolvedPath,
483
- body,
484
- });
329
+ b.m("POST").h(headers).b(body);
330
+ return b.build();
485
331
  };
486
332
  exports.se_RejectInvitationCommand = se_RejectInvitationCommand;
487
333
  const se_StartInvestigationCommand = async (input, context) => {
488
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = (0, core_1.requestBuilder)(input, context);
489
335
  const headers = {
490
336
  "content-type": "application/json",
491
337
  };
492
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/startInvestigation";
338
+ b.bp("/investigations/startInvestigation");
493
339
  let body;
494
340
  body = JSON.stringify((0, smithy_client_1.take)(input, {
495
341
  EntityArn: [],
@@ -497,150 +343,100 @@ const se_StartInvestigationCommand = async (input, context) => {
497
343
  ScopeEndTime: (_) => _.toISOString().split(".")[0] + "Z",
498
344
  ScopeStartTime: (_) => _.toISOString().split(".")[0] + "Z",
499
345
  }));
500
- return new protocol_http_1.HttpRequest({
501
- protocol,
502
- hostname,
503
- port,
504
- method: "POST",
505
- headers,
506
- path: resolvedPath,
507
- body,
508
- });
346
+ b.m("POST").h(headers).b(body);
347
+ return b.build();
509
348
  };
510
349
  exports.se_StartInvestigationCommand = se_StartInvestigationCommand;
511
350
  const se_StartMonitoringMemberCommand = async (input, context) => {
512
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = (0, core_1.requestBuilder)(input, context);
513
352
  const headers = {
514
353
  "content-type": "application/json",
515
354
  };
516
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/member/monitoringstate";
355
+ b.bp("/graph/member/monitoringstate");
517
356
  let body;
518
357
  body = JSON.stringify((0, smithy_client_1.take)(input, {
519
358
  AccountId: [],
520
359
  GraphArn: [],
521
360
  }));
522
- return new protocol_http_1.HttpRequest({
523
- protocol,
524
- hostname,
525
- port,
526
- method: "POST",
527
- headers,
528
- path: resolvedPath,
529
- body,
530
- });
361
+ b.m("POST").h(headers).b(body);
362
+ return b.build();
531
363
  };
532
364
  exports.se_StartMonitoringMemberCommand = se_StartMonitoringMemberCommand;
533
365
  const se_TagResourceCommand = async (input, context) => {
534
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
+ const b = (0, core_1.requestBuilder)(input, context);
535
367
  const headers = {
536
368
  "content-type": "application/json",
537
369
  };
538
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
539
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
370
+ b.bp("/tags/{ResourceArn}");
371
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
540
372
  let body;
541
373
  body = JSON.stringify((0, smithy_client_1.take)(input, {
542
374
  Tags: (_) => (0, smithy_client_1._json)(_),
543
375
  }));
544
- return new protocol_http_1.HttpRequest({
545
- protocol,
546
- hostname,
547
- port,
548
- method: "POST",
549
- headers,
550
- path: resolvedPath,
551
- body,
552
- });
376
+ b.m("POST").h(headers).b(body);
377
+ return b.build();
553
378
  };
554
379
  exports.se_TagResourceCommand = se_TagResourceCommand;
555
380
  const se_UntagResourceCommand = async (input, context) => {
556
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = (0, core_1.requestBuilder)(input, context);
557
382
  const headers = {};
558
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
559
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
383
+ b.bp("/tags/{ResourceArn}");
384
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
560
385
  const query = (0, smithy_client_1.map)({
561
- tagKeys: [
386
+ [_tK]: [
562
387
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
563
- () => (input.TagKeys || []).map((_entry) => _entry),
388
+ () => (input[_TK] || []).map((_entry) => _entry),
564
389
  ],
565
390
  });
566
391
  let body;
567
- return new protocol_http_1.HttpRequest({
568
- protocol,
569
- hostname,
570
- port,
571
- method: "DELETE",
572
- headers,
573
- path: resolvedPath,
574
- query,
575
- body,
576
- });
392
+ b.m("DELETE").h(headers).q(query).b(body);
393
+ return b.build();
577
394
  };
578
395
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
579
396
  const se_UpdateDatasourcePackagesCommand = async (input, context) => {
580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
+ const b = (0, core_1.requestBuilder)(input, context);
581
398
  const headers = {
582
399
  "content-type": "application/json",
583
400
  };
584
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update";
401
+ b.bp("/graph/datasources/update");
585
402
  let body;
586
403
  body = JSON.stringify((0, smithy_client_1.take)(input, {
587
404
  DatasourcePackages: (_) => (0, smithy_client_1._json)(_),
588
405
  GraphArn: [],
589
406
  }));
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname,
593
- port,
594
- method: "POST",
595
- headers,
596
- path: resolvedPath,
597
- body,
598
- });
407
+ b.m("POST").h(headers).b(body);
408
+ return b.build();
599
409
  };
600
410
  exports.se_UpdateDatasourcePackagesCommand = se_UpdateDatasourcePackagesCommand;
601
411
  const se_UpdateInvestigationStateCommand = async (input, context) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
+ const b = (0, core_1.requestBuilder)(input, context);
603
413
  const headers = {
604
414
  "content-type": "application/json",
605
415
  };
606
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/updateInvestigationState";
416
+ b.bp("/investigations/updateInvestigationState");
607
417
  let body;
608
418
  body = JSON.stringify((0, smithy_client_1.take)(input, {
609
419
  GraphArn: [],
610
420
  InvestigationId: [],
611
421
  State: [],
612
422
  }));
613
- return new protocol_http_1.HttpRequest({
614
- protocol,
615
- hostname,
616
- port,
617
- method: "POST",
618
- headers,
619
- path: resolvedPath,
620
- body,
621
- });
423
+ b.m("POST").h(headers).b(body);
424
+ return b.build();
622
425
  };
623
426
  exports.se_UpdateInvestigationStateCommand = se_UpdateInvestigationStateCommand;
624
427
  const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
625
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
428
+ const b = (0, core_1.requestBuilder)(input, context);
626
429
  const headers = {
627
430
  "content-type": "application/json",
628
431
  };
629
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/updateOrganizationConfiguration";
432
+ b.bp("/orgs/updateOrganizationConfiguration");
630
433
  let body;
631
434
  body = JSON.stringify((0, smithy_client_1.take)(input, {
632
435
  AutoEnable: [],
633
436
  GraphArn: [],
634
437
  }));
635
- return new protocol_http_1.HttpRequest({
636
- protocol,
637
- hostname,
638
- port,
639
- method: "POST",
640
- headers,
641
- path: resolvedPath,
642
- body,
643
- });
438
+ b.m("POST").h(headers).b(body);
439
+ return b.build();
644
440
  };
645
441
  exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
646
442
  const de_AcceptInvitationCommand = async (output, context) => {
@@ -2168,6 +1964,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2168
1964
  value !== "" &&
2169
1965
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2170
1966
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1967
+ const _TK = "TagKeys";
1968
+ const _tK = "tagKeys";
2171
1969
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2172
1970
  if (encoded.length) {
2173
1971
  return JSON.parse(encoded);