@aws-sdk/client-frauddetector 3.926.0 → 3.928.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/index.js +1968 -2499
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/FraudDetectorClient.js +2 -0
- package/dist-es/commands/BatchCreateVariableCommand.js +3 -9
- package/dist-es/commands/BatchGetVariableCommand.js +3 -9
- package/dist-es/commands/CancelBatchImportJobCommand.js +3 -9
- package/dist-es/commands/CancelBatchPredictionJobCommand.js +3 -9
- package/dist-es/commands/CreateBatchImportJobCommand.js +3 -9
- package/dist-es/commands/CreateBatchPredictionJobCommand.js +3 -9
- package/dist-es/commands/CreateDetectorVersionCommand.js +3 -9
- package/dist-es/commands/CreateListCommand.js +3 -10
- package/dist-es/commands/CreateModelCommand.js +3 -9
- package/dist-es/commands/CreateModelVersionCommand.js +3 -9
- package/dist-es/commands/CreateRuleCommand.js +3 -10
- package/dist-es/commands/CreateVariableCommand.js +3 -9
- package/dist-es/commands/DeleteBatchImportJobCommand.js +3 -9
- package/dist-es/commands/DeleteBatchPredictionJobCommand.js +3 -9
- package/dist-es/commands/DeleteDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteDetectorVersionCommand.js +3 -9
- package/dist-es/commands/DeleteEntityTypeCommand.js +3 -9
- package/dist-es/commands/DeleteEventCommand.js +3 -9
- package/dist-es/commands/DeleteEventTypeCommand.js +3 -9
- package/dist-es/commands/DeleteEventsByEventTypeCommand.js +3 -9
- package/dist-es/commands/DeleteExternalModelCommand.js +3 -9
- package/dist-es/commands/DeleteLabelCommand.js +3 -9
- package/dist-es/commands/DeleteListCommand.js +3 -9
- package/dist-es/commands/DeleteModelCommand.js +3 -9
- package/dist-es/commands/DeleteModelVersionCommand.js +3 -9
- package/dist-es/commands/DeleteOutcomeCommand.js +3 -9
- package/dist-es/commands/DeleteRuleCommand.js +3 -9
- package/dist-es/commands/DeleteVariableCommand.js +3 -9
- package/dist-es/commands/DescribeDetectorCommand.js +3 -9
- package/dist-es/commands/DescribeModelVersionsCommand.js +3 -9
- package/dist-es/commands/GetBatchImportJobsCommand.js +3 -9
- package/dist-es/commands/GetBatchPredictionJobsCommand.js +3 -9
- package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +3 -9
- package/dist-es/commands/GetDetectorVersionCommand.js +3 -9
- package/dist-es/commands/GetDetectorsCommand.js +3 -9
- package/dist-es/commands/GetEntityTypesCommand.js +3 -9
- package/dist-es/commands/GetEventCommand.js +3 -10
- package/dist-es/commands/GetEventPredictionCommand.js +3 -10
- package/dist-es/commands/GetEventPredictionMetadataCommand.js +3 -10
- package/dist-es/commands/GetEventTypesCommand.js +3 -10
- package/dist-es/commands/GetExternalModelsCommand.js +3 -9
- package/dist-es/commands/GetKMSEncryptionKeyCommand.js +3 -9
- package/dist-es/commands/GetLabelsCommand.js +3 -9
- package/dist-es/commands/GetListElementsCommand.js +3 -10
- package/dist-es/commands/GetListsMetadataCommand.js +3 -9
- package/dist-es/commands/GetModelVersionCommand.js +3 -9
- package/dist-es/commands/GetModelsCommand.js +3 -9
- package/dist-es/commands/GetOutcomesCommand.js +3 -9
- package/dist-es/commands/GetRulesCommand.js +3 -10
- package/dist-es/commands/GetVariablesCommand.js +3 -9
- package/dist-es/commands/ListEventPredictionsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutDetectorCommand.js +3 -9
- package/dist-es/commands/PutEntityTypeCommand.js +3 -9
- package/dist-es/commands/PutEventTypeCommand.js +3 -9
- package/dist-es/commands/PutExternalModelCommand.js +3 -9
- package/dist-es/commands/PutKMSEncryptionKeyCommand.js +3 -9
- package/dist-es/commands/PutLabelCommand.js +3 -9
- package/dist-es/commands/PutOutcomeCommand.js +3 -9
- package/dist-es/commands/SendEventCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDetectorVersionCommand.js +3 -9
- package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +3 -9
- package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +3 -9
- package/dist-es/commands/UpdateEventLabelCommand.js +3 -9
- package/dist-es/commands/UpdateListCommand.js +3 -10
- package/dist-es/commands/UpdateModelCommand.js +3 -9
- package/dist-es/commands/UpdateModelVersionCommand.js +3 -9
- package/dist-es/commands/UpdateModelVersionStatusCommand.js +3 -9
- package/dist-es/commands/UpdateRuleMetadataCommand.js +3 -9
- package/dist-es/commands/UpdateRuleVersionCommand.js +3 -10
- package/dist-es/commands/UpdateVariableCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -85
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1808 -0
- package/dist-types/FraudDetectorClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -72
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +357 -0
- package/dist-types/ts3.4/FraudDetectorClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -46
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +364 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1869
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -659
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -881
|
@@ -1,1869 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { FraudDetectorServiceException as __BaseException } from "../models/FraudDetectorServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_BatchCreateVariableCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("BatchCreateVariable");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_BatchGetVariableCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("BatchGetVariable");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CancelBatchImportJobCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CancelBatchImportJob");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CancelBatchPredictionJobCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CancelBatchPredictionJob");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CreateBatchImportJobCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateBatchImportJob");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateBatchPredictionJobCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateBatchPredictionJob");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateDetectorVersionCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateDetectorVersion");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreateListCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreateList");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_CreateModelCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("CreateModel");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_CreateModelVersionCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateModelVersion");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_CreateRuleCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateRule");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_CreateVariableCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("CreateVariable");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DeleteBatchImportJobCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteBatchImportJob");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteBatchPredictionJobCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DeleteBatchPredictionJob");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DeleteDetectorCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DeleteDetector");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeleteDetectorVersionCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DeleteDetectorVersion");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DeleteEntityTypeCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteEntityType");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DeleteEventCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteEvent");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_DeleteEventsByEventTypeCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DeleteEventsByEventType");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_DeleteEventTypeCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DeleteEventType");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_DeleteExternalModelCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("DeleteExternalModel");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_DeleteLabelCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("DeleteLabel");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_DeleteListCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DeleteList");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_DeleteModelCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DeleteModel");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_DeleteModelVersionCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DeleteModelVersion");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_DeleteOutcomeCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DeleteOutcome");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_DeleteRuleCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("DeleteRule");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_DeleteVariableCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("DeleteVariable");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_DescribeDetectorCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DescribeDetector");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_DescribeModelVersionsCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DescribeModelVersions");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_GetBatchImportJobsCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetBatchImportJobs");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_GetBatchPredictionJobsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("GetBatchPredictionJobs");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_GetDeleteEventsByEventTypeStatusCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("GetDeleteEventsByEventTypeStatus");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_GetDetectorsCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("GetDetectors");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_GetDetectorVersionCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("GetDetectorVersion");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_GetEntityTypesCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("GetEntityTypes");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_GetEventCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("GetEvent");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_GetEventPredictionCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("GetEventPrediction");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(se_GetEventPredictionRequest(input, context));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_GetEventPredictionMetadataCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("GetEventPredictionMetadata");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_GetEventTypesCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("GetEventTypes");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_GetExternalModelsCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("GetExternalModels");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_GetKMSEncryptionKeyCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("GetKMSEncryptionKey");
|
|
254
|
-
const body = "{}";
|
|
255
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
-
};
|
|
257
|
-
export const se_GetLabelsCommand = async (input, context) => {
|
|
258
|
-
const headers = sharedHeaders("GetLabels");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify(_json(input));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
export const se_GetListElementsCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("GetListElements");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify(_json(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
export const se_GetListsMetadataCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("GetListsMetadata");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify(_json(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
export const se_GetModelsCommand = async (input, context) => {
|
|
276
|
-
const headers = sharedHeaders("GetModels");
|
|
277
|
-
let body;
|
|
278
|
-
body = JSON.stringify(_json(input));
|
|
279
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
-
};
|
|
281
|
-
export const se_GetModelVersionCommand = async (input, context) => {
|
|
282
|
-
const headers = sharedHeaders("GetModelVersion");
|
|
283
|
-
let body;
|
|
284
|
-
body = JSON.stringify(_json(input));
|
|
285
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
-
};
|
|
287
|
-
export const se_GetOutcomesCommand = async (input, context) => {
|
|
288
|
-
const headers = sharedHeaders("GetOutcomes");
|
|
289
|
-
let body;
|
|
290
|
-
body = JSON.stringify(_json(input));
|
|
291
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
-
};
|
|
293
|
-
export const se_GetRulesCommand = async (input, context) => {
|
|
294
|
-
const headers = sharedHeaders("GetRules");
|
|
295
|
-
let body;
|
|
296
|
-
body = JSON.stringify(_json(input));
|
|
297
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
-
};
|
|
299
|
-
export const se_GetVariablesCommand = async (input, context) => {
|
|
300
|
-
const headers = sharedHeaders("GetVariables");
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify(_json(input));
|
|
303
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
-
};
|
|
305
|
-
export const se_ListEventPredictionsCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("ListEventPredictions");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify(_json(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
312
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify(_json(input));
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
export const se_PutDetectorCommand = async (input, context) => {
|
|
318
|
-
const headers = sharedHeaders("PutDetector");
|
|
319
|
-
let body;
|
|
320
|
-
body = JSON.stringify(_json(input));
|
|
321
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
-
};
|
|
323
|
-
export const se_PutEntityTypeCommand = async (input, context) => {
|
|
324
|
-
const headers = sharedHeaders("PutEntityType");
|
|
325
|
-
let body;
|
|
326
|
-
body = JSON.stringify(_json(input));
|
|
327
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
|
-
};
|
|
329
|
-
export const se_PutEventTypeCommand = async (input, context) => {
|
|
330
|
-
const headers = sharedHeaders("PutEventType");
|
|
331
|
-
let body;
|
|
332
|
-
body = JSON.stringify(_json(input));
|
|
333
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
334
|
-
};
|
|
335
|
-
export const se_PutExternalModelCommand = async (input, context) => {
|
|
336
|
-
const headers = sharedHeaders("PutExternalModel");
|
|
337
|
-
let body;
|
|
338
|
-
body = JSON.stringify(_json(input));
|
|
339
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
340
|
-
};
|
|
341
|
-
export const se_PutKMSEncryptionKeyCommand = async (input, context) => {
|
|
342
|
-
const headers = sharedHeaders("PutKMSEncryptionKey");
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify(_json(input));
|
|
345
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
-
};
|
|
347
|
-
export const se_PutLabelCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("PutLabel");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify(_json(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
export const se_PutOutcomeCommand = async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("PutOutcome");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify(_json(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
-
};
|
|
359
|
-
export const se_SendEventCommand = async (input, context) => {
|
|
360
|
-
const headers = sharedHeaders("SendEvent");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify(_json(input));
|
|
363
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
|
-
};
|
|
365
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
366
|
-
const headers = sharedHeaders("TagResource");
|
|
367
|
-
let body;
|
|
368
|
-
body = JSON.stringify(_json(input));
|
|
369
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
370
|
-
};
|
|
371
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
372
|
-
const headers = sharedHeaders("UntagResource");
|
|
373
|
-
let body;
|
|
374
|
-
body = JSON.stringify(_json(input));
|
|
375
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
376
|
-
};
|
|
377
|
-
export const se_UpdateDetectorVersionCommand = async (input, context) => {
|
|
378
|
-
const headers = sharedHeaders("UpdateDetectorVersion");
|
|
379
|
-
let body;
|
|
380
|
-
body = JSON.stringify(_json(input));
|
|
381
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
|
-
};
|
|
383
|
-
export const se_UpdateDetectorVersionMetadataCommand = async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("UpdateDetectorVersionMetadata");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify(_json(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
-
};
|
|
389
|
-
export const se_UpdateDetectorVersionStatusCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("UpdateDetectorVersionStatus");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify(_json(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
export const se_UpdateEventLabelCommand = async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("UpdateEventLabel");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify(_json(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
export const se_UpdateListCommand = async (input, context) => {
|
|
402
|
-
const headers = sharedHeaders("UpdateList");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify(_json(input));
|
|
405
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
|
-
};
|
|
407
|
-
export const se_UpdateModelCommand = async (input, context) => {
|
|
408
|
-
const headers = sharedHeaders("UpdateModel");
|
|
409
|
-
let body;
|
|
410
|
-
body = JSON.stringify(_json(input));
|
|
411
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
412
|
-
};
|
|
413
|
-
export const se_UpdateModelVersionCommand = async (input, context) => {
|
|
414
|
-
const headers = sharedHeaders("UpdateModelVersion");
|
|
415
|
-
let body;
|
|
416
|
-
body = JSON.stringify(_json(input));
|
|
417
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
|
-
};
|
|
419
|
-
export const se_UpdateModelVersionStatusCommand = async (input, context) => {
|
|
420
|
-
const headers = sharedHeaders("UpdateModelVersionStatus");
|
|
421
|
-
let body;
|
|
422
|
-
body = JSON.stringify(_json(input));
|
|
423
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
424
|
-
};
|
|
425
|
-
export const se_UpdateRuleMetadataCommand = async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("UpdateRuleMetadata");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify(_json(input));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
430
|
-
};
|
|
431
|
-
export const se_UpdateRuleVersionCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("UpdateRuleVersion");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify(_json(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
export const se_UpdateVariableCommand = async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("UpdateVariable");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify(_json(input));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
442
|
-
};
|
|
443
|
-
export const de_BatchCreateVariableCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode >= 300) {
|
|
445
|
-
return de_CommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const data = await parseBody(output.body, context);
|
|
448
|
-
let contents = {};
|
|
449
|
-
contents = _json(data);
|
|
450
|
-
const response = {
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
...contents,
|
|
453
|
-
};
|
|
454
|
-
return response;
|
|
455
|
-
};
|
|
456
|
-
export const de_BatchGetVariableCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await parseBody(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = _json(data);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents,
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
};
|
|
469
|
-
export const de_CancelBatchImportJobCommand = async (output, context) => {
|
|
470
|
-
if (output.statusCode >= 300) {
|
|
471
|
-
return de_CommandError(output, context);
|
|
472
|
-
}
|
|
473
|
-
const data = await parseBody(output.body, context);
|
|
474
|
-
let contents = {};
|
|
475
|
-
contents = _json(data);
|
|
476
|
-
const response = {
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
...contents,
|
|
479
|
-
};
|
|
480
|
-
return response;
|
|
481
|
-
};
|
|
482
|
-
export const de_CancelBatchPredictionJobCommand = async (output, context) => {
|
|
483
|
-
if (output.statusCode >= 300) {
|
|
484
|
-
return de_CommandError(output, context);
|
|
485
|
-
}
|
|
486
|
-
const data = await parseBody(output.body, context);
|
|
487
|
-
let contents = {};
|
|
488
|
-
contents = _json(data);
|
|
489
|
-
const response = {
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
...contents,
|
|
492
|
-
};
|
|
493
|
-
return response;
|
|
494
|
-
};
|
|
495
|
-
export const de_CreateBatchImportJobCommand = async (output, context) => {
|
|
496
|
-
if (output.statusCode >= 300) {
|
|
497
|
-
return de_CommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const data = await parseBody(output.body, context);
|
|
500
|
-
let contents = {};
|
|
501
|
-
contents = _json(data);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
...contents,
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
};
|
|
508
|
-
export const de_CreateBatchPredictionJobCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const data = await parseBody(output.body, context);
|
|
513
|
-
let contents = {};
|
|
514
|
-
contents = _json(data);
|
|
515
|
-
const response = {
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
...contents,
|
|
518
|
-
};
|
|
519
|
-
return response;
|
|
520
|
-
};
|
|
521
|
-
export const de_CreateDetectorVersionCommand = async (output, context) => {
|
|
522
|
-
if (output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const data = await parseBody(output.body, context);
|
|
526
|
-
let contents = {};
|
|
527
|
-
contents = _json(data);
|
|
528
|
-
const response = {
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
...contents,
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
};
|
|
534
|
-
export const de_CreateListCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await parseBody(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = _json(data);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents,
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
};
|
|
547
|
-
export const de_CreateModelCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const data = await parseBody(output.body, context);
|
|
552
|
-
let contents = {};
|
|
553
|
-
contents = _json(data);
|
|
554
|
-
const response = {
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
...contents,
|
|
557
|
-
};
|
|
558
|
-
return response;
|
|
559
|
-
};
|
|
560
|
-
export const de_CreateModelVersionCommand = async (output, context) => {
|
|
561
|
-
if (output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const data = await parseBody(output.body, context);
|
|
565
|
-
let contents = {};
|
|
566
|
-
contents = _json(data);
|
|
567
|
-
const response = {
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
...contents,
|
|
570
|
-
};
|
|
571
|
-
return response;
|
|
572
|
-
};
|
|
573
|
-
export const de_CreateRuleCommand = async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_CommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const data = await parseBody(output.body, context);
|
|
578
|
-
let contents = {};
|
|
579
|
-
contents = _json(data);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
...contents,
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
};
|
|
586
|
-
export const de_CreateVariableCommand = async (output, context) => {
|
|
587
|
-
if (output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const data = await parseBody(output.body, context);
|
|
591
|
-
let contents = {};
|
|
592
|
-
contents = _json(data);
|
|
593
|
-
const response = {
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
...contents,
|
|
596
|
-
};
|
|
597
|
-
return response;
|
|
598
|
-
};
|
|
599
|
-
export const de_DeleteBatchImportJobCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await parseBody(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = _json(data);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents,
|
|
609
|
-
};
|
|
610
|
-
return response;
|
|
611
|
-
};
|
|
612
|
-
export const de_DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
613
|
-
if (output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const data = await parseBody(output.body, context);
|
|
617
|
-
let contents = {};
|
|
618
|
-
contents = _json(data);
|
|
619
|
-
const response = {
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
...contents,
|
|
622
|
-
};
|
|
623
|
-
return response;
|
|
624
|
-
};
|
|
625
|
-
export const de_DeleteDetectorCommand = async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await parseBody(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = _json(data);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents,
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
};
|
|
638
|
-
export const de_DeleteDetectorVersionCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await parseBody(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = _json(data);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents,
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
};
|
|
651
|
-
export const de_DeleteEntityTypeCommand = async (output, context) => {
|
|
652
|
-
if (output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const data = await parseBody(output.body, context);
|
|
656
|
-
let contents = {};
|
|
657
|
-
contents = _json(data);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
...contents,
|
|
661
|
-
};
|
|
662
|
-
return response;
|
|
663
|
-
};
|
|
664
|
-
export const de_DeleteEventCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await parseBody(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = _json(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents,
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
};
|
|
677
|
-
export const de_DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await parseBody(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = _json(data);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents,
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
};
|
|
690
|
-
export const de_DeleteEventTypeCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await parseBody(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = _json(data);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents,
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
};
|
|
703
|
-
export const de_DeleteExternalModelCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_CommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await parseBody(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = _json(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents,
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
export const de_DeleteLabelCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await parseBody(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = _json(data);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents,
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
};
|
|
729
|
-
export const de_DeleteListCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const data = await parseBody(output.body, context);
|
|
734
|
-
let contents = {};
|
|
735
|
-
contents = _json(data);
|
|
736
|
-
const response = {
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
...contents,
|
|
739
|
-
};
|
|
740
|
-
return response;
|
|
741
|
-
};
|
|
742
|
-
export const de_DeleteModelCommand = async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const data = await parseBody(output.body, context);
|
|
747
|
-
let contents = {};
|
|
748
|
-
contents = _json(data);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
...contents,
|
|
752
|
-
};
|
|
753
|
-
return response;
|
|
754
|
-
};
|
|
755
|
-
export const de_DeleteModelVersionCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const data = await parseBody(output.body, context);
|
|
760
|
-
let contents = {};
|
|
761
|
-
contents = _json(data);
|
|
762
|
-
const response = {
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
...contents,
|
|
765
|
-
};
|
|
766
|
-
return response;
|
|
767
|
-
};
|
|
768
|
-
export const de_DeleteOutcomeCommand = async (output, context) => {
|
|
769
|
-
if (output.statusCode >= 300) {
|
|
770
|
-
return de_CommandError(output, context);
|
|
771
|
-
}
|
|
772
|
-
const data = await parseBody(output.body, context);
|
|
773
|
-
let contents = {};
|
|
774
|
-
contents = _json(data);
|
|
775
|
-
const response = {
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
...contents,
|
|
778
|
-
};
|
|
779
|
-
return response;
|
|
780
|
-
};
|
|
781
|
-
export const de_DeleteRuleCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const data = await parseBody(output.body, context);
|
|
786
|
-
let contents = {};
|
|
787
|
-
contents = _json(data);
|
|
788
|
-
const response = {
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
...contents,
|
|
791
|
-
};
|
|
792
|
-
return response;
|
|
793
|
-
};
|
|
794
|
-
export const de_DeleteVariableCommand = async (output, context) => {
|
|
795
|
-
if (output.statusCode >= 300) {
|
|
796
|
-
return de_CommandError(output, context);
|
|
797
|
-
}
|
|
798
|
-
const data = await parseBody(output.body, context);
|
|
799
|
-
let contents = {};
|
|
800
|
-
contents = _json(data);
|
|
801
|
-
const response = {
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
...contents,
|
|
804
|
-
};
|
|
805
|
-
return response;
|
|
806
|
-
};
|
|
807
|
-
export const de_DescribeDetectorCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const data = await parseBody(output.body, context);
|
|
812
|
-
let contents = {};
|
|
813
|
-
contents = _json(data);
|
|
814
|
-
const response = {
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
...contents,
|
|
817
|
-
};
|
|
818
|
-
return response;
|
|
819
|
-
};
|
|
820
|
-
export const de_DescribeModelVersionsCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const data = await parseBody(output.body, context);
|
|
825
|
-
let contents = {};
|
|
826
|
-
contents = de_DescribeModelVersionsResult(data, context);
|
|
827
|
-
const response = {
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
...contents,
|
|
830
|
-
};
|
|
831
|
-
return response;
|
|
832
|
-
};
|
|
833
|
-
export const de_GetBatchImportJobsCommand = async (output, context) => {
|
|
834
|
-
if (output.statusCode >= 300) {
|
|
835
|
-
return de_CommandError(output, context);
|
|
836
|
-
}
|
|
837
|
-
const data = await parseBody(output.body, context);
|
|
838
|
-
let contents = {};
|
|
839
|
-
contents = _json(data);
|
|
840
|
-
const response = {
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
...contents,
|
|
843
|
-
};
|
|
844
|
-
return response;
|
|
845
|
-
};
|
|
846
|
-
export const de_GetBatchPredictionJobsCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const data = await parseBody(output.body, context);
|
|
851
|
-
let contents = {};
|
|
852
|
-
contents = _json(data);
|
|
853
|
-
const response = {
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
...contents,
|
|
856
|
-
};
|
|
857
|
-
return response;
|
|
858
|
-
};
|
|
859
|
-
export const de_GetDeleteEventsByEventTypeStatusCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const data = await parseBody(output.body, context);
|
|
864
|
-
let contents = {};
|
|
865
|
-
contents = _json(data);
|
|
866
|
-
const response = {
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
...contents,
|
|
869
|
-
};
|
|
870
|
-
return response;
|
|
871
|
-
};
|
|
872
|
-
export const de_GetDetectorsCommand = async (output, context) => {
|
|
873
|
-
if (output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const data = await parseBody(output.body, context);
|
|
877
|
-
let contents = {};
|
|
878
|
-
contents = _json(data);
|
|
879
|
-
const response = {
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
...contents,
|
|
882
|
-
};
|
|
883
|
-
return response;
|
|
884
|
-
};
|
|
885
|
-
export const de_GetDetectorVersionCommand = async (output, context) => {
|
|
886
|
-
if (output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const data = await parseBody(output.body, context);
|
|
890
|
-
let contents = {};
|
|
891
|
-
contents = _json(data);
|
|
892
|
-
const response = {
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
...contents,
|
|
895
|
-
};
|
|
896
|
-
return response;
|
|
897
|
-
};
|
|
898
|
-
export const de_GetEntityTypesCommand = async (output, context) => {
|
|
899
|
-
if (output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const data = await parseBody(output.body, context);
|
|
903
|
-
let contents = {};
|
|
904
|
-
contents = _json(data);
|
|
905
|
-
const response = {
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
...contents,
|
|
908
|
-
};
|
|
909
|
-
return response;
|
|
910
|
-
};
|
|
911
|
-
export const de_GetEventCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const data = await parseBody(output.body, context);
|
|
916
|
-
let contents = {};
|
|
917
|
-
contents = _json(data);
|
|
918
|
-
const response = {
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
...contents,
|
|
921
|
-
};
|
|
922
|
-
return response;
|
|
923
|
-
};
|
|
924
|
-
export const de_GetEventPredictionCommand = async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_CommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data = await parseBody(output.body, context);
|
|
929
|
-
let contents = {};
|
|
930
|
-
contents = de_GetEventPredictionResult(data, context);
|
|
931
|
-
const response = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents,
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
};
|
|
937
|
-
export const de_GetEventPredictionMetadataCommand = async (output, context) => {
|
|
938
|
-
if (output.statusCode >= 300) {
|
|
939
|
-
return de_CommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const data = await parseBody(output.body, context);
|
|
942
|
-
let contents = {};
|
|
943
|
-
contents = de_GetEventPredictionMetadataResult(data, context);
|
|
944
|
-
const response = {
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
...contents,
|
|
947
|
-
};
|
|
948
|
-
return response;
|
|
949
|
-
};
|
|
950
|
-
export const de_GetEventTypesCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const data = await parseBody(output.body, context);
|
|
955
|
-
let contents = {};
|
|
956
|
-
contents = _json(data);
|
|
957
|
-
const response = {
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
...contents,
|
|
960
|
-
};
|
|
961
|
-
return response;
|
|
962
|
-
};
|
|
963
|
-
export const de_GetExternalModelsCommand = async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_CommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await parseBody(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = _json(data);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents,
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
};
|
|
976
|
-
export const de_GetKMSEncryptionKeyCommand = async (output, context) => {
|
|
977
|
-
if (output.statusCode >= 300) {
|
|
978
|
-
return de_CommandError(output, context);
|
|
979
|
-
}
|
|
980
|
-
const data = await parseBody(output.body, context);
|
|
981
|
-
let contents = {};
|
|
982
|
-
contents = _json(data);
|
|
983
|
-
const response = {
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
...contents,
|
|
986
|
-
};
|
|
987
|
-
return response;
|
|
988
|
-
};
|
|
989
|
-
export const de_GetLabelsCommand = async (output, context) => {
|
|
990
|
-
if (output.statusCode >= 300) {
|
|
991
|
-
return de_CommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const data = await parseBody(output.body, context);
|
|
994
|
-
let contents = {};
|
|
995
|
-
contents = _json(data);
|
|
996
|
-
const response = {
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
...contents,
|
|
999
|
-
};
|
|
1000
|
-
return response;
|
|
1001
|
-
};
|
|
1002
|
-
export const de_GetListElementsCommand = async (output, context) => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return de_CommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data = await parseBody(output.body, context);
|
|
1007
|
-
let contents = {};
|
|
1008
|
-
contents = _json(data);
|
|
1009
|
-
const response = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents,
|
|
1012
|
-
};
|
|
1013
|
-
return response;
|
|
1014
|
-
};
|
|
1015
|
-
export const de_GetListsMetadataCommand = async (output, context) => {
|
|
1016
|
-
if (output.statusCode >= 300) {
|
|
1017
|
-
return de_CommandError(output, context);
|
|
1018
|
-
}
|
|
1019
|
-
const data = await parseBody(output.body, context);
|
|
1020
|
-
let contents = {};
|
|
1021
|
-
contents = _json(data);
|
|
1022
|
-
const response = {
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
...contents,
|
|
1025
|
-
};
|
|
1026
|
-
return response;
|
|
1027
|
-
};
|
|
1028
|
-
export const de_GetModelsCommand = async (output, context) => {
|
|
1029
|
-
if (output.statusCode >= 300) {
|
|
1030
|
-
return de_CommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const data = await parseBody(output.body, context);
|
|
1033
|
-
let contents = {};
|
|
1034
|
-
contents = _json(data);
|
|
1035
|
-
const response = {
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
...contents,
|
|
1038
|
-
};
|
|
1039
|
-
return response;
|
|
1040
|
-
};
|
|
1041
|
-
export const de_GetModelVersionCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return de_CommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await parseBody(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = _json(data);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents,
|
|
1051
|
-
};
|
|
1052
|
-
return response;
|
|
1053
|
-
};
|
|
1054
|
-
export const de_GetOutcomesCommand = async (output, context) => {
|
|
1055
|
-
if (output.statusCode >= 300) {
|
|
1056
|
-
return de_CommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const data = await parseBody(output.body, context);
|
|
1059
|
-
let contents = {};
|
|
1060
|
-
contents = _json(data);
|
|
1061
|
-
const response = {
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
...contents,
|
|
1064
|
-
};
|
|
1065
|
-
return response;
|
|
1066
|
-
};
|
|
1067
|
-
export const de_GetRulesCommand = async (output, context) => {
|
|
1068
|
-
if (output.statusCode >= 300) {
|
|
1069
|
-
return de_CommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const data = await parseBody(output.body, context);
|
|
1072
|
-
let contents = {};
|
|
1073
|
-
contents = _json(data);
|
|
1074
|
-
const response = {
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
...contents,
|
|
1077
|
-
};
|
|
1078
|
-
return response;
|
|
1079
|
-
};
|
|
1080
|
-
export const de_GetVariablesCommand = async (output, context) => {
|
|
1081
|
-
if (output.statusCode >= 300) {
|
|
1082
|
-
return de_CommandError(output, context);
|
|
1083
|
-
}
|
|
1084
|
-
const data = await parseBody(output.body, context);
|
|
1085
|
-
let contents = {};
|
|
1086
|
-
contents = _json(data);
|
|
1087
|
-
const response = {
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
...contents,
|
|
1090
|
-
};
|
|
1091
|
-
return response;
|
|
1092
|
-
};
|
|
1093
|
-
export const de_ListEventPredictionsCommand = async (output, context) => {
|
|
1094
|
-
if (output.statusCode >= 300) {
|
|
1095
|
-
return de_CommandError(output, context);
|
|
1096
|
-
}
|
|
1097
|
-
const data = await parseBody(output.body, context);
|
|
1098
|
-
let contents = {};
|
|
1099
|
-
contents = _json(data);
|
|
1100
|
-
const response = {
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
...contents,
|
|
1103
|
-
};
|
|
1104
|
-
return response;
|
|
1105
|
-
};
|
|
1106
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1107
|
-
if (output.statusCode >= 300) {
|
|
1108
|
-
return de_CommandError(output, context);
|
|
1109
|
-
}
|
|
1110
|
-
const data = await parseBody(output.body, context);
|
|
1111
|
-
let contents = {};
|
|
1112
|
-
contents = _json(data);
|
|
1113
|
-
const response = {
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
...contents,
|
|
1116
|
-
};
|
|
1117
|
-
return response;
|
|
1118
|
-
};
|
|
1119
|
-
export const de_PutDetectorCommand = async (output, context) => {
|
|
1120
|
-
if (output.statusCode >= 300) {
|
|
1121
|
-
return de_CommandError(output, context);
|
|
1122
|
-
}
|
|
1123
|
-
const data = await parseBody(output.body, context);
|
|
1124
|
-
let contents = {};
|
|
1125
|
-
contents = _json(data);
|
|
1126
|
-
const response = {
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
...contents,
|
|
1129
|
-
};
|
|
1130
|
-
return response;
|
|
1131
|
-
};
|
|
1132
|
-
export const de_PutEntityTypeCommand = async (output, context) => {
|
|
1133
|
-
if (output.statusCode >= 300) {
|
|
1134
|
-
return de_CommandError(output, context);
|
|
1135
|
-
}
|
|
1136
|
-
const data = await parseBody(output.body, context);
|
|
1137
|
-
let contents = {};
|
|
1138
|
-
contents = _json(data);
|
|
1139
|
-
const response = {
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
...contents,
|
|
1142
|
-
};
|
|
1143
|
-
return response;
|
|
1144
|
-
};
|
|
1145
|
-
export const de_PutEventTypeCommand = async (output, context) => {
|
|
1146
|
-
if (output.statusCode >= 300) {
|
|
1147
|
-
return de_CommandError(output, context);
|
|
1148
|
-
}
|
|
1149
|
-
const data = await parseBody(output.body, context);
|
|
1150
|
-
let contents = {};
|
|
1151
|
-
contents = _json(data);
|
|
1152
|
-
const response = {
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
...contents,
|
|
1155
|
-
};
|
|
1156
|
-
return response;
|
|
1157
|
-
};
|
|
1158
|
-
export const de_PutExternalModelCommand = async (output, context) => {
|
|
1159
|
-
if (output.statusCode >= 300) {
|
|
1160
|
-
return de_CommandError(output, context);
|
|
1161
|
-
}
|
|
1162
|
-
const data = await parseBody(output.body, context);
|
|
1163
|
-
let contents = {};
|
|
1164
|
-
contents = _json(data);
|
|
1165
|
-
const response = {
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
...contents,
|
|
1168
|
-
};
|
|
1169
|
-
return response;
|
|
1170
|
-
};
|
|
1171
|
-
export const de_PutKMSEncryptionKeyCommand = async (output, context) => {
|
|
1172
|
-
if (output.statusCode >= 300) {
|
|
1173
|
-
return de_CommandError(output, context);
|
|
1174
|
-
}
|
|
1175
|
-
const data = await parseBody(output.body, context);
|
|
1176
|
-
let contents = {};
|
|
1177
|
-
contents = _json(data);
|
|
1178
|
-
const response = {
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
...contents,
|
|
1181
|
-
};
|
|
1182
|
-
return response;
|
|
1183
|
-
};
|
|
1184
|
-
export const de_PutLabelCommand = async (output, context) => {
|
|
1185
|
-
if (output.statusCode >= 300) {
|
|
1186
|
-
return de_CommandError(output, context);
|
|
1187
|
-
}
|
|
1188
|
-
const data = await parseBody(output.body, context);
|
|
1189
|
-
let contents = {};
|
|
1190
|
-
contents = _json(data);
|
|
1191
|
-
const response = {
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
...contents,
|
|
1194
|
-
};
|
|
1195
|
-
return response;
|
|
1196
|
-
};
|
|
1197
|
-
export const de_PutOutcomeCommand = async (output, context) => {
|
|
1198
|
-
if (output.statusCode >= 300) {
|
|
1199
|
-
return de_CommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const data = await parseBody(output.body, context);
|
|
1202
|
-
let contents = {};
|
|
1203
|
-
contents = _json(data);
|
|
1204
|
-
const response = {
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
...contents,
|
|
1207
|
-
};
|
|
1208
|
-
return response;
|
|
1209
|
-
};
|
|
1210
|
-
export const de_SendEventCommand = async (output, context) => {
|
|
1211
|
-
if (output.statusCode >= 300) {
|
|
1212
|
-
return de_CommandError(output, context);
|
|
1213
|
-
}
|
|
1214
|
-
const data = await parseBody(output.body, context);
|
|
1215
|
-
let contents = {};
|
|
1216
|
-
contents = _json(data);
|
|
1217
|
-
const response = {
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
...contents,
|
|
1220
|
-
};
|
|
1221
|
-
return response;
|
|
1222
|
-
};
|
|
1223
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1224
|
-
if (output.statusCode >= 300) {
|
|
1225
|
-
return de_CommandError(output, context);
|
|
1226
|
-
}
|
|
1227
|
-
const data = await parseBody(output.body, context);
|
|
1228
|
-
let contents = {};
|
|
1229
|
-
contents = _json(data);
|
|
1230
|
-
const response = {
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
...contents,
|
|
1233
|
-
};
|
|
1234
|
-
return response;
|
|
1235
|
-
};
|
|
1236
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1237
|
-
if (output.statusCode >= 300) {
|
|
1238
|
-
return de_CommandError(output, context);
|
|
1239
|
-
}
|
|
1240
|
-
const data = await parseBody(output.body, context);
|
|
1241
|
-
let contents = {};
|
|
1242
|
-
contents = _json(data);
|
|
1243
|
-
const response = {
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
...contents,
|
|
1246
|
-
};
|
|
1247
|
-
return response;
|
|
1248
|
-
};
|
|
1249
|
-
export const de_UpdateDetectorVersionCommand = async (output, context) => {
|
|
1250
|
-
if (output.statusCode >= 300) {
|
|
1251
|
-
return de_CommandError(output, context);
|
|
1252
|
-
}
|
|
1253
|
-
const data = await parseBody(output.body, context);
|
|
1254
|
-
let contents = {};
|
|
1255
|
-
contents = _json(data);
|
|
1256
|
-
const response = {
|
|
1257
|
-
$metadata: deserializeMetadata(output),
|
|
1258
|
-
...contents,
|
|
1259
|
-
};
|
|
1260
|
-
return response;
|
|
1261
|
-
};
|
|
1262
|
-
export const de_UpdateDetectorVersionMetadataCommand = async (output, context) => {
|
|
1263
|
-
if (output.statusCode >= 300) {
|
|
1264
|
-
return de_CommandError(output, context);
|
|
1265
|
-
}
|
|
1266
|
-
const data = await parseBody(output.body, context);
|
|
1267
|
-
let contents = {};
|
|
1268
|
-
contents = _json(data);
|
|
1269
|
-
const response = {
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
...contents,
|
|
1272
|
-
};
|
|
1273
|
-
return response;
|
|
1274
|
-
};
|
|
1275
|
-
export const de_UpdateDetectorVersionStatusCommand = async (output, context) => {
|
|
1276
|
-
if (output.statusCode >= 300) {
|
|
1277
|
-
return de_CommandError(output, context);
|
|
1278
|
-
}
|
|
1279
|
-
const data = await parseBody(output.body, context);
|
|
1280
|
-
let contents = {};
|
|
1281
|
-
contents = _json(data);
|
|
1282
|
-
const response = {
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
...contents,
|
|
1285
|
-
};
|
|
1286
|
-
return response;
|
|
1287
|
-
};
|
|
1288
|
-
export const de_UpdateEventLabelCommand = async (output, context) => {
|
|
1289
|
-
if (output.statusCode >= 300) {
|
|
1290
|
-
return de_CommandError(output, context);
|
|
1291
|
-
}
|
|
1292
|
-
const data = await parseBody(output.body, context);
|
|
1293
|
-
let contents = {};
|
|
1294
|
-
contents = _json(data);
|
|
1295
|
-
const response = {
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
...contents,
|
|
1298
|
-
};
|
|
1299
|
-
return response;
|
|
1300
|
-
};
|
|
1301
|
-
export const de_UpdateListCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode >= 300) {
|
|
1303
|
-
return de_CommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const data = await parseBody(output.body, context);
|
|
1306
|
-
let contents = {};
|
|
1307
|
-
contents = _json(data);
|
|
1308
|
-
const response = {
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1310
|
-
...contents,
|
|
1311
|
-
};
|
|
1312
|
-
return response;
|
|
1313
|
-
};
|
|
1314
|
-
export const de_UpdateModelCommand = async (output, context) => {
|
|
1315
|
-
if (output.statusCode >= 300) {
|
|
1316
|
-
return de_CommandError(output, context);
|
|
1317
|
-
}
|
|
1318
|
-
const data = await parseBody(output.body, context);
|
|
1319
|
-
let contents = {};
|
|
1320
|
-
contents = _json(data);
|
|
1321
|
-
const response = {
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
...contents,
|
|
1324
|
-
};
|
|
1325
|
-
return response;
|
|
1326
|
-
};
|
|
1327
|
-
export const de_UpdateModelVersionCommand = async (output, context) => {
|
|
1328
|
-
if (output.statusCode >= 300) {
|
|
1329
|
-
return de_CommandError(output, context);
|
|
1330
|
-
}
|
|
1331
|
-
const data = await parseBody(output.body, context);
|
|
1332
|
-
let contents = {};
|
|
1333
|
-
contents = _json(data);
|
|
1334
|
-
const response = {
|
|
1335
|
-
$metadata: deserializeMetadata(output),
|
|
1336
|
-
...contents,
|
|
1337
|
-
};
|
|
1338
|
-
return response;
|
|
1339
|
-
};
|
|
1340
|
-
export const de_UpdateModelVersionStatusCommand = async (output, context) => {
|
|
1341
|
-
if (output.statusCode >= 300) {
|
|
1342
|
-
return de_CommandError(output, context);
|
|
1343
|
-
}
|
|
1344
|
-
const data = await parseBody(output.body, context);
|
|
1345
|
-
let contents = {};
|
|
1346
|
-
contents = _json(data);
|
|
1347
|
-
const response = {
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
...contents,
|
|
1350
|
-
};
|
|
1351
|
-
return response;
|
|
1352
|
-
};
|
|
1353
|
-
export const de_UpdateRuleMetadataCommand = async (output, context) => {
|
|
1354
|
-
if (output.statusCode >= 300) {
|
|
1355
|
-
return de_CommandError(output, context);
|
|
1356
|
-
}
|
|
1357
|
-
const data = await parseBody(output.body, context);
|
|
1358
|
-
let contents = {};
|
|
1359
|
-
contents = _json(data);
|
|
1360
|
-
const response = {
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
...contents,
|
|
1363
|
-
};
|
|
1364
|
-
return response;
|
|
1365
|
-
};
|
|
1366
|
-
export const de_UpdateRuleVersionCommand = async (output, context) => {
|
|
1367
|
-
if (output.statusCode >= 300) {
|
|
1368
|
-
return de_CommandError(output, context);
|
|
1369
|
-
}
|
|
1370
|
-
const data = await parseBody(output.body, context);
|
|
1371
|
-
let contents = {};
|
|
1372
|
-
contents = _json(data);
|
|
1373
|
-
const response = {
|
|
1374
|
-
$metadata: deserializeMetadata(output),
|
|
1375
|
-
...contents,
|
|
1376
|
-
};
|
|
1377
|
-
return response;
|
|
1378
|
-
};
|
|
1379
|
-
export const de_UpdateVariableCommand = async (output, context) => {
|
|
1380
|
-
if (output.statusCode >= 300) {
|
|
1381
|
-
return de_CommandError(output, context);
|
|
1382
|
-
}
|
|
1383
|
-
const data = await parseBody(output.body, context);
|
|
1384
|
-
let contents = {};
|
|
1385
|
-
contents = _json(data);
|
|
1386
|
-
const response = {
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
...contents,
|
|
1389
|
-
};
|
|
1390
|
-
return response;
|
|
1391
|
-
};
|
|
1392
|
-
const de_CommandError = async (output, context) => {
|
|
1393
|
-
const parsedOutput = {
|
|
1394
|
-
...output,
|
|
1395
|
-
body: await parseErrorBody(output.body, context),
|
|
1396
|
-
};
|
|
1397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
-
switch (errorCode) {
|
|
1399
|
-
case "AccessDeniedException":
|
|
1400
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1401
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "InternalServerException":
|
|
1403
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1404
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ThrottlingException":
|
|
1406
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ValidationException":
|
|
1409
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ResourceNotFoundException":
|
|
1412
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ConflictException":
|
|
1415
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1416
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ResourceUnavailableException":
|
|
1418
|
-
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
1419
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1430
|
-
const body = parsedOutput.body;
|
|
1431
|
-
const deserialized = _json(body);
|
|
1432
|
-
const exception = new AccessDeniedException({
|
|
1433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1434
|
-
...deserialized,
|
|
1435
|
-
});
|
|
1436
|
-
return __decorateServiceException(exception, body);
|
|
1437
|
-
};
|
|
1438
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1439
|
-
const body = parsedOutput.body;
|
|
1440
|
-
const deserialized = _json(body);
|
|
1441
|
-
const exception = new ConflictException({
|
|
1442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1443
|
-
...deserialized,
|
|
1444
|
-
});
|
|
1445
|
-
return __decorateServiceException(exception, body);
|
|
1446
|
-
};
|
|
1447
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1448
|
-
const body = parsedOutput.body;
|
|
1449
|
-
const deserialized = _json(body);
|
|
1450
|
-
const exception = new InternalServerException({
|
|
1451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1452
|
-
...deserialized,
|
|
1453
|
-
});
|
|
1454
|
-
return __decorateServiceException(exception, body);
|
|
1455
|
-
};
|
|
1456
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1457
|
-
const body = parsedOutput.body;
|
|
1458
|
-
const deserialized = _json(body);
|
|
1459
|
-
const exception = new ResourceNotFoundException({
|
|
1460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1461
|
-
...deserialized,
|
|
1462
|
-
});
|
|
1463
|
-
return __decorateServiceException(exception, body);
|
|
1464
|
-
};
|
|
1465
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1466
|
-
const body = parsedOutput.body;
|
|
1467
|
-
const deserialized = _json(body);
|
|
1468
|
-
const exception = new ResourceUnavailableException({
|
|
1469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1470
|
-
...deserialized,
|
|
1471
|
-
});
|
|
1472
|
-
return __decorateServiceException(exception, body);
|
|
1473
|
-
};
|
|
1474
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1475
|
-
const body = parsedOutput.body;
|
|
1476
|
-
const deserialized = _json(body);
|
|
1477
|
-
const exception = new ThrottlingException({
|
|
1478
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1479
|
-
...deserialized,
|
|
1480
|
-
});
|
|
1481
|
-
return __decorateServiceException(exception, body);
|
|
1482
|
-
};
|
|
1483
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1484
|
-
const body = parsedOutput.body;
|
|
1485
|
-
const deserialized = _json(body);
|
|
1486
|
-
const exception = new ValidationException({
|
|
1487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1488
|
-
...deserialized,
|
|
1489
|
-
});
|
|
1490
|
-
return __decorateServiceException(exception, body);
|
|
1491
|
-
};
|
|
1492
|
-
const se_ExternalModelEndpointDataBlobMap = (input, context) => {
|
|
1493
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1494
|
-
if (value === null) {
|
|
1495
|
-
return acc;
|
|
1496
|
-
}
|
|
1497
|
-
acc[key] = se_ModelEndpointDataBlob(value, context);
|
|
1498
|
-
return acc;
|
|
1499
|
-
}, {});
|
|
1500
|
-
};
|
|
1501
|
-
const se_GetEventPredictionRequest = (input, context) => {
|
|
1502
|
-
return take(input, {
|
|
1503
|
-
detectorId: [],
|
|
1504
|
-
detectorVersionId: [],
|
|
1505
|
-
entities: _json,
|
|
1506
|
-
eventId: [],
|
|
1507
|
-
eventTimestamp: [],
|
|
1508
|
-
eventTypeName: [],
|
|
1509
|
-
eventVariables: _json,
|
|
1510
|
-
externalModelEndpointDataBlobs: (_) => se_ExternalModelEndpointDataBlobMap(_, context),
|
|
1511
|
-
});
|
|
1512
|
-
};
|
|
1513
|
-
const se_ModelEndpointDataBlob = (input, context) => {
|
|
1514
|
-
return take(input, {
|
|
1515
|
-
byteBuffer: context.base64Encoder,
|
|
1516
|
-
contentType: [],
|
|
1517
|
-
});
|
|
1518
|
-
};
|
|
1519
|
-
const de_AggregatedLogOddsMetric = (output, context) => {
|
|
1520
|
-
return take(output, {
|
|
1521
|
-
aggregatedVariablesImportance: __limitedParseFloat32,
|
|
1522
|
-
variableNames: _json,
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
const de_AggregatedVariablesImpactExplanation = (output, context) => {
|
|
1526
|
-
return take(output, {
|
|
1527
|
-
eventVariableNames: _json,
|
|
1528
|
-
logOddsImpact: __limitedParseFloat32,
|
|
1529
|
-
relativeImpact: __expectString,
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
const de_AggregatedVariablesImportanceMetrics = (output, context) => {
|
|
1533
|
-
return take(output, {
|
|
1534
|
-
logOddsMetrics: (_) => de_ListOfAggregatedLogOddsMetrics(_, context),
|
|
1535
|
-
});
|
|
1536
|
-
};
|
|
1537
|
-
const de_ATIMetricDataPoint = (output, context) => {
|
|
1538
|
-
return take(output, {
|
|
1539
|
-
adr: __limitedParseFloat32,
|
|
1540
|
-
atodr: __limitedParseFloat32,
|
|
1541
|
-
cr: __limitedParseFloat32,
|
|
1542
|
-
threshold: __limitedParseFloat32,
|
|
1543
|
-
});
|
|
1544
|
-
};
|
|
1545
|
-
const de_ATIMetricDataPointsList = (output, context) => {
|
|
1546
|
-
const retVal = (output || [])
|
|
1547
|
-
.filter((e) => e != null)
|
|
1548
|
-
.map((entry) => {
|
|
1549
|
-
return de_ATIMetricDataPoint(entry, context);
|
|
1550
|
-
});
|
|
1551
|
-
return retVal;
|
|
1552
|
-
};
|
|
1553
|
-
const de_ATIModelPerformance = (output, context) => {
|
|
1554
|
-
return take(output, {
|
|
1555
|
-
asi: __limitedParseFloat32,
|
|
1556
|
-
});
|
|
1557
|
-
};
|
|
1558
|
-
const de_ATITrainingMetricsValue = (output, context) => {
|
|
1559
|
-
return take(output, {
|
|
1560
|
-
metricDataPoints: (_) => de_ATIMetricDataPointsList(_, context),
|
|
1561
|
-
modelPerformance: (_) => de_ATIModelPerformance(_, context),
|
|
1562
|
-
});
|
|
1563
|
-
};
|
|
1564
|
-
const de_DescribeModelVersionsResult = (output, context) => {
|
|
1565
|
-
return take(output, {
|
|
1566
|
-
modelVersionDetails: (_) => de_modelVersionDetailList(_, context),
|
|
1567
|
-
nextToken: __expectString,
|
|
1568
|
-
});
|
|
1569
|
-
};
|
|
1570
|
-
const de_EvaluatedModelVersion = (output, context) => {
|
|
1571
|
-
return take(output, {
|
|
1572
|
-
evaluations: (_) => de_ListOfModelVersionEvaluations(_, context),
|
|
1573
|
-
modelId: __expectString,
|
|
1574
|
-
modelType: __expectString,
|
|
1575
|
-
modelVersion: __expectString,
|
|
1576
|
-
});
|
|
1577
|
-
};
|
|
1578
|
-
const de_GetEventPredictionMetadataResult = (output, context) => {
|
|
1579
|
-
return take(output, {
|
|
1580
|
-
detectorId: __expectString,
|
|
1581
|
-
detectorVersionId: __expectString,
|
|
1582
|
-
detectorVersionStatus: __expectString,
|
|
1583
|
-
entityId: __expectString,
|
|
1584
|
-
entityType: __expectString,
|
|
1585
|
-
evaluatedExternalModels: _json,
|
|
1586
|
-
evaluatedModelVersions: (_) => de_ListOfEvaluatedModelVersions(_, context),
|
|
1587
|
-
eventId: __expectString,
|
|
1588
|
-
eventTimestamp: __expectString,
|
|
1589
|
-
eventTypeName: __expectString,
|
|
1590
|
-
eventVariables: _json,
|
|
1591
|
-
outcomes: _json,
|
|
1592
|
-
predictionTimestamp: __expectString,
|
|
1593
|
-
ruleExecutionMode: __expectString,
|
|
1594
|
-
rules: _json,
|
|
1595
|
-
});
|
|
1596
|
-
};
|
|
1597
|
-
const de_GetEventPredictionResult = (output, context) => {
|
|
1598
|
-
return take(output, {
|
|
1599
|
-
externalModelOutputs: _json,
|
|
1600
|
-
modelScores: (_) => de_ListOfModelScores(_, context),
|
|
1601
|
-
ruleResults: _json,
|
|
1602
|
-
});
|
|
1603
|
-
};
|
|
1604
|
-
const de_ListOfAggregatedLogOddsMetrics = (output, context) => {
|
|
1605
|
-
const retVal = (output || [])
|
|
1606
|
-
.filter((e) => e != null)
|
|
1607
|
-
.map((entry) => {
|
|
1608
|
-
return de_AggregatedLogOddsMetric(entry, context);
|
|
1609
|
-
});
|
|
1610
|
-
return retVal;
|
|
1611
|
-
};
|
|
1612
|
-
const de_ListOfAggregatedVariablesImpactExplanations = (output, context) => {
|
|
1613
|
-
const retVal = (output || [])
|
|
1614
|
-
.filter((e) => e != null)
|
|
1615
|
-
.map((entry) => {
|
|
1616
|
-
return de_AggregatedVariablesImpactExplanation(entry, context);
|
|
1617
|
-
});
|
|
1618
|
-
return retVal;
|
|
1619
|
-
};
|
|
1620
|
-
const de_ListOfEvaluatedModelVersions = (output, context) => {
|
|
1621
|
-
const retVal = (output || [])
|
|
1622
|
-
.filter((e) => e != null)
|
|
1623
|
-
.map((entry) => {
|
|
1624
|
-
return de_EvaluatedModelVersion(entry, context);
|
|
1625
|
-
});
|
|
1626
|
-
return retVal;
|
|
1627
|
-
};
|
|
1628
|
-
const de_ListOfLogOddsMetrics = (output, context) => {
|
|
1629
|
-
const retVal = (output || [])
|
|
1630
|
-
.filter((e) => e != null)
|
|
1631
|
-
.map((entry) => {
|
|
1632
|
-
return de_LogOddsMetric(entry, context);
|
|
1633
|
-
});
|
|
1634
|
-
return retVal;
|
|
1635
|
-
};
|
|
1636
|
-
const de_ListOfModelScores = (output, context) => {
|
|
1637
|
-
const retVal = (output || [])
|
|
1638
|
-
.filter((e) => e != null)
|
|
1639
|
-
.map((entry) => {
|
|
1640
|
-
return de_ModelScores(entry, context);
|
|
1641
|
-
});
|
|
1642
|
-
return retVal;
|
|
1643
|
-
};
|
|
1644
|
-
const de_ListOfModelVersionEvaluations = (output, context) => {
|
|
1645
|
-
const retVal = (output || [])
|
|
1646
|
-
.filter((e) => e != null)
|
|
1647
|
-
.map((entry) => {
|
|
1648
|
-
return de_ModelVersionEvaluation(entry, context);
|
|
1649
|
-
});
|
|
1650
|
-
return retVal;
|
|
1651
|
-
};
|
|
1652
|
-
const de_listOfVariableImpactExplanations = (output, context) => {
|
|
1653
|
-
const retVal = (output || [])
|
|
1654
|
-
.filter((e) => e != null)
|
|
1655
|
-
.map((entry) => {
|
|
1656
|
-
return de_VariableImpactExplanation(entry, context);
|
|
1657
|
-
});
|
|
1658
|
-
return retVal;
|
|
1659
|
-
};
|
|
1660
|
-
const de_LogOddsMetric = (output, context) => {
|
|
1661
|
-
return take(output, {
|
|
1662
|
-
variableImportance: __limitedParseFloat32,
|
|
1663
|
-
variableName: __expectString,
|
|
1664
|
-
variableType: __expectString,
|
|
1665
|
-
});
|
|
1666
|
-
};
|
|
1667
|
-
const de_MetricDataPoint = (output, context) => {
|
|
1668
|
-
return take(output, {
|
|
1669
|
-
fpr: __limitedParseFloat32,
|
|
1670
|
-
precision: __limitedParseFloat32,
|
|
1671
|
-
threshold: __limitedParseFloat32,
|
|
1672
|
-
tpr: __limitedParseFloat32,
|
|
1673
|
-
});
|
|
1674
|
-
};
|
|
1675
|
-
const de_metricDataPointsList = (output, context) => {
|
|
1676
|
-
const retVal = (output || [])
|
|
1677
|
-
.filter((e) => e != null)
|
|
1678
|
-
.map((entry) => {
|
|
1679
|
-
return de_MetricDataPoint(entry, context);
|
|
1680
|
-
});
|
|
1681
|
-
return retVal;
|
|
1682
|
-
};
|
|
1683
|
-
const de_ModelPredictionMap = (output, context) => {
|
|
1684
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1685
|
-
if (value === null) {
|
|
1686
|
-
return acc;
|
|
1687
|
-
}
|
|
1688
|
-
acc[key] = __limitedParseFloat32(value);
|
|
1689
|
-
return acc;
|
|
1690
|
-
}, {});
|
|
1691
|
-
};
|
|
1692
|
-
const de_ModelScores = (output, context) => {
|
|
1693
|
-
return take(output, {
|
|
1694
|
-
modelVersion: _json,
|
|
1695
|
-
scores: (_) => de_ModelPredictionMap(_, context),
|
|
1696
|
-
});
|
|
1697
|
-
};
|
|
1698
|
-
const de_ModelVersionDetail = (output, context) => {
|
|
1699
|
-
return take(output, {
|
|
1700
|
-
arn: __expectString,
|
|
1701
|
-
createdTime: __expectString,
|
|
1702
|
-
externalEventsDetail: _json,
|
|
1703
|
-
ingestedEventsDetail: _json,
|
|
1704
|
-
lastUpdatedTime: __expectString,
|
|
1705
|
-
modelId: __expectString,
|
|
1706
|
-
modelType: __expectString,
|
|
1707
|
-
modelVersionNumber: __expectString,
|
|
1708
|
-
status: __expectString,
|
|
1709
|
-
trainingDataSchema: _json,
|
|
1710
|
-
trainingDataSource: __expectString,
|
|
1711
|
-
trainingResult: (_) => de_TrainingResult(_, context),
|
|
1712
|
-
trainingResultV2: (_) => de_TrainingResultV2(_, context),
|
|
1713
|
-
});
|
|
1714
|
-
};
|
|
1715
|
-
const de_modelVersionDetailList = (output, context) => {
|
|
1716
|
-
const retVal = (output || [])
|
|
1717
|
-
.filter((e) => e != null)
|
|
1718
|
-
.map((entry) => {
|
|
1719
|
-
return de_ModelVersionDetail(entry, context);
|
|
1720
|
-
});
|
|
1721
|
-
return retVal;
|
|
1722
|
-
};
|
|
1723
|
-
const de_ModelVersionEvaluation = (output, context) => {
|
|
1724
|
-
return take(output, {
|
|
1725
|
-
evaluationScore: __expectString,
|
|
1726
|
-
outputVariableName: __expectString,
|
|
1727
|
-
predictionExplanations: (_) => de_PredictionExplanations(_, context),
|
|
1728
|
-
});
|
|
1729
|
-
};
|
|
1730
|
-
const de_OFIMetricDataPoint = (output, context) => {
|
|
1731
|
-
return take(output, {
|
|
1732
|
-
fpr: __limitedParseFloat32,
|
|
1733
|
-
precision: __limitedParseFloat32,
|
|
1734
|
-
threshold: __limitedParseFloat32,
|
|
1735
|
-
tpr: __limitedParseFloat32,
|
|
1736
|
-
});
|
|
1737
|
-
};
|
|
1738
|
-
const de_OFIMetricDataPointsList = (output, context) => {
|
|
1739
|
-
const retVal = (output || [])
|
|
1740
|
-
.filter((e) => e != null)
|
|
1741
|
-
.map((entry) => {
|
|
1742
|
-
return de_OFIMetricDataPoint(entry, context);
|
|
1743
|
-
});
|
|
1744
|
-
return retVal;
|
|
1745
|
-
};
|
|
1746
|
-
const de_OFIModelPerformance = (output, context) => {
|
|
1747
|
-
return take(output, {
|
|
1748
|
-
auc: __limitedParseFloat32,
|
|
1749
|
-
uncertaintyRange: (_) => de_UncertaintyRange(_, context),
|
|
1750
|
-
});
|
|
1751
|
-
};
|
|
1752
|
-
const de_OFITrainingMetricsValue = (output, context) => {
|
|
1753
|
-
return take(output, {
|
|
1754
|
-
metricDataPoints: (_) => de_OFIMetricDataPointsList(_, context),
|
|
1755
|
-
modelPerformance: (_) => de_OFIModelPerformance(_, context),
|
|
1756
|
-
});
|
|
1757
|
-
};
|
|
1758
|
-
const de_PredictionExplanations = (output, context) => {
|
|
1759
|
-
return take(output, {
|
|
1760
|
-
aggregatedVariablesImpactExplanations: (_) => de_ListOfAggregatedVariablesImpactExplanations(_, context),
|
|
1761
|
-
variableImpactExplanations: (_) => de_listOfVariableImpactExplanations(_, context),
|
|
1762
|
-
});
|
|
1763
|
-
};
|
|
1764
|
-
const de_TFIMetricDataPoint = (output, context) => {
|
|
1765
|
-
return take(output, {
|
|
1766
|
-
fpr: __limitedParseFloat32,
|
|
1767
|
-
precision: __limitedParseFloat32,
|
|
1768
|
-
threshold: __limitedParseFloat32,
|
|
1769
|
-
tpr: __limitedParseFloat32,
|
|
1770
|
-
});
|
|
1771
|
-
};
|
|
1772
|
-
const de_TFIMetricDataPointsList = (output, context) => {
|
|
1773
|
-
const retVal = (output || [])
|
|
1774
|
-
.filter((e) => e != null)
|
|
1775
|
-
.map((entry) => {
|
|
1776
|
-
return de_TFIMetricDataPoint(entry, context);
|
|
1777
|
-
});
|
|
1778
|
-
return retVal;
|
|
1779
|
-
};
|
|
1780
|
-
const de_TFIModelPerformance = (output, context) => {
|
|
1781
|
-
return take(output, {
|
|
1782
|
-
auc: __limitedParseFloat32,
|
|
1783
|
-
uncertaintyRange: (_) => de_UncertaintyRange(_, context),
|
|
1784
|
-
});
|
|
1785
|
-
};
|
|
1786
|
-
const de_TFITrainingMetricsValue = (output, context) => {
|
|
1787
|
-
return take(output, {
|
|
1788
|
-
metricDataPoints: (_) => de_TFIMetricDataPointsList(_, context),
|
|
1789
|
-
modelPerformance: (_) => de_TFIModelPerformance(_, context),
|
|
1790
|
-
});
|
|
1791
|
-
};
|
|
1792
|
-
const de_TrainingMetrics = (output, context) => {
|
|
1793
|
-
return take(output, {
|
|
1794
|
-
auc: __limitedParseFloat32,
|
|
1795
|
-
metricDataPoints: (_) => de_metricDataPointsList(_, context),
|
|
1796
|
-
});
|
|
1797
|
-
};
|
|
1798
|
-
const de_TrainingMetricsV2 = (output, context) => {
|
|
1799
|
-
return take(output, {
|
|
1800
|
-
ati: (_) => de_ATITrainingMetricsValue(_, context),
|
|
1801
|
-
ofi: (_) => de_OFITrainingMetricsValue(_, context),
|
|
1802
|
-
tfi: (_) => de_TFITrainingMetricsValue(_, context),
|
|
1803
|
-
});
|
|
1804
|
-
};
|
|
1805
|
-
const de_TrainingResult = (output, context) => {
|
|
1806
|
-
return take(output, {
|
|
1807
|
-
dataValidationMetrics: _json,
|
|
1808
|
-
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
1809
|
-
variableImportanceMetrics: (_) => de_VariableImportanceMetrics(_, context),
|
|
1810
|
-
});
|
|
1811
|
-
};
|
|
1812
|
-
const de_TrainingResultV2 = (output, context) => {
|
|
1813
|
-
return take(output, {
|
|
1814
|
-
aggregatedVariablesImportanceMetrics: (_) => de_AggregatedVariablesImportanceMetrics(_, context),
|
|
1815
|
-
dataValidationMetrics: _json,
|
|
1816
|
-
trainingMetricsV2: (_) => de_TrainingMetricsV2(_, context),
|
|
1817
|
-
variableImportanceMetrics: (_) => de_VariableImportanceMetrics(_, context),
|
|
1818
|
-
});
|
|
1819
|
-
};
|
|
1820
|
-
const de_UncertaintyRange = (output, context) => {
|
|
1821
|
-
return take(output, {
|
|
1822
|
-
lowerBoundValue: __limitedParseFloat32,
|
|
1823
|
-
upperBoundValue: __limitedParseFloat32,
|
|
1824
|
-
});
|
|
1825
|
-
};
|
|
1826
|
-
const de_VariableImpactExplanation = (output, context) => {
|
|
1827
|
-
return take(output, {
|
|
1828
|
-
eventVariableName: __expectString,
|
|
1829
|
-
logOddsImpact: __limitedParseFloat32,
|
|
1830
|
-
relativeImpact: __expectString,
|
|
1831
|
-
});
|
|
1832
|
-
};
|
|
1833
|
-
const de_VariableImportanceMetrics = (output, context) => {
|
|
1834
|
-
return take(output, {
|
|
1835
|
-
logOddsMetrics: (_) => de_ListOfLogOddsMetrics(_, context),
|
|
1836
|
-
});
|
|
1837
|
-
};
|
|
1838
|
-
const deserializeMetadata = (output) => ({
|
|
1839
|
-
httpStatusCode: output.statusCode,
|
|
1840
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1841
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1842
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1843
|
-
});
|
|
1844
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1845
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1846
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1847
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1848
|
-
const contents = {
|
|
1849
|
-
protocol,
|
|
1850
|
-
hostname,
|
|
1851
|
-
port,
|
|
1852
|
-
method: "POST",
|
|
1853
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1854
|
-
headers,
|
|
1855
|
-
};
|
|
1856
|
-
if (resolvedHostname !== undefined) {
|
|
1857
|
-
contents.hostname = resolvedHostname;
|
|
1858
|
-
}
|
|
1859
|
-
if (body !== undefined) {
|
|
1860
|
-
contents.body = body;
|
|
1861
|
-
}
|
|
1862
|
-
return new __HttpRequest(contents);
|
|
1863
|
-
};
|
|
1864
|
-
function sharedHeaders(operation) {
|
|
1865
|
-
return {
|
|
1866
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1867
|
-
"x-amz-target": `AWSHawksNestServiceFacade.${operation}`,
|
|
1868
|
-
};
|
|
1869
|
-
}
|