@aws-sdk/client-frauddetector 3.267.0 → 3.272.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 +75 -0
- package/dist-cjs/commands/CreateListCommand.js +46 -0
- package/dist-cjs/commands/DeleteListCommand.js +46 -0
- package/dist-cjs/commands/GetListElementsCommand.js +46 -0
- package/dist-cjs/commands/GetListsMetadataCommand.js +46 -0
- package/dist-cjs/commands/UpdateListCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +58 -5
- package/dist-cjs/pagination/GetListElementsPaginator.js +36 -0
- package/dist-cjs/pagination/GetListsMetadataPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -1
- package/dist-cjs/protocols/Aws_json1_1.js +380 -3
- package/dist-es/FraudDetector.js +75 -0
- package/dist-es/commands/CreateListCommand.js +42 -0
- package/dist-es/commands/DeleteListCommand.js +42 -0
- package/dist-es/commands/GetListElementsCommand.js +42 -0
- package/dist-es/commands/GetListsMetadataCommand.js +42 -0
- package/dist-es/commands/UpdateListCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/pagination/GetListElementsPaginator.js +32 -0
- package/dist-es/pagination/GetListsMetadataPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -1
- package/dist-es/protocols/Aws_json1_1.js +367 -0
- package/dist-types/FraudDetector.d.ts +48 -0
- package/dist-types/FraudDetectorClient.d.ts +22 -17
- package/dist-types/commands/CreateListCommand.d.ts +41 -0
- package/dist-types/commands/DeleteListCommand.d.ts +40 -0
- package/dist-types/commands/GetListElementsCommand.d.ts +39 -0
- package/dist-types/commands/GetListsMetadataCommand.d.ts +39 -0
- package/dist-types/commands/UpdateListCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +254 -0
- package/dist-types/pagination/GetListElementsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetListsMetadataPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/FraudDetector.d.ts +85 -0
- package/dist-types/ts3.4/FraudDetectorClient.d.ts +34 -4
- package/dist-types/ts3.4/commands/CreateListCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteListCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetListElementsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetListsMetadataCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateListCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +84 -0
- package/dist-types/ts3.4/pagination/GetListElementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetListsMetadataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
- package/package.json +29 -29
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetListsMetadata = void 0;
|
|
4
|
+
const GetListsMetadataCommand_1 = require("../commands/GetListsMetadataCommand");
|
|
5
|
+
const FraudDetector_1 = require("../FraudDetector");
|
|
6
|
+
const FraudDetectorClient_1 = require("../FraudDetectorClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetListsMetadataCommand_1.GetListsMetadataCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getListsMetadata(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetListsMetadata(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof FraudDetector_1.FraudDetector) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof FraudDetectorClient_1.FraudDetectorClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateGetListsMetadata = paginateGetListsMetadata;
|
|
@@ -9,9 +9,11 @@ tslib_1.__exportStar(require("./GetEntityTypesPaginator"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./GetEventTypesPaginator"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./GetExternalModelsPaginator"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./GetLabelsPaginator"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetListElementsPaginator"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetListsMetadataPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
12
15
|
tslib_1.__exportStar(require("./GetModelsPaginator"), exports);
|
|
13
16
|
tslib_1.__exportStar(require("./GetOutcomesPaginator"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetRulesPaginator"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./GetVariablesPaginator"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./ListEventPredictionsPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateVariableCommand = exports.deserializeAws_json1_1UpdateRuleVersionCommand = exports.deserializeAws_json1_1UpdateRuleMetadataCommand = exports.deserializeAws_json1_1UpdateModelVersionStatusCommand = exports.deserializeAws_json1_1UpdateModelVersionCommand = exports.deserializeAws_json1_1UpdateModelCommand = exports.deserializeAws_json1_1UpdateEventLabelCommand = exports.deserializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.deserializeAws_json1_1UpdateDetectorVersionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SendEventCommand = exports.deserializeAws_json1_1PutOutcomeCommand = exports.deserializeAws_json1_1PutLabelCommand = exports.deserializeAws_json1_1PutKMSEncryptionKeyCommand = exports.deserializeAws_json1_1PutExternalModelCommand = exports.deserializeAws_json1_1PutEventTypeCommand = exports.deserializeAws_json1_1PutEntityTypeCommand = exports.deserializeAws_json1_1PutDetectorCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListEventPredictionsCommand = exports.deserializeAws_json1_1GetVariablesCommand = exports.deserializeAws_json1_1GetRulesCommand = exports.deserializeAws_json1_1GetOutcomesCommand = exports.deserializeAws_json1_1GetModelVersionCommand = exports.deserializeAws_json1_1GetModelsCommand = exports.deserializeAws_json1_1GetLabelsCommand = exports.deserializeAws_json1_1GetKMSEncryptionKeyCommand = exports.deserializeAws_json1_1GetExternalModelsCommand = exports.deserializeAws_json1_1GetEventTypesCommand = exports.deserializeAws_json1_1GetEventPredictionMetadataCommand = exports.deserializeAws_json1_1GetEventPredictionCommand = exports.deserializeAws_json1_1GetEventCommand = exports.deserializeAws_json1_1GetEntityTypesCommand = exports.deserializeAws_json1_1GetDetectorVersionCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1GetVariablesCommand = exports.serializeAws_json1_1GetRulesCommand = exports.serializeAws_json1_1GetOutcomesCommand = exports.serializeAws_json1_1GetModelVersionCommand = exports.serializeAws_json1_1GetModelsCommand = exports.serializeAws_json1_1GetListsMetadataCommand = exports.serializeAws_json1_1GetListElementsCommand = exports.serializeAws_json1_1GetLabelsCommand = exports.serializeAws_json1_1GetKMSEncryptionKeyCommand = exports.serializeAws_json1_1GetExternalModelsCommand = exports.serializeAws_json1_1GetEventTypesCommand = exports.serializeAws_json1_1GetEventPredictionMetadataCommand = exports.serializeAws_json1_1GetEventPredictionCommand = exports.serializeAws_json1_1GetEventCommand = exports.serializeAws_json1_1GetEntityTypesCommand = exports.serializeAws_json1_1GetDetectorVersionCommand = exports.serializeAws_json1_1GetDetectorsCommand = exports.serializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.serializeAws_json1_1GetBatchPredictionJobsCommand = exports.serializeAws_json1_1GetBatchImportJobsCommand = exports.serializeAws_json1_1DescribeModelVersionsCommand = exports.serializeAws_json1_1DescribeDetectorCommand = exports.serializeAws_json1_1DeleteVariableCommand = exports.serializeAws_json1_1DeleteRuleCommand = exports.serializeAws_json1_1DeleteOutcomeCommand = exports.serializeAws_json1_1DeleteModelVersionCommand = exports.serializeAws_json1_1DeleteModelCommand = exports.serializeAws_json1_1DeleteListCommand = exports.serializeAws_json1_1DeleteLabelCommand = exports.serializeAws_json1_1DeleteExternalModelCommand = exports.serializeAws_json1_1DeleteEventTypeCommand = exports.serializeAws_json1_1DeleteEventsByEventTypeCommand = exports.serializeAws_json1_1DeleteEventCommand = exports.serializeAws_json1_1DeleteEntityTypeCommand = exports.serializeAws_json1_1DeleteDetectorVersionCommand = exports.serializeAws_json1_1DeleteDetectorCommand = exports.serializeAws_json1_1DeleteBatchPredictionJobCommand = exports.serializeAws_json1_1DeleteBatchImportJobCommand = exports.serializeAws_json1_1CreateVariableCommand = exports.serializeAws_json1_1CreateRuleCommand = exports.serializeAws_json1_1CreateModelVersionCommand = exports.serializeAws_json1_1CreateModelCommand = exports.serializeAws_json1_1CreateListCommand = exports.serializeAws_json1_1CreateDetectorVersionCommand = exports.serializeAws_json1_1CreateBatchPredictionJobCommand = exports.serializeAws_json1_1CreateBatchImportJobCommand = exports.serializeAws_json1_1CancelBatchPredictionJobCommand = exports.serializeAws_json1_1CancelBatchImportJobCommand = exports.serializeAws_json1_1BatchGetVariableCommand = exports.serializeAws_json1_1BatchCreateVariableCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DeleteRuleCommand = exports.deserializeAws_json1_1DeleteOutcomeCommand = exports.deserializeAws_json1_1DeleteModelVersionCommand = exports.deserializeAws_json1_1DeleteModelCommand = exports.deserializeAws_json1_1DeleteListCommand = exports.deserializeAws_json1_1DeleteLabelCommand = exports.deserializeAws_json1_1DeleteExternalModelCommand = exports.deserializeAws_json1_1DeleteEventTypeCommand = exports.deserializeAws_json1_1DeleteEventsByEventTypeCommand = exports.deserializeAws_json1_1DeleteEventCommand = exports.deserializeAws_json1_1DeleteEntityTypeCommand = exports.deserializeAws_json1_1DeleteDetectorVersionCommand = exports.deserializeAws_json1_1DeleteDetectorCommand = exports.deserializeAws_json1_1DeleteBatchPredictionJobCommand = exports.deserializeAws_json1_1DeleteBatchImportJobCommand = exports.deserializeAws_json1_1CreateVariableCommand = exports.deserializeAws_json1_1CreateRuleCommand = exports.deserializeAws_json1_1CreateModelVersionCommand = exports.deserializeAws_json1_1CreateModelCommand = exports.deserializeAws_json1_1CreateListCommand = exports.deserializeAws_json1_1CreateDetectorVersionCommand = exports.deserializeAws_json1_1CreateBatchPredictionJobCommand = exports.deserializeAws_json1_1CreateBatchImportJobCommand = exports.deserializeAws_json1_1CancelBatchPredictionJobCommand = exports.deserializeAws_json1_1CancelBatchImportJobCommand = exports.deserializeAws_json1_1BatchGetVariableCommand = exports.deserializeAws_json1_1BatchCreateVariableCommand = exports.serializeAws_json1_1UpdateVariableCommand = exports.serializeAws_json1_1UpdateRuleVersionCommand = exports.serializeAws_json1_1UpdateRuleMetadataCommand = exports.serializeAws_json1_1UpdateModelVersionStatusCommand = exports.serializeAws_json1_1UpdateModelVersionCommand = exports.serializeAws_json1_1UpdateModelCommand = exports.serializeAws_json1_1UpdateListCommand = exports.serializeAws_json1_1UpdateEventLabelCommand = exports.serializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.serializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.serializeAws_json1_1UpdateDetectorVersionCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SendEventCommand = exports.serializeAws_json1_1PutOutcomeCommand = exports.serializeAws_json1_1PutLabelCommand = exports.serializeAws_json1_1PutKMSEncryptionKeyCommand = exports.serializeAws_json1_1PutExternalModelCommand = exports.serializeAws_json1_1PutEventTypeCommand = exports.serializeAws_json1_1PutEntityTypeCommand = exports.serializeAws_json1_1PutDetectorCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListEventPredictionsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateVariableCommand = exports.deserializeAws_json1_1UpdateRuleVersionCommand = exports.deserializeAws_json1_1UpdateRuleMetadataCommand = exports.deserializeAws_json1_1UpdateModelVersionStatusCommand = exports.deserializeAws_json1_1UpdateModelVersionCommand = exports.deserializeAws_json1_1UpdateModelCommand = exports.deserializeAws_json1_1UpdateListCommand = exports.deserializeAws_json1_1UpdateEventLabelCommand = exports.deserializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.deserializeAws_json1_1UpdateDetectorVersionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SendEventCommand = exports.deserializeAws_json1_1PutOutcomeCommand = exports.deserializeAws_json1_1PutLabelCommand = exports.deserializeAws_json1_1PutKMSEncryptionKeyCommand = exports.deserializeAws_json1_1PutExternalModelCommand = exports.deserializeAws_json1_1PutEventTypeCommand = exports.deserializeAws_json1_1PutEntityTypeCommand = exports.deserializeAws_json1_1PutDetectorCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListEventPredictionsCommand = exports.deserializeAws_json1_1GetVariablesCommand = exports.deserializeAws_json1_1GetRulesCommand = exports.deserializeAws_json1_1GetOutcomesCommand = exports.deserializeAws_json1_1GetModelVersionCommand = exports.deserializeAws_json1_1GetModelsCommand = exports.deserializeAws_json1_1GetListsMetadataCommand = exports.deserializeAws_json1_1GetListElementsCommand = exports.deserializeAws_json1_1GetLabelsCommand = exports.deserializeAws_json1_1GetKMSEncryptionKeyCommand = exports.deserializeAws_json1_1GetExternalModelsCommand = exports.deserializeAws_json1_1GetEventTypesCommand = exports.deserializeAws_json1_1GetEventPredictionMetadataCommand = exports.deserializeAws_json1_1GetEventPredictionCommand = exports.deserializeAws_json1_1GetEventCommand = exports.deserializeAws_json1_1GetEntityTypesCommand = exports.deserializeAws_json1_1GetDetectorVersionCommand = exports.deserializeAws_json1_1GetDetectorsCommand = exports.deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.deserializeAws_json1_1GetBatchPredictionJobsCommand = exports.deserializeAws_json1_1GetBatchImportJobsCommand = exports.deserializeAws_json1_1DescribeModelVersionsCommand = exports.deserializeAws_json1_1DescribeDetectorCommand = exports.deserializeAws_json1_1DeleteVariableCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const FraudDetectorServiceException_1 = require("../models/FraudDetectorServiceException");
|
|
@@ -77,6 +77,16 @@ const serializeAws_json1_1CreateDetectorVersionCommand = async (input, context)
|
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
exports.serializeAws_json1_1CreateDetectorVersionCommand = serializeAws_json1_1CreateDetectorVersionCommand;
|
|
80
|
+
const serializeAws_json1_1CreateListCommand = async (input, context) => {
|
|
81
|
+
const headers = {
|
|
82
|
+
"content-type": "application/x-amz-json-1.1",
|
|
83
|
+
"x-amz-target": "AWSHawksNestServiceFacade.CreateList",
|
|
84
|
+
};
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify(serializeAws_json1_1CreateListRequest(input, context));
|
|
87
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
|
+
};
|
|
89
|
+
exports.serializeAws_json1_1CreateListCommand = serializeAws_json1_1CreateListCommand;
|
|
80
90
|
const serializeAws_json1_1CreateModelCommand = async (input, context) => {
|
|
81
91
|
const headers = {
|
|
82
92
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -217,6 +227,16 @@ const serializeAws_json1_1DeleteLabelCommand = async (input, context) => {
|
|
|
217
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
228
|
};
|
|
219
229
|
exports.serializeAws_json1_1DeleteLabelCommand = serializeAws_json1_1DeleteLabelCommand;
|
|
230
|
+
const serializeAws_json1_1DeleteListCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.1",
|
|
233
|
+
"x-amz-target": "AWSHawksNestServiceFacade.DeleteList",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_1DeleteListRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_json1_1DeleteListCommand = serializeAws_json1_1DeleteListCommand;
|
|
220
240
|
const serializeAws_json1_1DeleteModelCommand = async (input, context) => {
|
|
221
241
|
const headers = {
|
|
222
242
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -416,6 +436,26 @@ const serializeAws_json1_1GetLabelsCommand = async (input, context) => {
|
|
|
416
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
437
|
};
|
|
418
438
|
exports.serializeAws_json1_1GetLabelsCommand = serializeAws_json1_1GetLabelsCommand;
|
|
439
|
+
const serializeAws_json1_1GetListElementsCommand = async (input, context) => {
|
|
440
|
+
const headers = {
|
|
441
|
+
"content-type": "application/x-amz-json-1.1",
|
|
442
|
+
"x-amz-target": "AWSHawksNestServiceFacade.GetListElements",
|
|
443
|
+
};
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify(serializeAws_json1_1GetListElementsRequest(input, context));
|
|
446
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
|
+
};
|
|
448
|
+
exports.serializeAws_json1_1GetListElementsCommand = serializeAws_json1_1GetListElementsCommand;
|
|
449
|
+
const serializeAws_json1_1GetListsMetadataCommand = async (input, context) => {
|
|
450
|
+
const headers = {
|
|
451
|
+
"content-type": "application/x-amz-json-1.1",
|
|
452
|
+
"x-amz-target": "AWSHawksNestServiceFacade.GetListsMetadata",
|
|
453
|
+
};
|
|
454
|
+
let body;
|
|
455
|
+
body = JSON.stringify(serializeAws_json1_1GetListsMetadataRequest(input, context));
|
|
456
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
+
};
|
|
458
|
+
exports.serializeAws_json1_1GetListsMetadataCommand = serializeAws_json1_1GetListsMetadataCommand;
|
|
419
459
|
const serializeAws_json1_1GetModelsCommand = async (input, context) => {
|
|
420
460
|
const headers = {
|
|
421
461
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -626,6 +666,16 @@ const serializeAws_json1_1UpdateEventLabelCommand = async (input, context) => {
|
|
|
626
666
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
627
667
|
};
|
|
628
668
|
exports.serializeAws_json1_1UpdateEventLabelCommand = serializeAws_json1_1UpdateEventLabelCommand;
|
|
669
|
+
const serializeAws_json1_1UpdateListCommand = async (input, context) => {
|
|
670
|
+
const headers = {
|
|
671
|
+
"content-type": "application/x-amz-json-1.1",
|
|
672
|
+
"x-amz-target": "AWSHawksNestServiceFacade.UpdateList",
|
|
673
|
+
};
|
|
674
|
+
let body;
|
|
675
|
+
body = JSON.stringify(serializeAws_json1_1UpdateListRequest(input, context));
|
|
676
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
677
|
+
};
|
|
678
|
+
exports.serializeAws_json1_1UpdateListCommand = serializeAws_json1_1UpdateListCommand;
|
|
629
679
|
const serializeAws_json1_1UpdateModelCommand = async (input, context) => {
|
|
630
680
|
const headers = {
|
|
631
681
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1002,6 +1052,49 @@ const deserializeAws_json1_1CreateDetectorVersionCommandError = async (output, c
|
|
|
1002
1052
|
});
|
|
1003
1053
|
}
|
|
1004
1054
|
};
|
|
1055
|
+
const deserializeAws_json1_1CreateListCommand = async (output, context) => {
|
|
1056
|
+
if (output.statusCode >= 300) {
|
|
1057
|
+
return deserializeAws_json1_1CreateListCommandError(output, context);
|
|
1058
|
+
}
|
|
1059
|
+
const data = await parseBody(output.body, context);
|
|
1060
|
+
let contents = {};
|
|
1061
|
+
contents = deserializeAws_json1_1CreateListResult(data, context);
|
|
1062
|
+
const response = {
|
|
1063
|
+
$metadata: deserializeMetadata(output),
|
|
1064
|
+
...contents,
|
|
1065
|
+
};
|
|
1066
|
+
return Promise.resolve(response);
|
|
1067
|
+
};
|
|
1068
|
+
exports.deserializeAws_json1_1CreateListCommand = deserializeAws_json1_1CreateListCommand;
|
|
1069
|
+
const deserializeAws_json1_1CreateListCommandError = async (output, context) => {
|
|
1070
|
+
const parsedOutput = {
|
|
1071
|
+
...output,
|
|
1072
|
+
body: await parseErrorBody(output.body, context),
|
|
1073
|
+
};
|
|
1074
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
|
+
switch (errorCode) {
|
|
1076
|
+
case "AccessDeniedException":
|
|
1077
|
+
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1078
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1079
|
+
case "InternalServerException":
|
|
1080
|
+
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1081
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1082
|
+
case "ThrottlingException":
|
|
1083
|
+
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1084
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1085
|
+
case "ValidationException":
|
|
1086
|
+
case "com.amazonaws.frauddetector#ValidationException":
|
|
1087
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1088
|
+
default:
|
|
1089
|
+
const parsedBody = parsedOutput.body;
|
|
1090
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1091
|
+
output,
|
|
1092
|
+
parsedBody,
|
|
1093
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1094
|
+
errorCode,
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1005
1098
|
const deserializeAws_json1_1CreateModelCommand = async (output, context) => {
|
|
1006
1099
|
if (output.statusCode >= 300) {
|
|
1007
1100
|
return deserializeAws_json1_1CreateModelCommandError(output, context);
|
|
@@ -1631,6 +1724,52 @@ const deserializeAws_json1_1DeleteLabelCommandError = async (output, context) =>
|
|
|
1631
1724
|
});
|
|
1632
1725
|
}
|
|
1633
1726
|
};
|
|
1727
|
+
const deserializeAws_json1_1DeleteListCommand = async (output, context) => {
|
|
1728
|
+
if (output.statusCode >= 300) {
|
|
1729
|
+
return deserializeAws_json1_1DeleteListCommandError(output, context);
|
|
1730
|
+
}
|
|
1731
|
+
const data = await parseBody(output.body, context);
|
|
1732
|
+
let contents = {};
|
|
1733
|
+
contents = deserializeAws_json1_1DeleteListResult(data, context);
|
|
1734
|
+
const response = {
|
|
1735
|
+
$metadata: deserializeMetadata(output),
|
|
1736
|
+
...contents,
|
|
1737
|
+
};
|
|
1738
|
+
return Promise.resolve(response);
|
|
1739
|
+
};
|
|
1740
|
+
exports.deserializeAws_json1_1DeleteListCommand = deserializeAws_json1_1DeleteListCommand;
|
|
1741
|
+
const deserializeAws_json1_1DeleteListCommandError = async (output, context) => {
|
|
1742
|
+
const parsedOutput = {
|
|
1743
|
+
...output,
|
|
1744
|
+
body: await parseErrorBody(output.body, context),
|
|
1745
|
+
};
|
|
1746
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
+
switch (errorCode) {
|
|
1748
|
+
case "AccessDeniedException":
|
|
1749
|
+
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1750
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1751
|
+
case "ConflictException":
|
|
1752
|
+
case "com.amazonaws.frauddetector#ConflictException":
|
|
1753
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1754
|
+
case "InternalServerException":
|
|
1755
|
+
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1756
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1757
|
+
case "ThrottlingException":
|
|
1758
|
+
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1759
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1760
|
+
case "ValidationException":
|
|
1761
|
+
case "com.amazonaws.frauddetector#ValidationException":
|
|
1762
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1763
|
+
default:
|
|
1764
|
+
const parsedBody = parsedOutput.body;
|
|
1765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1766
|
+
output,
|
|
1767
|
+
parsedBody,
|
|
1768
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1769
|
+
errorCode,
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
};
|
|
1634
1773
|
const deserializeAws_json1_1DeleteModelCommand = async (output, context) => {
|
|
1635
1774
|
if (output.statusCode >= 300) {
|
|
1636
1775
|
return deserializeAws_json1_1DeleteModelCommandError(output, context);
|
|
@@ -2554,6 +2693,98 @@ const deserializeAws_json1_1GetLabelsCommandError = async (output, context) => {
|
|
|
2554
2693
|
});
|
|
2555
2694
|
}
|
|
2556
2695
|
};
|
|
2696
|
+
const deserializeAws_json1_1GetListElementsCommand = async (output, context) => {
|
|
2697
|
+
if (output.statusCode >= 300) {
|
|
2698
|
+
return deserializeAws_json1_1GetListElementsCommandError(output, context);
|
|
2699
|
+
}
|
|
2700
|
+
const data = await parseBody(output.body, context);
|
|
2701
|
+
let contents = {};
|
|
2702
|
+
contents = deserializeAws_json1_1GetListElementsResult(data, context);
|
|
2703
|
+
const response = {
|
|
2704
|
+
$metadata: deserializeMetadata(output),
|
|
2705
|
+
...contents,
|
|
2706
|
+
};
|
|
2707
|
+
return Promise.resolve(response);
|
|
2708
|
+
};
|
|
2709
|
+
exports.deserializeAws_json1_1GetListElementsCommand = deserializeAws_json1_1GetListElementsCommand;
|
|
2710
|
+
const deserializeAws_json1_1GetListElementsCommandError = async (output, context) => {
|
|
2711
|
+
const parsedOutput = {
|
|
2712
|
+
...output,
|
|
2713
|
+
body: await parseErrorBody(output.body, context),
|
|
2714
|
+
};
|
|
2715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
|
+
switch (errorCode) {
|
|
2717
|
+
case "AccessDeniedException":
|
|
2718
|
+
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2719
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2720
|
+
case "InternalServerException":
|
|
2721
|
+
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2722
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2723
|
+
case "ResourceNotFoundException":
|
|
2724
|
+
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2725
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2726
|
+
case "ThrottlingException":
|
|
2727
|
+
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2728
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2729
|
+
case "ValidationException":
|
|
2730
|
+
case "com.amazonaws.frauddetector#ValidationException":
|
|
2731
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2732
|
+
default:
|
|
2733
|
+
const parsedBody = parsedOutput.body;
|
|
2734
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2735
|
+
output,
|
|
2736
|
+
parsedBody,
|
|
2737
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2738
|
+
errorCode,
|
|
2739
|
+
});
|
|
2740
|
+
}
|
|
2741
|
+
};
|
|
2742
|
+
const deserializeAws_json1_1GetListsMetadataCommand = async (output, context) => {
|
|
2743
|
+
if (output.statusCode >= 300) {
|
|
2744
|
+
return deserializeAws_json1_1GetListsMetadataCommandError(output, context);
|
|
2745
|
+
}
|
|
2746
|
+
const data = await parseBody(output.body, context);
|
|
2747
|
+
let contents = {};
|
|
2748
|
+
contents = deserializeAws_json1_1GetListsMetadataResult(data, context);
|
|
2749
|
+
const response = {
|
|
2750
|
+
$metadata: deserializeMetadata(output),
|
|
2751
|
+
...contents,
|
|
2752
|
+
};
|
|
2753
|
+
return Promise.resolve(response);
|
|
2754
|
+
};
|
|
2755
|
+
exports.deserializeAws_json1_1GetListsMetadataCommand = deserializeAws_json1_1GetListsMetadataCommand;
|
|
2756
|
+
const deserializeAws_json1_1GetListsMetadataCommandError = async (output, context) => {
|
|
2757
|
+
const parsedOutput = {
|
|
2758
|
+
...output,
|
|
2759
|
+
body: await parseErrorBody(output.body, context),
|
|
2760
|
+
};
|
|
2761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
+
switch (errorCode) {
|
|
2763
|
+
case "AccessDeniedException":
|
|
2764
|
+
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2765
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2766
|
+
case "InternalServerException":
|
|
2767
|
+
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2768
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2769
|
+
case "ResourceNotFoundException":
|
|
2770
|
+
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2771
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2772
|
+
case "ThrottlingException":
|
|
2773
|
+
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2774
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2775
|
+
case "ValidationException":
|
|
2776
|
+
case "com.amazonaws.frauddetector#ValidationException":
|
|
2777
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2778
|
+
default:
|
|
2779
|
+
const parsedBody = parsedOutput.body;
|
|
2780
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2781
|
+
output,
|
|
2782
|
+
parsedBody,
|
|
2783
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2784
|
+
errorCode,
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2787
|
+
};
|
|
2557
2788
|
const deserializeAws_json1_1GetModelsCommand = async (output, context) => {
|
|
2558
2789
|
if (output.statusCode >= 300) {
|
|
2559
2790
|
return deserializeAws_json1_1GetModelsCommandError(output, context);
|
|
@@ -3523,6 +3754,55 @@ const deserializeAws_json1_1UpdateEventLabelCommandError = async (output, contex
|
|
|
3523
3754
|
});
|
|
3524
3755
|
}
|
|
3525
3756
|
};
|
|
3757
|
+
const deserializeAws_json1_1UpdateListCommand = async (output, context) => {
|
|
3758
|
+
if (output.statusCode >= 300) {
|
|
3759
|
+
return deserializeAws_json1_1UpdateListCommandError(output, context);
|
|
3760
|
+
}
|
|
3761
|
+
const data = await parseBody(output.body, context);
|
|
3762
|
+
let contents = {};
|
|
3763
|
+
contents = deserializeAws_json1_1UpdateListResult(data, context);
|
|
3764
|
+
const response = {
|
|
3765
|
+
$metadata: deserializeMetadata(output),
|
|
3766
|
+
...contents,
|
|
3767
|
+
};
|
|
3768
|
+
return Promise.resolve(response);
|
|
3769
|
+
};
|
|
3770
|
+
exports.deserializeAws_json1_1UpdateListCommand = deserializeAws_json1_1UpdateListCommand;
|
|
3771
|
+
const deserializeAws_json1_1UpdateListCommandError = async (output, context) => {
|
|
3772
|
+
const parsedOutput = {
|
|
3773
|
+
...output,
|
|
3774
|
+
body: await parseErrorBody(output.body, context),
|
|
3775
|
+
};
|
|
3776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3777
|
+
switch (errorCode) {
|
|
3778
|
+
case "AccessDeniedException":
|
|
3779
|
+
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3780
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3781
|
+
case "ConflictException":
|
|
3782
|
+
case "com.amazonaws.frauddetector#ConflictException":
|
|
3783
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
3784
|
+
case "InternalServerException":
|
|
3785
|
+
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3786
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3787
|
+
case "ResourceNotFoundException":
|
|
3788
|
+
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3789
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3790
|
+
case "ThrottlingException":
|
|
3791
|
+
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3792
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3793
|
+
case "ValidationException":
|
|
3794
|
+
case "com.amazonaws.frauddetector#ValidationException":
|
|
3795
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3796
|
+
default:
|
|
3797
|
+
const parsedBody = parsedOutput.body;
|
|
3798
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3799
|
+
output,
|
|
3800
|
+
parsedBody,
|
|
3801
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3802
|
+
errorCode,
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
};
|
|
3526
3806
|
const deserializeAws_json1_1UpdateModelCommand = async (output, context) => {
|
|
3527
3807
|
if (output.statusCode >= 300) {
|
|
3528
3808
|
return deserializeAws_json1_1UpdateModelCommandError(output, context);
|
|
@@ -3940,6 +4220,15 @@ const serializeAws_json1_1CreateDetectorVersionRequest = (input, context) => {
|
|
|
3940
4220
|
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
3941
4221
|
};
|
|
3942
4222
|
};
|
|
4223
|
+
const serializeAws_json1_1CreateListRequest = (input, context) => {
|
|
4224
|
+
return {
|
|
4225
|
+
...(input.description != null && { description: input.description }),
|
|
4226
|
+
...(input.elements != null && { elements: serializeAws_json1_1ElementsList(input.elements, context) }),
|
|
4227
|
+
...(input.name != null && { name: input.name }),
|
|
4228
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4229
|
+
...(input.variableType != null && { variableType: input.variableType }),
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
3943
4232
|
const serializeAws_json1_1CreateModelRequest = (input, context) => {
|
|
3944
4233
|
return {
|
|
3945
4234
|
...(input.description != null && { description: input.description }),
|
|
@@ -4050,6 +4339,11 @@ const serializeAws_json1_1DeleteLabelRequest = (input, context) => {
|
|
|
4050
4339
|
...(input.name != null && { name: input.name }),
|
|
4051
4340
|
};
|
|
4052
4341
|
};
|
|
4342
|
+
const serializeAws_json1_1DeleteListRequest = (input, context) => {
|
|
4343
|
+
return {
|
|
4344
|
+
...(input.name != null && { name: input.name }),
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4053
4347
|
const serializeAws_json1_1DeleteModelRequest = (input, context) => {
|
|
4054
4348
|
return {
|
|
4055
4349
|
...(input.modelId != null && { modelId: input.modelId }),
|
|
@@ -4094,6 +4388,13 @@ const serializeAws_json1_1DescribeModelVersionsRequest = (input, context) => {
|
|
|
4094
4388
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4095
4389
|
};
|
|
4096
4390
|
};
|
|
4391
|
+
const serializeAws_json1_1ElementsList = (input, context) => {
|
|
4392
|
+
return input
|
|
4393
|
+
.filter((e) => e != null)
|
|
4394
|
+
.map((entry) => {
|
|
4395
|
+
return entry;
|
|
4396
|
+
});
|
|
4397
|
+
};
|
|
4097
4398
|
const serializeAws_json1_1Entity = (input, context) => {
|
|
4098
4399
|
return {
|
|
4099
4400
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
@@ -4220,6 +4521,20 @@ const serializeAws_json1_1GetLabelsRequest = (input, context) => {
|
|
|
4220
4521
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4221
4522
|
};
|
|
4222
4523
|
};
|
|
4524
|
+
const serializeAws_json1_1GetListElementsRequest = (input, context) => {
|
|
4525
|
+
return {
|
|
4526
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4527
|
+
...(input.name != null && { name: input.name }),
|
|
4528
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4529
|
+
};
|
|
4530
|
+
};
|
|
4531
|
+
const serializeAws_json1_1GetListsMetadataRequest = (input, context) => {
|
|
4532
|
+
return {
|
|
4533
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4534
|
+
...(input.name != null && { name: input.name }),
|
|
4535
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4536
|
+
};
|
|
4537
|
+
};
|
|
4223
4538
|
const serializeAws_json1_1GetModelsRequest = (input, context) => {
|
|
4224
4539
|
return {
|
|
4225
4540
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -4560,6 +4875,15 @@ const serializeAws_json1_1UpdateEventLabelRequest = (input, context) => {
|
|
|
4560
4875
|
...(input.labelTimestamp != null && { labelTimestamp: input.labelTimestamp }),
|
|
4561
4876
|
};
|
|
4562
4877
|
};
|
|
4878
|
+
const serializeAws_json1_1UpdateListRequest = (input, context) => {
|
|
4879
|
+
return {
|
|
4880
|
+
...(input.description != null && { description: input.description }),
|
|
4881
|
+
...(input.elements != null && { elements: serializeAws_json1_1ElementsList(input.elements, context) }),
|
|
4882
|
+
...(input.name != null && { name: input.name }),
|
|
4883
|
+
...(input.updateMode != null && { updateMode: input.updateMode }),
|
|
4884
|
+
...(input.variableType != null && { variableType: input.variableType }),
|
|
4885
|
+
};
|
|
4886
|
+
};
|
|
4563
4887
|
const serializeAws_json1_1UpdateModelRequest = (input, context) => {
|
|
4564
4888
|
return {
|
|
4565
4889
|
...(input.description != null && { description: input.description }),
|
|
@@ -4657,6 +4981,27 @@ const deserializeAws_json1_1AggregatedVariablesImportanceMetrics = (output, cont
|
|
|
4657
4981
|
: undefined,
|
|
4658
4982
|
};
|
|
4659
4983
|
};
|
|
4984
|
+
const deserializeAws_json1_1AllowDenyList = (output, context) => {
|
|
4985
|
+
return {
|
|
4986
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4987
|
+
createdTime: (0, smithy_client_1.expectString)(output.createdTime),
|
|
4988
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
4989
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
4990
|
+
updatedTime: (0, smithy_client_1.expectString)(output.updatedTime),
|
|
4991
|
+
variableType: (0, smithy_client_1.expectString)(output.variableType),
|
|
4992
|
+
};
|
|
4993
|
+
};
|
|
4994
|
+
const deserializeAws_json1_1AllowDenyLists = (output, context) => {
|
|
4995
|
+
const retVal = (output || [])
|
|
4996
|
+
.filter((e) => e != null)
|
|
4997
|
+
.map((entry) => {
|
|
4998
|
+
if (entry === null) {
|
|
4999
|
+
return null;
|
|
5000
|
+
}
|
|
5001
|
+
return deserializeAws_json1_1AllowDenyList(entry, context);
|
|
5002
|
+
});
|
|
5003
|
+
return retVal;
|
|
5004
|
+
};
|
|
4660
5005
|
const deserializeAws_json1_1ATIMetricDataPoint = (output, context) => {
|
|
4661
5006
|
return {
|
|
4662
5007
|
adr: (0, smithy_client_1.limitedParseFloat32)(output.adr),
|
|
@@ -4820,6 +5165,9 @@ const deserializeAws_json1_1CreateDetectorVersionResult = (output, context) => {
|
|
|
4820
5165
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4821
5166
|
};
|
|
4822
5167
|
};
|
|
5168
|
+
const deserializeAws_json1_1CreateListResult = (output, context) => {
|
|
5169
|
+
return {};
|
|
5170
|
+
};
|
|
4823
5171
|
const deserializeAws_json1_1CreateModelResult = (output, context) => {
|
|
4824
5172
|
return {};
|
|
4825
5173
|
};
|
|
@@ -4891,6 +5239,9 @@ const deserializeAws_json1_1DeleteExternalModelResult = (output, context) => {
|
|
|
4891
5239
|
const deserializeAws_json1_1DeleteLabelResult = (output, context) => {
|
|
4892
5240
|
return {};
|
|
4893
5241
|
};
|
|
5242
|
+
const deserializeAws_json1_1DeleteListResult = (output, context) => {
|
|
5243
|
+
return {};
|
|
5244
|
+
};
|
|
4894
5245
|
const deserializeAws_json1_1DeleteModelResult = (output, context) => {
|
|
4895
5246
|
return {};
|
|
4896
5247
|
};
|
|
@@ -4964,6 +5315,17 @@ const deserializeAws_json1_1DetectorVersionSummaryList = (output, context) => {
|
|
|
4964
5315
|
});
|
|
4965
5316
|
return retVal;
|
|
4966
5317
|
};
|
|
5318
|
+
const deserializeAws_json1_1ElementsList = (output, context) => {
|
|
5319
|
+
const retVal = (output || [])
|
|
5320
|
+
.filter((e) => e != null)
|
|
5321
|
+
.map((entry) => {
|
|
5322
|
+
if (entry === null) {
|
|
5323
|
+
return null;
|
|
5324
|
+
}
|
|
5325
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5326
|
+
});
|
|
5327
|
+
return retVal;
|
|
5328
|
+
};
|
|
4967
5329
|
const deserializeAws_json1_1Entity = (output, context) => {
|
|
4968
5330
|
return {
|
|
4969
5331
|
entityId: (0, smithy_client_1.expectString)(output.entityId),
|
|
@@ -5306,6 +5668,18 @@ const deserializeAws_json1_1GetLabelsResult = (output, context) => {
|
|
|
5306
5668
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5307
5669
|
};
|
|
5308
5670
|
};
|
|
5671
|
+
const deserializeAws_json1_1GetListElementsResult = (output, context) => {
|
|
5672
|
+
return {
|
|
5673
|
+
elements: output.elements != null ? deserializeAws_json1_1ElementsList(output.elements, context) : undefined,
|
|
5674
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5675
|
+
};
|
|
5676
|
+
};
|
|
5677
|
+
const deserializeAws_json1_1GetListsMetadataResult = (output, context) => {
|
|
5678
|
+
return {
|
|
5679
|
+
lists: output.lists != null ? deserializeAws_json1_1AllowDenyLists(output.lists, context) : undefined,
|
|
5680
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5681
|
+
};
|
|
5682
|
+
};
|
|
5309
5683
|
const deserializeAws_json1_1GetModelsResult = (output, context) => {
|
|
5310
5684
|
return {
|
|
5311
5685
|
models: output.models != null ? deserializeAws_json1_1modelList(output.models, context) : undefined,
|
|
@@ -6043,6 +6417,9 @@ const deserializeAws_json1_1UpdateDetectorVersionStatusResult = (output, context
|
|
|
6043
6417
|
const deserializeAws_json1_1UpdateEventLabelResult = (output, context) => {
|
|
6044
6418
|
return {};
|
|
6045
6419
|
};
|
|
6420
|
+
const deserializeAws_json1_1UpdateListResult = (output, context) => {
|
|
6421
|
+
return {};
|
|
6422
|
+
};
|
|
6046
6423
|
const deserializeAws_json1_1UpdateModelResult = (output, context) => {
|
|
6047
6424
|
return {};
|
|
6048
6425
|
};
|