@aws-sdk/client-frauddetector 3.271.0 → 3.276.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 +7 -2
- 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/ts3.4/FraudDetector.d.ts +85 -0
- package/dist-types/ts3.4/FraudDetectorClient.d.ts +30 -0
- 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/package.json +29 -29
package/dist-es/FraudDetector.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CancelBatchPredictionJobCommand, } from "./commands/CancelBatchPredicti
|
|
|
5
5
|
import { CreateBatchImportJobCommand, } from "./commands/CreateBatchImportJobCommand";
|
|
6
6
|
import { CreateBatchPredictionJobCommand, } from "./commands/CreateBatchPredictionJobCommand";
|
|
7
7
|
import { CreateDetectorVersionCommand, } from "./commands/CreateDetectorVersionCommand";
|
|
8
|
+
import { CreateListCommand } from "./commands/CreateListCommand";
|
|
8
9
|
import { CreateModelCommand } from "./commands/CreateModelCommand";
|
|
9
10
|
import { CreateModelVersionCommand, } from "./commands/CreateModelVersionCommand";
|
|
10
11
|
import { CreateRuleCommand } from "./commands/CreateRuleCommand";
|
|
@@ -19,6 +20,7 @@ import { DeleteEventsByEventTypeCommand, } from "./commands/DeleteEventsByEventT
|
|
|
19
20
|
import { DeleteEventTypeCommand, } from "./commands/DeleteEventTypeCommand";
|
|
20
21
|
import { DeleteExternalModelCommand, } from "./commands/DeleteExternalModelCommand";
|
|
21
22
|
import { DeleteLabelCommand } from "./commands/DeleteLabelCommand";
|
|
23
|
+
import { DeleteListCommand } from "./commands/DeleteListCommand";
|
|
22
24
|
import { DeleteModelCommand } from "./commands/DeleteModelCommand";
|
|
23
25
|
import { DeleteModelVersionCommand, } from "./commands/DeleteModelVersionCommand";
|
|
24
26
|
import { DeleteOutcomeCommand, } from "./commands/DeleteOutcomeCommand";
|
|
@@ -39,6 +41,8 @@ import { GetEventTypesCommand, } from "./commands/GetEventTypesCommand";
|
|
|
39
41
|
import { GetExternalModelsCommand, } from "./commands/GetExternalModelsCommand";
|
|
40
42
|
import { GetKMSEncryptionKeyCommand, } from "./commands/GetKMSEncryptionKeyCommand";
|
|
41
43
|
import { GetLabelsCommand } from "./commands/GetLabelsCommand";
|
|
44
|
+
import { GetListElementsCommand, } from "./commands/GetListElementsCommand";
|
|
45
|
+
import { GetListsMetadataCommand, } from "./commands/GetListsMetadataCommand";
|
|
42
46
|
import { GetModelsCommand } from "./commands/GetModelsCommand";
|
|
43
47
|
import { GetModelVersionCommand, } from "./commands/GetModelVersionCommand";
|
|
44
48
|
import { GetOutcomesCommand } from "./commands/GetOutcomesCommand";
|
|
@@ -60,6 +64,7 @@ import { UpdateDetectorVersionCommand, } from "./commands/UpdateDetectorVersionC
|
|
|
60
64
|
import { UpdateDetectorVersionMetadataCommand, } from "./commands/UpdateDetectorVersionMetadataCommand";
|
|
61
65
|
import { UpdateDetectorVersionStatusCommand, } from "./commands/UpdateDetectorVersionStatusCommand";
|
|
62
66
|
import { UpdateEventLabelCommand, } from "./commands/UpdateEventLabelCommand";
|
|
67
|
+
import { UpdateListCommand } from "./commands/UpdateListCommand";
|
|
63
68
|
import { UpdateModelCommand } from "./commands/UpdateModelCommand";
|
|
64
69
|
import { UpdateModelVersionCommand, } from "./commands/UpdateModelVersionCommand";
|
|
65
70
|
import { UpdateModelVersionStatusCommand, } from "./commands/UpdateModelVersionStatusCommand";
|
|
@@ -166,6 +171,20 @@ export class FraudDetector extends FraudDetectorClient {
|
|
|
166
171
|
return this.send(command, optionsOrCb);
|
|
167
172
|
}
|
|
168
173
|
}
|
|
174
|
+
createList(args, optionsOrCb, cb) {
|
|
175
|
+
const command = new CreateListCommand(args);
|
|
176
|
+
if (typeof optionsOrCb === "function") {
|
|
177
|
+
this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
else if (typeof cb === "function") {
|
|
180
|
+
if (typeof optionsOrCb !== "object")
|
|
181
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return this.send(command, optionsOrCb);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
169
188
|
createModel(args, optionsOrCb, cb) {
|
|
170
189
|
const command = new CreateModelCommand(args);
|
|
171
190
|
if (typeof optionsOrCb === "function") {
|
|
@@ -362,6 +381,20 @@ export class FraudDetector extends FraudDetectorClient {
|
|
|
362
381
|
return this.send(command, optionsOrCb);
|
|
363
382
|
}
|
|
364
383
|
}
|
|
384
|
+
deleteList(args, optionsOrCb, cb) {
|
|
385
|
+
const command = new DeleteListCommand(args);
|
|
386
|
+
if (typeof optionsOrCb === "function") {
|
|
387
|
+
this.send(command, optionsOrCb);
|
|
388
|
+
}
|
|
389
|
+
else if (typeof cb === "function") {
|
|
390
|
+
if (typeof optionsOrCb !== "object")
|
|
391
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
return this.send(command, optionsOrCb);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
365
398
|
deleteModel(args, optionsOrCb, cb) {
|
|
366
399
|
const command = new DeleteModelCommand(args);
|
|
367
400
|
if (typeof optionsOrCb === "function") {
|
|
@@ -642,6 +675,34 @@ export class FraudDetector extends FraudDetectorClient {
|
|
|
642
675
|
return this.send(command, optionsOrCb);
|
|
643
676
|
}
|
|
644
677
|
}
|
|
678
|
+
getListElements(args, optionsOrCb, cb) {
|
|
679
|
+
const command = new GetListElementsCommand(args);
|
|
680
|
+
if (typeof optionsOrCb === "function") {
|
|
681
|
+
this.send(command, optionsOrCb);
|
|
682
|
+
}
|
|
683
|
+
else if (typeof cb === "function") {
|
|
684
|
+
if (typeof optionsOrCb !== "object")
|
|
685
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
return this.send(command, optionsOrCb);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
getListsMetadata(args, optionsOrCb, cb) {
|
|
693
|
+
const command = new GetListsMetadataCommand(args);
|
|
694
|
+
if (typeof optionsOrCb === "function") {
|
|
695
|
+
this.send(command, optionsOrCb);
|
|
696
|
+
}
|
|
697
|
+
else if (typeof cb === "function") {
|
|
698
|
+
if (typeof optionsOrCb !== "object")
|
|
699
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
700
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
return this.send(command, optionsOrCb);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
645
706
|
getModels(args, optionsOrCb, cb) {
|
|
646
707
|
const command = new GetModelsCommand(args);
|
|
647
708
|
if (typeof optionsOrCb === "function") {
|
|
@@ -936,6 +997,20 @@ export class FraudDetector extends FraudDetectorClient {
|
|
|
936
997
|
return this.send(command, optionsOrCb);
|
|
937
998
|
}
|
|
938
999
|
}
|
|
1000
|
+
updateList(args, optionsOrCb, cb) {
|
|
1001
|
+
const command = new UpdateListCommand(args);
|
|
1002
|
+
if (typeof optionsOrCb === "function") {
|
|
1003
|
+
this.send(command, optionsOrCb);
|
|
1004
|
+
}
|
|
1005
|
+
else if (typeof cb === "function") {
|
|
1006
|
+
if (typeof optionsOrCb !== "object")
|
|
1007
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1008
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1009
|
+
}
|
|
1010
|
+
else {
|
|
1011
|
+
return this.send(command, optionsOrCb);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
939
1014
|
updateModel(args, optionsOrCb, cb) {
|
|
940
1015
|
const command = new UpdateModelCommand(args);
|
|
941
1016
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateListRequestFilterSensitiveLog, CreateListResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateListCommand, serializeAws_json1_1CreateListCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreateListCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateListCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "FraudDetectorClient";
|
|
25
|
+
const commandName = "CreateListCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateListRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateListResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreateListCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreateListCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteListRequestFilterSensitiveLog, DeleteListResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteListCommand, serializeAws_json1_1DeleteListCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DeleteListCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteListCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "FraudDetectorClient";
|
|
25
|
+
const commandName = "DeleteListCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteListRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteListResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DeleteListCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DeleteListCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetListElementsRequestFilterSensitiveLog, GetListElementsResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetListElementsCommand, serializeAws_json1_1GetListElementsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class GetListElementsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetListElementsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "FraudDetectorClient";
|
|
25
|
+
const commandName = "GetListElementsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetListElementsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetListElementsResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1GetListElementsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1GetListElementsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetListsMetadataRequestFilterSensitiveLog, GetListsMetadataResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetListsMetadataCommand, serializeAws_json1_1GetListsMetadataCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class GetListsMetadataCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetListsMetadataCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "FraudDetectorClient";
|
|
25
|
+
const commandName = "GetListsMetadataCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetListsMetadataRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetListsMetadataResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1GetListsMetadataCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1GetListsMetadataCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateListRequestFilterSensitiveLog, UpdateListResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateListCommand, serializeAws_json1_1UpdateListCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class UpdateListCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateListCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "FraudDetectorClient";
|
|
25
|
+
const commandName = "UpdateListCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateListRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateListResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1UpdateListCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1UpdateListCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CancelBatchPredictionJobCommand";
|
|
|
5
5
|
export * from "./CreateBatchImportJobCommand";
|
|
6
6
|
export * from "./CreateBatchPredictionJobCommand";
|
|
7
7
|
export * from "./CreateDetectorVersionCommand";
|
|
8
|
+
export * from "./CreateListCommand";
|
|
8
9
|
export * from "./CreateModelCommand";
|
|
9
10
|
export * from "./CreateModelVersionCommand";
|
|
10
11
|
export * from "./CreateRuleCommand";
|
|
@@ -19,6 +20,7 @@ export * from "./DeleteEventTypeCommand";
|
|
|
19
20
|
export * from "./DeleteEventsByEventTypeCommand";
|
|
20
21
|
export * from "./DeleteExternalModelCommand";
|
|
21
22
|
export * from "./DeleteLabelCommand";
|
|
23
|
+
export * from "./DeleteListCommand";
|
|
22
24
|
export * from "./DeleteModelCommand";
|
|
23
25
|
export * from "./DeleteModelVersionCommand";
|
|
24
26
|
export * from "./DeleteOutcomeCommand";
|
|
@@ -39,6 +41,8 @@ export * from "./GetEventTypesCommand";
|
|
|
39
41
|
export * from "./GetExternalModelsCommand";
|
|
40
42
|
export * from "./GetKMSEncryptionKeyCommand";
|
|
41
43
|
export * from "./GetLabelsCommand";
|
|
44
|
+
export * from "./GetListElementsCommand";
|
|
45
|
+
export * from "./GetListsMetadataCommand";
|
|
42
46
|
export * from "./GetModelVersionCommand";
|
|
43
47
|
export * from "./GetModelsCommand";
|
|
44
48
|
export * from "./GetOutcomesCommand";
|
|
@@ -60,6 +64,7 @@ export * from "./UpdateDetectorVersionCommand";
|
|
|
60
64
|
export * from "./UpdateDetectorVersionMetadataCommand";
|
|
61
65
|
export * from "./UpdateDetectorVersionStatusCommand";
|
|
62
66
|
export * from "./UpdateEventLabelCommand";
|
|
67
|
+
export * from "./UpdateListCommand";
|
|
63
68
|
export * from "./UpdateModelCommand";
|
|
64
69
|
export * from "./UpdateModelVersionCommand";
|
|
65
70
|
export * from "./UpdateModelVersionStatusCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://frauddetector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://frauddetector-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://frauddetector.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://frauddetector.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -163,6 +163,12 @@ export var ModelOutputDataFormat;
|
|
|
163
163
|
ModelOutputDataFormat["CSV"] = "TEXT_CSV";
|
|
164
164
|
ModelOutputDataFormat["JSONLINES"] = "APPLICATION_JSONLINES";
|
|
165
165
|
})(ModelOutputDataFormat || (ModelOutputDataFormat = {}));
|
|
166
|
+
export var ListUpdateMode;
|
|
167
|
+
(function (ListUpdateMode) {
|
|
168
|
+
ListUpdateMode["APPEND"] = "APPEND";
|
|
169
|
+
ListUpdateMode["REMOVE"] = "REMOVE";
|
|
170
|
+
ListUpdateMode["REPLACE"] = "REPLACE";
|
|
171
|
+
})(ListUpdateMode || (ListUpdateMode = {}));
|
|
166
172
|
export var ModelVersionStatus;
|
|
167
173
|
(function (ModelVersionStatus) {
|
|
168
174
|
ModelVersionStatus["ACTIVE"] = "ACTIVE";
|
|
@@ -178,6 +184,9 @@ export const AggregatedVariablesImpactExplanationFilterSensitiveLog = (obj) => (
|
|
|
178
184
|
export const AggregatedVariablesImportanceMetricsFilterSensitiveLog = (obj) => ({
|
|
179
185
|
...obj,
|
|
180
186
|
});
|
|
187
|
+
export const AllowDenyListFilterSensitiveLog = (obj) => ({
|
|
188
|
+
...obj,
|
|
189
|
+
});
|
|
181
190
|
export const ATIMetricDataPointFilterSensitiveLog = (obj) => ({
|
|
182
191
|
...obj,
|
|
183
192
|
});
|
|
@@ -250,6 +259,13 @@ export const CreateDetectorVersionRequestFilterSensitiveLog = (obj) => ({
|
|
|
250
259
|
export const CreateDetectorVersionResultFilterSensitiveLog = (obj) => ({
|
|
251
260
|
...obj,
|
|
252
261
|
});
|
|
262
|
+
export const CreateListRequestFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.elements && { elements: SENSITIVE_STRING }),
|
|
265
|
+
});
|
|
266
|
+
export const CreateListResultFilterSensitiveLog = (obj) => ({
|
|
267
|
+
...obj,
|
|
268
|
+
});
|
|
253
269
|
export const CreateModelRequestFilterSensitiveLog = (obj) => ({
|
|
254
270
|
...obj,
|
|
255
271
|
});
|
|
@@ -350,6 +366,12 @@ export const DeleteLabelRequestFilterSensitiveLog = (obj) => ({
|
|
|
350
366
|
export const DeleteLabelResultFilterSensitiveLog = (obj) => ({
|
|
351
367
|
...obj,
|
|
352
368
|
});
|
|
369
|
+
export const DeleteListRequestFilterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
});
|
|
372
|
+
export const DeleteListResultFilterSensitiveLog = (obj) => ({
|
|
373
|
+
...obj,
|
|
374
|
+
});
|
|
353
375
|
export const DeleteModelRequestFilterSensitiveLog = (obj) => ({
|
|
354
376
|
...obj,
|
|
355
377
|
});
|
|
@@ -620,6 +642,19 @@ export const LabelFilterSensitiveLog = (obj) => ({
|
|
|
620
642
|
export const GetLabelsResultFilterSensitiveLog = (obj) => ({
|
|
621
643
|
...obj,
|
|
622
644
|
});
|
|
645
|
+
export const GetListElementsRequestFilterSensitiveLog = (obj) => ({
|
|
646
|
+
...obj,
|
|
647
|
+
});
|
|
648
|
+
export const GetListElementsResultFilterSensitiveLog = (obj) => ({
|
|
649
|
+
...obj,
|
|
650
|
+
...(obj.elements && { elements: SENSITIVE_STRING }),
|
|
651
|
+
});
|
|
652
|
+
export const GetListsMetadataRequestFilterSensitiveLog = (obj) => ({
|
|
653
|
+
...obj,
|
|
654
|
+
});
|
|
655
|
+
export const GetListsMetadataResultFilterSensitiveLog = (obj) => ({
|
|
656
|
+
...obj,
|
|
657
|
+
});
|
|
623
658
|
export const GetModelsRequestFilterSensitiveLog = (obj) => ({
|
|
624
659
|
...obj,
|
|
625
660
|
});
|
|
@@ -768,6 +803,13 @@ export const UpdateEventLabelRequestFilterSensitiveLog = (obj) => ({
|
|
|
768
803
|
export const UpdateEventLabelResultFilterSensitiveLog = (obj) => ({
|
|
769
804
|
...obj,
|
|
770
805
|
});
|
|
806
|
+
export const UpdateListRequestFilterSensitiveLog = (obj) => ({
|
|
807
|
+
...obj,
|
|
808
|
+
...(obj.elements && { elements: SENSITIVE_STRING }),
|
|
809
|
+
});
|
|
810
|
+
export const UpdateListResultFilterSensitiveLog = (obj) => ({
|
|
811
|
+
...obj,
|
|
812
|
+
});
|
|
771
813
|
export const UpdateModelRequestFilterSensitiveLog = (obj) => ({
|
|
772
814
|
...obj,
|
|
773
815
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GetListElementsCommand, } from "../commands/GetListElementsCommand";
|
|
2
|
+
import { FraudDetector } from "../FraudDetector";
|
|
3
|
+
import { FraudDetectorClient } from "../FraudDetectorClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetListElementsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getListElements(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateGetListElements(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof FraudDetector) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof FraudDetectorClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GetListsMetadataCommand, } from "../commands/GetListsMetadataCommand";
|
|
2
|
+
import { FraudDetector } from "../FraudDetector";
|
|
3
|
+
import { FraudDetectorClient } from "../FraudDetectorClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetListsMetadataCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getListsMetadata(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateGetListsMetadata(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof FraudDetector) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof FraudDetectorClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -6,9 +6,11 @@ export * from "./GetEntityTypesPaginator";
|
|
|
6
6
|
export * from "./GetEventTypesPaginator";
|
|
7
7
|
export * from "./GetExternalModelsPaginator";
|
|
8
8
|
export * from "./GetLabelsPaginator";
|
|
9
|
+
export * from "./GetListElementsPaginator";
|
|
10
|
+
export * from "./GetListsMetadataPaginator";
|
|
11
|
+
export * from "./Interfaces";
|
|
9
12
|
export * from "./GetModelsPaginator";
|
|
10
13
|
export * from "./GetOutcomesPaginator";
|
|
11
|
-
export * from "./Interfaces";
|
|
12
14
|
export * from "./GetRulesPaginator";
|
|
13
15
|
export * from "./GetVariablesPaginator";
|
|
14
16
|
export * from "./ListEventPredictionsPaginator";
|