@aws-sdk/client-frauddetector 3.310.0 → 3.312.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,657 +3,438 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { FraudDetectorServiceException as __BaseException } from "../models/FraudDetectorServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_BatchCreateVariableCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AWSHawksNestServiceFacade.BatchCreateVariable",
9
- };
6
+ const headers = sharedHeaders("BatchCreateVariable");
10
7
  let body;
11
8
  body = JSON.stringify(se_BatchCreateVariableRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_BatchGetVariableCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AWSHawksNestServiceFacade.BatchGetVariable",
18
- };
12
+ const headers = sharedHeaders("BatchGetVariable");
19
13
  let body;
20
14
  body = JSON.stringify(se_BatchGetVariableRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CancelBatchImportJobCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AWSHawksNestServiceFacade.CancelBatchImportJob",
27
- };
18
+ const headers = sharedHeaders("CancelBatchImportJob");
28
19
  let body;
29
20
  body = JSON.stringify(se_CancelBatchImportJobRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CancelBatchPredictionJobCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AWSHawksNestServiceFacade.CancelBatchPredictionJob",
36
- };
24
+ const headers = sharedHeaders("CancelBatchPredictionJob");
37
25
  let body;
38
26
  body = JSON.stringify(se_CancelBatchPredictionJobRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_CreateBatchImportJobCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AWSHawksNestServiceFacade.CreateBatchImportJob",
45
- };
30
+ const headers = sharedHeaders("CreateBatchImportJob");
46
31
  let body;
47
32
  body = JSON.stringify(se_CreateBatchImportJobRequest(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_CreateBatchPredictionJobCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AWSHawksNestServiceFacade.CreateBatchPredictionJob",
54
- };
36
+ const headers = sharedHeaders("CreateBatchPredictionJob");
55
37
  let body;
56
38
  body = JSON.stringify(se_CreateBatchPredictionJobRequest(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_CreateDetectorVersionCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AWSHawksNestServiceFacade.CreateDetectorVersion",
63
- };
42
+ const headers = sharedHeaders("CreateDetectorVersion");
64
43
  let body;
65
44
  body = JSON.stringify(se_CreateDetectorVersionRequest(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_CreateListCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSHawksNestServiceFacade.CreateList",
72
- };
48
+ const headers = sharedHeaders("CreateList");
73
49
  let body;
74
50
  body = JSON.stringify(se_CreateListRequest(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_CreateModelCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AWSHawksNestServiceFacade.CreateModel",
81
- };
54
+ const headers = sharedHeaders("CreateModel");
82
55
  let body;
83
56
  body = JSON.stringify(se_CreateModelRequest(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_CreateModelVersionCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AWSHawksNestServiceFacade.CreateModelVersion",
90
- };
60
+ const headers = sharedHeaders("CreateModelVersion");
91
61
  let body;
92
62
  body = JSON.stringify(se_CreateModelVersionRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_CreateRuleCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AWSHawksNestServiceFacade.CreateRule",
99
- };
66
+ const headers = sharedHeaders("CreateRule");
100
67
  let body;
101
68
  body = JSON.stringify(se_CreateRuleRequest(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_CreateVariableCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AWSHawksNestServiceFacade.CreateVariable",
108
- };
72
+ const headers = sharedHeaders("CreateVariable");
109
73
  let body;
110
74
  body = JSON.stringify(se_CreateVariableRequest(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_DeleteBatchImportJobCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteBatchImportJob",
117
- };
78
+ const headers = sharedHeaders("DeleteBatchImportJob");
118
79
  let body;
119
80
  body = JSON.stringify(se_DeleteBatchImportJobRequest(input, context));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_DeleteBatchPredictionJobCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteBatchPredictionJob",
126
- };
84
+ const headers = sharedHeaders("DeleteBatchPredictionJob");
127
85
  let body;
128
86
  body = JSON.stringify(se_DeleteBatchPredictionJobRequest(input, context));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_DeleteDetectorCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteDetector",
135
- };
90
+ const headers = sharedHeaders("DeleteDetector");
136
91
  let body;
137
92
  body = JSON.stringify(se_DeleteDetectorRequest(input, context));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_DeleteDetectorVersionCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteDetectorVersion",
144
- };
96
+ const headers = sharedHeaders("DeleteDetectorVersion");
145
97
  let body;
146
98
  body = JSON.stringify(se_DeleteDetectorVersionRequest(input, context));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_DeleteEntityTypeCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteEntityType",
153
- };
102
+ const headers = sharedHeaders("DeleteEntityType");
154
103
  let body;
155
104
  body = JSON.stringify(se_DeleteEntityTypeRequest(input, context));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_DeleteEventCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteEvent",
162
- };
108
+ const headers = sharedHeaders("DeleteEvent");
163
109
  let body;
164
110
  body = JSON.stringify(se_DeleteEventRequest(input, context));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_DeleteEventsByEventTypeCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteEventsByEventType",
171
- };
114
+ const headers = sharedHeaders("DeleteEventsByEventType");
172
115
  let body;
173
116
  body = JSON.stringify(se_DeleteEventsByEventTypeRequest(input, context));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_DeleteEventTypeCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteEventType",
180
- };
120
+ const headers = sharedHeaders("DeleteEventType");
181
121
  let body;
182
122
  body = JSON.stringify(se_DeleteEventTypeRequest(input, context));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_DeleteExternalModelCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteExternalModel",
189
- };
126
+ const headers = sharedHeaders("DeleteExternalModel");
190
127
  let body;
191
128
  body = JSON.stringify(se_DeleteExternalModelRequest(input, context));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_DeleteLabelCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteLabel",
198
- };
132
+ const headers = sharedHeaders("DeleteLabel");
199
133
  let body;
200
134
  body = JSON.stringify(se_DeleteLabelRequest(input, context));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_DeleteListCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteList",
207
- };
138
+ const headers = sharedHeaders("DeleteList");
208
139
  let body;
209
140
  body = JSON.stringify(se_DeleteListRequest(input, context));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_DeleteModelCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteModel",
216
- };
144
+ const headers = sharedHeaders("DeleteModel");
217
145
  let body;
218
146
  body = JSON.stringify(se_DeleteModelRequest(input, context));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_DeleteModelVersionCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteModelVersion",
225
- };
150
+ const headers = sharedHeaders("DeleteModelVersion");
226
151
  let body;
227
152
  body = JSON.stringify(se_DeleteModelVersionRequest(input, context));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_DeleteOutcomeCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteOutcome",
234
- };
156
+ const headers = sharedHeaders("DeleteOutcome");
235
157
  let body;
236
158
  body = JSON.stringify(se_DeleteOutcomeRequest(input, context));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const se_DeleteRuleCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteRule",
243
- };
162
+ const headers = sharedHeaders("DeleteRule");
244
163
  let body;
245
164
  body = JSON.stringify(se_DeleteRuleRequest(input, context));
246
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
166
  };
248
167
  export const se_DeleteVariableCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "AWSHawksNestServiceFacade.DeleteVariable",
252
- };
168
+ const headers = sharedHeaders("DeleteVariable");
253
169
  let body;
254
170
  body = JSON.stringify(se_DeleteVariableRequest(input, context));
255
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
172
  };
257
173
  export const se_DescribeDetectorCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.1",
260
- "x-amz-target": "AWSHawksNestServiceFacade.DescribeDetector",
261
- };
174
+ const headers = sharedHeaders("DescribeDetector");
262
175
  let body;
263
176
  body = JSON.stringify(se_DescribeDetectorRequest(input, context));
264
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
178
  };
266
179
  export const se_DescribeModelVersionsCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "AWSHawksNestServiceFacade.DescribeModelVersions",
270
- };
180
+ const headers = sharedHeaders("DescribeModelVersions");
271
181
  let body;
272
182
  body = JSON.stringify(se_DescribeModelVersionsRequest(input, context));
273
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
184
  };
275
185
  export const se_GetBatchImportJobsCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.1",
278
- "x-amz-target": "AWSHawksNestServiceFacade.GetBatchImportJobs",
279
- };
186
+ const headers = sharedHeaders("GetBatchImportJobs");
280
187
  let body;
281
188
  body = JSON.stringify(se_GetBatchImportJobsRequest(input, context));
282
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
190
  };
284
191
  export const se_GetBatchPredictionJobsCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.1",
287
- "x-amz-target": "AWSHawksNestServiceFacade.GetBatchPredictionJobs",
288
- };
192
+ const headers = sharedHeaders("GetBatchPredictionJobs");
289
193
  let body;
290
194
  body = JSON.stringify(se_GetBatchPredictionJobsRequest(input, context));
291
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
196
  };
293
197
  export const se_GetDeleteEventsByEventTypeStatusCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.1",
296
- "x-amz-target": "AWSHawksNestServiceFacade.GetDeleteEventsByEventTypeStatus",
297
- };
198
+ const headers = sharedHeaders("GetDeleteEventsByEventTypeStatus");
298
199
  let body;
299
200
  body = JSON.stringify(se_GetDeleteEventsByEventTypeStatusRequest(input, context));
300
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
202
  };
302
203
  export const se_GetDetectorsCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "AWSHawksNestServiceFacade.GetDetectors",
306
- };
204
+ const headers = sharedHeaders("GetDetectors");
307
205
  let body;
308
206
  body = JSON.stringify(se_GetDetectorsRequest(input, context));
309
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
208
  };
311
209
  export const se_GetDetectorVersionCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.1",
314
- "x-amz-target": "AWSHawksNestServiceFacade.GetDetectorVersion",
315
- };
210
+ const headers = sharedHeaders("GetDetectorVersion");
316
211
  let body;
317
212
  body = JSON.stringify(se_GetDetectorVersionRequest(input, context));
318
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
214
  };
320
215
  export const se_GetEntityTypesCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "AWSHawksNestServiceFacade.GetEntityTypes",
324
- };
216
+ const headers = sharedHeaders("GetEntityTypes");
325
217
  let body;
326
218
  body = JSON.stringify(se_GetEntityTypesRequest(input, context));
327
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
220
  };
329
221
  export const se_GetEventCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "AWSHawksNestServiceFacade.GetEvent",
333
- };
222
+ const headers = sharedHeaders("GetEvent");
334
223
  let body;
335
224
  body = JSON.stringify(se_GetEventRequest(input, context));
336
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
226
  };
338
227
  export const se_GetEventPredictionCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "AWSHawksNestServiceFacade.GetEventPrediction",
342
- };
228
+ const headers = sharedHeaders("GetEventPrediction");
343
229
  let body;
344
230
  body = JSON.stringify(se_GetEventPredictionRequest(input, context));
345
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
232
  };
347
233
  export const se_GetEventPredictionMetadataCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-amz-json-1.1",
350
- "x-amz-target": "AWSHawksNestServiceFacade.GetEventPredictionMetadata",
351
- };
234
+ const headers = sharedHeaders("GetEventPredictionMetadata");
352
235
  let body;
353
236
  body = JSON.stringify(se_GetEventPredictionMetadataRequest(input, context));
354
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
238
  };
356
239
  export const se_GetEventTypesCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-amz-json-1.1",
359
- "x-amz-target": "AWSHawksNestServiceFacade.GetEventTypes",
360
- };
240
+ const headers = sharedHeaders("GetEventTypes");
361
241
  let body;
362
242
  body = JSON.stringify(se_GetEventTypesRequest(input, context));
363
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
244
  };
365
245
  export const se_GetExternalModelsCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-amz-json-1.1",
368
- "x-amz-target": "AWSHawksNestServiceFacade.GetExternalModels",
369
- };
246
+ const headers = sharedHeaders("GetExternalModels");
370
247
  let body;
371
248
  body = JSON.stringify(se_GetExternalModelsRequest(input, context));
372
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
250
  };
374
251
  export const se_GetKMSEncryptionKeyCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-amz-json-1.1",
377
- "x-amz-target": "AWSHawksNestServiceFacade.GetKMSEncryptionKey",
378
- };
252
+ const headers = sharedHeaders("GetKMSEncryptionKey");
379
253
  const body = "{}";
380
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
381
255
  };
382
256
  export const se_GetLabelsCommand = async (input, context) => {
383
- const headers = {
384
- "content-type": "application/x-amz-json-1.1",
385
- "x-amz-target": "AWSHawksNestServiceFacade.GetLabels",
386
- };
257
+ const headers = sharedHeaders("GetLabels");
387
258
  let body;
388
259
  body = JSON.stringify(se_GetLabelsRequest(input, context));
389
260
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
261
  };
391
262
  export const se_GetListElementsCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-amz-json-1.1",
394
- "x-amz-target": "AWSHawksNestServiceFacade.GetListElements",
395
- };
263
+ const headers = sharedHeaders("GetListElements");
396
264
  let body;
397
265
  body = JSON.stringify(se_GetListElementsRequest(input, context));
398
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
399
267
  };
400
268
  export const se_GetListsMetadataCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-amz-json-1.1",
403
- "x-amz-target": "AWSHawksNestServiceFacade.GetListsMetadata",
404
- };
269
+ const headers = sharedHeaders("GetListsMetadata");
405
270
  let body;
406
271
  body = JSON.stringify(se_GetListsMetadataRequest(input, context));
407
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
273
  };
409
274
  export const se_GetModelsCommand = async (input, context) => {
410
- const headers = {
411
- "content-type": "application/x-amz-json-1.1",
412
- "x-amz-target": "AWSHawksNestServiceFacade.GetModels",
413
- };
275
+ const headers = sharedHeaders("GetModels");
414
276
  let body;
415
277
  body = JSON.stringify(se_GetModelsRequest(input, context));
416
278
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
417
279
  };
418
280
  export const se_GetModelVersionCommand = async (input, context) => {
419
- const headers = {
420
- "content-type": "application/x-amz-json-1.1",
421
- "x-amz-target": "AWSHawksNestServiceFacade.GetModelVersion",
422
- };
281
+ const headers = sharedHeaders("GetModelVersion");
423
282
  let body;
424
283
  body = JSON.stringify(se_GetModelVersionRequest(input, context));
425
284
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
285
  };
427
286
  export const se_GetOutcomesCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-amz-json-1.1",
430
- "x-amz-target": "AWSHawksNestServiceFacade.GetOutcomes",
431
- };
287
+ const headers = sharedHeaders("GetOutcomes");
432
288
  let body;
433
289
  body = JSON.stringify(se_GetOutcomesRequest(input, context));
434
290
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
291
  };
436
292
  export const se_GetRulesCommand = async (input, context) => {
437
- const headers = {
438
- "content-type": "application/x-amz-json-1.1",
439
- "x-amz-target": "AWSHawksNestServiceFacade.GetRules",
440
- };
293
+ const headers = sharedHeaders("GetRules");
441
294
  let body;
442
295
  body = JSON.stringify(se_GetRulesRequest(input, context));
443
296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
297
  };
445
298
  export const se_GetVariablesCommand = async (input, context) => {
446
- const headers = {
447
- "content-type": "application/x-amz-json-1.1",
448
- "x-amz-target": "AWSHawksNestServiceFacade.GetVariables",
449
- };
299
+ const headers = sharedHeaders("GetVariables");
450
300
  let body;
451
301
  body = JSON.stringify(se_GetVariablesRequest(input, context));
452
302
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
453
303
  };
454
304
  export const se_ListEventPredictionsCommand = async (input, context) => {
455
- const headers = {
456
- "content-type": "application/x-amz-json-1.1",
457
- "x-amz-target": "AWSHawksNestServiceFacade.ListEventPredictions",
458
- };
305
+ const headers = sharedHeaders("ListEventPredictions");
459
306
  let body;
460
307
  body = JSON.stringify(se_ListEventPredictionsRequest(input, context));
461
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
309
  };
463
310
  export const se_ListTagsForResourceCommand = async (input, context) => {
464
- const headers = {
465
- "content-type": "application/x-amz-json-1.1",
466
- "x-amz-target": "AWSHawksNestServiceFacade.ListTagsForResource",
467
- };
311
+ const headers = sharedHeaders("ListTagsForResource");
468
312
  let body;
469
313
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
470
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
471
315
  };
472
316
  export const se_PutDetectorCommand = async (input, context) => {
473
- const headers = {
474
- "content-type": "application/x-amz-json-1.1",
475
- "x-amz-target": "AWSHawksNestServiceFacade.PutDetector",
476
- };
317
+ const headers = sharedHeaders("PutDetector");
477
318
  let body;
478
319
  body = JSON.stringify(se_PutDetectorRequest(input, context));
479
320
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
321
  };
481
322
  export const se_PutEntityTypeCommand = async (input, context) => {
482
- const headers = {
483
- "content-type": "application/x-amz-json-1.1",
484
- "x-amz-target": "AWSHawksNestServiceFacade.PutEntityType",
485
- };
323
+ const headers = sharedHeaders("PutEntityType");
486
324
  let body;
487
325
  body = JSON.stringify(se_PutEntityTypeRequest(input, context));
488
326
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
489
327
  };
490
328
  export const se_PutEventTypeCommand = async (input, context) => {
491
- const headers = {
492
- "content-type": "application/x-amz-json-1.1",
493
- "x-amz-target": "AWSHawksNestServiceFacade.PutEventType",
494
- };
329
+ const headers = sharedHeaders("PutEventType");
495
330
  let body;
496
331
  body = JSON.stringify(se_PutEventTypeRequest(input, context));
497
332
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
333
  };
499
334
  export const se_PutExternalModelCommand = async (input, context) => {
500
- const headers = {
501
- "content-type": "application/x-amz-json-1.1",
502
- "x-amz-target": "AWSHawksNestServiceFacade.PutExternalModel",
503
- };
335
+ const headers = sharedHeaders("PutExternalModel");
504
336
  let body;
505
337
  body = JSON.stringify(se_PutExternalModelRequest(input, context));
506
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
507
339
  };
508
340
  export const se_PutKMSEncryptionKeyCommand = async (input, context) => {
509
- const headers = {
510
- "content-type": "application/x-amz-json-1.1",
511
- "x-amz-target": "AWSHawksNestServiceFacade.PutKMSEncryptionKey",
512
- };
341
+ const headers = sharedHeaders("PutKMSEncryptionKey");
513
342
  let body;
514
343
  body = JSON.stringify(se_PutKMSEncryptionKeyRequest(input, context));
515
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
345
  };
517
346
  export const se_PutLabelCommand = async (input, context) => {
518
- const headers = {
519
- "content-type": "application/x-amz-json-1.1",
520
- "x-amz-target": "AWSHawksNestServiceFacade.PutLabel",
521
- };
347
+ const headers = sharedHeaders("PutLabel");
522
348
  let body;
523
349
  body = JSON.stringify(se_PutLabelRequest(input, context));
524
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
525
351
  };
526
352
  export const se_PutOutcomeCommand = async (input, context) => {
527
- const headers = {
528
- "content-type": "application/x-amz-json-1.1",
529
- "x-amz-target": "AWSHawksNestServiceFacade.PutOutcome",
530
- };
353
+ const headers = sharedHeaders("PutOutcome");
531
354
  let body;
532
355
  body = JSON.stringify(se_PutOutcomeRequest(input, context));
533
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
357
  };
535
358
  export const se_SendEventCommand = async (input, context) => {
536
- const headers = {
537
- "content-type": "application/x-amz-json-1.1",
538
- "x-amz-target": "AWSHawksNestServiceFacade.SendEvent",
539
- };
359
+ const headers = sharedHeaders("SendEvent");
540
360
  let body;
541
361
  body = JSON.stringify(se_SendEventRequest(input, context));
542
362
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
543
363
  };
544
364
  export const se_TagResourceCommand = async (input, context) => {
545
- const headers = {
546
- "content-type": "application/x-amz-json-1.1",
547
- "x-amz-target": "AWSHawksNestServiceFacade.TagResource",
548
- };
365
+ const headers = sharedHeaders("TagResource");
549
366
  let body;
550
367
  body = JSON.stringify(se_TagResourceRequest(input, context));
551
368
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
552
369
  };
553
370
  export const se_UntagResourceCommand = async (input, context) => {
554
- const headers = {
555
- "content-type": "application/x-amz-json-1.1",
556
- "x-amz-target": "AWSHawksNestServiceFacade.UntagResource",
557
- };
371
+ const headers = sharedHeaders("UntagResource");
558
372
  let body;
559
373
  body = JSON.stringify(se_UntagResourceRequest(input, context));
560
374
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
561
375
  };
562
376
  export const se_UpdateDetectorVersionCommand = async (input, context) => {
563
- const headers = {
564
- "content-type": "application/x-amz-json-1.1",
565
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateDetectorVersion",
566
- };
377
+ const headers = sharedHeaders("UpdateDetectorVersion");
567
378
  let body;
568
379
  body = JSON.stringify(se_UpdateDetectorVersionRequest(input, context));
569
380
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
381
  };
571
382
  export const se_UpdateDetectorVersionMetadataCommand = async (input, context) => {
572
- const headers = {
573
- "content-type": "application/x-amz-json-1.1",
574
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateDetectorVersionMetadata",
575
- };
383
+ const headers = sharedHeaders("UpdateDetectorVersionMetadata");
576
384
  let body;
577
385
  body = JSON.stringify(se_UpdateDetectorVersionMetadataRequest(input, context));
578
386
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
579
387
  };
580
388
  export const se_UpdateDetectorVersionStatusCommand = async (input, context) => {
581
- const headers = {
582
- "content-type": "application/x-amz-json-1.1",
583
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateDetectorVersionStatus",
584
- };
389
+ const headers = sharedHeaders("UpdateDetectorVersionStatus");
585
390
  let body;
586
391
  body = JSON.stringify(se_UpdateDetectorVersionStatusRequest(input, context));
587
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
588
393
  };
589
394
  export const se_UpdateEventLabelCommand = async (input, context) => {
590
- const headers = {
591
- "content-type": "application/x-amz-json-1.1",
592
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateEventLabel",
593
- };
395
+ const headers = sharedHeaders("UpdateEventLabel");
594
396
  let body;
595
397
  body = JSON.stringify(se_UpdateEventLabelRequest(input, context));
596
398
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
597
399
  };
598
400
  export const se_UpdateListCommand = async (input, context) => {
599
- const headers = {
600
- "content-type": "application/x-amz-json-1.1",
601
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateList",
602
- };
401
+ const headers = sharedHeaders("UpdateList");
603
402
  let body;
604
403
  body = JSON.stringify(se_UpdateListRequest(input, context));
605
404
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
405
  };
607
406
  export const se_UpdateModelCommand = async (input, context) => {
608
- const headers = {
609
- "content-type": "application/x-amz-json-1.1",
610
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateModel",
611
- };
407
+ const headers = sharedHeaders("UpdateModel");
612
408
  let body;
613
409
  body = JSON.stringify(se_UpdateModelRequest(input, context));
614
410
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
615
411
  };
616
412
  export const se_UpdateModelVersionCommand = async (input, context) => {
617
- const headers = {
618
- "content-type": "application/x-amz-json-1.1",
619
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateModelVersion",
620
- };
413
+ const headers = sharedHeaders("UpdateModelVersion");
621
414
  let body;
622
415
  body = JSON.stringify(se_UpdateModelVersionRequest(input, context));
623
416
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
624
417
  };
625
418
  export const se_UpdateModelVersionStatusCommand = async (input, context) => {
626
- const headers = {
627
- "content-type": "application/x-amz-json-1.1",
628
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateModelVersionStatus",
629
- };
419
+ const headers = sharedHeaders("UpdateModelVersionStatus");
630
420
  let body;
631
421
  body = JSON.stringify(se_UpdateModelVersionStatusRequest(input, context));
632
422
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
633
423
  };
634
424
  export const se_UpdateRuleMetadataCommand = async (input, context) => {
635
- const headers = {
636
- "content-type": "application/x-amz-json-1.1",
637
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateRuleMetadata",
638
- };
425
+ const headers = sharedHeaders("UpdateRuleMetadata");
639
426
  let body;
640
427
  body = JSON.stringify(se_UpdateRuleMetadataRequest(input, context));
641
428
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
642
429
  };
643
430
  export const se_UpdateRuleVersionCommand = async (input, context) => {
644
- const headers = {
645
- "content-type": "application/x-amz-json-1.1",
646
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateRuleVersion",
647
- };
431
+ const headers = sharedHeaders("UpdateRuleVersion");
648
432
  let body;
649
433
  body = JSON.stringify(se_UpdateRuleVersionRequest(input, context));
650
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
651
435
  };
652
436
  export const se_UpdateVariableCommand = async (input, context) => {
653
- const headers = {
654
- "content-type": "application/x-amz-json-1.1",
655
- "x-amz-target": "AWSHawksNestServiceFacade.UpdateVariable",
656
- };
437
+ const headers = sharedHeaders("UpdateVariable");
657
438
  let body;
658
439
  body = JSON.stringify(se_UpdateVariableRequest(input, context));
659
440
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -6280,6 +6061,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6280
6061
  }
6281
6062
  return new __HttpRequest(contents);
6282
6063
  };
6064
+ function sharedHeaders(operation) {
6065
+ return {
6066
+ "content-type": "application/x-amz-json-1.1",
6067
+ "x-amz-target": `AWSHawksNestServiceFacade.${operation}`,
6068
+ };
6069
+ }
6283
6070
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6284
6071
  if (encoded.length) {
6285
6072
  return JSON.parse(encoded);