@aws-sdk/client-frauddetector 3.489.0 → 3.495.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/FraudDetector.js +1 -157
- package/dist-cjs/FraudDetectorClient.js +1 -43
- package/dist-cjs/commands/BatchCreateVariableCommand.js +1 -28
- package/dist-cjs/commands/BatchGetVariableCommand.js +1 -28
- package/dist-cjs/commands/CancelBatchImportJobCommand.js +1 -28
- package/dist-cjs/commands/CancelBatchPredictionJobCommand.js +1 -28
- package/dist-cjs/commands/CreateBatchImportJobCommand.js +1 -28
- package/dist-cjs/commands/CreateBatchPredictionJobCommand.js +1 -28
- package/dist-cjs/commands/CreateDetectorVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateListCommand.js +1 -29
- package/dist-cjs/commands/CreateModelCommand.js +1 -28
- package/dist-cjs/commands/CreateModelVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateRuleCommand.js +1 -29
- package/dist-cjs/commands/CreateVariableCommand.js +1 -28
- package/dist-cjs/commands/DeleteBatchImportJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteBatchPredictionJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteDetectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteDetectorVersionCommand.js +1 -28
- package/dist-cjs/commands/DeleteEntityTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventsByEventTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteExternalModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteLabelCommand.js +1 -28
- package/dist-cjs/commands/DeleteListCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelVersionCommand.js +1 -28
- package/dist-cjs/commands/DeleteOutcomeCommand.js +1 -28
- package/dist-cjs/commands/DeleteRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteVariableCommand.js +1 -28
- package/dist-cjs/commands/DescribeDetectorCommand.js +1 -28
- package/dist-cjs/commands/DescribeModelVersionsCommand.js +1 -28
- package/dist-cjs/commands/GetBatchImportJobsCommand.js +1 -28
- package/dist-cjs/commands/GetBatchPredictionJobsCommand.js +1 -28
- package/dist-cjs/commands/GetDeleteEventsByEventTypeStatusCommand.js +1 -28
- package/dist-cjs/commands/GetDetectorVersionCommand.js +1 -28
- package/dist-cjs/commands/GetDetectorsCommand.js +1 -28
- package/dist-cjs/commands/GetEntityTypesCommand.js +1 -28
- package/dist-cjs/commands/GetEventCommand.js +1 -29
- package/dist-cjs/commands/GetEventPredictionCommand.js +1 -29
- package/dist-cjs/commands/GetEventPredictionMetadataCommand.js +1 -29
- package/dist-cjs/commands/GetEventTypesCommand.js +1 -29
- package/dist-cjs/commands/GetExternalModelsCommand.js +1 -28
- package/dist-cjs/commands/GetKMSEncryptionKeyCommand.js +1 -28
- package/dist-cjs/commands/GetLabelsCommand.js +1 -28
- package/dist-cjs/commands/GetListElementsCommand.js +1 -29
- package/dist-cjs/commands/GetListsMetadataCommand.js +1 -28
- package/dist-cjs/commands/GetModelVersionCommand.js +1 -28
- package/dist-cjs/commands/GetModelsCommand.js +1 -28
- package/dist-cjs/commands/GetOutcomesCommand.js +1 -28
- package/dist-cjs/commands/GetRulesCommand.js +1 -29
- package/dist-cjs/commands/GetVariablesCommand.js +1 -28
- package/dist-cjs/commands/ListEventPredictionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutDetectorCommand.js +1 -28
- package/dist-cjs/commands/PutEntityTypeCommand.js +1 -28
- package/dist-cjs/commands/PutEventTypeCommand.js +1 -28
- package/dist-cjs/commands/PutExternalModelCommand.js +1 -28
- package/dist-cjs/commands/PutKMSEncryptionKeyCommand.js +1 -28
- package/dist-cjs/commands/PutLabelCommand.js +1 -28
- package/dist-cjs/commands/PutOutcomeCommand.js +1 -28
- package/dist-cjs/commands/SendEventCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDetectorVersionCommand.js +1 -28
- package/dist-cjs/commands/UpdateDetectorVersionMetadataCommand.js +1 -28
- package/dist-cjs/commands/UpdateDetectorVersionStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateEventLabelCommand.js +1 -28
- package/dist-cjs/commands/UpdateListCommand.js +1 -29
- package/dist-cjs/commands/UpdateModelCommand.js +1 -28
- package/dist-cjs/commands/UpdateModelVersionCommand.js +1 -28
- package/dist-cjs/commands/UpdateModelVersionStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateRuleMetadataCommand.js +1 -28
- package/dist-cjs/commands/UpdateRuleVersionCommand.js +1 -29
- package/dist-cjs/commands/UpdateVariableCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -76
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6187 -11
- package/dist-cjs/models/FraudDetectorServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -274
- package/dist-cjs/pagination/DescribeModelVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/GetBatchImportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/GetBatchPredictionJobsPaginator.js +1 -7
- package/dist-cjs/pagination/GetDetectorsPaginator.js +1 -7
- package/dist-cjs/pagination/GetEntityTypesPaginator.js +1 -7
- package/dist-cjs/pagination/GetEventTypesPaginator.js +1 -7
- package/dist-cjs/pagination/GetExternalModelsPaginator.js +1 -7
- package/dist-cjs/pagination/GetLabelsPaginator.js +1 -7
- package/dist-cjs/pagination/GetListElementsPaginator.js +1 -7
- package/dist-cjs/pagination/GetListsMetadataPaginator.js +1 -7
- package/dist-cjs/pagination/GetModelsPaginator.js +1 -7
- package/dist-cjs/pagination/GetOutcomesPaginator.js +1 -7
- package/dist-cjs/pagination/GetRulesPaginator.js +1 -7
- package/dist-cjs/pagination/GetVariablesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEventPredictionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -20
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4288
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4288 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_GetVariablesCommand = exports.se_GetRulesCommand = exports.se_GetOutcomesCommand = exports.se_GetModelVersionCommand = exports.se_GetModelsCommand = exports.se_GetListsMetadataCommand = exports.se_GetListElementsCommand = exports.se_GetLabelsCommand = exports.se_GetKMSEncryptionKeyCommand = exports.se_GetExternalModelsCommand = exports.se_GetEventTypesCommand = exports.se_GetEventPredictionMetadataCommand = exports.se_GetEventPredictionCommand = exports.se_GetEventCommand = exports.se_GetEntityTypesCommand = exports.se_GetDetectorVersionCommand = exports.se_GetDetectorsCommand = exports.se_GetDeleteEventsByEventTypeStatusCommand = exports.se_GetBatchPredictionJobsCommand = exports.se_GetBatchImportJobsCommand = exports.se_DescribeModelVersionsCommand = exports.se_DescribeDetectorCommand = exports.se_DeleteVariableCommand = exports.se_DeleteRuleCommand = exports.se_DeleteOutcomeCommand = exports.se_DeleteModelVersionCommand = exports.se_DeleteModelCommand = exports.se_DeleteListCommand = exports.se_DeleteLabelCommand = exports.se_DeleteExternalModelCommand = exports.se_DeleteEventTypeCommand = exports.se_DeleteEventsByEventTypeCommand = exports.se_DeleteEventCommand = exports.se_DeleteEntityTypeCommand = exports.se_DeleteDetectorVersionCommand = exports.se_DeleteDetectorCommand = exports.se_DeleteBatchPredictionJobCommand = exports.se_DeleteBatchImportJobCommand = exports.se_CreateVariableCommand = exports.se_CreateRuleCommand = exports.se_CreateModelVersionCommand = exports.se_CreateModelCommand = exports.se_CreateListCommand = exports.se_CreateDetectorVersionCommand = exports.se_CreateBatchPredictionJobCommand = exports.se_CreateBatchImportJobCommand = exports.se_CancelBatchPredictionJobCommand = exports.se_CancelBatchImportJobCommand = exports.se_BatchGetVariableCommand = exports.se_BatchCreateVariableCommand = void 0;
|
|
4
|
-
exports.de_DeleteRuleCommand = exports.de_DeleteOutcomeCommand = exports.de_DeleteModelVersionCommand = exports.de_DeleteModelCommand = exports.de_DeleteListCommand = exports.de_DeleteLabelCommand = exports.de_DeleteExternalModelCommand = exports.de_DeleteEventTypeCommand = exports.de_DeleteEventsByEventTypeCommand = exports.de_DeleteEventCommand = exports.de_DeleteEntityTypeCommand = exports.de_DeleteDetectorVersionCommand = exports.de_DeleteDetectorCommand = exports.de_DeleteBatchPredictionJobCommand = exports.de_DeleteBatchImportJobCommand = exports.de_CreateVariableCommand = exports.de_CreateRuleCommand = exports.de_CreateModelVersionCommand = exports.de_CreateModelCommand = exports.de_CreateListCommand = exports.de_CreateDetectorVersionCommand = exports.de_CreateBatchPredictionJobCommand = exports.de_CreateBatchImportJobCommand = exports.de_CancelBatchPredictionJobCommand = exports.de_CancelBatchImportJobCommand = exports.de_BatchGetVariableCommand = exports.de_BatchCreateVariableCommand = exports.se_UpdateVariableCommand = exports.se_UpdateRuleVersionCommand = exports.se_UpdateRuleMetadataCommand = exports.se_UpdateModelVersionStatusCommand = exports.se_UpdateModelVersionCommand = exports.se_UpdateModelCommand = exports.se_UpdateListCommand = exports.se_UpdateEventLabelCommand = exports.se_UpdateDetectorVersionStatusCommand = exports.se_UpdateDetectorVersionMetadataCommand = exports.se_UpdateDetectorVersionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendEventCommand = exports.se_PutOutcomeCommand = exports.se_PutLabelCommand = exports.se_PutKMSEncryptionKeyCommand = exports.se_PutExternalModelCommand = exports.se_PutEventTypeCommand = exports.se_PutEntityTypeCommand = exports.se_PutDetectorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEventPredictionsCommand = void 0;
|
|
5
|
-
exports.de_UpdateVariableCommand = exports.de_UpdateRuleVersionCommand = exports.de_UpdateRuleMetadataCommand = exports.de_UpdateModelVersionStatusCommand = exports.de_UpdateModelVersionCommand = exports.de_UpdateModelCommand = exports.de_UpdateListCommand = exports.de_UpdateEventLabelCommand = exports.de_UpdateDetectorVersionStatusCommand = exports.de_UpdateDetectorVersionMetadataCommand = exports.de_UpdateDetectorVersionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendEventCommand = exports.de_PutOutcomeCommand = exports.de_PutLabelCommand = exports.de_PutKMSEncryptionKeyCommand = exports.de_PutExternalModelCommand = exports.de_PutEventTypeCommand = exports.de_PutEntityTypeCommand = exports.de_PutDetectorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEventPredictionsCommand = exports.de_GetVariablesCommand = exports.de_GetRulesCommand = exports.de_GetOutcomesCommand = exports.de_GetModelVersionCommand = exports.de_GetModelsCommand = exports.de_GetListsMetadataCommand = exports.de_GetListElementsCommand = exports.de_GetLabelsCommand = exports.de_GetKMSEncryptionKeyCommand = exports.de_GetExternalModelsCommand = exports.de_GetEventTypesCommand = exports.de_GetEventPredictionMetadataCommand = exports.de_GetEventPredictionCommand = exports.de_GetEventCommand = exports.de_GetEntityTypesCommand = exports.de_GetDetectorVersionCommand = exports.de_GetDetectorsCommand = exports.de_GetDeleteEventsByEventTypeStatusCommand = exports.de_GetBatchPredictionJobsCommand = exports.de_GetBatchImportJobsCommand = exports.de_DescribeModelVersionsCommand = exports.de_DescribeDetectorCommand = exports.de_DeleteVariableCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const FraudDetectorServiceException_1 = require("../models/FraudDetectorServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_BatchCreateVariableCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("BatchCreateVariable");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_BatchCreateVariableCommand = se_BatchCreateVariableCommand;
|
|
17
|
-
const se_BatchGetVariableCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("BatchGetVariable");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_BatchGetVariableCommand = se_BatchGetVariableCommand;
|
|
24
|
-
const se_CancelBatchImportJobCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CancelBatchImportJob");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CancelBatchImportJobCommand = se_CancelBatchImportJobCommand;
|
|
31
|
-
const se_CancelBatchPredictionJobCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CancelBatchPredictionJob");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_CancelBatchPredictionJobCommand = se_CancelBatchPredictionJobCommand;
|
|
38
|
-
const se_CreateBatchImportJobCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CreateBatchImportJob");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateBatchImportJobCommand = se_CreateBatchImportJobCommand;
|
|
45
|
-
const se_CreateBatchPredictionJobCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("CreateBatchPredictionJob");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_CreateBatchPredictionJobCommand = se_CreateBatchPredictionJobCommand;
|
|
52
|
-
const se_CreateDetectorVersionCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateDetectorVersion");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateDetectorVersionCommand = se_CreateDetectorVersionCommand;
|
|
59
|
-
const se_CreateListCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("CreateList");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateListCommand = se_CreateListCommand;
|
|
66
|
-
const se_CreateModelCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateModel");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_CreateModelCommand = se_CreateModelCommand;
|
|
73
|
-
const se_CreateModelVersionCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("CreateModelVersion");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_CreateModelVersionCommand = se_CreateModelVersionCommand;
|
|
80
|
-
const se_CreateRuleCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("CreateRule");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_CreateRuleCommand = se_CreateRuleCommand;
|
|
87
|
-
const se_CreateVariableCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("CreateVariable");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_CreateVariableCommand = se_CreateVariableCommand;
|
|
94
|
-
const se_DeleteBatchImportJobCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("DeleteBatchImportJob");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_DeleteBatchImportJobCommand = se_DeleteBatchImportJobCommand;
|
|
101
|
-
const se_DeleteBatchPredictionJobCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("DeleteBatchPredictionJob");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_DeleteBatchPredictionJobCommand = se_DeleteBatchPredictionJobCommand;
|
|
108
|
-
const se_DeleteDetectorCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteDetector");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_DeleteDetectorCommand = se_DeleteDetectorCommand;
|
|
115
|
-
const se_DeleteDetectorVersionCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeleteDetectorVersion");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteDetectorVersionCommand = se_DeleteDetectorVersionCommand;
|
|
122
|
-
const se_DeleteEntityTypeCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DeleteEntityType");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_DeleteEntityTypeCommand = se_DeleteEntityTypeCommand;
|
|
129
|
-
const se_DeleteEventCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("DeleteEvent");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_DeleteEventCommand = se_DeleteEventCommand;
|
|
136
|
-
const se_DeleteEventsByEventTypeCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("DeleteEventsByEventType");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_DeleteEventsByEventTypeCommand = se_DeleteEventsByEventTypeCommand;
|
|
143
|
-
const se_DeleteEventTypeCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("DeleteEventType");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_DeleteEventTypeCommand = se_DeleteEventTypeCommand;
|
|
150
|
-
const se_DeleteExternalModelCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DeleteExternalModel");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_DeleteExternalModelCommand = se_DeleteExternalModelCommand;
|
|
157
|
-
const se_DeleteLabelCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DeleteLabel");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_DeleteLabelCommand = se_DeleteLabelCommand;
|
|
164
|
-
const se_DeleteListCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DeleteList");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_DeleteListCommand = se_DeleteListCommand;
|
|
171
|
-
const se_DeleteModelCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("DeleteModel");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_DeleteModelCommand = se_DeleteModelCommand;
|
|
178
|
-
const se_DeleteModelVersionCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("DeleteModelVersion");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_DeleteModelVersionCommand = se_DeleteModelVersionCommand;
|
|
185
|
-
const se_DeleteOutcomeCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("DeleteOutcome");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_DeleteOutcomeCommand = se_DeleteOutcomeCommand;
|
|
192
|
-
const se_DeleteRuleCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DeleteRule");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
|
|
199
|
-
const se_DeleteVariableCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("DeleteVariable");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_DeleteVariableCommand = se_DeleteVariableCommand;
|
|
206
|
-
const se_DescribeDetectorCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("DescribeDetector");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_DescribeDetectorCommand = se_DescribeDetectorCommand;
|
|
213
|
-
const se_DescribeModelVersionsCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("DescribeModelVersions");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_DescribeModelVersionsCommand = se_DescribeModelVersionsCommand;
|
|
220
|
-
const se_GetBatchImportJobsCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("GetBatchImportJobs");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_GetBatchImportJobsCommand = se_GetBatchImportJobsCommand;
|
|
227
|
-
const se_GetBatchPredictionJobsCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("GetBatchPredictionJobs");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_GetBatchPredictionJobsCommand = se_GetBatchPredictionJobsCommand;
|
|
234
|
-
const se_GetDeleteEventsByEventTypeStatusCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("GetDeleteEventsByEventTypeStatus");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_GetDeleteEventsByEventTypeStatusCommand = se_GetDeleteEventsByEventTypeStatusCommand;
|
|
241
|
-
const se_GetDetectorsCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("GetDetectors");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_GetDetectorsCommand = se_GetDetectorsCommand;
|
|
248
|
-
const se_GetDetectorVersionCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("GetDetectorVersion");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_GetDetectorVersionCommand = se_GetDetectorVersionCommand;
|
|
255
|
-
const se_GetEntityTypesCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("GetEntityTypes");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_GetEntityTypesCommand = se_GetEntityTypesCommand;
|
|
262
|
-
const se_GetEventCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("GetEvent");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_GetEventCommand = se_GetEventCommand;
|
|
269
|
-
const se_GetEventPredictionCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("GetEventPrediction");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify(se_GetEventPredictionRequest(input, context));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_GetEventPredictionCommand = se_GetEventPredictionCommand;
|
|
276
|
-
const se_GetEventPredictionMetadataCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("GetEventPredictionMetadata");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
exports.se_GetEventPredictionMetadataCommand = se_GetEventPredictionMetadataCommand;
|
|
283
|
-
const se_GetEventTypesCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("GetEventTypes");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
exports.se_GetEventTypesCommand = se_GetEventTypesCommand;
|
|
290
|
-
const se_GetExternalModelsCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("GetExternalModels");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
exports.se_GetExternalModelsCommand = se_GetExternalModelsCommand;
|
|
297
|
-
const se_GetKMSEncryptionKeyCommand = async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("GetKMSEncryptionKey");
|
|
299
|
-
const body = "{}";
|
|
300
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
-
};
|
|
302
|
-
exports.se_GetKMSEncryptionKeyCommand = se_GetKMSEncryptionKeyCommand;
|
|
303
|
-
const se_GetLabelsCommand = async (input, context) => {
|
|
304
|
-
const headers = sharedHeaders("GetLabels");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
-
};
|
|
309
|
-
exports.se_GetLabelsCommand = se_GetLabelsCommand;
|
|
310
|
-
const se_GetListElementsCommand = async (input, context) => {
|
|
311
|
-
const headers = sharedHeaders("GetListElements");
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
314
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
|
-
};
|
|
316
|
-
exports.se_GetListElementsCommand = se_GetListElementsCommand;
|
|
317
|
-
const se_GetListsMetadataCommand = async (input, context) => {
|
|
318
|
-
const headers = sharedHeaders("GetListsMetadata");
|
|
319
|
-
let body;
|
|
320
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
321
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
-
};
|
|
323
|
-
exports.se_GetListsMetadataCommand = se_GetListsMetadataCommand;
|
|
324
|
-
const se_GetModelsCommand = async (input, context) => {
|
|
325
|
-
const headers = sharedHeaders("GetModels");
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
328
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
-
};
|
|
330
|
-
exports.se_GetModelsCommand = se_GetModelsCommand;
|
|
331
|
-
const se_GetModelVersionCommand = async (input, context) => {
|
|
332
|
-
const headers = sharedHeaders("GetModelVersion");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
exports.se_GetModelVersionCommand = se_GetModelVersionCommand;
|
|
338
|
-
const se_GetOutcomesCommand = async (input, context) => {
|
|
339
|
-
const headers = sharedHeaders("GetOutcomes");
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
342
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
|
-
};
|
|
344
|
-
exports.se_GetOutcomesCommand = se_GetOutcomesCommand;
|
|
345
|
-
const se_GetRulesCommand = async (input, context) => {
|
|
346
|
-
const headers = sharedHeaders("GetRules");
|
|
347
|
-
let body;
|
|
348
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
349
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
350
|
-
};
|
|
351
|
-
exports.se_GetRulesCommand = se_GetRulesCommand;
|
|
352
|
-
const se_GetVariablesCommand = async (input, context) => {
|
|
353
|
-
const headers = sharedHeaders("GetVariables");
|
|
354
|
-
let body;
|
|
355
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
-
};
|
|
358
|
-
exports.se_GetVariablesCommand = se_GetVariablesCommand;
|
|
359
|
-
const se_ListEventPredictionsCommand = async (input, context) => {
|
|
360
|
-
const headers = sharedHeaders("ListEventPredictions");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
363
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
|
-
};
|
|
365
|
-
exports.se_ListEventPredictionsCommand = se_ListEventPredictionsCommand;
|
|
366
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
367
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
368
|
-
let body;
|
|
369
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
370
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
371
|
-
};
|
|
372
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
373
|
-
const se_PutDetectorCommand = async (input, context) => {
|
|
374
|
-
const headers = sharedHeaders("PutDetector");
|
|
375
|
-
let body;
|
|
376
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
377
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
-
};
|
|
379
|
-
exports.se_PutDetectorCommand = se_PutDetectorCommand;
|
|
380
|
-
const se_PutEntityTypeCommand = async (input, context) => {
|
|
381
|
-
const headers = sharedHeaders("PutEntityType");
|
|
382
|
-
let body;
|
|
383
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
384
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
385
|
-
};
|
|
386
|
-
exports.se_PutEntityTypeCommand = se_PutEntityTypeCommand;
|
|
387
|
-
const se_PutEventTypeCommand = async (input, context) => {
|
|
388
|
-
const headers = sharedHeaders("PutEventType");
|
|
389
|
-
let body;
|
|
390
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
391
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
392
|
-
};
|
|
393
|
-
exports.se_PutEventTypeCommand = se_PutEventTypeCommand;
|
|
394
|
-
const se_PutExternalModelCommand = async (input, context) => {
|
|
395
|
-
const headers = sharedHeaders("PutExternalModel");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
398
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
|
-
};
|
|
400
|
-
exports.se_PutExternalModelCommand = se_PutExternalModelCommand;
|
|
401
|
-
const se_PutKMSEncryptionKeyCommand = async (input, context) => {
|
|
402
|
-
const headers = sharedHeaders("PutKMSEncryptionKey");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
405
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
|
-
};
|
|
407
|
-
exports.se_PutKMSEncryptionKeyCommand = se_PutKMSEncryptionKeyCommand;
|
|
408
|
-
const se_PutLabelCommand = async (input, context) => {
|
|
409
|
-
const headers = sharedHeaders("PutLabel");
|
|
410
|
-
let body;
|
|
411
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
412
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
|
-
};
|
|
414
|
-
exports.se_PutLabelCommand = se_PutLabelCommand;
|
|
415
|
-
const se_PutOutcomeCommand = async (input, context) => {
|
|
416
|
-
const headers = sharedHeaders("PutOutcome");
|
|
417
|
-
let body;
|
|
418
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
419
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
|
-
};
|
|
421
|
-
exports.se_PutOutcomeCommand = se_PutOutcomeCommand;
|
|
422
|
-
const se_SendEventCommand = async (input, context) => {
|
|
423
|
-
const headers = sharedHeaders("SendEvent");
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
426
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
-
};
|
|
428
|
-
exports.se_SendEventCommand = se_SendEventCommand;
|
|
429
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
430
|
-
const headers = sharedHeaders("TagResource");
|
|
431
|
-
let body;
|
|
432
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
433
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
434
|
-
};
|
|
435
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
436
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
437
|
-
const headers = sharedHeaders("UntagResource");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
440
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
441
|
-
};
|
|
442
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
443
|
-
const se_UpdateDetectorVersionCommand = async (input, context) => {
|
|
444
|
-
const headers = sharedHeaders("UpdateDetectorVersion");
|
|
445
|
-
let body;
|
|
446
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
447
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
|
-
};
|
|
449
|
-
exports.se_UpdateDetectorVersionCommand = se_UpdateDetectorVersionCommand;
|
|
450
|
-
const se_UpdateDetectorVersionMetadataCommand = async (input, context) => {
|
|
451
|
-
const headers = sharedHeaders("UpdateDetectorVersionMetadata");
|
|
452
|
-
let body;
|
|
453
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
454
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
|
-
};
|
|
456
|
-
exports.se_UpdateDetectorVersionMetadataCommand = se_UpdateDetectorVersionMetadataCommand;
|
|
457
|
-
const se_UpdateDetectorVersionStatusCommand = async (input, context) => {
|
|
458
|
-
const headers = sharedHeaders("UpdateDetectorVersionStatus");
|
|
459
|
-
let body;
|
|
460
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
461
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
462
|
-
};
|
|
463
|
-
exports.se_UpdateDetectorVersionStatusCommand = se_UpdateDetectorVersionStatusCommand;
|
|
464
|
-
const se_UpdateEventLabelCommand = async (input, context) => {
|
|
465
|
-
const headers = sharedHeaders("UpdateEventLabel");
|
|
466
|
-
let body;
|
|
467
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
468
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
|
-
};
|
|
470
|
-
exports.se_UpdateEventLabelCommand = se_UpdateEventLabelCommand;
|
|
471
|
-
const se_UpdateListCommand = async (input, context) => {
|
|
472
|
-
const headers = sharedHeaders("UpdateList");
|
|
473
|
-
let body;
|
|
474
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
475
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
476
|
-
};
|
|
477
|
-
exports.se_UpdateListCommand = se_UpdateListCommand;
|
|
478
|
-
const se_UpdateModelCommand = async (input, context) => {
|
|
479
|
-
const headers = sharedHeaders("UpdateModel");
|
|
480
|
-
let body;
|
|
481
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
482
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
|
-
};
|
|
484
|
-
exports.se_UpdateModelCommand = se_UpdateModelCommand;
|
|
485
|
-
const se_UpdateModelVersionCommand = async (input, context) => {
|
|
486
|
-
const headers = sharedHeaders("UpdateModelVersion");
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
489
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
490
|
-
};
|
|
491
|
-
exports.se_UpdateModelVersionCommand = se_UpdateModelVersionCommand;
|
|
492
|
-
const se_UpdateModelVersionStatusCommand = async (input, context) => {
|
|
493
|
-
const headers = sharedHeaders("UpdateModelVersionStatus");
|
|
494
|
-
let body;
|
|
495
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
496
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
497
|
-
};
|
|
498
|
-
exports.se_UpdateModelVersionStatusCommand = se_UpdateModelVersionStatusCommand;
|
|
499
|
-
const se_UpdateRuleMetadataCommand = async (input, context) => {
|
|
500
|
-
const headers = sharedHeaders("UpdateRuleMetadata");
|
|
501
|
-
let body;
|
|
502
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
503
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
504
|
-
};
|
|
505
|
-
exports.se_UpdateRuleMetadataCommand = se_UpdateRuleMetadataCommand;
|
|
506
|
-
const se_UpdateRuleVersionCommand = async (input, context) => {
|
|
507
|
-
const headers = sharedHeaders("UpdateRuleVersion");
|
|
508
|
-
let body;
|
|
509
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
510
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
511
|
-
};
|
|
512
|
-
exports.se_UpdateRuleVersionCommand = se_UpdateRuleVersionCommand;
|
|
513
|
-
const se_UpdateVariableCommand = async (input, context) => {
|
|
514
|
-
const headers = sharedHeaders("UpdateVariable");
|
|
515
|
-
let body;
|
|
516
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
517
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
|
-
};
|
|
519
|
-
exports.se_UpdateVariableCommand = se_UpdateVariableCommand;
|
|
520
|
-
const de_BatchCreateVariableCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode >= 300) {
|
|
522
|
-
return de_BatchCreateVariableCommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const data = await parseBody(output.body, context);
|
|
525
|
-
let contents = {};
|
|
526
|
-
contents = (0, smithy_client_1._json)(data);
|
|
527
|
-
const response = {
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
...contents,
|
|
530
|
-
};
|
|
531
|
-
return response;
|
|
532
|
-
};
|
|
533
|
-
exports.de_BatchCreateVariableCommand = de_BatchCreateVariableCommand;
|
|
534
|
-
const de_BatchCreateVariableCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "AccessDeniedException":
|
|
542
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InternalServerException":
|
|
545
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ThrottlingException":
|
|
548
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ValidationException":
|
|
551
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
553
|
-
default:
|
|
554
|
-
const parsedBody = parsedOutput.body;
|
|
555
|
-
return throwDefaultError({
|
|
556
|
-
output,
|
|
557
|
-
parsedBody,
|
|
558
|
-
errorCode,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
const de_BatchGetVariableCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_BatchGetVariableCommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await parseBody(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = (0, smithy_client_1._json)(data);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents,
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
};
|
|
575
|
-
exports.de_BatchGetVariableCommand = de_BatchGetVariableCommand;
|
|
576
|
-
const de_BatchGetVariableCommandError = async (output, context) => {
|
|
577
|
-
const parsedOutput = {
|
|
578
|
-
...output,
|
|
579
|
-
body: await parseErrorBody(output.body, context),
|
|
580
|
-
};
|
|
581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
|
-
switch (errorCode) {
|
|
583
|
-
case "AccessDeniedException":
|
|
584
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
586
|
-
case "InternalServerException":
|
|
587
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
588
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ThrottlingException":
|
|
590
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
591
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ValidationException":
|
|
593
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
594
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
595
|
-
default:
|
|
596
|
-
const parsedBody = parsedOutput.body;
|
|
597
|
-
return throwDefaultError({
|
|
598
|
-
output,
|
|
599
|
-
parsedBody,
|
|
600
|
-
errorCode,
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
const de_CancelBatchImportJobCommand = async (output, context) => {
|
|
605
|
-
if (output.statusCode >= 300) {
|
|
606
|
-
return de_CancelBatchImportJobCommandError(output, context);
|
|
607
|
-
}
|
|
608
|
-
const data = await parseBody(output.body, context);
|
|
609
|
-
let contents = {};
|
|
610
|
-
contents = (0, smithy_client_1._json)(data);
|
|
611
|
-
const response = {
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
...contents,
|
|
614
|
-
};
|
|
615
|
-
return response;
|
|
616
|
-
};
|
|
617
|
-
exports.de_CancelBatchImportJobCommand = de_CancelBatchImportJobCommand;
|
|
618
|
-
const de_CancelBatchImportJobCommandError = async (output, context) => {
|
|
619
|
-
const parsedOutput = {
|
|
620
|
-
...output,
|
|
621
|
-
body: await parseErrorBody(output.body, context),
|
|
622
|
-
};
|
|
623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
624
|
-
switch (errorCode) {
|
|
625
|
-
case "AccessDeniedException":
|
|
626
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
628
|
-
case "InternalServerException":
|
|
629
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
630
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ResourceNotFoundException":
|
|
632
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ThrottlingException":
|
|
635
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
636
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ValidationException":
|
|
638
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode,
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
const de_CancelBatchPredictionJobCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode >= 300) {
|
|
651
|
-
return de_CancelBatchPredictionJobCommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const data = await parseBody(output.body, context);
|
|
654
|
-
let contents = {};
|
|
655
|
-
contents = (0, smithy_client_1._json)(data);
|
|
656
|
-
const response = {
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
...contents,
|
|
659
|
-
};
|
|
660
|
-
return response;
|
|
661
|
-
};
|
|
662
|
-
exports.de_CancelBatchPredictionJobCommand = de_CancelBatchPredictionJobCommand;
|
|
663
|
-
const de_CancelBatchPredictionJobCommandError = async (output, context) => {
|
|
664
|
-
const parsedOutput = {
|
|
665
|
-
...output,
|
|
666
|
-
body: await parseErrorBody(output.body, context),
|
|
667
|
-
};
|
|
668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
-
switch (errorCode) {
|
|
670
|
-
case "AccessDeniedException":
|
|
671
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
672
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
673
|
-
case "InternalServerException":
|
|
674
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
675
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ResourceNotFoundException":
|
|
677
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ThrottlingException":
|
|
680
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
681
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ValidationException":
|
|
683
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
684
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
685
|
-
default:
|
|
686
|
-
const parsedBody = parsedOutput.body;
|
|
687
|
-
return throwDefaultError({
|
|
688
|
-
output,
|
|
689
|
-
parsedBody,
|
|
690
|
-
errorCode,
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
const de_CreateBatchImportJobCommand = async (output, context) => {
|
|
695
|
-
if (output.statusCode >= 300) {
|
|
696
|
-
return de_CreateBatchImportJobCommandError(output, context);
|
|
697
|
-
}
|
|
698
|
-
const data = await parseBody(output.body, context);
|
|
699
|
-
let contents = {};
|
|
700
|
-
contents = (0, smithy_client_1._json)(data);
|
|
701
|
-
const response = {
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
...contents,
|
|
704
|
-
};
|
|
705
|
-
return response;
|
|
706
|
-
};
|
|
707
|
-
exports.de_CreateBatchImportJobCommand = de_CreateBatchImportJobCommand;
|
|
708
|
-
const de_CreateBatchImportJobCommandError = async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context),
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "AccessDeniedException":
|
|
716
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
718
|
-
case "InternalServerException":
|
|
719
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
720
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ResourceNotFoundException":
|
|
722
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ThrottlingException":
|
|
725
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ValidationException":
|
|
728
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode,
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
const de_CreateBatchPredictionJobCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode >= 300) {
|
|
741
|
-
return de_CreateBatchPredictionJobCommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const data = await parseBody(output.body, context);
|
|
744
|
-
let contents = {};
|
|
745
|
-
contents = (0, smithy_client_1._json)(data);
|
|
746
|
-
const response = {
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
...contents,
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
exports.de_CreateBatchPredictionJobCommand = de_CreateBatchPredictionJobCommand;
|
|
753
|
-
const de_CreateBatchPredictionJobCommandError = async (output, context) => {
|
|
754
|
-
const parsedOutput = {
|
|
755
|
-
...output,
|
|
756
|
-
body: await parseErrorBody(output.body, context),
|
|
757
|
-
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
-
switch (errorCode) {
|
|
760
|
-
case "AccessDeniedException":
|
|
761
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
762
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InternalServerException":
|
|
764
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
765
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceNotFoundException":
|
|
767
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ThrottlingException":
|
|
770
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
771
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ValidationException":
|
|
773
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
774
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
const de_CreateDetectorVersionCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode >= 300) {
|
|
786
|
-
return de_CreateDetectorVersionCommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
const data = await parseBody(output.body, context);
|
|
789
|
-
let contents = {};
|
|
790
|
-
contents = (0, smithy_client_1._json)(data);
|
|
791
|
-
const response = {
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
...contents,
|
|
794
|
-
};
|
|
795
|
-
return response;
|
|
796
|
-
};
|
|
797
|
-
exports.de_CreateDetectorVersionCommand = de_CreateDetectorVersionCommand;
|
|
798
|
-
const de_CreateDetectorVersionCommandError = async (output, context) => {
|
|
799
|
-
const parsedOutput = {
|
|
800
|
-
...output,
|
|
801
|
-
body: await parseErrorBody(output.body, context),
|
|
802
|
-
};
|
|
803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "AccessDeniedException":
|
|
806
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "InternalServerException":
|
|
809
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
810
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ResourceNotFoundException":
|
|
812
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
813
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ThrottlingException":
|
|
815
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
816
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ValidationException":
|
|
818
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
|
-
default:
|
|
821
|
-
const parsedBody = parsedOutput.body;
|
|
822
|
-
return throwDefaultError({
|
|
823
|
-
output,
|
|
824
|
-
parsedBody,
|
|
825
|
-
errorCode,
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
const de_CreateListCommand = async (output, context) => {
|
|
830
|
-
if (output.statusCode >= 300) {
|
|
831
|
-
return de_CreateListCommandError(output, context);
|
|
832
|
-
}
|
|
833
|
-
const data = await parseBody(output.body, context);
|
|
834
|
-
let contents = {};
|
|
835
|
-
contents = (0, smithy_client_1._json)(data);
|
|
836
|
-
const response = {
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
...contents,
|
|
839
|
-
};
|
|
840
|
-
return response;
|
|
841
|
-
};
|
|
842
|
-
exports.de_CreateListCommand = de_CreateListCommand;
|
|
843
|
-
const de_CreateListCommandError = async (output, context) => {
|
|
844
|
-
const parsedOutput = {
|
|
845
|
-
...output,
|
|
846
|
-
body: await parseErrorBody(output.body, context),
|
|
847
|
-
};
|
|
848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
-
switch (errorCode) {
|
|
850
|
-
case "AccessDeniedException":
|
|
851
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
852
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
853
|
-
case "InternalServerException":
|
|
854
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
855
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ThrottlingException":
|
|
857
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
858
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ValidationException":
|
|
860
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
861
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
const de_CreateModelCommand = async (output, context) => {
|
|
872
|
-
if (output.statusCode >= 300) {
|
|
873
|
-
return de_CreateModelCommandError(output, context);
|
|
874
|
-
}
|
|
875
|
-
const data = await parseBody(output.body, context);
|
|
876
|
-
let contents = {};
|
|
877
|
-
contents = (0, smithy_client_1._json)(data);
|
|
878
|
-
const response = {
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
...contents,
|
|
881
|
-
};
|
|
882
|
-
return response;
|
|
883
|
-
};
|
|
884
|
-
exports.de_CreateModelCommand = de_CreateModelCommand;
|
|
885
|
-
const de_CreateModelCommandError = async (output, context) => {
|
|
886
|
-
const parsedOutput = {
|
|
887
|
-
...output,
|
|
888
|
-
body: await parseErrorBody(output.body, context),
|
|
889
|
-
};
|
|
890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
-
switch (errorCode) {
|
|
892
|
-
case "AccessDeniedException":
|
|
893
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
894
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
895
|
-
case "InternalServerException":
|
|
896
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
897
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
898
|
-
case "ThrottlingException":
|
|
899
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
900
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ValidationException":
|
|
902
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
903
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
904
|
-
default:
|
|
905
|
-
const parsedBody = parsedOutput.body;
|
|
906
|
-
return throwDefaultError({
|
|
907
|
-
output,
|
|
908
|
-
parsedBody,
|
|
909
|
-
errorCode,
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
const de_CreateModelVersionCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode >= 300) {
|
|
915
|
-
return de_CreateModelVersionCommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const data = await parseBody(output.body, context);
|
|
918
|
-
let contents = {};
|
|
919
|
-
contents = (0, smithy_client_1._json)(data);
|
|
920
|
-
const response = {
|
|
921
|
-
$metadata: deserializeMetadata(output),
|
|
922
|
-
...contents,
|
|
923
|
-
};
|
|
924
|
-
return response;
|
|
925
|
-
};
|
|
926
|
-
exports.de_CreateModelVersionCommand = de_CreateModelVersionCommand;
|
|
927
|
-
const de_CreateModelVersionCommandError = async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context),
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "AccessDeniedException":
|
|
935
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InternalServerException":
|
|
938
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ResourceNotFoundException":
|
|
941
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
942
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ThrottlingException":
|
|
944
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
945
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ValidationException":
|
|
947
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
948
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
949
|
-
default:
|
|
950
|
-
const parsedBody = parsedOutput.body;
|
|
951
|
-
return throwDefaultError({
|
|
952
|
-
output,
|
|
953
|
-
parsedBody,
|
|
954
|
-
errorCode,
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
const de_CreateRuleCommand = async (output, context) => {
|
|
959
|
-
if (output.statusCode >= 300) {
|
|
960
|
-
return de_CreateRuleCommandError(output, context);
|
|
961
|
-
}
|
|
962
|
-
const data = await parseBody(output.body, context);
|
|
963
|
-
let contents = {};
|
|
964
|
-
contents = (0, smithy_client_1._json)(data);
|
|
965
|
-
const response = {
|
|
966
|
-
$metadata: deserializeMetadata(output),
|
|
967
|
-
...contents,
|
|
968
|
-
};
|
|
969
|
-
return response;
|
|
970
|
-
};
|
|
971
|
-
exports.de_CreateRuleCommand = de_CreateRuleCommand;
|
|
972
|
-
const de_CreateRuleCommandError = async (output, context) => {
|
|
973
|
-
const parsedOutput = {
|
|
974
|
-
...output,
|
|
975
|
-
body: await parseErrorBody(output.body, context),
|
|
976
|
-
};
|
|
977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
-
switch (errorCode) {
|
|
979
|
-
case "AccessDeniedException":
|
|
980
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
982
|
-
case "InternalServerException":
|
|
983
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ThrottlingException":
|
|
986
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
987
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ValidationException":
|
|
989
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
991
|
-
default:
|
|
992
|
-
const parsedBody = parsedOutput.body;
|
|
993
|
-
return throwDefaultError({
|
|
994
|
-
output,
|
|
995
|
-
parsedBody,
|
|
996
|
-
errorCode,
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
const de_CreateVariableCommand = async (output, context) => {
|
|
1001
|
-
if (output.statusCode >= 300) {
|
|
1002
|
-
return de_CreateVariableCommandError(output, context);
|
|
1003
|
-
}
|
|
1004
|
-
const data = await parseBody(output.body, context);
|
|
1005
|
-
let contents = {};
|
|
1006
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1007
|
-
const response = {
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
...contents,
|
|
1010
|
-
};
|
|
1011
|
-
return response;
|
|
1012
|
-
};
|
|
1013
|
-
exports.de_CreateVariableCommand = de_CreateVariableCommand;
|
|
1014
|
-
const de_CreateVariableCommandError = async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context),
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "AccessDeniedException":
|
|
1022
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1023
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "InternalServerException":
|
|
1025
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1026
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ThrottlingException":
|
|
1028
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode,
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
const de_DeleteBatchImportJobCommand = async (output, context) => {
|
|
1043
|
-
if (output.statusCode >= 300) {
|
|
1044
|
-
return de_DeleteBatchImportJobCommandError(output, context);
|
|
1045
|
-
}
|
|
1046
|
-
const data = await parseBody(output.body, context);
|
|
1047
|
-
let contents = {};
|
|
1048
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1049
|
-
const response = {
|
|
1050
|
-
$metadata: deserializeMetadata(output),
|
|
1051
|
-
...contents,
|
|
1052
|
-
};
|
|
1053
|
-
return response;
|
|
1054
|
-
};
|
|
1055
|
-
exports.de_DeleteBatchImportJobCommand = de_DeleteBatchImportJobCommand;
|
|
1056
|
-
const de_DeleteBatchImportJobCommandError = async (output, context) => {
|
|
1057
|
-
const parsedOutput = {
|
|
1058
|
-
...output,
|
|
1059
|
-
body: await parseErrorBody(output.body, context),
|
|
1060
|
-
};
|
|
1061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
-
switch (errorCode) {
|
|
1063
|
-
case "AccessDeniedException":
|
|
1064
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1065
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InternalServerException":
|
|
1067
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1068
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ThrottlingException":
|
|
1070
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1071
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ValidationException":
|
|
1073
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1075
|
-
default:
|
|
1076
|
-
const parsedBody = parsedOutput.body;
|
|
1077
|
-
return throwDefaultError({
|
|
1078
|
-
output,
|
|
1079
|
-
parsedBody,
|
|
1080
|
-
errorCode,
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
const de_DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
1085
|
-
if (output.statusCode >= 300) {
|
|
1086
|
-
return de_DeleteBatchPredictionJobCommandError(output, context);
|
|
1087
|
-
}
|
|
1088
|
-
const data = await parseBody(output.body, context);
|
|
1089
|
-
let contents = {};
|
|
1090
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1091
|
-
const response = {
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
...contents,
|
|
1094
|
-
};
|
|
1095
|
-
return response;
|
|
1096
|
-
};
|
|
1097
|
-
exports.de_DeleteBatchPredictionJobCommand = de_DeleteBatchPredictionJobCommand;
|
|
1098
|
-
const de_DeleteBatchPredictionJobCommandError = async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context),
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "AccessDeniedException":
|
|
1106
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
|
-
const de_DeleteDetectorCommand = async (output, context) => {
|
|
1127
|
-
if (output.statusCode >= 300) {
|
|
1128
|
-
return de_DeleteDetectorCommandError(output, context);
|
|
1129
|
-
}
|
|
1130
|
-
const data = await parseBody(output.body, context);
|
|
1131
|
-
let contents = {};
|
|
1132
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1133
|
-
const response = {
|
|
1134
|
-
$metadata: deserializeMetadata(output),
|
|
1135
|
-
...contents,
|
|
1136
|
-
};
|
|
1137
|
-
return response;
|
|
1138
|
-
};
|
|
1139
|
-
exports.de_DeleteDetectorCommand = de_DeleteDetectorCommand;
|
|
1140
|
-
const de_DeleteDetectorCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "AccessDeniedException":
|
|
1148
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ConflictException":
|
|
1151
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1152
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InternalServerException":
|
|
1154
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ThrottlingException":
|
|
1157
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ValidationException":
|
|
1160
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
const de_DeleteDetectorVersionCommand = async (output, context) => {
|
|
1172
|
-
if (output.statusCode >= 300) {
|
|
1173
|
-
return de_DeleteDetectorVersionCommandError(output, context);
|
|
1174
|
-
}
|
|
1175
|
-
const data = await parseBody(output.body, context);
|
|
1176
|
-
let contents = {};
|
|
1177
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1178
|
-
const response = {
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
...contents,
|
|
1181
|
-
};
|
|
1182
|
-
return response;
|
|
1183
|
-
};
|
|
1184
|
-
exports.de_DeleteDetectorVersionCommand = de_DeleteDetectorVersionCommand;
|
|
1185
|
-
const de_DeleteDetectorVersionCommandError = async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context),
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "AccessDeniedException":
|
|
1193
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ConflictException":
|
|
1196
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1197
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "InternalServerException":
|
|
1199
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ResourceNotFoundException":
|
|
1202
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ThrottlingException":
|
|
1205
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1206
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
const de_DeleteEntityTypeCommand = async (output, context) => {
|
|
1220
|
-
if (output.statusCode >= 300) {
|
|
1221
|
-
return de_DeleteEntityTypeCommandError(output, context);
|
|
1222
|
-
}
|
|
1223
|
-
const data = await parseBody(output.body, context);
|
|
1224
|
-
let contents = {};
|
|
1225
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1226
|
-
const response = {
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
...contents,
|
|
1229
|
-
};
|
|
1230
|
-
return response;
|
|
1231
|
-
};
|
|
1232
|
-
exports.de_DeleteEntityTypeCommand = de_DeleteEntityTypeCommand;
|
|
1233
|
-
const de_DeleteEntityTypeCommandError = async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context),
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "AccessDeniedException":
|
|
1241
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ConflictException":
|
|
1244
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1245
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InternalServerException":
|
|
1247
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1248
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ThrottlingException":
|
|
1250
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1251
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ValidationException":
|
|
1253
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
|
-
default:
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody,
|
|
1260
|
-
errorCode,
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
};
|
|
1264
|
-
const de_DeleteEventCommand = async (output, context) => {
|
|
1265
|
-
if (output.statusCode >= 300) {
|
|
1266
|
-
return de_DeleteEventCommandError(output, context);
|
|
1267
|
-
}
|
|
1268
|
-
const data = await parseBody(output.body, context);
|
|
1269
|
-
let contents = {};
|
|
1270
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1271
|
-
const response = {
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
...contents,
|
|
1274
|
-
};
|
|
1275
|
-
return response;
|
|
1276
|
-
};
|
|
1277
|
-
exports.de_DeleteEventCommand = de_DeleteEventCommand;
|
|
1278
|
-
const de_DeleteEventCommandError = async (output, context) => {
|
|
1279
|
-
const parsedOutput = {
|
|
1280
|
-
...output,
|
|
1281
|
-
body: await parseErrorBody(output.body, context),
|
|
1282
|
-
};
|
|
1283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
-
switch (errorCode) {
|
|
1285
|
-
case "AccessDeniedException":
|
|
1286
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "InternalServerException":
|
|
1289
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1290
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ThrottlingException":
|
|
1292
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1293
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ValidationException":
|
|
1295
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1296
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
|
-
default:
|
|
1298
|
-
const parsedBody = parsedOutput.body;
|
|
1299
|
-
return throwDefaultError({
|
|
1300
|
-
output,
|
|
1301
|
-
parsedBody,
|
|
1302
|
-
errorCode,
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
};
|
|
1306
|
-
const de_DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
1307
|
-
if (output.statusCode >= 300) {
|
|
1308
|
-
return de_DeleteEventsByEventTypeCommandError(output, context);
|
|
1309
|
-
}
|
|
1310
|
-
const data = await parseBody(output.body, context);
|
|
1311
|
-
let contents = {};
|
|
1312
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1313
|
-
const response = {
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
...contents,
|
|
1316
|
-
};
|
|
1317
|
-
return response;
|
|
1318
|
-
};
|
|
1319
|
-
exports.de_DeleteEventsByEventTypeCommand = de_DeleteEventsByEventTypeCommand;
|
|
1320
|
-
const de_DeleteEventsByEventTypeCommandError = async (output, context) => {
|
|
1321
|
-
const parsedOutput = {
|
|
1322
|
-
...output,
|
|
1323
|
-
body: await parseErrorBody(output.body, context),
|
|
1324
|
-
};
|
|
1325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
-
switch (errorCode) {
|
|
1327
|
-
case "AccessDeniedException":
|
|
1328
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1329
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ConflictException":
|
|
1331
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1332
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InternalServerException":
|
|
1334
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ResourceNotFoundException":
|
|
1337
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ThrottlingException":
|
|
1340
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1341
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ValidationException":
|
|
1343
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1345
|
-
default:
|
|
1346
|
-
const parsedBody = parsedOutput.body;
|
|
1347
|
-
return throwDefaultError({
|
|
1348
|
-
output,
|
|
1349
|
-
parsedBody,
|
|
1350
|
-
errorCode,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
};
|
|
1354
|
-
const de_DeleteEventTypeCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode >= 300) {
|
|
1356
|
-
return de_DeleteEventTypeCommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const data = await parseBody(output.body, context);
|
|
1359
|
-
let contents = {};
|
|
1360
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1361
|
-
const response = {
|
|
1362
|
-
$metadata: deserializeMetadata(output),
|
|
1363
|
-
...contents,
|
|
1364
|
-
};
|
|
1365
|
-
return response;
|
|
1366
|
-
};
|
|
1367
|
-
exports.de_DeleteEventTypeCommand = de_DeleteEventTypeCommand;
|
|
1368
|
-
const de_DeleteEventTypeCommandError = async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context),
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
-
switch (errorCode) {
|
|
1375
|
-
case "AccessDeniedException":
|
|
1376
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1377
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ConflictException":
|
|
1379
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1380
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "InternalServerException":
|
|
1382
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1383
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ThrottlingException":
|
|
1385
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1386
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ValidationException":
|
|
1388
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1389
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
|
-
default:
|
|
1391
|
-
const parsedBody = parsedOutput.body;
|
|
1392
|
-
return throwDefaultError({
|
|
1393
|
-
output,
|
|
1394
|
-
parsedBody,
|
|
1395
|
-
errorCode,
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
const de_DeleteExternalModelCommand = async (output, context) => {
|
|
1400
|
-
if (output.statusCode >= 300) {
|
|
1401
|
-
return de_DeleteExternalModelCommandError(output, context);
|
|
1402
|
-
}
|
|
1403
|
-
const data = await parseBody(output.body, context);
|
|
1404
|
-
let contents = {};
|
|
1405
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1406
|
-
const response = {
|
|
1407
|
-
$metadata: deserializeMetadata(output),
|
|
1408
|
-
...contents,
|
|
1409
|
-
};
|
|
1410
|
-
return response;
|
|
1411
|
-
};
|
|
1412
|
-
exports.de_DeleteExternalModelCommand = de_DeleteExternalModelCommand;
|
|
1413
|
-
const de_DeleteExternalModelCommandError = async (output, context) => {
|
|
1414
|
-
const parsedOutput = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseErrorBody(output.body, context),
|
|
1417
|
-
};
|
|
1418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
-
switch (errorCode) {
|
|
1420
|
-
case "AccessDeniedException":
|
|
1421
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1422
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ConflictException":
|
|
1424
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1425
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "InternalServerException":
|
|
1427
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1428
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ThrottlingException":
|
|
1430
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1431
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ValidationException":
|
|
1433
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1434
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1435
|
-
default:
|
|
1436
|
-
const parsedBody = parsedOutput.body;
|
|
1437
|
-
return throwDefaultError({
|
|
1438
|
-
output,
|
|
1439
|
-
parsedBody,
|
|
1440
|
-
errorCode,
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
};
|
|
1444
|
-
const de_DeleteLabelCommand = async (output, context) => {
|
|
1445
|
-
if (output.statusCode >= 300) {
|
|
1446
|
-
return de_DeleteLabelCommandError(output, context);
|
|
1447
|
-
}
|
|
1448
|
-
const data = await parseBody(output.body, context);
|
|
1449
|
-
let contents = {};
|
|
1450
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1451
|
-
const response = {
|
|
1452
|
-
$metadata: deserializeMetadata(output),
|
|
1453
|
-
...contents,
|
|
1454
|
-
};
|
|
1455
|
-
return response;
|
|
1456
|
-
};
|
|
1457
|
-
exports.de_DeleteLabelCommand = de_DeleteLabelCommand;
|
|
1458
|
-
const de_DeleteLabelCommandError = async (output, context) => {
|
|
1459
|
-
const parsedOutput = {
|
|
1460
|
-
...output,
|
|
1461
|
-
body: await parseErrorBody(output.body, context),
|
|
1462
|
-
};
|
|
1463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
-
switch (errorCode) {
|
|
1465
|
-
case "ConflictException":
|
|
1466
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1467
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "InternalServerException":
|
|
1469
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1470
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ThrottlingException":
|
|
1472
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1473
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ValidationException":
|
|
1475
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
const de_DeleteListCommand = async (output, context) => {
|
|
1487
|
-
if (output.statusCode >= 300) {
|
|
1488
|
-
return de_DeleteListCommandError(output, context);
|
|
1489
|
-
}
|
|
1490
|
-
const data = await parseBody(output.body, context);
|
|
1491
|
-
let contents = {};
|
|
1492
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1493
|
-
const response = {
|
|
1494
|
-
$metadata: deserializeMetadata(output),
|
|
1495
|
-
...contents,
|
|
1496
|
-
};
|
|
1497
|
-
return response;
|
|
1498
|
-
};
|
|
1499
|
-
exports.de_DeleteListCommand = de_DeleteListCommand;
|
|
1500
|
-
const de_DeleteListCommandError = async (output, context) => {
|
|
1501
|
-
const parsedOutput = {
|
|
1502
|
-
...output,
|
|
1503
|
-
body: await parseErrorBody(output.body, context),
|
|
1504
|
-
};
|
|
1505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
-
switch (errorCode) {
|
|
1507
|
-
case "AccessDeniedException":
|
|
1508
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ConflictException":
|
|
1511
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InternalServerException":
|
|
1514
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ThrottlingException":
|
|
1517
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ValidationException":
|
|
1520
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1522
|
-
default:
|
|
1523
|
-
const parsedBody = parsedOutput.body;
|
|
1524
|
-
return throwDefaultError({
|
|
1525
|
-
output,
|
|
1526
|
-
parsedBody,
|
|
1527
|
-
errorCode,
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
};
|
|
1531
|
-
const de_DeleteModelCommand = async (output, context) => {
|
|
1532
|
-
if (output.statusCode >= 300) {
|
|
1533
|
-
return de_DeleteModelCommandError(output, context);
|
|
1534
|
-
}
|
|
1535
|
-
const data = await parseBody(output.body, context);
|
|
1536
|
-
let contents = {};
|
|
1537
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1538
|
-
const response = {
|
|
1539
|
-
$metadata: deserializeMetadata(output),
|
|
1540
|
-
...contents,
|
|
1541
|
-
};
|
|
1542
|
-
return response;
|
|
1543
|
-
};
|
|
1544
|
-
exports.de_DeleteModelCommand = de_DeleteModelCommand;
|
|
1545
|
-
const de_DeleteModelCommandError = async (output, context) => {
|
|
1546
|
-
const parsedOutput = {
|
|
1547
|
-
...output,
|
|
1548
|
-
body: await parseErrorBody(output.body, context),
|
|
1549
|
-
};
|
|
1550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
|
-
switch (errorCode) {
|
|
1552
|
-
case "AccessDeniedException":
|
|
1553
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ConflictException":
|
|
1556
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "InternalServerException":
|
|
1559
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ThrottlingException":
|
|
1562
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1563
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ValidationException":
|
|
1565
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody,
|
|
1572
|
-
errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
const de_DeleteModelVersionCommand = async (output, context) => {
|
|
1577
|
-
if (output.statusCode >= 300) {
|
|
1578
|
-
return de_DeleteModelVersionCommandError(output, context);
|
|
1579
|
-
}
|
|
1580
|
-
const data = await parseBody(output.body, context);
|
|
1581
|
-
let contents = {};
|
|
1582
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1583
|
-
const response = {
|
|
1584
|
-
$metadata: deserializeMetadata(output),
|
|
1585
|
-
...contents,
|
|
1586
|
-
};
|
|
1587
|
-
return response;
|
|
1588
|
-
};
|
|
1589
|
-
exports.de_DeleteModelVersionCommand = de_DeleteModelVersionCommand;
|
|
1590
|
-
const de_DeleteModelVersionCommandError = async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context),
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "AccessDeniedException":
|
|
1598
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ConflictException":
|
|
1601
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1602
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "InternalServerException":
|
|
1604
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1605
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ThrottlingException":
|
|
1607
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ValidationException":
|
|
1610
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
|
-
default:
|
|
1613
|
-
const parsedBody = parsedOutput.body;
|
|
1614
|
-
return throwDefaultError({
|
|
1615
|
-
output,
|
|
1616
|
-
parsedBody,
|
|
1617
|
-
errorCode,
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
};
|
|
1621
|
-
const de_DeleteOutcomeCommand = async (output, context) => {
|
|
1622
|
-
if (output.statusCode >= 300) {
|
|
1623
|
-
return de_DeleteOutcomeCommandError(output, context);
|
|
1624
|
-
}
|
|
1625
|
-
const data = await parseBody(output.body, context);
|
|
1626
|
-
let contents = {};
|
|
1627
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1628
|
-
const response = {
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
...contents,
|
|
1631
|
-
};
|
|
1632
|
-
return response;
|
|
1633
|
-
};
|
|
1634
|
-
exports.de_DeleteOutcomeCommand = de_DeleteOutcomeCommand;
|
|
1635
|
-
const de_DeleteOutcomeCommandError = async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context),
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "AccessDeniedException":
|
|
1643
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ConflictException":
|
|
1646
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1647
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "InternalServerException":
|
|
1649
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1650
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ThrottlingException":
|
|
1652
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ValidationException":
|
|
1655
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1657
|
-
default:
|
|
1658
|
-
const parsedBody = parsedOutput.body;
|
|
1659
|
-
return throwDefaultError({
|
|
1660
|
-
output,
|
|
1661
|
-
parsedBody,
|
|
1662
|
-
errorCode,
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
};
|
|
1666
|
-
const de_DeleteRuleCommand = async (output, context) => {
|
|
1667
|
-
if (output.statusCode >= 300) {
|
|
1668
|
-
return de_DeleteRuleCommandError(output, context);
|
|
1669
|
-
}
|
|
1670
|
-
const data = await parseBody(output.body, context);
|
|
1671
|
-
let contents = {};
|
|
1672
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1673
|
-
const response = {
|
|
1674
|
-
$metadata: deserializeMetadata(output),
|
|
1675
|
-
...contents,
|
|
1676
|
-
};
|
|
1677
|
-
return response;
|
|
1678
|
-
};
|
|
1679
|
-
exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
|
|
1680
|
-
const de_DeleteRuleCommandError = async (output, context) => {
|
|
1681
|
-
const parsedOutput = {
|
|
1682
|
-
...output,
|
|
1683
|
-
body: await parseErrorBody(output.body, context),
|
|
1684
|
-
};
|
|
1685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
-
switch (errorCode) {
|
|
1687
|
-
case "AccessDeniedException":
|
|
1688
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1689
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ConflictException":
|
|
1691
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1692
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "InternalServerException":
|
|
1694
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "ThrottlingException":
|
|
1697
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ValidationException":
|
|
1700
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1701
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1702
|
-
default:
|
|
1703
|
-
const parsedBody = parsedOutput.body;
|
|
1704
|
-
return throwDefaultError({
|
|
1705
|
-
output,
|
|
1706
|
-
parsedBody,
|
|
1707
|
-
errorCode,
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
};
|
|
1711
|
-
const de_DeleteVariableCommand = async (output, context) => {
|
|
1712
|
-
if (output.statusCode >= 300) {
|
|
1713
|
-
return de_DeleteVariableCommandError(output, context);
|
|
1714
|
-
}
|
|
1715
|
-
const data = await parseBody(output.body, context);
|
|
1716
|
-
let contents = {};
|
|
1717
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1718
|
-
const response = {
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
...contents,
|
|
1721
|
-
};
|
|
1722
|
-
return response;
|
|
1723
|
-
};
|
|
1724
|
-
exports.de_DeleteVariableCommand = de_DeleteVariableCommand;
|
|
1725
|
-
const de_DeleteVariableCommandError = async (output, context) => {
|
|
1726
|
-
const parsedOutput = {
|
|
1727
|
-
...output,
|
|
1728
|
-
body: await parseErrorBody(output.body, context),
|
|
1729
|
-
};
|
|
1730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
|
-
switch (errorCode) {
|
|
1732
|
-
case "AccessDeniedException":
|
|
1733
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ConflictException":
|
|
1736
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1737
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "InternalServerException":
|
|
1739
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1740
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ThrottlingException":
|
|
1742
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "ValidationException":
|
|
1745
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1746
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1747
|
-
default:
|
|
1748
|
-
const parsedBody = parsedOutput.body;
|
|
1749
|
-
return throwDefaultError({
|
|
1750
|
-
output,
|
|
1751
|
-
parsedBody,
|
|
1752
|
-
errorCode,
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
const de_DescribeDetectorCommand = async (output, context) => {
|
|
1757
|
-
if (output.statusCode >= 300) {
|
|
1758
|
-
return de_DescribeDetectorCommandError(output, context);
|
|
1759
|
-
}
|
|
1760
|
-
const data = await parseBody(output.body, context);
|
|
1761
|
-
let contents = {};
|
|
1762
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1763
|
-
const response = {
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
...contents,
|
|
1766
|
-
};
|
|
1767
|
-
return response;
|
|
1768
|
-
};
|
|
1769
|
-
exports.de_DescribeDetectorCommand = de_DescribeDetectorCommand;
|
|
1770
|
-
const de_DescribeDetectorCommandError = async (output, context) => {
|
|
1771
|
-
const parsedOutput = {
|
|
1772
|
-
...output,
|
|
1773
|
-
body: await parseErrorBody(output.body, context),
|
|
1774
|
-
};
|
|
1775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
|
-
switch (errorCode) {
|
|
1777
|
-
case "AccessDeniedException":
|
|
1778
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "InternalServerException":
|
|
1781
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1782
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "ResourceNotFoundException":
|
|
1784
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "ThrottlingException":
|
|
1787
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1788
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ValidationException":
|
|
1790
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1792
|
-
default:
|
|
1793
|
-
const parsedBody = parsedOutput.body;
|
|
1794
|
-
return throwDefaultError({
|
|
1795
|
-
output,
|
|
1796
|
-
parsedBody,
|
|
1797
|
-
errorCode,
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
};
|
|
1801
|
-
const de_DescribeModelVersionsCommand = async (output, context) => {
|
|
1802
|
-
if (output.statusCode >= 300) {
|
|
1803
|
-
return de_DescribeModelVersionsCommandError(output, context);
|
|
1804
|
-
}
|
|
1805
|
-
const data = await parseBody(output.body, context);
|
|
1806
|
-
let contents = {};
|
|
1807
|
-
contents = de_DescribeModelVersionsResult(data, context);
|
|
1808
|
-
const response = {
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
...contents,
|
|
1811
|
-
};
|
|
1812
|
-
return response;
|
|
1813
|
-
};
|
|
1814
|
-
exports.de_DescribeModelVersionsCommand = de_DescribeModelVersionsCommand;
|
|
1815
|
-
const de_DescribeModelVersionsCommandError = async (output, context) => {
|
|
1816
|
-
const parsedOutput = {
|
|
1817
|
-
...output,
|
|
1818
|
-
body: await parseErrorBody(output.body, context),
|
|
1819
|
-
};
|
|
1820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
-
switch (errorCode) {
|
|
1822
|
-
case "AccessDeniedException":
|
|
1823
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1824
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "InternalServerException":
|
|
1826
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1827
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ResourceNotFoundException":
|
|
1829
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ThrottlingException":
|
|
1832
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1833
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ValidationException":
|
|
1835
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1836
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1837
|
-
default:
|
|
1838
|
-
const parsedBody = parsedOutput.body;
|
|
1839
|
-
return throwDefaultError({
|
|
1840
|
-
output,
|
|
1841
|
-
parsedBody,
|
|
1842
|
-
errorCode,
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1846
|
-
const de_GetBatchImportJobsCommand = async (output, context) => {
|
|
1847
|
-
if (output.statusCode >= 300) {
|
|
1848
|
-
return de_GetBatchImportJobsCommandError(output, context);
|
|
1849
|
-
}
|
|
1850
|
-
const data = await parseBody(output.body, context);
|
|
1851
|
-
let contents = {};
|
|
1852
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1853
|
-
const response = {
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
...contents,
|
|
1856
|
-
};
|
|
1857
|
-
return response;
|
|
1858
|
-
};
|
|
1859
|
-
exports.de_GetBatchImportJobsCommand = de_GetBatchImportJobsCommand;
|
|
1860
|
-
const de_GetBatchImportJobsCommandError = async (output, context) => {
|
|
1861
|
-
const parsedOutput = {
|
|
1862
|
-
...output,
|
|
1863
|
-
body: await parseErrorBody(output.body, context),
|
|
1864
|
-
};
|
|
1865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
|
-
switch (errorCode) {
|
|
1867
|
-
case "AccessDeniedException":
|
|
1868
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1869
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "InternalServerException":
|
|
1871
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ResourceNotFoundException":
|
|
1874
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ThrottlingException":
|
|
1877
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1878
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ValidationException":
|
|
1880
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1881
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1882
|
-
default:
|
|
1883
|
-
const parsedBody = parsedOutput.body;
|
|
1884
|
-
return throwDefaultError({
|
|
1885
|
-
output,
|
|
1886
|
-
parsedBody,
|
|
1887
|
-
errorCode,
|
|
1888
|
-
});
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
const de_GetBatchPredictionJobsCommand = async (output, context) => {
|
|
1892
|
-
if (output.statusCode >= 300) {
|
|
1893
|
-
return de_GetBatchPredictionJobsCommandError(output, context);
|
|
1894
|
-
}
|
|
1895
|
-
const data = await parseBody(output.body, context);
|
|
1896
|
-
let contents = {};
|
|
1897
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1898
|
-
const response = {
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
...contents,
|
|
1901
|
-
};
|
|
1902
|
-
return response;
|
|
1903
|
-
};
|
|
1904
|
-
exports.de_GetBatchPredictionJobsCommand = de_GetBatchPredictionJobsCommand;
|
|
1905
|
-
const de_GetBatchPredictionJobsCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "AccessDeniedException":
|
|
1913
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1914
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "InternalServerException":
|
|
1916
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1917
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ResourceNotFoundException":
|
|
1919
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1920
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "ThrottlingException":
|
|
1922
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1923
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "ValidationException":
|
|
1925
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1926
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
|
-
default:
|
|
1928
|
-
const parsedBody = parsedOutput.body;
|
|
1929
|
-
return throwDefaultError({
|
|
1930
|
-
output,
|
|
1931
|
-
parsedBody,
|
|
1932
|
-
errorCode,
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
const de_GetDeleteEventsByEventTypeStatusCommand = async (output, context) => {
|
|
1937
|
-
if (output.statusCode >= 300) {
|
|
1938
|
-
return de_GetDeleteEventsByEventTypeStatusCommandError(output, context);
|
|
1939
|
-
}
|
|
1940
|
-
const data = await parseBody(output.body, context);
|
|
1941
|
-
let contents = {};
|
|
1942
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1943
|
-
const response = {
|
|
1944
|
-
$metadata: deserializeMetadata(output),
|
|
1945
|
-
...contents,
|
|
1946
|
-
};
|
|
1947
|
-
return response;
|
|
1948
|
-
};
|
|
1949
|
-
exports.de_GetDeleteEventsByEventTypeStatusCommand = de_GetDeleteEventsByEventTypeStatusCommand;
|
|
1950
|
-
const de_GetDeleteEventsByEventTypeStatusCommandError = async (output, context) => {
|
|
1951
|
-
const parsedOutput = {
|
|
1952
|
-
...output,
|
|
1953
|
-
body: await parseErrorBody(output.body, context),
|
|
1954
|
-
};
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "AccessDeniedException":
|
|
1958
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1959
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "InternalServerException":
|
|
1961
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1962
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "ResourceNotFoundException":
|
|
1964
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ThrottlingException":
|
|
1967
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1968
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "ValidationException":
|
|
1970
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1971
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1972
|
-
default:
|
|
1973
|
-
const parsedBody = parsedOutput.body;
|
|
1974
|
-
return throwDefaultError({
|
|
1975
|
-
output,
|
|
1976
|
-
parsedBody,
|
|
1977
|
-
errorCode,
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
};
|
|
1981
|
-
const de_GetDetectorsCommand = async (output, context) => {
|
|
1982
|
-
if (output.statusCode >= 300) {
|
|
1983
|
-
return de_GetDetectorsCommandError(output, context);
|
|
1984
|
-
}
|
|
1985
|
-
const data = await parseBody(output.body, context);
|
|
1986
|
-
let contents = {};
|
|
1987
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1988
|
-
const response = {
|
|
1989
|
-
$metadata: deserializeMetadata(output),
|
|
1990
|
-
...contents,
|
|
1991
|
-
};
|
|
1992
|
-
return response;
|
|
1993
|
-
};
|
|
1994
|
-
exports.de_GetDetectorsCommand = de_GetDetectorsCommand;
|
|
1995
|
-
const de_GetDetectorsCommandError = async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context),
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "AccessDeniedException":
|
|
2003
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2004
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "InternalServerException":
|
|
2006
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ResourceNotFoundException":
|
|
2009
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ThrottlingException":
|
|
2012
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2013
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ValidationException":
|
|
2015
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
|
-
const de_GetDetectorVersionCommand = async (output, context) => {
|
|
2027
|
-
if (output.statusCode >= 300) {
|
|
2028
|
-
return de_GetDetectorVersionCommandError(output, context);
|
|
2029
|
-
}
|
|
2030
|
-
const data = await parseBody(output.body, context);
|
|
2031
|
-
let contents = {};
|
|
2032
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2033
|
-
const response = {
|
|
2034
|
-
$metadata: deserializeMetadata(output),
|
|
2035
|
-
...contents,
|
|
2036
|
-
};
|
|
2037
|
-
return response;
|
|
2038
|
-
};
|
|
2039
|
-
exports.de_GetDetectorVersionCommand = de_GetDetectorVersionCommand;
|
|
2040
|
-
const de_GetDetectorVersionCommandError = async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context),
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "AccessDeniedException":
|
|
2048
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2049
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "InternalServerException":
|
|
2051
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2052
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "ResourceNotFoundException":
|
|
2054
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ThrottlingException":
|
|
2057
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ValidationException":
|
|
2060
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2062
|
-
default:
|
|
2063
|
-
const parsedBody = parsedOutput.body;
|
|
2064
|
-
return throwDefaultError({
|
|
2065
|
-
output,
|
|
2066
|
-
parsedBody,
|
|
2067
|
-
errorCode,
|
|
2068
|
-
});
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
|
-
const de_GetEntityTypesCommand = async (output, context) => {
|
|
2072
|
-
if (output.statusCode >= 300) {
|
|
2073
|
-
return de_GetEntityTypesCommandError(output, context);
|
|
2074
|
-
}
|
|
2075
|
-
const data = await parseBody(output.body, context);
|
|
2076
|
-
let contents = {};
|
|
2077
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2078
|
-
const response = {
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
...contents,
|
|
2081
|
-
};
|
|
2082
|
-
return response;
|
|
2083
|
-
};
|
|
2084
|
-
exports.de_GetEntityTypesCommand = de_GetEntityTypesCommand;
|
|
2085
|
-
const de_GetEntityTypesCommandError = async (output, context) => {
|
|
2086
|
-
const parsedOutput = {
|
|
2087
|
-
...output,
|
|
2088
|
-
body: await parseErrorBody(output.body, context),
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "AccessDeniedException":
|
|
2093
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2094
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InternalServerException":
|
|
2096
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ResourceNotFoundException":
|
|
2099
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ThrottlingException":
|
|
2102
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ValidationException":
|
|
2105
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
|
-
default:
|
|
2108
|
-
const parsedBody = parsedOutput.body;
|
|
2109
|
-
return throwDefaultError({
|
|
2110
|
-
output,
|
|
2111
|
-
parsedBody,
|
|
2112
|
-
errorCode,
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
};
|
|
2116
|
-
const de_GetEventCommand = async (output, context) => {
|
|
2117
|
-
if (output.statusCode >= 300) {
|
|
2118
|
-
return de_GetEventCommandError(output, context);
|
|
2119
|
-
}
|
|
2120
|
-
const data = await parseBody(output.body, context);
|
|
2121
|
-
let contents = {};
|
|
2122
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2123
|
-
const response = {
|
|
2124
|
-
$metadata: deserializeMetadata(output),
|
|
2125
|
-
...contents,
|
|
2126
|
-
};
|
|
2127
|
-
return response;
|
|
2128
|
-
};
|
|
2129
|
-
exports.de_GetEventCommand = de_GetEventCommand;
|
|
2130
|
-
const de_GetEventCommandError = async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context),
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "AccessDeniedException":
|
|
2138
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InternalServerException":
|
|
2141
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ThrottlingException":
|
|
2147
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2148
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ValidationException":
|
|
2150
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2151
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
|
-
const de_GetEventPredictionCommand = async (output, context) => {
|
|
2162
|
-
if (output.statusCode >= 300) {
|
|
2163
|
-
return de_GetEventPredictionCommandError(output, context);
|
|
2164
|
-
}
|
|
2165
|
-
const data = await parseBody(output.body, context);
|
|
2166
|
-
let contents = {};
|
|
2167
|
-
contents = de_GetEventPredictionResult(data, context);
|
|
2168
|
-
const response = {
|
|
2169
|
-
$metadata: deserializeMetadata(output),
|
|
2170
|
-
...contents,
|
|
2171
|
-
};
|
|
2172
|
-
return response;
|
|
2173
|
-
};
|
|
2174
|
-
exports.de_GetEventPredictionCommand = de_GetEventPredictionCommand;
|
|
2175
|
-
const de_GetEventPredictionCommandError = async (output, context) => {
|
|
2176
|
-
const parsedOutput = {
|
|
2177
|
-
...output,
|
|
2178
|
-
body: await parseErrorBody(output.body, context),
|
|
2179
|
-
};
|
|
2180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "AccessDeniedException":
|
|
2183
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2184
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ConflictException":
|
|
2186
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2187
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "InternalServerException":
|
|
2189
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2190
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "ResourceNotFoundException":
|
|
2192
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2193
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "ResourceUnavailableException":
|
|
2195
|
-
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
2196
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ThrottlingException":
|
|
2198
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ValidationException":
|
|
2201
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2203
|
-
default:
|
|
2204
|
-
const parsedBody = parsedOutput.body;
|
|
2205
|
-
return throwDefaultError({
|
|
2206
|
-
output,
|
|
2207
|
-
parsedBody,
|
|
2208
|
-
errorCode,
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
|
-
const de_GetEventPredictionMetadataCommand = async (output, context) => {
|
|
2213
|
-
if (output.statusCode >= 300) {
|
|
2214
|
-
return de_GetEventPredictionMetadataCommandError(output, context);
|
|
2215
|
-
}
|
|
2216
|
-
const data = await parseBody(output.body, context);
|
|
2217
|
-
let contents = {};
|
|
2218
|
-
contents = de_GetEventPredictionMetadataResult(data, context);
|
|
2219
|
-
const response = {
|
|
2220
|
-
$metadata: deserializeMetadata(output),
|
|
2221
|
-
...contents,
|
|
2222
|
-
};
|
|
2223
|
-
return response;
|
|
2224
|
-
};
|
|
2225
|
-
exports.de_GetEventPredictionMetadataCommand = de_GetEventPredictionMetadataCommand;
|
|
2226
|
-
const de_GetEventPredictionMetadataCommandError = async (output, context) => {
|
|
2227
|
-
const parsedOutput = {
|
|
2228
|
-
...output,
|
|
2229
|
-
body: await parseErrorBody(output.body, context),
|
|
2230
|
-
};
|
|
2231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2232
|
-
switch (errorCode) {
|
|
2233
|
-
case "AccessDeniedException":
|
|
2234
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "InternalServerException":
|
|
2237
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2238
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ResourceNotFoundException":
|
|
2240
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "ThrottlingException":
|
|
2243
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2244
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ValidationException":
|
|
2246
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2248
|
-
default:
|
|
2249
|
-
const parsedBody = parsedOutput.body;
|
|
2250
|
-
return throwDefaultError({
|
|
2251
|
-
output,
|
|
2252
|
-
parsedBody,
|
|
2253
|
-
errorCode,
|
|
2254
|
-
});
|
|
2255
|
-
}
|
|
2256
|
-
};
|
|
2257
|
-
const de_GetEventTypesCommand = async (output, context) => {
|
|
2258
|
-
if (output.statusCode >= 300) {
|
|
2259
|
-
return de_GetEventTypesCommandError(output, context);
|
|
2260
|
-
}
|
|
2261
|
-
const data = await parseBody(output.body, context);
|
|
2262
|
-
let contents = {};
|
|
2263
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2264
|
-
const response = {
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
...contents,
|
|
2267
|
-
};
|
|
2268
|
-
return response;
|
|
2269
|
-
};
|
|
2270
|
-
exports.de_GetEventTypesCommand = de_GetEventTypesCommand;
|
|
2271
|
-
const de_GetEventTypesCommandError = async (output, context) => {
|
|
2272
|
-
const parsedOutput = {
|
|
2273
|
-
...output,
|
|
2274
|
-
body: await parseErrorBody(output.body, context),
|
|
2275
|
-
};
|
|
2276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
-
switch (errorCode) {
|
|
2278
|
-
case "AccessDeniedException":
|
|
2279
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "InternalServerException":
|
|
2282
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ResourceNotFoundException":
|
|
2285
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2286
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ThrottlingException":
|
|
2288
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2289
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ValidationException":
|
|
2291
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2292
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2293
|
-
default:
|
|
2294
|
-
const parsedBody = parsedOutput.body;
|
|
2295
|
-
return throwDefaultError({
|
|
2296
|
-
output,
|
|
2297
|
-
parsedBody,
|
|
2298
|
-
errorCode,
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
};
|
|
2302
|
-
const de_GetExternalModelsCommand = async (output, context) => {
|
|
2303
|
-
if (output.statusCode >= 300) {
|
|
2304
|
-
return de_GetExternalModelsCommandError(output, context);
|
|
2305
|
-
}
|
|
2306
|
-
const data = await parseBody(output.body, context);
|
|
2307
|
-
let contents = {};
|
|
2308
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2309
|
-
const response = {
|
|
2310
|
-
$metadata: deserializeMetadata(output),
|
|
2311
|
-
...contents,
|
|
2312
|
-
};
|
|
2313
|
-
return response;
|
|
2314
|
-
};
|
|
2315
|
-
exports.de_GetExternalModelsCommand = de_GetExternalModelsCommand;
|
|
2316
|
-
const de_GetExternalModelsCommandError = async (output, context) => {
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context),
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "AccessDeniedException":
|
|
2324
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2325
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "InternalServerException":
|
|
2327
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2328
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ResourceNotFoundException":
|
|
2330
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2331
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "ThrottlingException":
|
|
2333
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2334
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ValidationException":
|
|
2336
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2338
|
-
default:
|
|
2339
|
-
const parsedBody = parsedOutput.body;
|
|
2340
|
-
return throwDefaultError({
|
|
2341
|
-
output,
|
|
2342
|
-
parsedBody,
|
|
2343
|
-
errorCode,
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
const de_GetKMSEncryptionKeyCommand = async (output, context) => {
|
|
2348
|
-
if (output.statusCode >= 300) {
|
|
2349
|
-
return de_GetKMSEncryptionKeyCommandError(output, context);
|
|
2350
|
-
}
|
|
2351
|
-
const data = await parseBody(output.body, context);
|
|
2352
|
-
let contents = {};
|
|
2353
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2354
|
-
const response = {
|
|
2355
|
-
$metadata: deserializeMetadata(output),
|
|
2356
|
-
...contents,
|
|
2357
|
-
};
|
|
2358
|
-
return response;
|
|
2359
|
-
};
|
|
2360
|
-
exports.de_GetKMSEncryptionKeyCommand = de_GetKMSEncryptionKeyCommand;
|
|
2361
|
-
const de_GetKMSEncryptionKeyCommandError = async (output, context) => {
|
|
2362
|
-
const parsedOutput = {
|
|
2363
|
-
...output,
|
|
2364
|
-
body: await parseErrorBody(output.body, context),
|
|
2365
|
-
};
|
|
2366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2367
|
-
switch (errorCode) {
|
|
2368
|
-
case "AccessDeniedException":
|
|
2369
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "InternalServerException":
|
|
2372
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2373
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "ResourceNotFoundException":
|
|
2375
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ThrottlingException":
|
|
2378
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2379
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2380
|
-
default:
|
|
2381
|
-
const parsedBody = parsedOutput.body;
|
|
2382
|
-
return throwDefaultError({
|
|
2383
|
-
output,
|
|
2384
|
-
parsedBody,
|
|
2385
|
-
errorCode,
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
};
|
|
2389
|
-
const de_GetLabelsCommand = async (output, context) => {
|
|
2390
|
-
if (output.statusCode >= 300) {
|
|
2391
|
-
return de_GetLabelsCommandError(output, context);
|
|
2392
|
-
}
|
|
2393
|
-
const data = await parseBody(output.body, context);
|
|
2394
|
-
let contents = {};
|
|
2395
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2396
|
-
const response = {
|
|
2397
|
-
$metadata: deserializeMetadata(output),
|
|
2398
|
-
...contents,
|
|
2399
|
-
};
|
|
2400
|
-
return response;
|
|
2401
|
-
};
|
|
2402
|
-
exports.de_GetLabelsCommand = de_GetLabelsCommand;
|
|
2403
|
-
const de_GetLabelsCommandError = async (output, context) => {
|
|
2404
|
-
const parsedOutput = {
|
|
2405
|
-
...output,
|
|
2406
|
-
body: await parseErrorBody(output.body, context),
|
|
2407
|
-
};
|
|
2408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
|
-
switch (errorCode) {
|
|
2410
|
-
case "AccessDeniedException":
|
|
2411
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2412
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "InternalServerException":
|
|
2414
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "ResourceNotFoundException":
|
|
2417
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ThrottlingException":
|
|
2420
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ValidationException":
|
|
2423
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2425
|
-
default:
|
|
2426
|
-
const parsedBody = parsedOutput.body;
|
|
2427
|
-
return throwDefaultError({
|
|
2428
|
-
output,
|
|
2429
|
-
parsedBody,
|
|
2430
|
-
errorCode,
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
};
|
|
2434
|
-
const de_GetListElementsCommand = async (output, context) => {
|
|
2435
|
-
if (output.statusCode >= 300) {
|
|
2436
|
-
return de_GetListElementsCommandError(output, context);
|
|
2437
|
-
}
|
|
2438
|
-
const data = await parseBody(output.body, context);
|
|
2439
|
-
let contents = {};
|
|
2440
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2441
|
-
const response = {
|
|
2442
|
-
$metadata: deserializeMetadata(output),
|
|
2443
|
-
...contents,
|
|
2444
|
-
};
|
|
2445
|
-
return response;
|
|
2446
|
-
};
|
|
2447
|
-
exports.de_GetListElementsCommand = de_GetListElementsCommand;
|
|
2448
|
-
const de_GetListElementsCommandError = async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context),
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "AccessDeniedException":
|
|
2456
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2457
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "InternalServerException":
|
|
2459
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2460
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ResourceNotFoundException":
|
|
2462
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2463
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ThrottlingException":
|
|
2465
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2466
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ValidationException":
|
|
2468
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode,
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
const de_GetListsMetadataCommand = async (output, context) => {
|
|
2480
|
-
if (output.statusCode >= 300) {
|
|
2481
|
-
return de_GetListsMetadataCommandError(output, context);
|
|
2482
|
-
}
|
|
2483
|
-
const data = await parseBody(output.body, context);
|
|
2484
|
-
let contents = {};
|
|
2485
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2486
|
-
const response = {
|
|
2487
|
-
$metadata: deserializeMetadata(output),
|
|
2488
|
-
...contents,
|
|
2489
|
-
};
|
|
2490
|
-
return response;
|
|
2491
|
-
};
|
|
2492
|
-
exports.de_GetListsMetadataCommand = de_GetListsMetadataCommand;
|
|
2493
|
-
const de_GetListsMetadataCommandError = async (output, context) => {
|
|
2494
|
-
const parsedOutput = {
|
|
2495
|
-
...output,
|
|
2496
|
-
body: await parseErrorBody(output.body, context),
|
|
2497
|
-
};
|
|
2498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
|
-
switch (errorCode) {
|
|
2500
|
-
case "AccessDeniedException":
|
|
2501
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2502
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "InternalServerException":
|
|
2504
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "ResourceNotFoundException":
|
|
2507
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "ThrottlingException":
|
|
2510
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2511
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "ValidationException":
|
|
2513
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2514
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2515
|
-
default:
|
|
2516
|
-
const parsedBody = parsedOutput.body;
|
|
2517
|
-
return throwDefaultError({
|
|
2518
|
-
output,
|
|
2519
|
-
parsedBody,
|
|
2520
|
-
errorCode,
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
};
|
|
2524
|
-
const de_GetModelsCommand = async (output, context) => {
|
|
2525
|
-
if (output.statusCode >= 300) {
|
|
2526
|
-
return de_GetModelsCommandError(output, context);
|
|
2527
|
-
}
|
|
2528
|
-
const data = await parseBody(output.body, context);
|
|
2529
|
-
let contents = {};
|
|
2530
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2531
|
-
const response = {
|
|
2532
|
-
$metadata: deserializeMetadata(output),
|
|
2533
|
-
...contents,
|
|
2534
|
-
};
|
|
2535
|
-
return response;
|
|
2536
|
-
};
|
|
2537
|
-
exports.de_GetModelsCommand = de_GetModelsCommand;
|
|
2538
|
-
const de_GetModelsCommandError = async (output, context) => {
|
|
2539
|
-
const parsedOutput = {
|
|
2540
|
-
...output,
|
|
2541
|
-
body: await parseErrorBody(output.body, context),
|
|
2542
|
-
};
|
|
2543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
|
-
switch (errorCode) {
|
|
2545
|
-
case "AccessDeniedException":
|
|
2546
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2547
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InternalServerException":
|
|
2549
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ResourceNotFoundException":
|
|
2552
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "ThrottlingException":
|
|
2555
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ValidationException":
|
|
2558
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode,
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
};
|
|
2569
|
-
const de_GetModelVersionCommand = async (output, context) => {
|
|
2570
|
-
if (output.statusCode >= 300) {
|
|
2571
|
-
return de_GetModelVersionCommandError(output, context);
|
|
2572
|
-
}
|
|
2573
|
-
const data = await parseBody(output.body, context);
|
|
2574
|
-
let contents = {};
|
|
2575
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2576
|
-
const response = {
|
|
2577
|
-
$metadata: deserializeMetadata(output),
|
|
2578
|
-
...contents,
|
|
2579
|
-
};
|
|
2580
|
-
return response;
|
|
2581
|
-
};
|
|
2582
|
-
exports.de_GetModelVersionCommand = de_GetModelVersionCommand;
|
|
2583
|
-
const de_GetModelVersionCommandError = async (output, context) => {
|
|
2584
|
-
const parsedOutput = {
|
|
2585
|
-
...output,
|
|
2586
|
-
body: await parseErrorBody(output.body, context),
|
|
2587
|
-
};
|
|
2588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
|
-
switch (errorCode) {
|
|
2590
|
-
case "AccessDeniedException":
|
|
2591
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "InternalServerException":
|
|
2594
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ResourceNotFoundException":
|
|
2597
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2598
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ThrottlingException":
|
|
2600
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2601
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "ValidationException":
|
|
2603
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2604
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2605
|
-
default:
|
|
2606
|
-
const parsedBody = parsedOutput.body;
|
|
2607
|
-
return throwDefaultError({
|
|
2608
|
-
output,
|
|
2609
|
-
parsedBody,
|
|
2610
|
-
errorCode,
|
|
2611
|
-
});
|
|
2612
|
-
}
|
|
2613
|
-
};
|
|
2614
|
-
const de_GetOutcomesCommand = async (output, context) => {
|
|
2615
|
-
if (output.statusCode >= 300) {
|
|
2616
|
-
return de_GetOutcomesCommandError(output, context);
|
|
2617
|
-
}
|
|
2618
|
-
const data = await parseBody(output.body, context);
|
|
2619
|
-
let contents = {};
|
|
2620
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2621
|
-
const response = {
|
|
2622
|
-
$metadata: deserializeMetadata(output),
|
|
2623
|
-
...contents,
|
|
2624
|
-
};
|
|
2625
|
-
return response;
|
|
2626
|
-
};
|
|
2627
|
-
exports.de_GetOutcomesCommand = de_GetOutcomesCommand;
|
|
2628
|
-
const de_GetOutcomesCommandError = async (output, context) => {
|
|
2629
|
-
const parsedOutput = {
|
|
2630
|
-
...output,
|
|
2631
|
-
body: await parseErrorBody(output.body, context),
|
|
2632
|
-
};
|
|
2633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2634
|
-
switch (errorCode) {
|
|
2635
|
-
case "AccessDeniedException":
|
|
2636
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "InternalServerException":
|
|
2639
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "ResourceNotFoundException":
|
|
2642
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "ThrottlingException":
|
|
2645
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "ValidationException":
|
|
2648
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2650
|
-
default:
|
|
2651
|
-
const parsedBody = parsedOutput.body;
|
|
2652
|
-
return throwDefaultError({
|
|
2653
|
-
output,
|
|
2654
|
-
parsedBody,
|
|
2655
|
-
errorCode,
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
};
|
|
2659
|
-
const de_GetRulesCommand = async (output, context) => {
|
|
2660
|
-
if (output.statusCode >= 300) {
|
|
2661
|
-
return de_GetRulesCommandError(output, context);
|
|
2662
|
-
}
|
|
2663
|
-
const data = await parseBody(output.body, context);
|
|
2664
|
-
let contents = {};
|
|
2665
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2666
|
-
const response = {
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
...contents,
|
|
2669
|
-
};
|
|
2670
|
-
return response;
|
|
2671
|
-
};
|
|
2672
|
-
exports.de_GetRulesCommand = de_GetRulesCommand;
|
|
2673
|
-
const de_GetRulesCommandError = async (output, context) => {
|
|
2674
|
-
const parsedOutput = {
|
|
2675
|
-
...output,
|
|
2676
|
-
body: await parseErrorBody(output.body, context),
|
|
2677
|
-
};
|
|
2678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
|
-
switch (errorCode) {
|
|
2680
|
-
case "AccessDeniedException":
|
|
2681
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "InternalServerException":
|
|
2684
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ResourceNotFoundException":
|
|
2687
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ThrottlingException":
|
|
2690
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "ValidationException":
|
|
2693
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2695
|
-
default:
|
|
2696
|
-
const parsedBody = parsedOutput.body;
|
|
2697
|
-
return throwDefaultError({
|
|
2698
|
-
output,
|
|
2699
|
-
parsedBody,
|
|
2700
|
-
errorCode,
|
|
2701
|
-
});
|
|
2702
|
-
}
|
|
2703
|
-
};
|
|
2704
|
-
const de_GetVariablesCommand = async (output, context) => {
|
|
2705
|
-
if (output.statusCode >= 300) {
|
|
2706
|
-
return de_GetVariablesCommandError(output, context);
|
|
2707
|
-
}
|
|
2708
|
-
const data = await parseBody(output.body, context);
|
|
2709
|
-
let contents = {};
|
|
2710
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2711
|
-
const response = {
|
|
2712
|
-
$metadata: deserializeMetadata(output),
|
|
2713
|
-
...contents,
|
|
2714
|
-
};
|
|
2715
|
-
return response;
|
|
2716
|
-
};
|
|
2717
|
-
exports.de_GetVariablesCommand = de_GetVariablesCommand;
|
|
2718
|
-
const de_GetVariablesCommandError = async (output, context) => {
|
|
2719
|
-
const parsedOutput = {
|
|
2720
|
-
...output,
|
|
2721
|
-
body: await parseErrorBody(output.body, context),
|
|
2722
|
-
};
|
|
2723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
|
-
switch (errorCode) {
|
|
2725
|
-
case "AccessDeniedException":
|
|
2726
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2727
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "InternalServerException":
|
|
2729
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "ResourceNotFoundException":
|
|
2732
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "ThrottlingException":
|
|
2735
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2736
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "ValidationException":
|
|
2738
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2739
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2740
|
-
default:
|
|
2741
|
-
const parsedBody = parsedOutput.body;
|
|
2742
|
-
return throwDefaultError({
|
|
2743
|
-
output,
|
|
2744
|
-
parsedBody,
|
|
2745
|
-
errorCode,
|
|
2746
|
-
});
|
|
2747
|
-
}
|
|
2748
|
-
};
|
|
2749
|
-
const de_ListEventPredictionsCommand = async (output, context) => {
|
|
2750
|
-
if (output.statusCode >= 300) {
|
|
2751
|
-
return de_ListEventPredictionsCommandError(output, context);
|
|
2752
|
-
}
|
|
2753
|
-
const data = await parseBody(output.body, context);
|
|
2754
|
-
let contents = {};
|
|
2755
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2756
|
-
const response = {
|
|
2757
|
-
$metadata: deserializeMetadata(output),
|
|
2758
|
-
...contents,
|
|
2759
|
-
};
|
|
2760
|
-
return response;
|
|
2761
|
-
};
|
|
2762
|
-
exports.de_ListEventPredictionsCommand = de_ListEventPredictionsCommand;
|
|
2763
|
-
const de_ListEventPredictionsCommandError = async (output, context) => {
|
|
2764
|
-
const parsedOutput = {
|
|
2765
|
-
...output,
|
|
2766
|
-
body: await parseErrorBody(output.body, context),
|
|
2767
|
-
};
|
|
2768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
-
switch (errorCode) {
|
|
2770
|
-
case "AccessDeniedException":
|
|
2771
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "InternalServerException":
|
|
2774
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "ThrottlingException":
|
|
2777
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ValidationException":
|
|
2780
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2782
|
-
default:
|
|
2783
|
-
const parsedBody = parsedOutput.body;
|
|
2784
|
-
return throwDefaultError({
|
|
2785
|
-
output,
|
|
2786
|
-
parsedBody,
|
|
2787
|
-
errorCode,
|
|
2788
|
-
});
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
2791
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2792
|
-
if (output.statusCode >= 300) {
|
|
2793
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2794
|
-
}
|
|
2795
|
-
const data = await parseBody(output.body, context);
|
|
2796
|
-
let contents = {};
|
|
2797
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2798
|
-
const response = {
|
|
2799
|
-
$metadata: deserializeMetadata(output),
|
|
2800
|
-
...contents,
|
|
2801
|
-
};
|
|
2802
|
-
return response;
|
|
2803
|
-
};
|
|
2804
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2805
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2806
|
-
const parsedOutput = {
|
|
2807
|
-
...output,
|
|
2808
|
-
body: await parseErrorBody(output.body, context),
|
|
2809
|
-
};
|
|
2810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
|
-
switch (errorCode) {
|
|
2812
|
-
case "AccessDeniedException":
|
|
2813
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2815
|
-
case "ResourceNotFoundException":
|
|
2816
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2817
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2818
|
-
case "ThrottlingException":
|
|
2819
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2820
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2821
|
-
case "ValidationException":
|
|
2822
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2823
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2824
|
-
default:
|
|
2825
|
-
const parsedBody = parsedOutput.body;
|
|
2826
|
-
return throwDefaultError({
|
|
2827
|
-
output,
|
|
2828
|
-
parsedBody,
|
|
2829
|
-
errorCode,
|
|
2830
|
-
});
|
|
2831
|
-
}
|
|
2832
|
-
};
|
|
2833
|
-
const de_PutDetectorCommand = async (output, context) => {
|
|
2834
|
-
if (output.statusCode >= 300) {
|
|
2835
|
-
return de_PutDetectorCommandError(output, context);
|
|
2836
|
-
}
|
|
2837
|
-
const data = await parseBody(output.body, context);
|
|
2838
|
-
let contents = {};
|
|
2839
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2840
|
-
const response = {
|
|
2841
|
-
$metadata: deserializeMetadata(output),
|
|
2842
|
-
...contents,
|
|
2843
|
-
};
|
|
2844
|
-
return response;
|
|
2845
|
-
};
|
|
2846
|
-
exports.de_PutDetectorCommand = de_PutDetectorCommand;
|
|
2847
|
-
const de_PutDetectorCommandError = async (output, context) => {
|
|
2848
|
-
const parsedOutput = {
|
|
2849
|
-
...output,
|
|
2850
|
-
body: await parseErrorBody(output.body, context),
|
|
2851
|
-
};
|
|
2852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
-
switch (errorCode) {
|
|
2854
|
-
case "AccessDeniedException":
|
|
2855
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ConflictException":
|
|
2858
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2859
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "InternalServerException":
|
|
2861
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "ThrottlingException":
|
|
2864
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "ValidationException":
|
|
2867
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2869
|
-
default:
|
|
2870
|
-
const parsedBody = parsedOutput.body;
|
|
2871
|
-
return throwDefaultError({
|
|
2872
|
-
output,
|
|
2873
|
-
parsedBody,
|
|
2874
|
-
errorCode,
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
|
-
};
|
|
2878
|
-
const de_PutEntityTypeCommand = async (output, context) => {
|
|
2879
|
-
if (output.statusCode >= 300) {
|
|
2880
|
-
return de_PutEntityTypeCommandError(output, context);
|
|
2881
|
-
}
|
|
2882
|
-
const data = await parseBody(output.body, context);
|
|
2883
|
-
let contents = {};
|
|
2884
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2885
|
-
const response = {
|
|
2886
|
-
$metadata: deserializeMetadata(output),
|
|
2887
|
-
...contents,
|
|
2888
|
-
};
|
|
2889
|
-
return response;
|
|
2890
|
-
};
|
|
2891
|
-
exports.de_PutEntityTypeCommand = de_PutEntityTypeCommand;
|
|
2892
|
-
const de_PutEntityTypeCommandError = async (output, context) => {
|
|
2893
|
-
const parsedOutput = {
|
|
2894
|
-
...output,
|
|
2895
|
-
body: await parseErrorBody(output.body, context),
|
|
2896
|
-
};
|
|
2897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
|
-
switch (errorCode) {
|
|
2899
|
-
case "AccessDeniedException":
|
|
2900
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ConflictException":
|
|
2903
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "InternalServerException":
|
|
2906
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ThrottlingException":
|
|
2909
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ValidationException":
|
|
2912
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2914
|
-
default:
|
|
2915
|
-
const parsedBody = parsedOutput.body;
|
|
2916
|
-
return throwDefaultError({
|
|
2917
|
-
output,
|
|
2918
|
-
parsedBody,
|
|
2919
|
-
errorCode,
|
|
2920
|
-
});
|
|
2921
|
-
}
|
|
2922
|
-
};
|
|
2923
|
-
const de_PutEventTypeCommand = async (output, context) => {
|
|
2924
|
-
if (output.statusCode >= 300) {
|
|
2925
|
-
return de_PutEventTypeCommandError(output, context);
|
|
2926
|
-
}
|
|
2927
|
-
const data = await parseBody(output.body, context);
|
|
2928
|
-
let contents = {};
|
|
2929
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2930
|
-
const response = {
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
...contents,
|
|
2933
|
-
};
|
|
2934
|
-
return response;
|
|
2935
|
-
};
|
|
2936
|
-
exports.de_PutEventTypeCommand = de_PutEventTypeCommand;
|
|
2937
|
-
const de_PutEventTypeCommandError = async (output, context) => {
|
|
2938
|
-
const parsedOutput = {
|
|
2939
|
-
...output,
|
|
2940
|
-
body: await parseErrorBody(output.body, context),
|
|
2941
|
-
};
|
|
2942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
|
-
switch (errorCode) {
|
|
2944
|
-
case "AccessDeniedException":
|
|
2945
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "ConflictException":
|
|
2948
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2949
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "InternalServerException":
|
|
2951
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2952
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "ThrottlingException":
|
|
2954
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2955
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2956
|
-
case "ValidationException":
|
|
2957
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2958
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2959
|
-
default:
|
|
2960
|
-
const parsedBody = parsedOutput.body;
|
|
2961
|
-
return throwDefaultError({
|
|
2962
|
-
output,
|
|
2963
|
-
parsedBody,
|
|
2964
|
-
errorCode,
|
|
2965
|
-
});
|
|
2966
|
-
}
|
|
2967
|
-
};
|
|
2968
|
-
const de_PutExternalModelCommand = async (output, context) => {
|
|
2969
|
-
if (output.statusCode >= 300) {
|
|
2970
|
-
return de_PutExternalModelCommandError(output, context);
|
|
2971
|
-
}
|
|
2972
|
-
const data = await parseBody(output.body, context);
|
|
2973
|
-
let contents = {};
|
|
2974
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2975
|
-
const response = {
|
|
2976
|
-
$metadata: deserializeMetadata(output),
|
|
2977
|
-
...contents,
|
|
2978
|
-
};
|
|
2979
|
-
return response;
|
|
2980
|
-
};
|
|
2981
|
-
exports.de_PutExternalModelCommand = de_PutExternalModelCommand;
|
|
2982
|
-
const de_PutExternalModelCommandError = async (output, context) => {
|
|
2983
|
-
const parsedOutput = {
|
|
2984
|
-
...output,
|
|
2985
|
-
body: await parseErrorBody(output.body, context),
|
|
2986
|
-
};
|
|
2987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2988
|
-
switch (errorCode) {
|
|
2989
|
-
case "AccessDeniedException":
|
|
2990
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "ConflictException":
|
|
2993
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2994
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "InternalServerException":
|
|
2996
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ThrottlingException":
|
|
2999
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ValidationException":
|
|
3002
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3004
|
-
default:
|
|
3005
|
-
const parsedBody = parsedOutput.body;
|
|
3006
|
-
return throwDefaultError({
|
|
3007
|
-
output,
|
|
3008
|
-
parsedBody,
|
|
3009
|
-
errorCode,
|
|
3010
|
-
});
|
|
3011
|
-
}
|
|
3012
|
-
};
|
|
3013
|
-
const de_PutKMSEncryptionKeyCommand = async (output, context) => {
|
|
3014
|
-
if (output.statusCode >= 300) {
|
|
3015
|
-
return de_PutKMSEncryptionKeyCommandError(output, context);
|
|
3016
|
-
}
|
|
3017
|
-
const data = await parseBody(output.body, context);
|
|
3018
|
-
let contents = {};
|
|
3019
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3020
|
-
const response = {
|
|
3021
|
-
$metadata: deserializeMetadata(output),
|
|
3022
|
-
...contents,
|
|
3023
|
-
};
|
|
3024
|
-
return response;
|
|
3025
|
-
};
|
|
3026
|
-
exports.de_PutKMSEncryptionKeyCommand = de_PutKMSEncryptionKeyCommand;
|
|
3027
|
-
const de_PutKMSEncryptionKeyCommandError = async (output, context) => {
|
|
3028
|
-
const parsedOutput = {
|
|
3029
|
-
...output,
|
|
3030
|
-
body: await parseErrorBody(output.body, context),
|
|
3031
|
-
};
|
|
3032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
|
-
switch (errorCode) {
|
|
3034
|
-
case "AccessDeniedException":
|
|
3035
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3036
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ConflictException":
|
|
3038
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3039
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "InternalServerException":
|
|
3041
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3042
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3043
|
-
case "ResourceNotFoundException":
|
|
3044
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3045
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "ThrottlingException":
|
|
3047
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3048
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "ValidationException":
|
|
3050
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3052
|
-
default:
|
|
3053
|
-
const parsedBody = parsedOutput.body;
|
|
3054
|
-
return throwDefaultError({
|
|
3055
|
-
output,
|
|
3056
|
-
parsedBody,
|
|
3057
|
-
errorCode,
|
|
3058
|
-
});
|
|
3059
|
-
}
|
|
3060
|
-
};
|
|
3061
|
-
const de_PutLabelCommand = async (output, context) => {
|
|
3062
|
-
if (output.statusCode >= 300) {
|
|
3063
|
-
return de_PutLabelCommandError(output, context);
|
|
3064
|
-
}
|
|
3065
|
-
const data = await parseBody(output.body, context);
|
|
3066
|
-
let contents = {};
|
|
3067
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3068
|
-
const response = {
|
|
3069
|
-
$metadata: deserializeMetadata(output),
|
|
3070
|
-
...contents,
|
|
3071
|
-
};
|
|
3072
|
-
return response;
|
|
3073
|
-
};
|
|
3074
|
-
exports.de_PutLabelCommand = de_PutLabelCommand;
|
|
3075
|
-
const de_PutLabelCommandError = async (output, context) => {
|
|
3076
|
-
const parsedOutput = {
|
|
3077
|
-
...output,
|
|
3078
|
-
body: await parseErrorBody(output.body, context),
|
|
3079
|
-
};
|
|
3080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3081
|
-
switch (errorCode) {
|
|
3082
|
-
case "AccessDeniedException":
|
|
3083
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3084
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "ConflictException":
|
|
3086
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3087
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "InternalServerException":
|
|
3089
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3090
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3091
|
-
case "ThrottlingException":
|
|
3092
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3093
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "ValidationException":
|
|
3095
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3096
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3097
|
-
default:
|
|
3098
|
-
const parsedBody = parsedOutput.body;
|
|
3099
|
-
return throwDefaultError({
|
|
3100
|
-
output,
|
|
3101
|
-
parsedBody,
|
|
3102
|
-
errorCode,
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
};
|
|
3106
|
-
const de_PutOutcomeCommand = async (output, context) => {
|
|
3107
|
-
if (output.statusCode >= 300) {
|
|
3108
|
-
return de_PutOutcomeCommandError(output, context);
|
|
3109
|
-
}
|
|
3110
|
-
const data = await parseBody(output.body, context);
|
|
3111
|
-
let contents = {};
|
|
3112
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3113
|
-
const response = {
|
|
3114
|
-
$metadata: deserializeMetadata(output),
|
|
3115
|
-
...contents,
|
|
3116
|
-
};
|
|
3117
|
-
return response;
|
|
3118
|
-
};
|
|
3119
|
-
exports.de_PutOutcomeCommand = de_PutOutcomeCommand;
|
|
3120
|
-
const de_PutOutcomeCommandError = async (output, context) => {
|
|
3121
|
-
const parsedOutput = {
|
|
3122
|
-
...output,
|
|
3123
|
-
body: await parseErrorBody(output.body, context),
|
|
3124
|
-
};
|
|
3125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
|
-
switch (errorCode) {
|
|
3127
|
-
case "AccessDeniedException":
|
|
3128
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "ConflictException":
|
|
3131
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3132
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "InternalServerException":
|
|
3134
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3135
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3136
|
-
case "ThrottlingException":
|
|
3137
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3138
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "ValidationException":
|
|
3140
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3141
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3142
|
-
default:
|
|
3143
|
-
const parsedBody = parsedOutput.body;
|
|
3144
|
-
return throwDefaultError({
|
|
3145
|
-
output,
|
|
3146
|
-
parsedBody,
|
|
3147
|
-
errorCode,
|
|
3148
|
-
});
|
|
3149
|
-
}
|
|
3150
|
-
};
|
|
3151
|
-
const de_SendEventCommand = async (output, context) => {
|
|
3152
|
-
if (output.statusCode >= 300) {
|
|
3153
|
-
return de_SendEventCommandError(output, context);
|
|
3154
|
-
}
|
|
3155
|
-
const data = await parseBody(output.body, context);
|
|
3156
|
-
let contents = {};
|
|
3157
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3158
|
-
const response = {
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
...contents,
|
|
3161
|
-
};
|
|
3162
|
-
return response;
|
|
3163
|
-
};
|
|
3164
|
-
exports.de_SendEventCommand = de_SendEventCommand;
|
|
3165
|
-
const de_SendEventCommandError = async (output, context) => {
|
|
3166
|
-
const parsedOutput = {
|
|
3167
|
-
...output,
|
|
3168
|
-
body: await parseErrorBody(output.body, context),
|
|
3169
|
-
};
|
|
3170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
-
switch (errorCode) {
|
|
3172
|
-
case "AccessDeniedException":
|
|
3173
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3174
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ConflictException":
|
|
3176
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "InternalServerException":
|
|
3179
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "ResourceNotFoundException":
|
|
3182
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "ThrottlingException":
|
|
3185
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3186
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3187
|
-
case "ValidationException":
|
|
3188
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3189
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3190
|
-
default:
|
|
3191
|
-
const parsedBody = parsedOutput.body;
|
|
3192
|
-
return throwDefaultError({
|
|
3193
|
-
output,
|
|
3194
|
-
parsedBody,
|
|
3195
|
-
errorCode,
|
|
3196
|
-
});
|
|
3197
|
-
}
|
|
3198
|
-
};
|
|
3199
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3200
|
-
if (output.statusCode >= 300) {
|
|
3201
|
-
return de_TagResourceCommandError(output, context);
|
|
3202
|
-
}
|
|
3203
|
-
const data = await parseBody(output.body, context);
|
|
3204
|
-
let contents = {};
|
|
3205
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3206
|
-
const response = {
|
|
3207
|
-
$metadata: deserializeMetadata(output),
|
|
3208
|
-
...contents,
|
|
3209
|
-
};
|
|
3210
|
-
return response;
|
|
3211
|
-
};
|
|
3212
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3213
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3214
|
-
const parsedOutput = {
|
|
3215
|
-
...output,
|
|
3216
|
-
body: await parseErrorBody(output.body, context),
|
|
3217
|
-
};
|
|
3218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3219
|
-
switch (errorCode) {
|
|
3220
|
-
case "AccessDeniedException":
|
|
3221
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "ResourceNotFoundException":
|
|
3224
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "ThrottlingException":
|
|
3227
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3228
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "ValidationException":
|
|
3230
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3232
|
-
default:
|
|
3233
|
-
const parsedBody = parsedOutput.body;
|
|
3234
|
-
return throwDefaultError({
|
|
3235
|
-
output,
|
|
3236
|
-
parsedBody,
|
|
3237
|
-
errorCode,
|
|
3238
|
-
});
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
3241
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3242
|
-
if (output.statusCode >= 300) {
|
|
3243
|
-
return de_UntagResourceCommandError(output, context);
|
|
3244
|
-
}
|
|
3245
|
-
const data = await parseBody(output.body, context);
|
|
3246
|
-
let contents = {};
|
|
3247
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3248
|
-
const response = {
|
|
3249
|
-
$metadata: deserializeMetadata(output),
|
|
3250
|
-
...contents,
|
|
3251
|
-
};
|
|
3252
|
-
return response;
|
|
3253
|
-
};
|
|
3254
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3255
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3256
|
-
const parsedOutput = {
|
|
3257
|
-
...output,
|
|
3258
|
-
body: await parseErrorBody(output.body, context),
|
|
3259
|
-
};
|
|
3260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "AccessDeniedException":
|
|
3263
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3264
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "ResourceNotFoundException":
|
|
3266
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "ThrottlingException":
|
|
3269
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3270
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "ValidationException":
|
|
3272
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3273
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3274
|
-
default:
|
|
3275
|
-
const parsedBody = parsedOutput.body;
|
|
3276
|
-
return throwDefaultError({
|
|
3277
|
-
output,
|
|
3278
|
-
parsedBody,
|
|
3279
|
-
errorCode,
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
};
|
|
3283
|
-
const de_UpdateDetectorVersionCommand = async (output, context) => {
|
|
3284
|
-
if (output.statusCode >= 300) {
|
|
3285
|
-
return de_UpdateDetectorVersionCommandError(output, context);
|
|
3286
|
-
}
|
|
3287
|
-
const data = await parseBody(output.body, context);
|
|
3288
|
-
let contents = {};
|
|
3289
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3290
|
-
const response = {
|
|
3291
|
-
$metadata: deserializeMetadata(output),
|
|
3292
|
-
...contents,
|
|
3293
|
-
};
|
|
3294
|
-
return response;
|
|
3295
|
-
};
|
|
3296
|
-
exports.de_UpdateDetectorVersionCommand = de_UpdateDetectorVersionCommand;
|
|
3297
|
-
const de_UpdateDetectorVersionCommandError = async (output, context) => {
|
|
3298
|
-
const parsedOutput = {
|
|
3299
|
-
...output,
|
|
3300
|
-
body: await parseErrorBody(output.body, context),
|
|
3301
|
-
};
|
|
3302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
|
-
switch (errorCode) {
|
|
3304
|
-
case "AccessDeniedException":
|
|
3305
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ConflictException":
|
|
3308
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3309
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "InternalServerException":
|
|
3311
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3312
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "ResourceNotFoundException":
|
|
3314
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ThrottlingException":
|
|
3317
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3318
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ValidationException":
|
|
3320
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3322
|
-
default:
|
|
3323
|
-
const parsedBody = parsedOutput.body;
|
|
3324
|
-
return throwDefaultError({
|
|
3325
|
-
output,
|
|
3326
|
-
parsedBody,
|
|
3327
|
-
errorCode,
|
|
3328
|
-
});
|
|
3329
|
-
}
|
|
3330
|
-
};
|
|
3331
|
-
const de_UpdateDetectorVersionMetadataCommand = async (output, context) => {
|
|
3332
|
-
if (output.statusCode >= 300) {
|
|
3333
|
-
return de_UpdateDetectorVersionMetadataCommandError(output, context);
|
|
3334
|
-
}
|
|
3335
|
-
const data = await parseBody(output.body, context);
|
|
3336
|
-
let contents = {};
|
|
3337
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3338
|
-
const response = {
|
|
3339
|
-
$metadata: deserializeMetadata(output),
|
|
3340
|
-
...contents,
|
|
3341
|
-
};
|
|
3342
|
-
return response;
|
|
3343
|
-
};
|
|
3344
|
-
exports.de_UpdateDetectorVersionMetadataCommand = de_UpdateDetectorVersionMetadataCommand;
|
|
3345
|
-
const de_UpdateDetectorVersionMetadataCommandError = async (output, context) => {
|
|
3346
|
-
const parsedOutput = {
|
|
3347
|
-
...output,
|
|
3348
|
-
body: await parseErrorBody(output.body, context),
|
|
3349
|
-
};
|
|
3350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3351
|
-
switch (errorCode) {
|
|
3352
|
-
case "AccessDeniedException":
|
|
3353
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3354
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "ConflictException":
|
|
3356
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3357
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "InternalServerException":
|
|
3359
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3360
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ThrottlingException":
|
|
3362
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3363
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ValidationException":
|
|
3365
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3367
|
-
default:
|
|
3368
|
-
const parsedBody = parsedOutput.body;
|
|
3369
|
-
return throwDefaultError({
|
|
3370
|
-
output,
|
|
3371
|
-
parsedBody,
|
|
3372
|
-
errorCode,
|
|
3373
|
-
});
|
|
3374
|
-
}
|
|
3375
|
-
};
|
|
3376
|
-
const de_UpdateDetectorVersionStatusCommand = async (output, context) => {
|
|
3377
|
-
if (output.statusCode >= 300) {
|
|
3378
|
-
return de_UpdateDetectorVersionStatusCommandError(output, context);
|
|
3379
|
-
}
|
|
3380
|
-
const data = await parseBody(output.body, context);
|
|
3381
|
-
let contents = {};
|
|
3382
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3383
|
-
const response = {
|
|
3384
|
-
$metadata: deserializeMetadata(output),
|
|
3385
|
-
...contents,
|
|
3386
|
-
};
|
|
3387
|
-
return response;
|
|
3388
|
-
};
|
|
3389
|
-
exports.de_UpdateDetectorVersionStatusCommand = de_UpdateDetectorVersionStatusCommand;
|
|
3390
|
-
const de_UpdateDetectorVersionStatusCommandError = async (output, context) => {
|
|
3391
|
-
const parsedOutput = {
|
|
3392
|
-
...output,
|
|
3393
|
-
body: await parseErrorBody(output.body, context),
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "AccessDeniedException":
|
|
3398
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ConflictException":
|
|
3401
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3402
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "InternalServerException":
|
|
3404
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3405
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ResourceNotFoundException":
|
|
3407
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "ThrottlingException":
|
|
3410
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3411
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ValidationException":
|
|
3413
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3414
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3415
|
-
default:
|
|
3416
|
-
const parsedBody = parsedOutput.body;
|
|
3417
|
-
return throwDefaultError({
|
|
3418
|
-
output,
|
|
3419
|
-
parsedBody,
|
|
3420
|
-
errorCode,
|
|
3421
|
-
});
|
|
3422
|
-
}
|
|
3423
|
-
};
|
|
3424
|
-
const de_UpdateEventLabelCommand = async (output, context) => {
|
|
3425
|
-
if (output.statusCode >= 300) {
|
|
3426
|
-
return de_UpdateEventLabelCommandError(output, context);
|
|
3427
|
-
}
|
|
3428
|
-
const data = await parseBody(output.body, context);
|
|
3429
|
-
let contents = {};
|
|
3430
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3431
|
-
const response = {
|
|
3432
|
-
$metadata: deserializeMetadata(output),
|
|
3433
|
-
...contents,
|
|
3434
|
-
};
|
|
3435
|
-
return response;
|
|
3436
|
-
};
|
|
3437
|
-
exports.de_UpdateEventLabelCommand = de_UpdateEventLabelCommand;
|
|
3438
|
-
const de_UpdateEventLabelCommandError = async (output, context) => {
|
|
3439
|
-
const parsedOutput = {
|
|
3440
|
-
...output,
|
|
3441
|
-
body: await parseErrorBody(output.body, context),
|
|
3442
|
-
};
|
|
3443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3444
|
-
switch (errorCode) {
|
|
3445
|
-
case "AccessDeniedException":
|
|
3446
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3447
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "ConflictException":
|
|
3449
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3450
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "InternalServerException":
|
|
3452
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3453
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "ResourceNotFoundException":
|
|
3455
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "ThrottlingException":
|
|
3458
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3459
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ValidationException":
|
|
3461
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3462
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3463
|
-
default:
|
|
3464
|
-
const parsedBody = parsedOutput.body;
|
|
3465
|
-
return throwDefaultError({
|
|
3466
|
-
output,
|
|
3467
|
-
parsedBody,
|
|
3468
|
-
errorCode,
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3471
|
-
};
|
|
3472
|
-
const de_UpdateListCommand = async (output, context) => {
|
|
3473
|
-
if (output.statusCode >= 300) {
|
|
3474
|
-
return de_UpdateListCommandError(output, context);
|
|
3475
|
-
}
|
|
3476
|
-
const data = await parseBody(output.body, context);
|
|
3477
|
-
let contents = {};
|
|
3478
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3479
|
-
const response = {
|
|
3480
|
-
$metadata: deserializeMetadata(output),
|
|
3481
|
-
...contents,
|
|
3482
|
-
};
|
|
3483
|
-
return response;
|
|
3484
|
-
};
|
|
3485
|
-
exports.de_UpdateListCommand = de_UpdateListCommand;
|
|
3486
|
-
const de_UpdateListCommandError = async (output, context) => {
|
|
3487
|
-
const parsedOutput = {
|
|
3488
|
-
...output,
|
|
3489
|
-
body: await parseErrorBody(output.body, context),
|
|
3490
|
-
};
|
|
3491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
|
-
switch (errorCode) {
|
|
3493
|
-
case "AccessDeniedException":
|
|
3494
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "ConflictException":
|
|
3497
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3498
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "InternalServerException":
|
|
3500
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3501
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "ResourceNotFoundException":
|
|
3503
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3504
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3505
|
-
case "ThrottlingException":
|
|
3506
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3507
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3508
|
-
case "ValidationException":
|
|
3509
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3510
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3511
|
-
default:
|
|
3512
|
-
const parsedBody = parsedOutput.body;
|
|
3513
|
-
return throwDefaultError({
|
|
3514
|
-
output,
|
|
3515
|
-
parsedBody,
|
|
3516
|
-
errorCode,
|
|
3517
|
-
});
|
|
3518
|
-
}
|
|
3519
|
-
};
|
|
3520
|
-
const de_UpdateModelCommand = async (output, context) => {
|
|
3521
|
-
if (output.statusCode >= 300) {
|
|
3522
|
-
return de_UpdateModelCommandError(output, context);
|
|
3523
|
-
}
|
|
3524
|
-
const data = await parseBody(output.body, context);
|
|
3525
|
-
let contents = {};
|
|
3526
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3527
|
-
const response = {
|
|
3528
|
-
$metadata: deserializeMetadata(output),
|
|
3529
|
-
...contents,
|
|
3530
|
-
};
|
|
3531
|
-
return response;
|
|
3532
|
-
};
|
|
3533
|
-
exports.de_UpdateModelCommand = de_UpdateModelCommand;
|
|
3534
|
-
const de_UpdateModelCommandError = async (output, context) => {
|
|
3535
|
-
const parsedOutput = {
|
|
3536
|
-
...output,
|
|
3537
|
-
body: await parseErrorBody(output.body, context),
|
|
3538
|
-
};
|
|
3539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
|
-
switch (errorCode) {
|
|
3541
|
-
case "AccessDeniedException":
|
|
3542
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "ConflictException":
|
|
3545
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3546
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "InternalServerException":
|
|
3548
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "ResourceNotFoundException":
|
|
3551
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "ThrottlingException":
|
|
3554
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3555
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "ValidationException":
|
|
3557
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3558
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3559
|
-
default:
|
|
3560
|
-
const parsedBody = parsedOutput.body;
|
|
3561
|
-
return throwDefaultError({
|
|
3562
|
-
output,
|
|
3563
|
-
parsedBody,
|
|
3564
|
-
errorCode,
|
|
3565
|
-
});
|
|
3566
|
-
}
|
|
3567
|
-
};
|
|
3568
|
-
const de_UpdateModelVersionCommand = async (output, context) => {
|
|
3569
|
-
if (output.statusCode >= 300) {
|
|
3570
|
-
return de_UpdateModelVersionCommandError(output, context);
|
|
3571
|
-
}
|
|
3572
|
-
const data = await parseBody(output.body, context);
|
|
3573
|
-
let contents = {};
|
|
3574
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3575
|
-
const response = {
|
|
3576
|
-
$metadata: deserializeMetadata(output),
|
|
3577
|
-
...contents,
|
|
3578
|
-
};
|
|
3579
|
-
return response;
|
|
3580
|
-
};
|
|
3581
|
-
exports.de_UpdateModelVersionCommand = de_UpdateModelVersionCommand;
|
|
3582
|
-
const de_UpdateModelVersionCommandError = async (output, context) => {
|
|
3583
|
-
const parsedOutput = {
|
|
3584
|
-
...output,
|
|
3585
|
-
body: await parseErrorBody(output.body, context),
|
|
3586
|
-
};
|
|
3587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3588
|
-
switch (errorCode) {
|
|
3589
|
-
case "AccessDeniedException":
|
|
3590
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3592
|
-
case "ConflictException":
|
|
3593
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3594
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3595
|
-
case "InternalServerException":
|
|
3596
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "ResourceNotFoundException":
|
|
3599
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "ThrottlingException":
|
|
3602
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3603
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "ValidationException":
|
|
3605
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3606
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3607
|
-
default:
|
|
3608
|
-
const parsedBody = parsedOutput.body;
|
|
3609
|
-
return throwDefaultError({
|
|
3610
|
-
output,
|
|
3611
|
-
parsedBody,
|
|
3612
|
-
errorCode,
|
|
3613
|
-
});
|
|
3614
|
-
}
|
|
3615
|
-
};
|
|
3616
|
-
const de_UpdateModelVersionStatusCommand = async (output, context) => {
|
|
3617
|
-
if (output.statusCode >= 300) {
|
|
3618
|
-
return de_UpdateModelVersionStatusCommandError(output, context);
|
|
3619
|
-
}
|
|
3620
|
-
const data = await parseBody(output.body, context);
|
|
3621
|
-
let contents = {};
|
|
3622
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3623
|
-
const response = {
|
|
3624
|
-
$metadata: deserializeMetadata(output),
|
|
3625
|
-
...contents,
|
|
3626
|
-
};
|
|
3627
|
-
return response;
|
|
3628
|
-
};
|
|
3629
|
-
exports.de_UpdateModelVersionStatusCommand = de_UpdateModelVersionStatusCommand;
|
|
3630
|
-
const de_UpdateModelVersionStatusCommandError = async (output, context) => {
|
|
3631
|
-
const parsedOutput = {
|
|
3632
|
-
...output,
|
|
3633
|
-
body: await parseErrorBody(output.body, context),
|
|
3634
|
-
};
|
|
3635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3636
|
-
switch (errorCode) {
|
|
3637
|
-
case "AccessDeniedException":
|
|
3638
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3639
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "ConflictException":
|
|
3641
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3642
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3643
|
-
case "InternalServerException":
|
|
3644
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3645
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3646
|
-
case "ResourceNotFoundException":
|
|
3647
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3648
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3649
|
-
case "ThrottlingException":
|
|
3650
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3651
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "ValidationException":
|
|
3653
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3654
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3655
|
-
default:
|
|
3656
|
-
const parsedBody = parsedOutput.body;
|
|
3657
|
-
return throwDefaultError({
|
|
3658
|
-
output,
|
|
3659
|
-
parsedBody,
|
|
3660
|
-
errorCode,
|
|
3661
|
-
});
|
|
3662
|
-
}
|
|
3663
|
-
};
|
|
3664
|
-
const de_UpdateRuleMetadataCommand = async (output, context) => {
|
|
3665
|
-
if (output.statusCode >= 300) {
|
|
3666
|
-
return de_UpdateRuleMetadataCommandError(output, context);
|
|
3667
|
-
}
|
|
3668
|
-
const data = await parseBody(output.body, context);
|
|
3669
|
-
let contents = {};
|
|
3670
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3671
|
-
const response = {
|
|
3672
|
-
$metadata: deserializeMetadata(output),
|
|
3673
|
-
...contents,
|
|
3674
|
-
};
|
|
3675
|
-
return response;
|
|
3676
|
-
};
|
|
3677
|
-
exports.de_UpdateRuleMetadataCommand = de_UpdateRuleMetadataCommand;
|
|
3678
|
-
const de_UpdateRuleMetadataCommandError = async (output, context) => {
|
|
3679
|
-
const parsedOutput = {
|
|
3680
|
-
...output,
|
|
3681
|
-
body: await parseErrorBody(output.body, context),
|
|
3682
|
-
};
|
|
3683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3684
|
-
switch (errorCode) {
|
|
3685
|
-
case "AccessDeniedException":
|
|
3686
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "ConflictException":
|
|
3689
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3690
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "InternalServerException":
|
|
3692
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3694
|
-
case "ResourceNotFoundException":
|
|
3695
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3697
|
-
case "ThrottlingException":
|
|
3698
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3700
|
-
case "ValidationException":
|
|
3701
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3703
|
-
default:
|
|
3704
|
-
const parsedBody = parsedOutput.body;
|
|
3705
|
-
return throwDefaultError({
|
|
3706
|
-
output,
|
|
3707
|
-
parsedBody,
|
|
3708
|
-
errorCode,
|
|
3709
|
-
});
|
|
3710
|
-
}
|
|
3711
|
-
};
|
|
3712
|
-
const de_UpdateRuleVersionCommand = async (output, context) => {
|
|
3713
|
-
if (output.statusCode >= 300) {
|
|
3714
|
-
return de_UpdateRuleVersionCommandError(output, context);
|
|
3715
|
-
}
|
|
3716
|
-
const data = await parseBody(output.body, context);
|
|
3717
|
-
let contents = {};
|
|
3718
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3719
|
-
const response = {
|
|
3720
|
-
$metadata: deserializeMetadata(output),
|
|
3721
|
-
...contents,
|
|
3722
|
-
};
|
|
3723
|
-
return response;
|
|
3724
|
-
};
|
|
3725
|
-
exports.de_UpdateRuleVersionCommand = de_UpdateRuleVersionCommand;
|
|
3726
|
-
const de_UpdateRuleVersionCommandError = async (output, context) => {
|
|
3727
|
-
const parsedOutput = {
|
|
3728
|
-
...output,
|
|
3729
|
-
body: await parseErrorBody(output.body, context),
|
|
3730
|
-
};
|
|
3731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3732
|
-
switch (errorCode) {
|
|
3733
|
-
case "AccessDeniedException":
|
|
3734
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3735
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3736
|
-
case "ConflictException":
|
|
3737
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3738
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3739
|
-
case "InternalServerException":
|
|
3740
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3742
|
-
case "ResourceNotFoundException":
|
|
3743
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3744
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "ThrottlingException":
|
|
3746
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3747
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "ValidationException":
|
|
3749
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3750
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3751
|
-
default:
|
|
3752
|
-
const parsedBody = parsedOutput.body;
|
|
3753
|
-
return throwDefaultError({
|
|
3754
|
-
output,
|
|
3755
|
-
parsedBody,
|
|
3756
|
-
errorCode,
|
|
3757
|
-
});
|
|
3758
|
-
}
|
|
3759
|
-
};
|
|
3760
|
-
const de_UpdateVariableCommand = async (output, context) => {
|
|
3761
|
-
if (output.statusCode >= 300) {
|
|
3762
|
-
return de_UpdateVariableCommandError(output, context);
|
|
3763
|
-
}
|
|
3764
|
-
const data = await parseBody(output.body, context);
|
|
3765
|
-
let contents = {};
|
|
3766
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3767
|
-
const response = {
|
|
3768
|
-
$metadata: deserializeMetadata(output),
|
|
3769
|
-
...contents,
|
|
3770
|
-
};
|
|
3771
|
-
return response;
|
|
3772
|
-
};
|
|
3773
|
-
exports.de_UpdateVariableCommand = de_UpdateVariableCommand;
|
|
3774
|
-
const de_UpdateVariableCommandError = async (output, context) => {
|
|
3775
|
-
const parsedOutput = {
|
|
3776
|
-
...output,
|
|
3777
|
-
body: await parseErrorBody(output.body, context),
|
|
3778
|
-
};
|
|
3779
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
|
-
switch (errorCode) {
|
|
3781
|
-
case "AccessDeniedException":
|
|
3782
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3783
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "ConflictException":
|
|
3785
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3786
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "InternalServerException":
|
|
3788
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3789
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3790
|
-
case "ResourceNotFoundException":
|
|
3791
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3792
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3793
|
-
case "ThrottlingException":
|
|
3794
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3795
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "ValidationException":
|
|
3797
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3798
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3799
|
-
default:
|
|
3800
|
-
const parsedBody = parsedOutput.body;
|
|
3801
|
-
return throwDefaultError({
|
|
3802
|
-
output,
|
|
3803
|
-
parsedBody,
|
|
3804
|
-
errorCode,
|
|
3805
|
-
});
|
|
3806
|
-
}
|
|
3807
|
-
};
|
|
3808
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3809
|
-
const body = parsedOutput.body;
|
|
3810
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3811
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3812
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3813
|
-
...deserialized,
|
|
3814
|
-
});
|
|
3815
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3816
|
-
};
|
|
3817
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3818
|
-
const body = parsedOutput.body;
|
|
3819
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3820
|
-
const exception = new models_0_1.ConflictException({
|
|
3821
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3822
|
-
...deserialized,
|
|
3823
|
-
});
|
|
3824
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3825
|
-
};
|
|
3826
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3827
|
-
const body = parsedOutput.body;
|
|
3828
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3829
|
-
const exception = new models_0_1.InternalServerException({
|
|
3830
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3831
|
-
...deserialized,
|
|
3832
|
-
});
|
|
3833
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3834
|
-
};
|
|
3835
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3836
|
-
const body = parsedOutput.body;
|
|
3837
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3838
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3839
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3840
|
-
...deserialized,
|
|
3841
|
-
});
|
|
3842
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3843
|
-
};
|
|
3844
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3845
|
-
const body = parsedOutput.body;
|
|
3846
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3847
|
-
const exception = new models_0_1.ResourceUnavailableException({
|
|
3848
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3849
|
-
...deserialized,
|
|
3850
|
-
});
|
|
3851
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3852
|
-
};
|
|
3853
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3854
|
-
const body = parsedOutput.body;
|
|
3855
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3856
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3857
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3858
|
-
...deserialized,
|
|
3859
|
-
});
|
|
3860
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3861
|
-
};
|
|
3862
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3863
|
-
const body = parsedOutput.body;
|
|
3864
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3865
|
-
const exception = new models_0_1.ValidationException({
|
|
3866
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3867
|
-
...deserialized,
|
|
3868
|
-
});
|
|
3869
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3870
|
-
};
|
|
3871
|
-
const se_ExternalModelEndpointDataBlobMap = (input, context) => {
|
|
3872
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3873
|
-
if (value === null) {
|
|
3874
|
-
return acc;
|
|
3875
|
-
}
|
|
3876
|
-
acc[key] = se_ModelEndpointDataBlob(value, context);
|
|
3877
|
-
return acc;
|
|
3878
|
-
}, {});
|
|
3879
|
-
};
|
|
3880
|
-
const se_GetEventPredictionRequest = (input, context) => {
|
|
3881
|
-
return (0, smithy_client_1.take)(input, {
|
|
3882
|
-
detectorId: [],
|
|
3883
|
-
detectorVersionId: [],
|
|
3884
|
-
entities: smithy_client_1._json,
|
|
3885
|
-
eventId: [],
|
|
3886
|
-
eventTimestamp: [],
|
|
3887
|
-
eventTypeName: [],
|
|
3888
|
-
eventVariables: smithy_client_1._json,
|
|
3889
|
-
externalModelEndpointDataBlobs: (_) => se_ExternalModelEndpointDataBlobMap(_, context),
|
|
3890
|
-
});
|
|
3891
|
-
};
|
|
3892
|
-
const se_ModelEndpointDataBlob = (input, context) => {
|
|
3893
|
-
return (0, smithy_client_1.take)(input, {
|
|
3894
|
-
byteBuffer: context.base64Encoder,
|
|
3895
|
-
contentType: [],
|
|
3896
|
-
});
|
|
3897
|
-
};
|
|
3898
|
-
const de_AggregatedLogOddsMetric = (output, context) => {
|
|
3899
|
-
return (0, smithy_client_1.take)(output, {
|
|
3900
|
-
aggregatedVariablesImportance: smithy_client_1.limitedParseFloat32,
|
|
3901
|
-
variableNames: smithy_client_1._json,
|
|
3902
|
-
});
|
|
3903
|
-
};
|
|
3904
|
-
const de_AggregatedVariablesImpactExplanation = (output, context) => {
|
|
3905
|
-
return (0, smithy_client_1.take)(output, {
|
|
3906
|
-
eventVariableNames: smithy_client_1._json,
|
|
3907
|
-
logOddsImpact: smithy_client_1.limitedParseFloat32,
|
|
3908
|
-
relativeImpact: smithy_client_1.expectString,
|
|
3909
|
-
});
|
|
3910
|
-
};
|
|
3911
|
-
const de_AggregatedVariablesImportanceMetrics = (output, context) => {
|
|
3912
|
-
return (0, smithy_client_1.take)(output, {
|
|
3913
|
-
logOddsMetrics: (_) => de_ListOfAggregatedLogOddsMetrics(_, context),
|
|
3914
|
-
});
|
|
3915
|
-
};
|
|
3916
|
-
const de_ATIMetricDataPoint = (output, context) => {
|
|
3917
|
-
return (0, smithy_client_1.take)(output, {
|
|
3918
|
-
adr: smithy_client_1.limitedParseFloat32,
|
|
3919
|
-
atodr: smithy_client_1.limitedParseFloat32,
|
|
3920
|
-
cr: smithy_client_1.limitedParseFloat32,
|
|
3921
|
-
threshold: smithy_client_1.limitedParseFloat32,
|
|
3922
|
-
});
|
|
3923
|
-
};
|
|
3924
|
-
const de_ATIMetricDataPointsList = (output, context) => {
|
|
3925
|
-
const retVal = (output || [])
|
|
3926
|
-
.filter((e) => e != null)
|
|
3927
|
-
.map((entry) => {
|
|
3928
|
-
return de_ATIMetricDataPoint(entry, context);
|
|
3929
|
-
});
|
|
3930
|
-
return retVal;
|
|
3931
|
-
};
|
|
3932
|
-
const de_ATIModelPerformance = (output, context) => {
|
|
3933
|
-
return (0, smithy_client_1.take)(output, {
|
|
3934
|
-
asi: smithy_client_1.limitedParseFloat32,
|
|
3935
|
-
});
|
|
3936
|
-
};
|
|
3937
|
-
const de_ATITrainingMetricsValue = (output, context) => {
|
|
3938
|
-
return (0, smithy_client_1.take)(output, {
|
|
3939
|
-
metricDataPoints: (_) => de_ATIMetricDataPointsList(_, context),
|
|
3940
|
-
modelPerformance: (_) => de_ATIModelPerformance(_, context),
|
|
3941
|
-
});
|
|
3942
|
-
};
|
|
3943
|
-
const de_DescribeModelVersionsResult = (output, context) => {
|
|
3944
|
-
return (0, smithy_client_1.take)(output, {
|
|
3945
|
-
modelVersionDetails: (_) => de_modelVersionDetailList(_, context),
|
|
3946
|
-
nextToken: smithy_client_1.expectString,
|
|
3947
|
-
});
|
|
3948
|
-
};
|
|
3949
|
-
const de_EvaluatedModelVersion = (output, context) => {
|
|
3950
|
-
return (0, smithy_client_1.take)(output, {
|
|
3951
|
-
evaluations: (_) => de_ListOfModelVersionEvaluations(_, context),
|
|
3952
|
-
modelId: smithy_client_1.expectString,
|
|
3953
|
-
modelType: smithy_client_1.expectString,
|
|
3954
|
-
modelVersion: smithy_client_1.expectString,
|
|
3955
|
-
});
|
|
3956
|
-
};
|
|
3957
|
-
const de_GetEventPredictionMetadataResult = (output, context) => {
|
|
3958
|
-
return (0, smithy_client_1.take)(output, {
|
|
3959
|
-
detectorId: smithy_client_1.expectString,
|
|
3960
|
-
detectorVersionId: smithy_client_1.expectString,
|
|
3961
|
-
detectorVersionStatus: smithy_client_1.expectString,
|
|
3962
|
-
entityId: smithy_client_1.expectString,
|
|
3963
|
-
entityType: smithy_client_1.expectString,
|
|
3964
|
-
evaluatedExternalModels: smithy_client_1._json,
|
|
3965
|
-
evaluatedModelVersions: (_) => de_ListOfEvaluatedModelVersions(_, context),
|
|
3966
|
-
eventId: smithy_client_1.expectString,
|
|
3967
|
-
eventTimestamp: smithy_client_1.expectString,
|
|
3968
|
-
eventTypeName: smithy_client_1.expectString,
|
|
3969
|
-
eventVariables: smithy_client_1._json,
|
|
3970
|
-
outcomes: smithy_client_1._json,
|
|
3971
|
-
predictionTimestamp: smithy_client_1.expectString,
|
|
3972
|
-
ruleExecutionMode: smithy_client_1.expectString,
|
|
3973
|
-
rules: smithy_client_1._json,
|
|
3974
|
-
});
|
|
3975
|
-
};
|
|
3976
|
-
const de_GetEventPredictionResult = (output, context) => {
|
|
3977
|
-
return (0, smithy_client_1.take)(output, {
|
|
3978
|
-
externalModelOutputs: smithy_client_1._json,
|
|
3979
|
-
modelScores: (_) => de_ListOfModelScores(_, context),
|
|
3980
|
-
ruleResults: smithy_client_1._json,
|
|
3981
|
-
});
|
|
3982
|
-
};
|
|
3983
|
-
const de_ListOfAggregatedLogOddsMetrics = (output, context) => {
|
|
3984
|
-
const retVal = (output || [])
|
|
3985
|
-
.filter((e) => e != null)
|
|
3986
|
-
.map((entry) => {
|
|
3987
|
-
return de_AggregatedLogOddsMetric(entry, context);
|
|
3988
|
-
});
|
|
3989
|
-
return retVal;
|
|
3990
|
-
};
|
|
3991
|
-
const de_ListOfAggregatedVariablesImpactExplanations = (output, context) => {
|
|
3992
|
-
const retVal = (output || [])
|
|
3993
|
-
.filter((e) => e != null)
|
|
3994
|
-
.map((entry) => {
|
|
3995
|
-
return de_AggregatedVariablesImpactExplanation(entry, context);
|
|
3996
|
-
});
|
|
3997
|
-
return retVal;
|
|
3998
|
-
};
|
|
3999
|
-
const de_ListOfEvaluatedModelVersions = (output, context) => {
|
|
4000
|
-
const retVal = (output || [])
|
|
4001
|
-
.filter((e) => e != null)
|
|
4002
|
-
.map((entry) => {
|
|
4003
|
-
return de_EvaluatedModelVersion(entry, context);
|
|
4004
|
-
});
|
|
4005
|
-
return retVal;
|
|
4006
|
-
};
|
|
4007
|
-
const de_ListOfLogOddsMetrics = (output, context) => {
|
|
4008
|
-
const retVal = (output || [])
|
|
4009
|
-
.filter((e) => e != null)
|
|
4010
|
-
.map((entry) => {
|
|
4011
|
-
return de_LogOddsMetric(entry, context);
|
|
4012
|
-
});
|
|
4013
|
-
return retVal;
|
|
4014
|
-
};
|
|
4015
|
-
const de_ListOfModelScores = (output, context) => {
|
|
4016
|
-
const retVal = (output || [])
|
|
4017
|
-
.filter((e) => e != null)
|
|
4018
|
-
.map((entry) => {
|
|
4019
|
-
return de_ModelScores(entry, context);
|
|
4020
|
-
});
|
|
4021
|
-
return retVal;
|
|
4022
|
-
};
|
|
4023
|
-
const de_ListOfModelVersionEvaluations = (output, context) => {
|
|
4024
|
-
const retVal = (output || [])
|
|
4025
|
-
.filter((e) => e != null)
|
|
4026
|
-
.map((entry) => {
|
|
4027
|
-
return de_ModelVersionEvaluation(entry, context);
|
|
4028
|
-
});
|
|
4029
|
-
return retVal;
|
|
4030
|
-
};
|
|
4031
|
-
const de_listOfVariableImpactExplanations = (output, context) => {
|
|
4032
|
-
const retVal = (output || [])
|
|
4033
|
-
.filter((e) => e != null)
|
|
4034
|
-
.map((entry) => {
|
|
4035
|
-
return de_VariableImpactExplanation(entry, context);
|
|
4036
|
-
});
|
|
4037
|
-
return retVal;
|
|
4038
|
-
};
|
|
4039
|
-
const de_LogOddsMetric = (output, context) => {
|
|
4040
|
-
return (0, smithy_client_1.take)(output, {
|
|
4041
|
-
variableImportance: smithy_client_1.limitedParseFloat32,
|
|
4042
|
-
variableName: smithy_client_1.expectString,
|
|
4043
|
-
variableType: smithy_client_1.expectString,
|
|
4044
|
-
});
|
|
4045
|
-
};
|
|
4046
|
-
const de_MetricDataPoint = (output, context) => {
|
|
4047
|
-
return (0, smithy_client_1.take)(output, {
|
|
4048
|
-
fpr: smithy_client_1.limitedParseFloat32,
|
|
4049
|
-
precision: smithy_client_1.limitedParseFloat32,
|
|
4050
|
-
threshold: smithy_client_1.limitedParseFloat32,
|
|
4051
|
-
tpr: smithy_client_1.limitedParseFloat32,
|
|
4052
|
-
});
|
|
4053
|
-
};
|
|
4054
|
-
const de_metricDataPointsList = (output, context) => {
|
|
4055
|
-
const retVal = (output || [])
|
|
4056
|
-
.filter((e) => e != null)
|
|
4057
|
-
.map((entry) => {
|
|
4058
|
-
return de_MetricDataPoint(entry, context);
|
|
4059
|
-
});
|
|
4060
|
-
return retVal;
|
|
4061
|
-
};
|
|
4062
|
-
const de_ModelPredictionMap = (output, context) => {
|
|
4063
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4064
|
-
if (value === null) {
|
|
4065
|
-
return acc;
|
|
4066
|
-
}
|
|
4067
|
-
acc[key] = (0, smithy_client_1.limitedParseFloat32)(value);
|
|
4068
|
-
return acc;
|
|
4069
|
-
}, {});
|
|
4070
|
-
};
|
|
4071
|
-
const de_ModelScores = (output, context) => {
|
|
4072
|
-
return (0, smithy_client_1.take)(output, {
|
|
4073
|
-
modelVersion: smithy_client_1._json,
|
|
4074
|
-
scores: (_) => de_ModelPredictionMap(_, context),
|
|
4075
|
-
});
|
|
4076
|
-
};
|
|
4077
|
-
const de_ModelVersionDetail = (output, context) => {
|
|
4078
|
-
return (0, smithy_client_1.take)(output, {
|
|
4079
|
-
arn: smithy_client_1.expectString,
|
|
4080
|
-
createdTime: smithy_client_1.expectString,
|
|
4081
|
-
externalEventsDetail: smithy_client_1._json,
|
|
4082
|
-
ingestedEventsDetail: smithy_client_1._json,
|
|
4083
|
-
lastUpdatedTime: smithy_client_1.expectString,
|
|
4084
|
-
modelId: smithy_client_1.expectString,
|
|
4085
|
-
modelType: smithy_client_1.expectString,
|
|
4086
|
-
modelVersionNumber: smithy_client_1.expectString,
|
|
4087
|
-
status: smithy_client_1.expectString,
|
|
4088
|
-
trainingDataSchema: smithy_client_1._json,
|
|
4089
|
-
trainingDataSource: smithy_client_1.expectString,
|
|
4090
|
-
trainingResult: (_) => de_TrainingResult(_, context),
|
|
4091
|
-
trainingResultV2: (_) => de_TrainingResultV2(_, context),
|
|
4092
|
-
});
|
|
4093
|
-
};
|
|
4094
|
-
const de_modelVersionDetailList = (output, context) => {
|
|
4095
|
-
const retVal = (output || [])
|
|
4096
|
-
.filter((e) => e != null)
|
|
4097
|
-
.map((entry) => {
|
|
4098
|
-
return de_ModelVersionDetail(entry, context);
|
|
4099
|
-
});
|
|
4100
|
-
return retVal;
|
|
4101
|
-
};
|
|
4102
|
-
const de_ModelVersionEvaluation = (output, context) => {
|
|
4103
|
-
return (0, smithy_client_1.take)(output, {
|
|
4104
|
-
evaluationScore: smithy_client_1.expectString,
|
|
4105
|
-
outputVariableName: smithy_client_1.expectString,
|
|
4106
|
-
predictionExplanations: (_) => de_PredictionExplanations(_, context),
|
|
4107
|
-
});
|
|
4108
|
-
};
|
|
4109
|
-
const de_OFIMetricDataPoint = (output, context) => {
|
|
4110
|
-
return (0, smithy_client_1.take)(output, {
|
|
4111
|
-
fpr: smithy_client_1.limitedParseFloat32,
|
|
4112
|
-
precision: smithy_client_1.limitedParseFloat32,
|
|
4113
|
-
threshold: smithy_client_1.limitedParseFloat32,
|
|
4114
|
-
tpr: smithy_client_1.limitedParseFloat32,
|
|
4115
|
-
});
|
|
4116
|
-
};
|
|
4117
|
-
const de_OFIMetricDataPointsList = (output, context) => {
|
|
4118
|
-
const retVal = (output || [])
|
|
4119
|
-
.filter((e) => e != null)
|
|
4120
|
-
.map((entry) => {
|
|
4121
|
-
return de_OFIMetricDataPoint(entry, context);
|
|
4122
|
-
});
|
|
4123
|
-
return retVal;
|
|
4124
|
-
};
|
|
4125
|
-
const de_OFIModelPerformance = (output, context) => {
|
|
4126
|
-
return (0, smithy_client_1.take)(output, {
|
|
4127
|
-
auc: smithy_client_1.limitedParseFloat32,
|
|
4128
|
-
uncertaintyRange: (_) => de_UncertaintyRange(_, context),
|
|
4129
|
-
});
|
|
4130
|
-
};
|
|
4131
|
-
const de_OFITrainingMetricsValue = (output, context) => {
|
|
4132
|
-
return (0, smithy_client_1.take)(output, {
|
|
4133
|
-
metricDataPoints: (_) => de_OFIMetricDataPointsList(_, context),
|
|
4134
|
-
modelPerformance: (_) => de_OFIModelPerformance(_, context),
|
|
4135
|
-
});
|
|
4136
|
-
};
|
|
4137
|
-
const de_PredictionExplanations = (output, context) => {
|
|
4138
|
-
return (0, smithy_client_1.take)(output, {
|
|
4139
|
-
aggregatedVariablesImpactExplanations: (_) => de_ListOfAggregatedVariablesImpactExplanations(_, context),
|
|
4140
|
-
variableImpactExplanations: (_) => de_listOfVariableImpactExplanations(_, context),
|
|
4141
|
-
});
|
|
4142
|
-
};
|
|
4143
|
-
const de_TFIMetricDataPoint = (output, context) => {
|
|
4144
|
-
return (0, smithy_client_1.take)(output, {
|
|
4145
|
-
fpr: smithy_client_1.limitedParseFloat32,
|
|
4146
|
-
precision: smithy_client_1.limitedParseFloat32,
|
|
4147
|
-
threshold: smithy_client_1.limitedParseFloat32,
|
|
4148
|
-
tpr: smithy_client_1.limitedParseFloat32,
|
|
4149
|
-
});
|
|
4150
|
-
};
|
|
4151
|
-
const de_TFIMetricDataPointsList = (output, context) => {
|
|
4152
|
-
const retVal = (output || [])
|
|
4153
|
-
.filter((e) => e != null)
|
|
4154
|
-
.map((entry) => {
|
|
4155
|
-
return de_TFIMetricDataPoint(entry, context);
|
|
4156
|
-
});
|
|
4157
|
-
return retVal;
|
|
4158
|
-
};
|
|
4159
|
-
const de_TFIModelPerformance = (output, context) => {
|
|
4160
|
-
return (0, smithy_client_1.take)(output, {
|
|
4161
|
-
auc: smithy_client_1.limitedParseFloat32,
|
|
4162
|
-
uncertaintyRange: (_) => de_UncertaintyRange(_, context),
|
|
4163
|
-
});
|
|
4164
|
-
};
|
|
4165
|
-
const de_TFITrainingMetricsValue = (output, context) => {
|
|
4166
|
-
return (0, smithy_client_1.take)(output, {
|
|
4167
|
-
metricDataPoints: (_) => de_TFIMetricDataPointsList(_, context),
|
|
4168
|
-
modelPerformance: (_) => de_TFIModelPerformance(_, context),
|
|
4169
|
-
});
|
|
4170
|
-
};
|
|
4171
|
-
const de_TrainingMetrics = (output, context) => {
|
|
4172
|
-
return (0, smithy_client_1.take)(output, {
|
|
4173
|
-
auc: smithy_client_1.limitedParseFloat32,
|
|
4174
|
-
metricDataPoints: (_) => de_metricDataPointsList(_, context),
|
|
4175
|
-
});
|
|
4176
|
-
};
|
|
4177
|
-
const de_TrainingMetricsV2 = (output, context) => {
|
|
4178
|
-
return (0, smithy_client_1.take)(output, {
|
|
4179
|
-
ati: (_) => de_ATITrainingMetricsValue(_, context),
|
|
4180
|
-
ofi: (_) => de_OFITrainingMetricsValue(_, context),
|
|
4181
|
-
tfi: (_) => de_TFITrainingMetricsValue(_, context),
|
|
4182
|
-
});
|
|
4183
|
-
};
|
|
4184
|
-
const de_TrainingResult = (output, context) => {
|
|
4185
|
-
return (0, smithy_client_1.take)(output, {
|
|
4186
|
-
dataValidationMetrics: smithy_client_1._json,
|
|
4187
|
-
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
4188
|
-
variableImportanceMetrics: (_) => de_VariableImportanceMetrics(_, context),
|
|
4189
|
-
});
|
|
4190
|
-
};
|
|
4191
|
-
const de_TrainingResultV2 = (output, context) => {
|
|
4192
|
-
return (0, smithy_client_1.take)(output, {
|
|
4193
|
-
aggregatedVariablesImportanceMetrics: (_) => de_AggregatedVariablesImportanceMetrics(_, context),
|
|
4194
|
-
dataValidationMetrics: smithy_client_1._json,
|
|
4195
|
-
trainingMetricsV2: (_) => de_TrainingMetricsV2(_, context),
|
|
4196
|
-
variableImportanceMetrics: (_) => de_VariableImportanceMetrics(_, context),
|
|
4197
|
-
});
|
|
4198
|
-
};
|
|
4199
|
-
const de_UncertaintyRange = (output, context) => {
|
|
4200
|
-
return (0, smithy_client_1.take)(output, {
|
|
4201
|
-
lowerBoundValue: smithy_client_1.limitedParseFloat32,
|
|
4202
|
-
upperBoundValue: smithy_client_1.limitedParseFloat32,
|
|
4203
|
-
});
|
|
4204
|
-
};
|
|
4205
|
-
const de_VariableImpactExplanation = (output, context) => {
|
|
4206
|
-
return (0, smithy_client_1.take)(output, {
|
|
4207
|
-
eventVariableName: smithy_client_1.expectString,
|
|
4208
|
-
logOddsImpact: smithy_client_1.limitedParseFloat32,
|
|
4209
|
-
relativeImpact: smithy_client_1.expectString,
|
|
4210
|
-
});
|
|
4211
|
-
};
|
|
4212
|
-
const de_VariableImportanceMetrics = (output, context) => {
|
|
4213
|
-
return (0, smithy_client_1.take)(output, {
|
|
4214
|
-
logOddsMetrics: (_) => de_ListOfLogOddsMetrics(_, context),
|
|
4215
|
-
});
|
|
4216
|
-
};
|
|
4217
|
-
const deserializeMetadata = (output) => ({
|
|
4218
|
-
httpStatusCode: output.statusCode,
|
|
4219
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4220
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4221
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4222
|
-
});
|
|
4223
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4224
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(FraudDetectorServiceException_1.FraudDetectorServiceException);
|
|
4225
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4226
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4227
|
-
const contents = {
|
|
4228
|
-
protocol,
|
|
4229
|
-
hostname,
|
|
4230
|
-
port,
|
|
4231
|
-
method: "POST",
|
|
4232
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4233
|
-
headers,
|
|
4234
|
-
};
|
|
4235
|
-
if (resolvedHostname !== undefined) {
|
|
4236
|
-
contents.hostname = resolvedHostname;
|
|
4237
|
-
}
|
|
4238
|
-
if (body !== undefined) {
|
|
4239
|
-
contents.body = body;
|
|
4240
|
-
}
|
|
4241
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4242
|
-
};
|
|
4243
|
-
function sharedHeaders(operation) {
|
|
4244
|
-
return {
|
|
4245
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4246
|
-
"x-amz-target": `AWSHawksNestServiceFacade.${operation}`,
|
|
4247
|
-
};
|
|
4248
|
-
}
|
|
4249
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4250
|
-
if (encoded.length) {
|
|
4251
|
-
return JSON.parse(encoded);
|
|
4252
|
-
}
|
|
4253
|
-
return {};
|
|
4254
|
-
});
|
|
4255
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4256
|
-
const value = await parseBody(errorBody, context);
|
|
4257
|
-
value.message = value.message ?? value.Message;
|
|
4258
|
-
return value;
|
|
4259
|
-
};
|
|
4260
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4261
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4262
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4263
|
-
let cleanValue = rawValue;
|
|
4264
|
-
if (typeof cleanValue === "number") {
|
|
4265
|
-
cleanValue = cleanValue.toString();
|
|
4266
|
-
}
|
|
4267
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4268
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4269
|
-
}
|
|
4270
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4271
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4272
|
-
}
|
|
4273
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4274
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4275
|
-
}
|
|
4276
|
-
return cleanValue;
|
|
4277
|
-
};
|
|
4278
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4279
|
-
if (headerKey !== undefined) {
|
|
4280
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4281
|
-
}
|
|
4282
|
-
if (data.code !== undefined) {
|
|
4283
|
-
return sanitizeErrorCode(data.code);
|
|
4284
|
-
}
|
|
4285
|
-
if (data["__type"] !== undefined) {
|
|
4286
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4287
|
-
}
|
|
4288
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|