aws-sdk-rekognition 1.57.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,7 +119,9 @@ module Aws::Rekognition
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -285,6 +287,15 @@ module Aws::Rekognition
285
287
  # ** Please note ** When response stubbing is enabled, no HTTP
286
288
  # requests are made, and retries are disabled.
287
289
  #
290
+ # @option options [Boolean] :use_dualstack_endpoint
291
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
+ # will be used if available.
293
+ #
294
+ # @option options [Boolean] :use_fips_endpoint
295
+ # When set to `true`, fips compatible endpoints will be used if available.
296
+ # When a `fips` region is used, the region is normalized and this config
297
+ # is set to `true`.
298
+ #
288
299
  # @option options [Boolean] :validate_params (true)
289
300
  # When `true`, request parameters are validated before
290
301
  # sending the request.
@@ -652,9 +663,84 @@ module Aws::Rekognition
652
663
  req.send_request(options)
653
664
  end
654
665
 
666
+ # Creates a new Amazon Rekognition Custom Labels dataset. You can create
667
+ # a dataset by using an Amazon Sagemaker format manifest file or by
668
+ # copying an existing Amazon Rekognition Custom Labels dataset.
669
+ #
670
+ # To create a training dataset for a project, specify `train` for the
671
+ # value of `DatasetType`. To create the test dataset for a project,
672
+ # specify `test` for the value of `DatasetType`.
673
+ #
674
+ # The response from `CreateDataset` is the Amazon Resource Name (ARN)
675
+ # for the dataset. Creating a dataset takes a while to complete. Use
676
+ # DescribeDataset to check the current status. The dataset created
677
+ # successfully if the value of `Status` is `CREATE_COMPLETE`.
678
+ #
679
+ # To check if any non-terminal errors occurred, call ListDatasetEntries
680
+ # and check for the presence of `errors` lists in the JSON Lines.
681
+ #
682
+ # Dataset creation fails if a terminal error occurs (`Status` =
683
+ # `CREATE_FAILED`). Currently, you can't access the terminal error
684
+ # information.
685
+ #
686
+ # For more information, see Creating dataset in the *Amazon Rekognition
687
+ # Custom Labels Developer Guide*.
688
+ #
689
+ # This operation requires permissions to perform the
690
+ # `rekognition:CreateDataset` action. If you want to copy an existing
691
+ # dataset, you also require permission to perform the
692
+ # `rekognition:ListDatasetEntries` action.
693
+ #
694
+ # @option params [Types::DatasetSource] :dataset_source
695
+ # The source files for the dataset. You can specify the ARN of an
696
+ # existing dataset or specify the Amazon S3 bucket location of an Amazon
697
+ # Sagemaker format manifest file. If you don't specify `datasetSource`,
698
+ # an empty dataset is created. To add labeled images to the dataset, You
699
+ # can use the console or call UpdateDatasetEntries.
700
+ #
701
+ # @option params [required, String] :dataset_type
702
+ # The type of the dataset. Specify `train` to create a training dataset.
703
+ # Specify `test` to create a test dataset.
704
+ #
705
+ # @option params [required, String] :project_arn
706
+ # The ARN of the Amazon Rekognition Custom Labels project to which you
707
+ # want to asssign the dataset.
708
+ #
709
+ # @return [Types::CreateDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
710
+ #
711
+ # * {Types::CreateDatasetResponse#dataset_arn #dataset_arn} => String
712
+ #
713
+ # @example Request syntax with placeholder values
714
+ #
715
+ # resp = client.create_dataset({
716
+ # dataset_source: {
717
+ # ground_truth_manifest: {
718
+ # s3_object: {
719
+ # bucket: "S3Bucket",
720
+ # name: "S3ObjectName",
721
+ # version: "S3ObjectVersion",
722
+ # },
723
+ # },
724
+ # dataset_arn: "DatasetArn",
725
+ # },
726
+ # dataset_type: "TRAIN", # required, accepts TRAIN, TEST
727
+ # project_arn: "ProjectArn", # required
728
+ # })
729
+ #
730
+ # @example Response structure
731
+ #
732
+ # resp.dataset_arn #=> String
733
+ #
734
+ # @overload create_dataset(params = {})
735
+ # @param [Hash] params ({})
736
+ def create_dataset(params = {}, options = {})
737
+ req = build_request(:create_dataset, params)
738
+ req.send_request(options)
739
+ end
740
+
655
741
  # Creates a new Amazon Rekognition Custom Labels project. A project is a
656
- # logical grouping of resources (images, Labels, models) and operations
657
- # (training, evaluation and detection).
742
+ # group of resources (datasets, model versions) that you use to create
743
+ # and manage Amazon Rekognition Custom Labels models.
658
744
  #
659
745
  # This operation requires permissions to perform the
660
746
  # `rekognition:CreateProject` action.
@@ -684,16 +770,40 @@ module Aws::Rekognition
684
770
  end
685
771
 
686
772
  # Creates a new version of a model and begins training. Models are
687
- # managed as part of an Amazon Rekognition Custom Labels project. You
688
- # can specify one training dataset and one testing dataset. The response
689
- # from `CreateProjectVersion` is an Amazon Resource Name (ARN) for the
690
- # version of the model.
773
+ # managed as part of an Amazon Rekognition Custom Labels project. The
774
+ # response from `CreateProjectVersion` is an Amazon Resource Name (ARN)
775
+ # for the version of the model.
776
+ #
777
+ # Training uses the training and test datasets associated with the
778
+ # project. For more information, see Creating training and test dataset
779
+ # in the *Amazon Rekognition Custom Labels Developer Guide*.
780
+ #
781
+ # <note markdown="1"> You can train a modelin a project that doesn't have associated
782
+ # datasets by specifying manifest files in the `TrainingData` and
783
+ # `TestingData` fields.
784
+ #
785
+ # If you open the console after training a model with manifest files,
786
+ # Amazon Rekognition Custom Labels creates the datasets for you using
787
+ # the most recent manifest files. You can no longer train a model
788
+ # version for the project by specifying manifest files.
789
+ #
790
+ # Instead of training with a project without associated datasets, we
791
+ # recommend that you use the manifest files to create training and test
792
+ # datasets for the project.
793
+ #
794
+ # </note>
691
795
  #
692
796
  # Training takes a while to complete. You can get the current status by
693
- # calling DescribeProjectVersions.
797
+ # calling DescribeProjectVersions. Training completed successfully if
798
+ # the value of the `Status` field is `TRAINING_COMPLETED`.
799
+ #
800
+ # If training fails, see Debugging a failed model training in the
801
+ # *Amazon Rekognition Custom Labels* developer guide.
694
802
  #
695
803
  # Once training has successfully completed, call DescribeProjectVersions
696
- # to get the training results and evaluate the model.
804
+ # to get the training results and evaluate the model. For more
805
+ # information, see Improving a trained Amazon Rekognition Custom Labels
806
+ # model in the *Amazon Rekognition Custom Labels* developers guide.
697
807
  #
698
808
  # After evaluating the model, you start the model by calling
699
809
  # StartProjectVersion.
@@ -713,26 +823,30 @@ module Aws::Rekognition
713
823
  # bucket can be in any AWS account as long as the caller has
714
824
  # `s3:PutObject` permissions on the S3 bucket.
715
825
  #
716
- # @option params [required, Types::TrainingData] :training_data
717
- # The dataset to use for training.
826
+ # @option params [Types::TrainingData] :training_data
827
+ # Specifies an external manifest that the services uses to train the
828
+ # model. If you specify `TrainingData` you must also specify
829
+ # `TestingData`. The project must not have any associated datasets.
718
830
  #
719
- # @option params [required, Types::TestingData] :testing_data
720
- # The dataset to use for testing.
831
+ # @option params [Types::TestingData] :testing_data
832
+ # Specifies an external manifest that the service uses to test the
833
+ # model. If you specify `TestingData` you must also specify
834
+ # `TrainingData`. The project must not have any associated datasets.
721
835
  #
722
836
  # @option params [Hash<String,String>] :tags
723
837
  # A set of tags (key-value pairs) that you want to attach to the model.
724
838
  #
725
839
  # @option params [String] :kms_key_id
726
- # The identifier for your AWS Key Management Service (AWS KMS) customer
727
- # master key (CMK). You can supply the Amazon Resource Name (ARN) of
728
- # your CMK, the ID of your CMK, an alias for your CMK, or an alias ARN.
729
- # The key is used to encrypt training and test images copied into the
730
- # service for model training. Your source images are unaffected. The key
731
- # is also used to encrypt training results and manifest files written to
732
- # the output Amazon S3 bucket (`OutputConfig`).
840
+ # The identifier for your AWS Key Management Service key (AWS KMS key).
841
+ # You can supply the Amazon Resource Name (ARN) of your KMS key, the ID
842
+ # of your KMS key, an alias for your KMS key, or an alias ARN. The key
843
+ # is used to encrypt training and test images copied into the service
844
+ # for model training. Your source images are unaffected. The key is also
845
+ # used to encrypt training results and manifest files written to the
846
+ # output Amazon S3 bucket (`OutputConfig`).
733
847
  #
734
- # If you choose to use your own CMK, you need the following permissions
735
- # on the CMK.
848
+ # If you choose to use your own KMS key, you need the following
849
+ # permissions on the KMS key.
736
850
  #
737
851
  # * kms:CreateGrant
738
852
  #
@@ -758,7 +872,7 @@ module Aws::Rekognition
758
872
  # s3_bucket: "S3Bucket",
759
873
  # s3_key_prefix: "S3KeyPrefix",
760
874
  # },
761
- # training_data: { # required
875
+ # training_data: {
762
876
  # assets: [
763
877
  # {
764
878
  # ground_truth_manifest: {
@@ -771,7 +885,7 @@ module Aws::Rekognition
771
885
  # },
772
886
  # ],
773
887
  # },
774
- # testing_data: { # required
888
+ # testing_data: {
775
889
  # assets: [
776
890
  # {
777
891
  # ground_truth_manifest: {
@@ -940,6 +1054,38 @@ module Aws::Rekognition
940
1054
  req.send_request(options)
941
1055
  end
942
1056
 
1057
+ # Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting
1058
+ # a dataset might take while. Use DescribeDataset to check the current
1059
+ # status. The dataset is still deleting if the value of `Status` is
1060
+ # `DELETE_IN_PROGRESS`. If you try to access the dataset after it is
1061
+ # deleted, you get a `ResourceNotFoundException` exception.
1062
+ #
1063
+ # You can't delete a dataset while it is creating (`Status` =
1064
+ # `CREATE_IN_PROGRESS`) or if the dataset is updating (`Status` =
1065
+ # `UPDATE_IN_PROGRESS`).
1066
+ #
1067
+ # This operation requires permissions to perform the
1068
+ # `rekognition:DeleteDataset` action.
1069
+ #
1070
+ # @option params [required, String] :dataset_arn
1071
+ # The ARN of the Amazon Rekognition Custom Labels dataset that you want
1072
+ # to delete.
1073
+ #
1074
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1075
+ #
1076
+ # @example Request syntax with placeholder values
1077
+ #
1078
+ # resp = client.delete_dataset({
1079
+ # dataset_arn: "DatasetArn", # required
1080
+ # })
1081
+ #
1082
+ # @overload delete_dataset(params = {})
1083
+ # @param [Hash] params ({})
1084
+ def delete_dataset(params = {}, options = {})
1085
+ req = build_request(:delete_dataset, params)
1086
+ req.send_request(options)
1087
+ end
1088
+
943
1089
  # Deletes faces from a collection. You specify a collection ID and an
944
1090
  # array of face IDs to remove from the collection.
945
1091
  #
@@ -998,6 +1144,10 @@ module Aws::Rekognition
998
1144
  # project you must first delete all models associated with the project.
999
1145
  # To delete a model, see DeleteProjectVersion.
1000
1146
  #
1147
+ # `DeleteProject` is an asynchronous operation. To check if the project
1148
+ # is deleted, call DescribeProjects. The project is deleted when the
1149
+ # project no longer appears in the response.
1150
+ #
1001
1151
  # This operation requires permissions to perform the
1002
1152
  # `rekognition:DeleteProject` action.
1003
1153
  #
@@ -1122,10 +1272,50 @@ module Aws::Rekognition
1122
1272
  req.send_request(options)
1123
1273
  end
1124
1274
 
1125
- # Lists and describes the models in an Amazon Rekognition Custom Labels
1126
- # project. You can specify up to 10 model versions in
1275
+ # Describes an Amazon Rekognition Custom Labels dataset. You can get
1276
+ # information such as the current status of a dataset and statistics
1277
+ # about the images and labels in a dataset.
1278
+ #
1279
+ # This operation requires permissions to perform the
1280
+ # `rekognition:DescribeDataset` action.
1281
+ #
1282
+ # @option params [required, String] :dataset_arn
1283
+ # The Amazon Resource Name (ARN) of the dataset that you want to
1284
+ # describe.
1285
+ #
1286
+ # @return [Types::DescribeDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1287
+ #
1288
+ # * {Types::DescribeDatasetResponse#dataset_description #dataset_description} => Types::DatasetDescription
1289
+ #
1290
+ # @example Request syntax with placeholder values
1291
+ #
1292
+ # resp = client.describe_dataset({
1293
+ # dataset_arn: "DatasetArn", # required
1294
+ # })
1295
+ #
1296
+ # @example Response structure
1297
+ #
1298
+ # resp.dataset_description.creation_timestamp #=> Time
1299
+ # resp.dataset_description.last_updated_timestamp #=> Time
1300
+ # resp.dataset_description.status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED", "DELETE_IN_PROGRESS"
1301
+ # resp.dataset_description.status_message #=> String
1302
+ # resp.dataset_description.status_message_code #=> String, one of "SUCCESS", "SERVICE_ERROR", "CLIENT_ERROR"
1303
+ # resp.dataset_description.dataset_stats.labeled_entries #=> Integer
1304
+ # resp.dataset_description.dataset_stats.total_entries #=> Integer
1305
+ # resp.dataset_description.dataset_stats.total_labels #=> Integer
1306
+ # resp.dataset_description.dataset_stats.error_entries #=> Integer
1307
+ #
1308
+ # @overload describe_dataset(params = {})
1309
+ # @param [Hash] params ({})
1310
+ def describe_dataset(params = {}, options = {})
1311
+ req = build_request(:describe_dataset, params)
1312
+ req.send_request(options)
1313
+ end
1314
+
1315
+ # Lists and describes the versions of a model in an Amazon Rekognition
1316
+ # Custom Labels project. You can specify up to 10 model versions in
1127
1317
  # `ProjectVersionArns`. If you don't specify a value, descriptions for
1128
- # all models are returned.
1318
+ # all model versions in the project are returned.
1129
1319
  #
1130
1320
  # This operation requires permissions to perform the
1131
1321
  # `rekognition:DescribeProjectVersions` action.
@@ -1232,8 +1422,7 @@ module Aws::Rekognition
1232
1422
  req.send_request(options)
1233
1423
  end
1234
1424
 
1235
- # Lists and gets information about your Amazon Rekognition Custom Labels
1236
- # projects.
1425
+ # Gets information about your Amazon Rekognition Custom Labels projects.
1237
1426
  #
1238
1427
  # This operation requires permissions to perform the
1239
1428
  # `rekognition:DescribeProjects` action.
@@ -1250,6 +1439,11 @@ module Aws::Rekognition
1250
1439
  # than 100, a ValidationException error occurs. The default value is
1251
1440
  # 100.
1252
1441
  #
1442
+ # @option params [Array<String>] :project_names
1443
+ # A list of the projects that you want Amazon Rekognition Custom Labels
1444
+ # to describe. If you don't specify a value, the response includes
1445
+ # descriptions for all the projects in your AWS account.
1446
+ #
1253
1447
  # @return [Types::DescribeProjectsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1254
1448
  #
1255
1449
  # * {Types::DescribeProjectsResponse#project_descriptions #project_descriptions} => Array&lt;Types::ProjectDescription&gt;
@@ -1262,6 +1456,7 @@ module Aws::Rekognition
1262
1456
  # resp = client.describe_projects({
1263
1457
  # next_token: "ExtendedPaginationToken",
1264
1458
  # max_results: 1,
1459
+ # project_names: ["ProjectName"],
1265
1460
  # })
1266
1461
  #
1267
1462
  # @example Response structure
@@ -1270,6 +1465,13 @@ module Aws::Rekognition
1270
1465
  # resp.project_descriptions[0].project_arn #=> String
1271
1466
  # resp.project_descriptions[0].creation_timestamp #=> Time
1272
1467
  # resp.project_descriptions[0].status #=> String, one of "CREATING", "CREATED", "DELETING"
1468
+ # resp.project_descriptions[0].datasets #=> Array
1469
+ # resp.project_descriptions[0].datasets[0].creation_timestamp #=> Time
1470
+ # resp.project_descriptions[0].datasets[0].dataset_type #=> String, one of "TRAIN", "TEST"
1471
+ # resp.project_descriptions[0].datasets[0].dataset_arn #=> String
1472
+ # resp.project_descriptions[0].datasets[0].status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED", "DELETE_IN_PROGRESS"
1473
+ # resp.project_descriptions[0].datasets[0].status_message #=> String
1474
+ # resp.project_descriptions[0].datasets[0].status_message_code #=> String, one of "SUCCESS", "SERVICE_ERROR", "CLIENT_ERROR"
1273
1475
  # resp.next_token #=> String
1274
1476
  #
1275
1477
  # @overload describe_projects(params = {})
@@ -2118,6 +2320,50 @@ module Aws::Rekognition
2118
2320
  req.send_request(options)
2119
2321
  end
2120
2322
 
2323
+ # Distributes the entries (images) in a training dataset across the
2324
+ # training dataset and the test dataset for a project.
2325
+ # `DistributeDatasetEntries` moves 20% of the training dataset images to
2326
+ # the test dataset. An entry is a JSON Line that describes an image.
2327
+ #
2328
+ # You supply the Amazon Resource Names (ARN) of a project's training
2329
+ # dataset and test dataset. The training dataset must contain the images
2330
+ # that you want to split. The test dataset must be empty. The datasets
2331
+ # must belong to the same project. To create training and test datasets
2332
+ # for a project, call CreateDataset.
2333
+ #
2334
+ # Distributing a dataset takes a while to complete. To check the status
2335
+ # call `DescribeDataset`. The operation is complete when the `Status`
2336
+ # field for the training dataset and the test dataset is
2337
+ # `UPDATE_COMPLETE`. If the dataset split fails, the value of `Status`
2338
+ # is `UPDATE_FAILED`.
2339
+ #
2340
+ # This operation requires permissions to perform the
2341
+ # `rekognition:DistributeDatasetEntries` action.
2342
+ #
2343
+ # @option params [required, Array<Types::DistributeDataset>] :datasets
2344
+ # The ARNS for the training dataset and test dataset that you want to
2345
+ # use. The datasets must belong to the same project. The test dataset
2346
+ # must be empty.
2347
+ #
2348
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2349
+ #
2350
+ # @example Request syntax with placeholder values
2351
+ #
2352
+ # resp = client.distribute_dataset_entries({
2353
+ # datasets: [ # required
2354
+ # {
2355
+ # arn: "DatasetArn", # required
2356
+ # },
2357
+ # ],
2358
+ # })
2359
+ #
2360
+ # @overload distribute_dataset_entries(params = {})
2361
+ # @param [Hash] params ({})
2362
+ def distribute_dataset_entries(params = {}, options = {})
2363
+ req = build_request(:distribute_dataset_entries, params)
2364
+ req.send_request(options)
2365
+ end
2366
+
2121
2367
  # Gets the name and additional information about a celebrity based on
2122
2368
  # their Amazon Rekognition ID. The additional information is returned as
2123
2369
  # an array of URLs. If there is no additional information about the
@@ -2165,12 +2411,14 @@ module Aws::Rekognition
2165
2411
  #
2166
2412
  # Celebrity recognition in a video is an asynchronous operation.
2167
2413
  # Analysis is started by a call to StartCelebrityRecognition which
2168
- # returns a job identifier (`JobId`). When the celebrity recognition
2169
- # operation finishes, Amazon Rekognition Video publishes a completion
2170
- # status to the Amazon Simple Notification Service topic registered in
2171
- # the initial call to `StartCelebrityRecognition`. To get the results of
2172
- # the celebrity recognition analysis, first check that the status value
2173
- # published to the Amazon SNS topic is `SUCCEEDED`. If so, call
2414
+ # returns a job identifier (`JobId`).
2415
+ #
2416
+ # When the celebrity recognition operation finishes, Amazon Rekognition
2417
+ # Video publishes a completion status to the Amazon Simple Notification
2418
+ # Service topic registered in the initial call to
2419
+ # `StartCelebrityRecognition`. To get the results of the celebrity
2420
+ # recognition analysis, first check that the status value published to
2421
+ # the Amazon SNS topic is `SUCCEEDED`. If so, call
2174
2422
  # `GetCelebrityDetection` and pass the job identifier (`JobId`) from the
2175
2423
  # initial call to `StartCelebrityDetection`.
2176
2424
  #
@@ -2181,10 +2429,13 @@ module Aws::Rekognition
2181
2429
  # they are detected in an array (`Celebrities`) of CelebrityRecognition
2182
2430
  # objects. Each `CelebrityRecognition` contains information about the
2183
2431
  # celebrity in a CelebrityDetail object and the time, `Timestamp`, the
2184
- # celebrity was detected.
2432
+ # celebrity was detected. This CelebrityDetail object stores information
2433
+ # about the detected celebrity's face attributes, a face bounding box,
2434
+ # known gender, the celebrity's name, and a confidence estimate.
2185
2435
  #
2186
2436
  # <note markdown="1"> `GetCelebrityRecognition` only returns the default facial attributes
2187
2437
  # (`BoundingBox`, `Confidence`, `Landmarks`, `Pose`, and `Quality`). The
2438
+ # `BoundingBox` field only applies to the detected face instance. The
2188
2439
  # other facial attributes listed in the `Face` object of the following
2189
2440
  # response syntax are not returned. For more information, see FaceDetail
2190
2441
  # in the Amazon Rekognition Developer Guide.
@@ -2308,6 +2559,7 @@ module Aws::Rekognition
2308
2559
  # resp.celebrities[0].celebrity.face.quality.brightness #=> Float
2309
2560
  # resp.celebrities[0].celebrity.face.quality.sharpness #=> Float
2310
2561
  # resp.celebrities[0].celebrity.face.confidence #=> Float
2562
+ # resp.celebrities[0].celebrity.known_gender.type #=> String, one of "Male", "Female"
2311
2563
  #
2312
2564
  # @overload get_celebrity_recognition(params = {})
2313
2565
  # @param [Hash] params ({})
@@ -3651,6 +3903,155 @@ module Aws::Rekognition
3651
3903
  req.send_request(options)
3652
3904
  end
3653
3905
 
3906
+ # Lists the entries (images) within a dataset. An entry is a JSON Line
3907
+ # that contains the information for a single image, including the image
3908
+ # location, assigned labels, and object location bounding boxes. For
3909
+ # more information, see [Creating a manifest file][1].
3910
+ #
3911
+ # JSON Lines in the response include information about non-terminal
3912
+ # errors found in the dataset. Non terminal errors are reported in
3913
+ # `errors` lists within each JSON Line. The same information is reported
3914
+ # in the training and testing validation result manifests that Amazon
3915
+ # Rekognition Custom Labels creates during model training.
3916
+ #
3917
+ # You can filter the response in variety of ways, such as choosing which
3918
+ # labels to return and returning JSON Lines created after a specific
3919
+ # date.
3920
+ #
3921
+ # This operation requires permissions to perform the
3922
+ # `rekognition:ListDatasetEntries` action.
3923
+ #
3924
+ #
3925
+ #
3926
+ # [1]: https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-manifest-files.html
3927
+ #
3928
+ # @option params [required, String] :dataset_arn
3929
+ # The Amazon Resource Name (ARN) for the dataset that you want to use.
3930
+ #
3931
+ # @option params [Array<String>] :contains_labels
3932
+ # Specifies a label filter for the response. The response includes an
3933
+ # entry only if one or more of the labels in `ContainsLabels` exist in
3934
+ # the entry.
3935
+ #
3936
+ # @option params [Boolean] :labeled
3937
+ # Specify `true` to get only the JSON Lines where the image is labeled.
3938
+ # Specify `false` to get only the JSON Lines where the image isn't
3939
+ # labeled. If you don't specify `Labeled`, `ListDatasetEntries` returns
3940
+ # JSON Lines for labeled and unlabeled images.
3941
+ #
3942
+ # @option params [String] :source_ref_contains
3943
+ # If specified, `ListDatasetEntries` only returns JSON Lines where the
3944
+ # value of `SourceRefContains` is part of the `source-ref` field. The
3945
+ # `source-ref` field contains the Amazon S3 location of the image. You
3946
+ # can use `SouceRefContains` for tasks such as getting the JSON Line for
3947
+ # a single image, or gettting JSON Lines for all images within a
3948
+ # specific folder.
3949
+ #
3950
+ # @option params [Boolean] :has_errors
3951
+ # Specifies an error filter for the response. Specify `True` to only
3952
+ # include entries that have errors.
3953
+ #
3954
+ # @option params [String] :next_token
3955
+ # If the previous response was incomplete (because there is more results
3956
+ # to retrieve), Amazon Rekognition Custom Labels returns a pagination
3957
+ # token in the response. You can use this pagination token to retrieve
3958
+ # the next set of results.
3959
+ #
3960
+ # @option params [Integer] :max_results
3961
+ # The maximum number of results to return per paginated call. The
3962
+ # largest value you can specify is 100. If you specify a value greater
3963
+ # than 100, a ValidationException error occurs. The default value is
3964
+ # 100.
3965
+ #
3966
+ # @return [Types::ListDatasetEntriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3967
+ #
3968
+ # * {Types::ListDatasetEntriesResponse#dataset_entries #dataset_entries} => Array&lt;String&gt;
3969
+ # * {Types::ListDatasetEntriesResponse#next_token #next_token} => String
3970
+ #
3971
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3972
+ #
3973
+ # @example Request syntax with placeholder values
3974
+ #
3975
+ # resp = client.list_dataset_entries({
3976
+ # dataset_arn: "DatasetArn", # required
3977
+ # contains_labels: ["DatasetLabel"],
3978
+ # labeled: false,
3979
+ # source_ref_contains: "QueryString",
3980
+ # has_errors: false,
3981
+ # next_token: "ExtendedPaginationToken",
3982
+ # max_results: 1,
3983
+ # })
3984
+ #
3985
+ # @example Response structure
3986
+ #
3987
+ # resp.dataset_entries #=> Array
3988
+ # resp.dataset_entries[0] #=> String
3989
+ # resp.next_token #=> String
3990
+ #
3991
+ # @overload list_dataset_entries(params = {})
3992
+ # @param [Hash] params ({})
3993
+ def list_dataset_entries(params = {}, options = {})
3994
+ req = build_request(:list_dataset_entries, params)
3995
+ req.send_request(options)
3996
+ end
3997
+
3998
+ # Lists the labels in a dataset. Amazon Rekognition Custom Labels uses
3999
+ # labels to describe images. For more information, see [Labeling
4000
+ # images][1].
4001
+ #
4002
+ # Lists the labels in a dataset. Amazon Rekognition Custom Labels uses
4003
+ # labels to describe images. For more information, see Labeling images
4004
+ # in the *Amazon Rekognition Custom Labels Developer Guide*.
4005
+ #
4006
+ #
4007
+ #
4008
+ # [1]: https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-labeling-images.html
4009
+ #
4010
+ # @option params [required, String] :dataset_arn
4011
+ # The Amazon Resource Name (ARN) of the dataset that you want to use.
4012
+ #
4013
+ # @option params [String] :next_token
4014
+ # If the previous response was incomplete (because there is more results
4015
+ # to retrieve), Amazon Rekognition Custom Labels returns a pagination
4016
+ # token in the response. You can use this pagination token to retrieve
4017
+ # the next set of results.
4018
+ #
4019
+ # @option params [Integer] :max_results
4020
+ # The maximum number of results to return per paginated call. The
4021
+ # largest value you can specify is 100. If you specify a value greater
4022
+ # than 100, a ValidationException error occurs. The default value is
4023
+ # 100.
4024
+ #
4025
+ # @return [Types::ListDatasetLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4026
+ #
4027
+ # * {Types::ListDatasetLabelsResponse#dataset_label_descriptions #dataset_label_descriptions} => Array&lt;Types::DatasetLabelDescription&gt;
4028
+ # * {Types::ListDatasetLabelsResponse#next_token #next_token} => String
4029
+ #
4030
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4031
+ #
4032
+ # @example Request syntax with placeholder values
4033
+ #
4034
+ # resp = client.list_dataset_labels({
4035
+ # dataset_arn: "DatasetArn", # required
4036
+ # next_token: "ExtendedPaginationToken",
4037
+ # max_results: 1,
4038
+ # })
4039
+ #
4040
+ # @example Response structure
4041
+ #
4042
+ # resp.dataset_label_descriptions #=> Array
4043
+ # resp.dataset_label_descriptions[0].label_name #=> String
4044
+ # resp.dataset_label_descriptions[0].label_stats.entry_count #=> Integer
4045
+ # resp.dataset_label_descriptions[0].label_stats.bounding_box_count #=> Integer
4046
+ # resp.next_token #=> String
4047
+ #
4048
+ # @overload list_dataset_labels(params = {})
4049
+ # @param [Hash] params ({})
4050
+ def list_dataset_labels(params = {}, options = {})
4051
+ req = build_request(:list_dataset_labels, params)
4052
+ req.send_request(options)
4053
+ end
4054
+
3654
4055
  # Returns metadata for faces in the specified collection. This metadata
3655
4056
  # includes information such as the bounding box coordinates, the
3656
4057
  # confidence (that the bounding box contains a face), and face ID. For
@@ -3924,7 +4325,7 @@ module Aws::Rekognition
3924
4325
  # Rekognition Developer Guide.
3925
4326
  #
3926
4327
  # `RecognizeCelebrities` returns the 64 largest faces in the image. It
3927
- # lists recognized celebrities in the `CelebrityFaces` array and
4328
+ # lists the recognized celebrities in the `CelebrityFaces` array and any
3928
4329
  # unrecognized faces in the `UnrecognizedFaces` array.
3929
4330
  # `RecognizeCelebrities` doesn't return celebrities whose faces aren't
3930
4331
  # among the largest 64 faces in the image.
@@ -5236,6 +5637,61 @@ module Aws::Rekognition
5236
5637
  req.send_request(options)
5237
5638
  end
5238
5639
 
5640
+ # Adds or updates one or more entries (images) in a dataset. An entry is
5641
+ # a JSON Line which contains the information for a single image,
5642
+ # including the image location, assigned labels, and object location
5643
+ # bounding boxes. For more information, see Image-Level labels in
5644
+ # manifest files and Object localization in manifest files in the
5645
+ # *Amazon Rekognition Custom Labels Developer Guide*.
5646
+ #
5647
+ # If the `source-ref` field in the JSON line references an existing
5648
+ # image, the existing image in the dataset is updated. If `source-ref`
5649
+ # field doesn't reference an existing image, the image is added as a
5650
+ # new image to the dataset.
5651
+ #
5652
+ # You specify the changes that you want to make in the `Changes` input
5653
+ # parameter. There isn't a limit to the number JSON Lines that you can
5654
+ # change, but the size of `Changes` must be less than 5MB.
5655
+ #
5656
+ # `UpdateDatasetEntries` returns immediatly, but the dataset update
5657
+ # might take a while to complete. Use DescribeDataset to check the
5658
+ # current status. The dataset updated successfully if the value of
5659
+ # `Status` is `UPDATE_COMPLETE`.
5660
+ #
5661
+ # To check if any non-terminal errors occured, call ListDatasetEntries
5662
+ # and check for the presence of `errors` lists in the JSON Lines.
5663
+ #
5664
+ # Dataset update fails if a terminal error occurs (`Status` =
5665
+ # `UPDATE_FAILED`). Currently, you can't access the terminal error
5666
+ # information from the Amazon Rekognition Custom Labels SDK.
5667
+ #
5668
+ # This operation requires permissions to perform the
5669
+ # `rekognition:UpdateDatasetEntries` action.
5670
+ #
5671
+ # @option params [required, String] :dataset_arn
5672
+ # The Amazon Resource Name (ARN) of the dataset that you want to update.
5673
+ #
5674
+ # @option params [required, Types::DatasetChanges] :changes
5675
+ # The changes that you want to make to the dataset.
5676
+ #
5677
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5678
+ #
5679
+ # @example Request syntax with placeholder values
5680
+ #
5681
+ # resp = client.update_dataset_entries({
5682
+ # dataset_arn: "DatasetArn", # required
5683
+ # changes: { # required
5684
+ # ground_truth: "data", # required
5685
+ # },
5686
+ # })
5687
+ #
5688
+ # @overload update_dataset_entries(params = {})
5689
+ # @param [Hash] params ({})
5690
+ def update_dataset_entries(params = {}, options = {})
5691
+ req = build_request(:update_dataset_entries, params)
5692
+ req.send_request(options)
5693
+ end
5694
+
5239
5695
  # @!endgroup
5240
5696
 
5241
5697
  # @param params ({})
@@ -5249,7 +5705,7 @@ module Aws::Rekognition
5249
5705
  params: params,
5250
5706
  config: config)
5251
5707
  context[:gem_name] = 'aws-sdk-rekognition'
5252
- context[:gem_version] = '1.57.0'
5708
+ context[:gem_version] = '1.61.0'
5253
5709
  Seahorse::Client::Request.new(handlers, context)
5254
5710
  end
5255
5711