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