aws-sdk-voiceid 1.11.0 → 1.12.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.
@@ -378,18 +378,67 @@ module Aws::VoiceID
378
378
 
379
379
  # @!group API Operations
380
380
 
381
+ # Associates the fraudsters with the watchlist specified in the same
382
+ # domain.
383
+ #
384
+ # @option params [required, String] :domain_id
385
+ # The identifier of the domain that contains the fraudster.
386
+ #
387
+ # @option params [required, String] :fraudster_id
388
+ # The identifier of the fraudster to be associated with the watchlist.
389
+ #
390
+ # @option params [required, String] :watchlist_id
391
+ # The identifier of the watchlist you want to associate with the
392
+ # fraudster.
393
+ #
394
+ # @return [Types::AssociateFraudsterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
395
+ #
396
+ # * {Types::AssociateFraudsterResponse#fraudster #fraudster} => Types::Fraudster
397
+ #
398
+ # @example Request syntax with placeholder values
399
+ #
400
+ # resp = client.associate_fraudster({
401
+ # domain_id: "DomainId", # required
402
+ # fraudster_id: "FraudsterId", # required
403
+ # watchlist_id: "WatchlistId", # required
404
+ # })
405
+ #
406
+ # @example Response structure
407
+ #
408
+ # resp.fraudster.created_at #=> Time
409
+ # resp.fraudster.domain_id #=> String
410
+ # resp.fraudster.generated_fraudster_id #=> String
411
+ # resp.fraudster.watchlist_ids #=> Array
412
+ # resp.fraudster.watchlist_ids[0] #=> String
413
+ #
414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/AssociateFraudster AWS API Documentation
415
+ #
416
+ # @overload associate_fraudster(params = {})
417
+ # @param [Hash] params ({})
418
+ def associate_fraudster(params = {}, options = {})
419
+ req = build_request(:associate_fraudster, params)
420
+ req.send_request(options)
421
+ end
422
+
381
423
  # Creates a domain that contains all Amazon Connect Voice ID data, such
382
- # as speakers, fraudsters, customer audio, and voiceprints.
424
+ # as speakers, fraudsters, customer audio, and voiceprints. Every domain
425
+ # is created with a default watchlist that fraudsters can be a part of.
383
426
  #
384
427
  # @option params [String] :client_token
385
- # The idempotency token for creating a new domain. If not provided,
386
- # Amazon Web Services SDK populates this field.
428
+ # A unique, case-sensitive identifier that you provide to ensure the
429
+ # idempotency of the request. If not provided, the Amazon Web Services
430
+ # SDK populates this field. For more information about idempotency, see
431
+ # [Making retries safe with idempotent APIs][1].
387
432
  #
388
433
  # **A suitable default value is auto-generated.** You should normally
389
434
  # not need to pass this option.**
390
435
  #
436
+ #
437
+ #
438
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
439
+ #
391
440
  # @option params [String] :description
392
- # A brief description of the domain.
441
+ # A brief description of this domain.
393
442
  #
394
443
  # @option params [required, String] :name
395
444
  # The name of the domain.
@@ -441,6 +490,7 @@ module Aws::VoiceID
441
490
  # resp.domain.server_side_encryption_update_details.old_kms_key_id #=> String
442
491
  # resp.domain.server_side_encryption_update_details.update_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
443
492
  # resp.domain.updated_at #=> Time
493
+ # resp.domain.watchlist_details.default_watchlist_id #=> String
444
494
  #
445
495
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/CreateDomain AWS API Documentation
446
496
  #
@@ -451,6 +501,62 @@ module Aws::VoiceID
451
501
  req.send_request(options)
452
502
  end
453
503
 
504
+ # Creates a watchlist that fraudsters can be a part of.
505
+ #
506
+ # @option params [String] :client_token
507
+ # A unique, case-sensitive identifier that you provide to ensure the
508
+ # idempotency of the request. If not provided, the Amazon Web Services
509
+ # SDK populates this field. For more information about idempotency, see
510
+ # [Making retries safe with idempotent APIs][1].
511
+ #
512
+ # **A suitable default value is auto-generated.** You should normally
513
+ # not need to pass this option.**
514
+ #
515
+ #
516
+ #
517
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
518
+ #
519
+ # @option params [String] :description
520
+ # A brief description of this watchlist.
521
+ #
522
+ # @option params [required, String] :domain_id
523
+ # The identifier of the domain that contains the watchlist.
524
+ #
525
+ # @option params [required, String] :name
526
+ # The name of the watchlist.
527
+ #
528
+ # @return [Types::CreateWatchlistResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
529
+ #
530
+ # * {Types::CreateWatchlistResponse#watchlist #watchlist} => Types::Watchlist
531
+ #
532
+ # @example Request syntax with placeholder values
533
+ #
534
+ # resp = client.create_watchlist({
535
+ # client_token: "ClientTokenString",
536
+ # description: "WatchlistDescription",
537
+ # domain_id: "DomainId", # required
538
+ # name: "WatchlistName", # required
539
+ # })
540
+ #
541
+ # @example Response structure
542
+ #
543
+ # resp.watchlist.created_at #=> Time
544
+ # resp.watchlist.default_watchlist #=> Boolean
545
+ # resp.watchlist.description #=> String
546
+ # resp.watchlist.domain_id #=> String
547
+ # resp.watchlist.name #=> String
548
+ # resp.watchlist.updated_at #=> Time
549
+ # resp.watchlist.watchlist_id #=> String
550
+ #
551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/CreateWatchlist AWS API Documentation
552
+ #
553
+ # @overload create_watchlist(params = {})
554
+ # @param [Hash] params ({})
555
+ def create_watchlist(params = {}, options = {})
556
+ req = build_request(:create_watchlist, params)
557
+ req.send_request(options)
558
+ end
559
+
454
560
  # Deletes the specified domain from Voice ID.
455
561
  #
456
562
  # @option params [required, String] :domain_id
@@ -473,10 +579,11 @@ module Aws::VoiceID
473
579
  req.send_request(options)
474
580
  end
475
581
 
476
- # Deletes the specified fraudster from Voice ID.
582
+ # Deletes the specified fraudster from Voice ID. This action
583
+ # disassociates the fraudster from any watchlists it is a part of.
477
584
  #
478
585
  # @option params [required, String] :domain_id
479
- # The identifier of the domain containing the fraudster.
586
+ # The identifier of the domain that contains the fraudster.
480
587
  #
481
588
  # @option params [required, String] :fraudster_id
482
589
  # The identifier of the fraudster you want to delete.
@@ -502,7 +609,7 @@ module Aws::VoiceID
502
609
  # Deletes the specified speaker from Voice ID.
503
610
  #
504
611
  # @option params [required, String] :domain_id
505
- # The identifier of the domain containing the speaker.
612
+ # The identifier of the domain that contains the speaker.
506
613
  #
507
614
  # @option params [required, String] :speaker_id
508
615
  # The identifier of the speaker you want to delete.
@@ -525,10 +632,40 @@ module Aws::VoiceID
525
632
  req.send_request(options)
526
633
  end
527
634
 
635
+ # Deletes the specified watchlist from Voice ID. This API throws an
636
+ # exception when there are fraudsters in the watchlist that you are
637
+ # trying to delete. You must delete the fraudsters, and then delete the
638
+ # watchlist. Every domain has a default watchlist which cannot be
639
+ # deleted.
640
+ #
641
+ # @option params [required, String] :domain_id
642
+ # The identifier of the domain that contains the watchlist.
643
+ #
644
+ # @option params [required, String] :watchlist_id
645
+ # The identifier of the watchlist to be deleted.
646
+ #
647
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
648
+ #
649
+ # @example Request syntax with placeholder values
650
+ #
651
+ # resp = client.delete_watchlist({
652
+ # domain_id: "DomainId", # required
653
+ # watchlist_id: "WatchlistId", # required
654
+ # })
655
+ #
656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DeleteWatchlist AWS API Documentation
657
+ #
658
+ # @overload delete_watchlist(params = {})
659
+ # @param [Hash] params ({})
660
+ def delete_watchlist(params = {}, options = {})
661
+ req = build_request(:delete_watchlist, params)
662
+ req.send_request(options)
663
+ end
664
+
528
665
  # Describes the specified domain.
529
666
  #
530
667
  # @option params [required, String] :domain_id
531
- # The identifier of the domain you are describing.
668
+ # The identifier of the domain that you are describing.
532
669
  #
533
670
  # @return [Types::DescribeDomainResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
534
671
  #
@@ -553,6 +690,7 @@ module Aws::VoiceID
553
690
  # resp.domain.server_side_encryption_update_details.old_kms_key_id #=> String
554
691
  # resp.domain.server_side_encryption_update_details.update_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
555
692
  # resp.domain.updated_at #=> Time
693
+ # resp.domain.watchlist_details.default_watchlist_id #=> String
556
694
  #
557
695
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeDomain AWS API Documentation
558
696
  #
@@ -566,7 +704,7 @@ module Aws::VoiceID
566
704
  # Describes the specified fraudster.
567
705
  #
568
706
  # @option params [required, String] :domain_id
569
- # The identifier of the domain containing the fraudster.
707
+ # The identifier of the domain that contains the fraudster.
570
708
  #
571
709
  # @option params [required, String] :fraudster_id
572
710
  # The identifier of the fraudster you are describing.
@@ -587,6 +725,8 @@ module Aws::VoiceID
587
725
  # resp.fraudster.created_at #=> Time
588
726
  # resp.fraudster.domain_id #=> String
589
727
  # resp.fraudster.generated_fraudster_id #=> String
728
+ # resp.fraudster.watchlist_ids #=> Array
729
+ # resp.fraudster.watchlist_ids[0] #=> String
590
730
  #
591
731
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudster AWS API Documentation
592
732
  #
@@ -600,11 +740,11 @@ module Aws::VoiceID
600
740
  # Describes the specified fraudster registration job.
601
741
  #
602
742
  # @option params [required, String] :domain_id
603
- # The identifier for the domain containing the fraudster registration
743
+ # The identifier of the domain that contains the fraudster registration
604
744
  # job.
605
745
  #
606
746
  # @option params [required, String] :job_id
607
- # The identifier for the fraudster registration job you are describing.
747
+ # The identifier of the fraudster registration job you are describing.
608
748
  #
609
749
  # @return [Types::DescribeFraudsterRegistrationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
610
750
  #
@@ -634,6 +774,8 @@ module Aws::VoiceID
634
774
  # resp.job.output_data_config.s3_uri #=> String
635
775
  # resp.job.registration_config.duplicate_registration_action #=> String, one of "SKIP", "REGISTER_AS_NEW"
636
776
  # resp.job.registration_config.fraudster_similarity_threshold #=> Integer
777
+ # resp.job.registration_config.watchlist_ids #=> Array
778
+ # resp.job.registration_config.watchlist_ids[0] #=> String
637
779
  #
638
780
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeFraudsterRegistrationJob AWS API Documentation
639
781
  #
@@ -685,7 +827,7 @@ module Aws::VoiceID
685
827
  # Describes the specified speaker enrollment job.
686
828
  #
687
829
  # @option params [required, String] :domain_id
688
- # The identifier of the domain containing the speaker enrollment job.
830
+ # The identifier of the domain that contains the speaker enrollment job.
689
831
  #
690
832
  # @option params [required, String] :job_id
691
833
  # The identifier of the speaker enrollment job you are describing.
@@ -710,6 +852,8 @@ module Aws::VoiceID
710
852
  # resp.job.enrollment_config.existing_enrollment_action #=> String, one of "SKIP", "OVERWRITE"
711
853
  # resp.job.enrollment_config.fraud_detection_config.fraud_detection_action #=> String, one of "IGNORE", "FAIL"
712
854
  # resp.job.enrollment_config.fraud_detection_config.risk_threshold #=> Integer
855
+ # resp.job.enrollment_config.fraud_detection_config.watchlist_ids #=> Array
856
+ # resp.job.enrollment_config.fraud_detection_config.watchlist_ids[0] #=> String
713
857
  # resp.job.failure_details.message #=> String
714
858
  # resp.job.failure_details.status_code #=> Integer
715
859
  # resp.job.input_data_config.s3_uri #=> String
@@ -729,6 +873,89 @@ module Aws::VoiceID
729
873
  req.send_request(options)
730
874
  end
731
875
 
876
+ # Describes the specified watchlist.
877
+ #
878
+ # @option params [required, String] :domain_id
879
+ # The identifier of the domain that contains the watchlist.
880
+ #
881
+ # @option params [required, String] :watchlist_id
882
+ # The identifier of the watchlist that you are describing.
883
+ #
884
+ # @return [Types::DescribeWatchlistResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
885
+ #
886
+ # * {Types::DescribeWatchlistResponse#watchlist #watchlist} => Types::Watchlist
887
+ #
888
+ # @example Request syntax with placeholder values
889
+ #
890
+ # resp = client.describe_watchlist({
891
+ # domain_id: "DomainId", # required
892
+ # watchlist_id: "WatchlistId", # required
893
+ # })
894
+ #
895
+ # @example Response structure
896
+ #
897
+ # resp.watchlist.created_at #=> Time
898
+ # resp.watchlist.default_watchlist #=> Boolean
899
+ # resp.watchlist.description #=> String
900
+ # resp.watchlist.domain_id #=> String
901
+ # resp.watchlist.name #=> String
902
+ # resp.watchlist.updated_at #=> Time
903
+ # resp.watchlist.watchlist_id #=> String
904
+ #
905
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DescribeWatchlist AWS API Documentation
906
+ #
907
+ # @overload describe_watchlist(params = {})
908
+ # @param [Hash] params ({})
909
+ def describe_watchlist(params = {}, options = {})
910
+ req = build_request(:describe_watchlist, params)
911
+ req.send_request(options)
912
+ end
913
+
914
+ # Disassociates the fraudsters from the watchlist specified. Voice ID
915
+ # always expects a fraudster to be a part of at least one watchlist. If
916
+ # you try to disassociate a fraudster from its only watchlist, a
917
+ # `ValidationException` is thrown.
918
+ #
919
+ # @option params [required, String] :domain_id
920
+ # The identifier of the domain that contains the fraudster.
921
+ #
922
+ # @option params [required, String] :fraudster_id
923
+ # The identifier of the fraudster to be disassociated from the
924
+ # watchlist.
925
+ #
926
+ # @option params [required, String] :watchlist_id
927
+ # The identifier of the watchlist that you want to disassociate from the
928
+ # fraudster.
929
+ #
930
+ # @return [Types::DisassociateFraudsterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
931
+ #
932
+ # * {Types::DisassociateFraudsterResponse#fraudster #fraudster} => Types::Fraudster
933
+ #
934
+ # @example Request syntax with placeholder values
935
+ #
936
+ # resp = client.disassociate_fraudster({
937
+ # domain_id: "DomainId", # required
938
+ # fraudster_id: "FraudsterId", # required
939
+ # watchlist_id: "WatchlistId", # required
940
+ # })
941
+ #
942
+ # @example Response structure
943
+ #
944
+ # resp.fraudster.created_at #=> Time
945
+ # resp.fraudster.domain_id #=> String
946
+ # resp.fraudster.generated_fraudster_id #=> String
947
+ # resp.fraudster.watchlist_ids #=> Array
948
+ # resp.fraudster.watchlist_ids[0] #=> String
949
+ #
950
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/DisassociateFraudster AWS API Documentation
951
+ #
952
+ # @overload disassociate_fraudster(params = {})
953
+ # @param [Hash] params ({})
954
+ def disassociate_fraudster(params = {}, options = {})
955
+ req = build_request(:disassociate_fraudster, params)
956
+ req.send_request(options)
957
+ end
958
+
732
959
  # Evaluates a specified session based on audio data accumulated during a
733
960
  # streaming Amazon Connect Voice ID call.
734
961
  #
@@ -769,6 +996,7 @@ module Aws::VoiceID
769
996
  # resp.fraud_detection_result.audio_aggregation_ended_at #=> Time
770
997
  # resp.fraud_detection_result.audio_aggregation_started_at #=> Time
771
998
  # resp.fraud_detection_result.configuration.risk_threshold #=> Integer
999
+ # resp.fraud_detection_result.configuration.watchlist_id #=> String
772
1000
  # resp.fraud_detection_result.decision #=> String, one of "HIGH_RISK", "LOW_RISK", "NOT_ENOUGH_SPEECH"
773
1001
  # resp.fraud_detection_result.fraud_detection_result_id #=> String
774
1002
  # resp.fraud_detection_result.reasons #=> Array
@@ -792,7 +1020,9 @@ module Aws::VoiceID
792
1020
  # Lists all the domains in the Amazon Web Services account.
793
1021
  #
794
1022
  # @option params [Integer] :max_results
795
- # The maximum number of domains to list per API call.
1023
+ # The maximum number of results that are returned per call. You can use
1024
+ # `NextToken` to obtain more pages of results. The default is 100; the
1025
+ # maximum allowed page size is also 100.
796
1026
  #
797
1027
  # @option params [String] :next_token
798
1028
  # If `NextToken` is returned, there are more results available. The
@@ -829,6 +1059,7 @@ module Aws::VoiceID
829
1059
  # resp.domain_summaries[0].server_side_encryption_update_details.old_kms_key_id #=> String
830
1060
  # resp.domain_summaries[0].server_side_encryption_update_details.update_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
831
1061
  # resp.domain_summaries[0].updated_at #=> Time
1062
+ # resp.domain_summaries[0].watchlist_details.default_watchlist_id #=> String
832
1063
  # resp.next_token #=> String
833
1064
  #
834
1065
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListDomains AWS API Documentation
@@ -845,7 +1076,7 @@ module Aws::VoiceID
845
1076
  # registration jobs in the given domain.
846
1077
  #
847
1078
  # @option params [required, String] :domain_id
848
- # The identifier of the domain containing the fraudster registration
1079
+ # The identifier of the domain that contains the fraudster registration
849
1080
  # Jobs.
850
1081
  #
851
1082
  # @option params [String] :job_status
@@ -853,8 +1084,8 @@ module Aws::VoiceID
853
1084
  #
854
1085
  # @option params [Integer] :max_results
855
1086
  # The maximum number of results that are returned per call. You can use
856
- # `NextToken` to obtain further pages of results. The default is 100;
857
- # the maximum allowed page size is also 100.
1087
+ # `NextToken` to obtain more pages of results. The default is 100; the
1088
+ # maximum allowed page size is also 100.
858
1089
  #
859
1090
  # @option params [String] :next_token
860
1091
  # If `NextToken` is returned, there are more results available. The
@@ -902,20 +1133,78 @@ module Aws::VoiceID
902
1133
  req.send_request(options)
903
1134
  end
904
1135
 
1136
+ # Lists all fraudsters in a specified watchlist or domain.
1137
+ #
1138
+ # @option params [required, String] :domain_id
1139
+ # The identifier of the domain.
1140
+ #
1141
+ # @option params [Integer] :max_results
1142
+ # The maximum number of results that are returned per call. You can use
1143
+ # `NextToken` to obtain more pages of results. The default is 100; the
1144
+ # maximum allowed page size is also 100.
1145
+ #
1146
+ # @option params [String] :next_token
1147
+ # If `NextToken` is returned, there are more results available. The
1148
+ # value of `NextToken` is a unique pagination token for each page. Make
1149
+ # the call again using the returned token to retrieve the next page.
1150
+ # Keep all other arguments unchanged. Each pagination token expires
1151
+ # after 24 hours.
1152
+ #
1153
+ # @option params [String] :watchlist_id
1154
+ # The identifier of the watchlist. If provided, all fraudsters in the
1155
+ # watchlist are listed. If not provided, all fraudsters in the domain
1156
+ # are listed.
1157
+ #
1158
+ # @return [Types::ListFraudstersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1159
+ #
1160
+ # * {Types::ListFraudstersResponse#fraudster_summaries #fraudster_summaries} => Array<Types::FraudsterSummary>
1161
+ # * {Types::ListFraudstersResponse#next_token #next_token} => String
1162
+ #
1163
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1164
+ #
1165
+ # @example Request syntax with placeholder values
1166
+ #
1167
+ # resp = client.list_fraudsters({
1168
+ # domain_id: "DomainId", # required
1169
+ # max_results: 1,
1170
+ # next_token: "NextToken",
1171
+ # watchlist_id: "WatchlistId",
1172
+ # })
1173
+ #
1174
+ # @example Response structure
1175
+ #
1176
+ # resp.fraudster_summaries #=> Array
1177
+ # resp.fraudster_summaries[0].created_at #=> Time
1178
+ # resp.fraudster_summaries[0].domain_id #=> String
1179
+ # resp.fraudster_summaries[0].generated_fraudster_id #=> String
1180
+ # resp.fraudster_summaries[0].watchlist_ids #=> Array
1181
+ # resp.fraudster_summaries[0].watchlist_ids[0] #=> String
1182
+ # resp.next_token #=> String
1183
+ #
1184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListFraudsters AWS API Documentation
1185
+ #
1186
+ # @overload list_fraudsters(params = {})
1187
+ # @param [Hash] params ({})
1188
+ def list_fraudsters(params = {}, options = {})
1189
+ req = build_request(:list_fraudsters, params)
1190
+ req.send_request(options)
1191
+ end
1192
+
905
1193
  # Lists all the speaker enrollment jobs in the domain with the specified
906
1194
  # `JobStatus`. If `JobStatus` is not provided, this lists all jobs with
907
1195
  # all possible speaker enrollment job statuses.
908
1196
  #
909
1197
  # @option params [required, String] :domain_id
910
- # The identifier of the domain containing the speaker enrollment jobs.
1198
+ # The identifier of the domain that contains the speaker enrollment
1199
+ # jobs.
911
1200
  #
912
1201
  # @option params [String] :job_status
913
1202
  # Provides the status of your speaker enrollment Job.
914
1203
  #
915
1204
  # @option params [Integer] :max_results
916
1205
  # The maximum number of results that are returned per call. You can use
917
- # `NextToken` to obtain further pages of results. The default is 100;
918
- # the maximum allowed page size is also 100.
1206
+ # `NextToken` to obtain more pages of results. The default is 100; the
1207
+ # maximum allowed page size is also 100.
919
1208
  #
920
1209
  # @option params [String] :next_token
921
1210
  # If `NextToken` is returned, there are more results available. The
@@ -970,8 +1259,8 @@ module Aws::VoiceID
970
1259
  #
971
1260
  # @option params [Integer] :max_results
972
1261
  # The maximum number of results that are returned per call. You can use
973
- # `NextToken` to obtain further pages of results. The default is 100;
974
- # the maximum allowed page size is also 100.
1262
+ # `NextToken` to obtain more pages of results. The default is 100; the
1263
+ # maximum allowed page size is also 100.
975
1264
  #
976
1265
  # @option params [String] :next_token
977
1266
  # If `NextToken` is returned, there are more results available. The
@@ -1047,6 +1336,59 @@ module Aws::VoiceID
1047
1336
  req.send_request(options)
1048
1337
  end
1049
1338
 
1339
+ # Lists all watchlists in a specified domain.
1340
+ #
1341
+ # @option params [required, String] :domain_id
1342
+ # The identifier of the domain.
1343
+ #
1344
+ # @option params [Integer] :max_results
1345
+ # The maximum number of results that are returned per call. You can use
1346
+ # `NextToken` to obtain more pages of results. The default is 100; the
1347
+ # maximum allowed page size is also 100.
1348
+ #
1349
+ # @option params [String] :next_token
1350
+ # If `NextToken` is returned, there are more results available. The
1351
+ # value of `NextToken` is a unique pagination token for each page. Make
1352
+ # the call again using the returned token to retrieve the next page.
1353
+ # Keep all other arguments unchanged. Each pagination token expires
1354
+ # after 24 hours.
1355
+ #
1356
+ # @return [Types::ListWatchlistsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1357
+ #
1358
+ # * {Types::ListWatchlistsResponse#next_token #next_token} => String
1359
+ # * {Types::ListWatchlistsResponse#watchlist_summaries #watchlist_summaries} => Array<Types::WatchlistSummary>
1360
+ #
1361
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1362
+ #
1363
+ # @example Request syntax with placeholder values
1364
+ #
1365
+ # resp = client.list_watchlists({
1366
+ # domain_id: "DomainId", # required
1367
+ # max_results: 1,
1368
+ # next_token: "NextToken",
1369
+ # })
1370
+ #
1371
+ # @example Response structure
1372
+ #
1373
+ # resp.next_token #=> String
1374
+ # resp.watchlist_summaries #=> Array
1375
+ # resp.watchlist_summaries[0].created_at #=> Time
1376
+ # resp.watchlist_summaries[0].default_watchlist #=> Boolean
1377
+ # resp.watchlist_summaries[0].description #=> String
1378
+ # resp.watchlist_summaries[0].domain_id #=> String
1379
+ # resp.watchlist_summaries[0].name #=> String
1380
+ # resp.watchlist_summaries[0].updated_at #=> Time
1381
+ # resp.watchlist_summaries[0].watchlist_id #=> String
1382
+ #
1383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/ListWatchlists AWS API Documentation
1384
+ #
1385
+ # @overload list_watchlists(params = {})
1386
+ # @param [Hash] params ({})
1387
+ def list_watchlists(params = {}, options = {})
1388
+ req = build_request(:list_watchlists, params)
1389
+ req.send_request(options)
1390
+ end
1391
+
1050
1392
  # Opts out a speaker from Voice ID. A speaker can be opted out
1051
1393
  # regardless of whether or not they already exist in Voice ID. If they
1052
1394
  # don't yet exist, a new speaker is created in an opted out state. If
@@ -1056,7 +1398,7 @@ module Aws::VoiceID
1056
1398
  # embeddings stored in Voice ID.
1057
1399
  #
1058
1400
  # @option params [required, String] :domain_id
1059
- # The identifier of the domain containing the speaker.
1401
+ # The identifier of the domain that contains the speaker.
1060
1402
  #
1061
1403
  # @option params [required, String] :speaker_id
1062
1404
  # The identifier of the speaker you want opted-out.
@@ -1094,12 +1436,18 @@ module Aws::VoiceID
1094
1436
  # Starts a new batch fraudster registration job using provided details.
1095
1437
  #
1096
1438
  # @option params [String] :client_token
1097
- # The idempotency token for starting a new fraudster registration job.
1098
- # If not provided, Amazon Web Services SDK populates this field.
1439
+ # A unique, case-sensitive identifier that you provide to ensure the
1440
+ # idempotency of the request. If not provided, the Amazon Web Services
1441
+ # SDK populates this field. For more information about idempotency, see
1442
+ # [Making retries safe with idempotent APIs][1].
1099
1443
  #
1100
1444
  # **A suitable default value is auto-generated.** You should normally
1101
1445
  # not need to pass this option.**
1102
1446
  #
1447
+ #
1448
+ #
1449
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
1450
+ #
1103
1451
  # @option params [required, String] :data_access_role_arn
1104
1452
  # The IAM role Amazon Resource Name (ARN) that grants Voice ID
1105
1453
  # permissions to access customer's buckets to read the input manifest
@@ -1112,8 +1460,8 @@ module Aws::VoiceID
1112
1460
  # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/voiceid-fraudster-watchlist.html
1113
1461
  #
1114
1462
  # @option params [required, String] :domain_id
1115
- # The identifier of the domain containing the fraudster registration job
1116
- # and in which the fraudsters are registered.
1463
+ # The identifier of the domain that contains the fraudster registration
1464
+ # job and in which the fraudsters are registered.
1117
1465
  #
1118
1466
  # @option params [required, Types::InputDataConfig] :input_data_config
1119
1467
  # The input data config containing an S3 URI for the input manifest file
@@ -1153,6 +1501,7 @@ module Aws::VoiceID
1153
1501
  # registration_config: {
1154
1502
  # duplicate_registration_action: "SKIP", # accepts SKIP, REGISTER_AS_NEW
1155
1503
  # fraudster_similarity_threshold: 1,
1504
+ # watchlist_ids: ["WatchlistId"],
1156
1505
  # },
1157
1506
  # })
1158
1507
  #
@@ -1173,6 +1522,8 @@ module Aws::VoiceID
1173
1522
  # resp.job.output_data_config.s3_uri #=> String
1174
1523
  # resp.job.registration_config.duplicate_registration_action #=> String, one of "SKIP", "REGISTER_AS_NEW"
1175
1524
  # resp.job.registration_config.fraudster_similarity_threshold #=> Integer
1525
+ # resp.job.registration_config.watchlist_ids #=> Array
1526
+ # resp.job.registration_config.watchlist_ids[0] #=> String
1176
1527
  #
1177
1528
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/StartFraudsterRegistrationJob AWS API Documentation
1178
1529
  #
@@ -1186,12 +1537,18 @@ module Aws::VoiceID
1186
1537
  # Starts a new batch speaker enrollment job using specified details.
1187
1538
  #
1188
1539
  # @option params [String] :client_token
1189
- # The idempotency token for starting a new speaker enrollment Job. If
1190
- # not provided, Amazon Web Services SDK populates this field.
1540
+ # A unique, case-sensitive identifier that you provide to ensure the
1541
+ # idempotency of the request. If not provided, the Amazon Web Services
1542
+ # SDK populates this field. For more information about idempotency, see
1543
+ # [Making retries safe with idempotent APIs][1].
1191
1544
  #
1192
1545
  # **A suitable default value is auto-generated.** You should normally
1193
1546
  # not need to pass this option.**
1194
1547
  #
1548
+ #
1549
+ #
1550
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
1551
+ #
1195
1552
  # @option params [required, String] :data_access_role_arn
1196
1553
  # The IAM role Amazon Resource Name (ARN) that grants Voice ID
1197
1554
  # permissions to access customer's buckets to read the input manifest
@@ -1239,6 +1596,7 @@ module Aws::VoiceID
1239
1596
  # fraud_detection_config: {
1240
1597
  # fraud_detection_action: "IGNORE", # accepts IGNORE, FAIL
1241
1598
  # risk_threshold: 1,
1599
+ # watchlist_ids: ["WatchlistId"],
1242
1600
  # },
1243
1601
  # },
1244
1602
  # input_data_config: { # required
@@ -1260,6 +1618,8 @@ module Aws::VoiceID
1260
1618
  # resp.job.enrollment_config.existing_enrollment_action #=> String, one of "SKIP", "OVERWRITE"
1261
1619
  # resp.job.enrollment_config.fraud_detection_config.fraud_detection_action #=> String, one of "IGNORE", "FAIL"
1262
1620
  # resp.job.enrollment_config.fraud_detection_config.risk_threshold #=> Integer
1621
+ # resp.job.enrollment_config.fraud_detection_config.watchlist_ids #=> Array
1622
+ # resp.job.enrollment_config.fraud_detection_config.watchlist_ids[0] #=> String
1263
1623
  # resp.job.failure_details.message #=> String
1264
1624
  # resp.job.failure_details.status_code #=> Integer
1265
1625
  # resp.job.input_data_config.s3_uri #=> String
@@ -1344,7 +1704,7 @@ module Aws::VoiceID
1344
1704
  # 'Description' is not provided, it is removed from the domain.
1345
1705
  #
1346
1706
  # @option params [String] :description
1347
- # A brief description of the domain.
1707
+ # A brief description about this domain.
1348
1708
  #
1349
1709
  # @option params [required, String] :domain_id
1350
1710
  # The identifier of the domain to be updated.
@@ -1389,6 +1749,7 @@ module Aws::VoiceID
1389
1749
  # resp.domain.server_side_encryption_update_details.old_kms_key_id #=> String
1390
1750
  # resp.domain.server_side_encryption_update_details.update_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
1391
1751
  # resp.domain.updated_at #=> Time
1752
+ # resp.domain.watchlist_details.default_watchlist_id #=> String
1392
1753
  #
1393
1754
  # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UpdateDomain AWS API Documentation
1394
1755
  #
@@ -1399,6 +1760,53 @@ module Aws::VoiceID
1399
1760
  req.send_request(options)
1400
1761
  end
1401
1762
 
1763
+ # Updates the specified watchlist. Every domain has a default watchlist
1764
+ # which cannot be updated.
1765
+ #
1766
+ # @option params [String] :description
1767
+ # A brief description about this watchlist.
1768
+ #
1769
+ # @option params [required, String] :domain_id
1770
+ # The identifier of the domain that contains the watchlist.
1771
+ #
1772
+ # @option params [String] :name
1773
+ # The name of the watchlist.
1774
+ #
1775
+ # @option params [required, String] :watchlist_id
1776
+ # The identifier of the watchlist to be updated.
1777
+ #
1778
+ # @return [Types::UpdateWatchlistResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1779
+ #
1780
+ # * {Types::UpdateWatchlistResponse#watchlist #watchlist} => Types::Watchlist
1781
+ #
1782
+ # @example Request syntax with placeholder values
1783
+ #
1784
+ # resp = client.update_watchlist({
1785
+ # description: "WatchlistDescription",
1786
+ # domain_id: "DomainId", # required
1787
+ # name: "WatchlistName",
1788
+ # watchlist_id: "WatchlistId", # required
1789
+ # })
1790
+ #
1791
+ # @example Response structure
1792
+ #
1793
+ # resp.watchlist.created_at #=> Time
1794
+ # resp.watchlist.default_watchlist #=> Boolean
1795
+ # resp.watchlist.description #=> String
1796
+ # resp.watchlist.domain_id #=> String
1797
+ # resp.watchlist.name #=> String
1798
+ # resp.watchlist.updated_at #=> Time
1799
+ # resp.watchlist.watchlist_id #=> String
1800
+ #
1801
+ # @see http://docs.aws.amazon.com/goto/WebAPI/voice-id-2021-09-27/UpdateWatchlist AWS API Documentation
1802
+ #
1803
+ # @overload update_watchlist(params = {})
1804
+ # @param [Hash] params ({})
1805
+ def update_watchlist(params = {}, options = {})
1806
+ req = build_request(:update_watchlist, params)
1807
+ req.send_request(options)
1808
+ end
1809
+
1402
1810
  # @!endgroup
1403
1811
 
1404
1812
  # @param params ({})
@@ -1412,7 +1820,7 @@ module Aws::VoiceID
1412
1820
  params: params,
1413
1821
  config: config)
1414
1822
  context[:gem_name] = 'aws-sdk-voiceid'
1415
- context[:gem_version] = '1.11.0'
1823
+ context[:gem_version] = '1.12.0'
1416
1824
  Seahorse::Client::Request.new(handlers, context)
1417
1825
  end
1418
1826