@aws-sdk/client-frauddetector 3.271.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.
Files changed (55) hide show
  1. package/dist-cjs/FraudDetector.js +75 -0
  2. package/dist-cjs/commands/CreateListCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteListCommand.js +46 -0
  4. package/dist-cjs/commands/GetListElementsCommand.js +46 -0
  5. package/dist-cjs/commands/GetListsMetadataCommand.js +46 -0
  6. package/dist-cjs/commands/UpdateListCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +58 -5
  10. package/dist-cjs/pagination/GetListElementsPaginator.js +36 -0
  11. package/dist-cjs/pagination/GetListsMetadataPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +3 -1
  13. package/dist-cjs/protocols/Aws_json1_1.js +380 -3
  14. package/dist-es/FraudDetector.js +75 -0
  15. package/dist-es/commands/CreateListCommand.js +42 -0
  16. package/dist-es/commands/DeleteListCommand.js +42 -0
  17. package/dist-es/commands/GetListElementsCommand.js +42 -0
  18. package/dist-es/commands/GetListsMetadataCommand.js +42 -0
  19. package/dist-es/commands/UpdateListCommand.js +42 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/endpoint/ruleset.js +3 -3
  22. package/dist-es/models/models_0.js +42 -0
  23. package/dist-es/pagination/GetListElementsPaginator.js +32 -0
  24. package/dist-es/pagination/GetListsMetadataPaginator.js +32 -0
  25. package/dist-es/pagination/index.js +3 -1
  26. package/dist-es/protocols/Aws_json1_1.js +367 -0
  27. package/dist-types/FraudDetector.d.ts +48 -0
  28. package/dist-types/FraudDetectorClient.d.ts +7 -2
  29. package/dist-types/commands/CreateListCommand.d.ts +41 -0
  30. package/dist-types/commands/DeleteListCommand.d.ts +40 -0
  31. package/dist-types/commands/GetListElementsCommand.d.ts +39 -0
  32. package/dist-types/commands/GetListsMetadataCommand.d.ts +39 -0
  33. package/dist-types/commands/UpdateListCommand.d.ts +39 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  36. package/dist-types/models/models_0.d.ts +254 -0
  37. package/dist-types/pagination/GetListElementsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/GetListsMetadataPaginator.d.ts +4 -0
  39. package/dist-types/pagination/index.d.ts +3 -1
  40. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  41. package/dist-types/ts3.4/FraudDetector.d.ts +85 -0
  42. package/dist-types/ts3.4/FraudDetectorClient.d.ts +30 -0
  43. package/dist-types/ts3.4/commands/CreateListCommand.d.ts +34 -0
  44. package/dist-types/ts3.4/commands/DeleteListCommand.d.ts +34 -0
  45. package/dist-types/ts3.4/commands/GetListElementsCommand.d.ts +37 -0
  46. package/dist-types/ts3.4/commands/GetListsMetadataCommand.d.ts +37 -0
  47. package/dist-types/ts3.4/commands/UpdateListCommand.d.ts +34 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +84 -0
  51. package/dist-types/ts3.4/pagination/GetListElementsPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/GetListsMetadataPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +3 -1
  54. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  55. package/package.json +29 -29
@@ -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 = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://frauddetector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://frauddetector-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://frauddetector.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://frauddetector.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
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";