aws-sdk-rekognition 1.84.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a399d09e2121de15805ee9d7deff701dc35b043464c4a1e8f5e2157ab31d5b1
4
- data.tar.gz: 9c041b8115c3d3c0f9a3e27aaa9f1798757c4cad593d5c76804348aca378d3a8
3
+ metadata.gz: 7e09eee6e32e34ae790a641b5ee6f37bf04e08c45614be27bcd804e2b2d043f2
4
+ data.tar.gz: 8bbb3ebe3f8506f152403262967459927c74f9e56c4415e5a978789397f69476
5
5
  SHA512:
6
- metadata.gz: ffc2a0229d7767c35584fac40e8687e0c696253605e21fb5de6fe829eb48cef6f795d50ce07f3df60f21d3d9a9938436bfd29b36ca286dcc40d8d374d31eee61
7
- data.tar.gz: e9651246e637a128525b40497c29d0f002f4359ffd13e38338178ebc2c436681286e3bf37c026fb509562b4f844e75f9c90c9551a634f020787a1e998c41d667
6
+ metadata.gz: 626af3b714d61df543ddbe96ef0347d619d40742cd284c36b04a7a133139398197766a47ca4d5516b09e89c347ff2f2900a47afb16f6afa03c8f87782d582436
7
+ data.tar.gz: 9b36bdf9c9e83435b71a29e34593295e96b1c5718820416f9d8e66fd3b20780380517dedd11f79c1dc0f62d4f79fba6d9ee3a07fb4b045694034b00d328ece26
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.86.0 (2023-08-07)
5
+ ------------------
6
+
7
+ * Feature - This release adds code snippets for Amazon Rekognition Custom Labels.
8
+
9
+ 1.85.0 (2023-07-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.84.0 (2023-07-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.84.0
1
+ 1.86.0
@@ -216,6 +216,10 @@ module Aws::Rekognition
216
216
  # @option options [Boolean] :endpoint_discovery (false)
217
217
  # When set to `true`, endpoint discovery will be enabled for operations when available.
218
218
  #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
219
223
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
220
224
  # The log formatter.
221
225
  #
@@ -853,8 +857,7 @@ module Aws::Rekognition
853
857
  #
854
858
  # @example Example: CopyProjectVersion
855
859
  #
856
- # # This operation copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination
857
- # # project.
860
+ # # Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project.
858
861
  #
859
862
  # resp = client.copy_project_version({
860
863
  # destination_project_arn: "arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/1656705098765",
@@ -978,9 +981,9 @@ module Aws::Rekognition
978
981
  # a dataset by using an Amazon Sagemaker format manifest file or by
979
982
  # copying an existing Amazon Rekognition Custom Labels dataset.
980
983
  #
981
- # To create a training dataset for a project, specify `train` for the
984
+ # To create a training dataset for a project, specify `TRAIN` for the
982
985
  # value of `DatasetType`. To create the test dataset for a project,
983
- # specify `test` for the value of `DatasetType`.
986
+ # specify `TEST` for the value of `DatasetType`.
984
987
  #
985
988
  # The response from `CreateDataset` is the Amazon Resource Name (ARN)
986
989
  # for the dataset. Creating a dataset takes a while to complete. Use
@@ -1010,8 +1013,8 @@ module Aws::Rekognition
1010
1013
  # can use the console or call UpdateDatasetEntries.
1011
1014
  #
1012
1015
  # @option params [required, String] :dataset_type
1013
- # The type of the dataset. Specify `train` to create a training dataset.
1014
- # Specify `test` to create a test dataset.
1016
+ # The type of the dataset. Specify `TRAIN` to create a training dataset.
1017
+ # Specify `TEST` to create a test dataset.
1015
1018
  #
1016
1019
  # @option params [required, String] :project_arn
1017
1020
  # The ARN of the Amazon Rekognition Custom Labels project to which you
@@ -1021,6 +1024,29 @@ module Aws::Rekognition
1021
1024
  #
1022
1025
  # * {Types::CreateDatasetResponse#dataset_arn #dataset_arn} => String
1023
1026
  #
1027
+ #
1028
+ # @example Example: To create an Amazon Rekognition Custom Labels dataset
1029
+ #
1030
+ # # Creates an Amazon Rekognition Custom Labels dataset with a manifest file stored in an Amazon S3 bucket.
1031
+ #
1032
+ # resp = client.create_dataset({
1033
+ # dataset_source: {
1034
+ # ground_truth_manifest: {
1035
+ # s3_object: {
1036
+ # bucket: "my-bucket",
1037
+ # name: "datasets/flowers_training/manifests/output/output.manifest",
1038
+ # },
1039
+ # },
1040
+ # },
1041
+ # dataset_type: "TRAIN",
1042
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815",
1043
+ # })
1044
+ #
1045
+ # resp.to_h outputs the following:
1046
+ # {
1047
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1690476084535",
1048
+ # }
1049
+ #
1024
1050
  # @example Request syntax with placeholder values
1025
1051
  #
1026
1052
  # resp = client.create_dataset({
@@ -1051,13 +1077,17 @@ module Aws::Rekognition
1051
1077
 
1052
1078
  # This API operation initiates a Face Liveness session. It returns a
1053
1079
  # `SessionId`, which you can use to start streaming Face Liveness video
1054
- # and get the results for a Face Liveness session. You can use the
1055
- # `OutputConfig` option in the Settings parameter to provide an Amazon
1056
- # S3 bucket location. The Amazon S3 bucket stores reference images and
1057
- # audit images. You can use `AuditImagesLimit` to limit the number of
1058
- # audit images returned. This number is between 0 and 4. By default, it
1059
- # is set to 0. The limit is best effort and based on the duration of the
1060
- # selfie-video.
1080
+ # and get the results for a Face Liveness session.
1081
+ #
1082
+ # You can use the `OutputConfig` option in the Settings parameter to
1083
+ # provide an Amazon S3 bucket location. The Amazon S3 bucket stores
1084
+ # reference images and audit images. If no Amazon S3 bucket is defined,
1085
+ # raw bytes are sent instead.
1086
+ #
1087
+ # You can use `AuditImagesLimit` to limit the number of audit images
1088
+ # returned when `GetFaceLivenessSessionResults` is called. This number
1089
+ # is between 0 and 4. By default, it is set to 0. The limit is best
1090
+ # effort and based on the duration of the selfie-video.
1061
1091
  #
1062
1092
  # @option params [String] :kms_key_id
1063
1093
  # The identifier for your AWS Key Management Service key (AWS KMS key).
@@ -1117,6 +1147,20 @@ module Aws::Rekognition
1117
1147
  #
1118
1148
  # * {Types::CreateProjectResponse#project_arn #project_arn} => String
1119
1149
  #
1150
+ #
1151
+ # @example Example: To create an Amazon Rekognition Custom Labels project
1152
+ #
1153
+ # # Creates an Amazon Rekognition Custom Labels project.
1154
+ #
1155
+ # resp = client.create_project({
1156
+ # project_name: "my-project",
1157
+ # })
1158
+ #
1159
+ # resp.to_h outputs the following:
1160
+ # {
1161
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690405809285",
1162
+ # }
1163
+ #
1120
1164
  # @example Request syntax with placeholder values
1121
1165
  #
1122
1166
  # resp = client.create_project({
@@ -1228,6 +1272,25 @@ module Aws::Rekognition
1228
1272
  #
1229
1273
  # * {Types::CreateProjectVersionResponse#project_version_arn #project_version_arn} => String
1230
1274
  #
1275
+ #
1276
+ # @example Example: To train an Amazon Rekognition Custom Labels model
1277
+ #
1278
+ # # Trains a version of an Amazon Rekognition Custom Labels model.
1279
+ #
1280
+ # resp = client.create_project_version({
1281
+ # output_config: {
1282
+ # s3_bucket: "output_bucket",
1283
+ # s3_key_prefix: "output_folder",
1284
+ # },
1285
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815",
1286
+ # version_name: "1",
1287
+ # })
1288
+ #
1289
+ # resp.to_h outputs the following:
1290
+ # {
1291
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
1292
+ # }
1293
+ #
1231
1294
  # @example Request syntax with placeholder values
1232
1295
  #
1233
1296
  # resp = client.create_project_version({
@@ -1592,6 +1655,19 @@ module Aws::Rekognition
1592
1655
  #
1593
1656
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1594
1657
  #
1658
+ #
1659
+ # @example Example: To delete an Amazon Rekognition Custom Labels dataset
1660
+ #
1661
+ # # Deletes an Amazon Rekognition Custom Labels dataset.
1662
+ #
1663
+ # resp = client.delete_dataset({
1664
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/test/1690556733321",
1665
+ # })
1666
+ #
1667
+ # resp.to_h outputs the following:
1668
+ # {
1669
+ # }
1670
+ #
1595
1671
  # @example Request syntax with placeholder values
1596
1672
  #
1597
1673
  # resp = client.delete_dataset({
@@ -1685,6 +1761,20 @@ module Aws::Rekognition
1685
1761
  #
1686
1762
  # * {Types::DeleteProjectResponse#status #status} => String
1687
1763
  #
1764
+ #
1765
+ # @example Example: To delete an Amazon Rekognition Custom Labels project
1766
+ #
1767
+ # # Deletes an Amazon Rekognition Custom Labels projects.
1768
+ #
1769
+ # resp = client.delete_project({
1770
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690405809285",
1771
+ # })
1772
+ #
1773
+ # resp.to_h outputs the following:
1774
+ # {
1775
+ # status: "DELETING",
1776
+ # }
1777
+ #
1688
1778
  # @example Request syntax with placeholder values
1689
1779
  #
1690
1780
  # resp = client.delete_project({
@@ -1771,6 +1861,20 @@ module Aws::Rekognition
1771
1861
  #
1772
1862
  # * {Types::DeleteProjectVersionResponse#status #status} => String
1773
1863
  #
1864
+ #
1865
+ # @example Example: To delete an Amazon Rekognition Custom Labels model
1866
+ #
1867
+ # # Deletes a version of an Amazon Rekognition Custom Labels model.
1868
+ #
1869
+ # resp = client.delete_project_version({
1870
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
1871
+ # })
1872
+ #
1873
+ # resp.to_h outputs the following:
1874
+ # {
1875
+ # status: "DELETING",
1876
+ # }
1877
+ #
1774
1878
  # @example Request syntax with placeholder values
1775
1879
  #
1776
1880
  # resp = client.delete_project_version({
@@ -1918,6 +2022,32 @@ module Aws::Rekognition
1918
2022
  #
1919
2023
  # * {Types::DescribeDatasetResponse#dataset_description #dataset_description} => Types::DatasetDescription
1920
2024
  #
2025
+ #
2026
+ # @example Example: To describe an Amazon Rekognition Custom Labels dataset
2027
+ #
2028
+ # # Describes an Amazon Rekognition Custom Labels dataset.
2029
+ #
2030
+ # resp = client.describe_dataset({
2031
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1690476084535",
2032
+ # })
2033
+ #
2034
+ # resp.to_h outputs the following:
2035
+ # {
2036
+ # dataset_description: {
2037
+ # creation_timestamp: Time.parse("2023-07-27T09:41:24.738000-07:00"),
2038
+ # dataset_stats: {
2039
+ # error_entries: 0,
2040
+ # labeled_entries: 15,
2041
+ # total_entries: 15,
2042
+ # total_labels: 9,
2043
+ # },
2044
+ # last_updated_timestamp: Time.parse("2023-07-28T09:46:45.406000-07:00"),
2045
+ # status: "UPDATE_FAILED",
2046
+ # status_message: "The manifest file contains images from multiple S3 buckets.",
2047
+ # status_message_code: "CLIENT_ERROR",
2048
+ # },
2049
+ # }
2050
+ #
1921
2051
  # @example Request syntax with placeholder values
1922
2052
  #
1923
2053
  # resp = client.describe_dataset({
@@ -1983,6 +2113,110 @@ module Aws::Rekognition
1983
2113
  #
1984
2114
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1985
2115
  #
2116
+ #
2117
+ # @example Example: To describe an Amazon Rekognition Custom Labels model
2118
+ #
2119
+ # # Describes a version of an Amazon Rekognition Custom Labels model.
2120
+ #
2121
+ # resp = client.describe_project_versions({
2122
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815",
2123
+ # version_names: [
2124
+ # "1",
2125
+ # ],
2126
+ # })
2127
+ #
2128
+ # resp.to_h outputs the following:
2129
+ # {
2130
+ # next_token: "",
2131
+ # project_version_descriptions: [
2132
+ # {
2133
+ # billable_training_time_in_seconds: 1899,
2134
+ # creation_timestamp: Time.parse("2023-07-28T08:05:51.958000-07:00"),
2135
+ # evaluation_result: {
2136
+ # f1_score: 1,
2137
+ # summary: {
2138
+ # s3_object: {
2139
+ # bucket: "custom-labels-console-us-east-1-111111111",
2140
+ # name: "my-model-output/EvaluationResultSummary-my-project-1.json",
2141
+ # },
2142
+ # },
2143
+ # },
2144
+ # manifest_summary: {
2145
+ # s3_object: {
2146
+ # bucket: "custom-labels-console-us-east-1-111111111",
2147
+ # name: "my-model-output/ManifestSummary-my-project-1.json",
2148
+ # },
2149
+ # },
2150
+ # output_config: {
2151
+ # s3_bucket: "custom-labels-console-us-east-1-111111111",
2152
+ # s3_key_prefix: "my-model-output",
2153
+ # },
2154
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
2155
+ # status: "TRAINING_COMPLETED",
2156
+ # status_message: "The model is ready to run.",
2157
+ # testing_data_result: {
2158
+ # input: {
2159
+ # auto_create: false,
2160
+ # },
2161
+ # output: {
2162
+ # assets: [
2163
+ # {
2164
+ # ground_truth_manifest: {
2165
+ # s3_object: {
2166
+ # bucket: "custom-labels-console-us-east-1-111111111",
2167
+ # name: "my-model-output/TestingGroundTruth-my-project-1.json",
2168
+ # },
2169
+ # },
2170
+ # },
2171
+ # ],
2172
+ # auto_create: false,
2173
+ # },
2174
+ # validation: {
2175
+ # assets: [
2176
+ # {
2177
+ # ground_truth_manifest: {
2178
+ # s3_object: {
2179
+ # bucket: "custom-labels-console-us-east-1-111111111",
2180
+ # name: "my-model-output/TestingManifestWithValidation-my-project-1.json",
2181
+ # },
2182
+ # },
2183
+ # },
2184
+ # ],
2185
+ # },
2186
+ # },
2187
+ # training_data_result: {
2188
+ # input: {
2189
+ # },
2190
+ # output: {
2191
+ # assets: [
2192
+ # {
2193
+ # ground_truth_manifest: {
2194
+ # s3_object: {
2195
+ # bucket: "custom-labels-console-us-east-1-111111111",
2196
+ # name: "my-model-output/TrainingGroundTruth-my-project-1.json",
2197
+ # },
2198
+ # },
2199
+ # },
2200
+ # ],
2201
+ # },
2202
+ # validation: {
2203
+ # assets: [
2204
+ # {
2205
+ # ground_truth_manifest: {
2206
+ # s3_object: {
2207
+ # bucket: "custom-labels-console-us-east-1-111111111",
2208
+ # name: "my-model-output/TrainingManifestWithValidation-my-project-1.json",
2209
+ # },
2210
+ # },
2211
+ # },
2212
+ # ],
2213
+ # },
2214
+ # },
2215
+ # training_end_timestamp: Time.parse("2023-07-28T08:33:10.827000-07:00"),
2216
+ # },
2217
+ # ],
2218
+ # }
2219
+ #
1986
2220
  # @example Request syntax with placeholder values
1987
2221
  #
1988
2222
  # resp = client.describe_project_versions({
@@ -2084,6 +2318,46 @@ module Aws::Rekognition
2084
2318
  #
2085
2319
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2086
2320
  #
2321
+ #
2322
+ # @example Example: To describe an Amazon Rekognition Custom Labels project.
2323
+ #
2324
+ # # Describes an Amazon Rekognition Custom Labels projects.
2325
+ #
2326
+ # resp = client.describe_projects({
2327
+ # project_names: [
2328
+ # "my-project",
2329
+ # ],
2330
+ # })
2331
+ #
2332
+ # resp.to_h outputs the following:
2333
+ # {
2334
+ # project_descriptions: [
2335
+ # {
2336
+ # creation_timestamp: Time.parse("2022-06-13T15:16:00.634000-07:00"),
2337
+ # datasets: [
2338
+ # {
2339
+ # creation_timestamp: Time.parse("2022-06-13T15:17:34.620000-07:00"),
2340
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/test/1655158654491",
2341
+ # dataset_type: "TEST",
2342
+ # status: "CREATE_COMPLETE",
2343
+ # status_message: "The dataset was successfully created from the manifest file.",
2344
+ # status_message_code: "SUCCESS",
2345
+ # },
2346
+ # {
2347
+ # creation_timestamp: Time.parse("2022-06-13T15:17:50.118000-07:00"),
2348
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1655158669954",
2349
+ # dataset_type: "TRAIN",
2350
+ # status: "CREATE_COMPLETE",
2351
+ # status_message: "The dataset was successfully created from the manifest file.",
2352
+ # status_message_code: "SUCCESS",
2353
+ # },
2354
+ # ],
2355
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1655158560634",
2356
+ # status: "CREATED",
2357
+ # },
2358
+ # ],
2359
+ # }
2360
+ #
2087
2361
  # @example Request syntax with placeholder values
2088
2362
  #
2089
2363
  # resp = client.describe_projects({
@@ -2278,6 +2552,37 @@ module Aws::Rekognition
2278
2552
  #
2279
2553
  # * {Types::DetectCustomLabelsResponse#custom_labels #custom_labels} => Array<Types::CustomLabel>
2280
2554
  #
2555
+ #
2556
+ # @example Example: To detect custom labels in an image with an Amazon Rekognition Custom Labels model
2557
+ #
2558
+ # # Detects custom labels in an image with an Amazon Rekognition Custom Labels model
2559
+ #
2560
+ # resp = client.detect_custom_labels({
2561
+ # image: {
2562
+ # s3_object: {
2563
+ # bucket: "custom-labels-console-us-east-1-1111111111",
2564
+ # name: "assets/flowers_1_test_dataset/camellia4.jpg",
2565
+ # },
2566
+ # },
2567
+ # max_results: 100,
2568
+ # min_confidence: 50,
2569
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/my-project.2023-07-31T11.49.37/1690829378219",
2570
+ # })
2571
+ #
2572
+ # resp.to_h outputs the following:
2573
+ # {
2574
+ # custom_labels: [
2575
+ # {
2576
+ # confidence: 67.56399536132812,
2577
+ # name: "with_leaves",
2578
+ # },
2579
+ # {
2580
+ # confidence: 50.65699768066406,
2581
+ # name: "without_leaves",
2582
+ # },
2583
+ # ],
2584
+ # }
2585
+ #
2281
2586
  # @example Request syntax with placeholder values
2282
2587
  #
2283
2588
  # resp = client.detect_custom_labels({
@@ -2363,6 +2668,10 @@ module Aws::Rekognition
2363
2668
  # "AND" operator to determine which attributes to return (in this
2364
2669
  # case, all attributes).
2365
2670
  #
2671
+ # Note that while the FaceOccluded and EyeDirection attributes are
2672
+ # supported when using `DetectFaces`, they aren't supported when
2673
+ # analyzing videos with `StartFaceDetection` and `GetFaceDetection`.
2674
+ #
2366
2675
  # @return [Types::DetectFacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2367
2676
  #
2368
2677
  # * {Types::DetectFacesResponse#face_details #face_details} => Array<Types::FaceDetail>
@@ -2529,10 +2838,11 @@ module Aws::Rekognition
2529
2838
  # and exclusive filters. For more information on filtering see
2530
2839
  # [Detecting Labels in an Image][1].
2531
2840
  #
2532
- # You can specify `MinConfidence` to control the confidence threshold
2533
- # for the labels returned. The default is 55%. You can also add the
2534
- # `MaxLabels` parameter to limit the number of labels returned. The
2535
- # default and upper limit is 1000 labels.
2841
+ # When getting labels, you can specify `MinConfidence` to control the
2842
+ # confidence threshold for the labels returned. The default is 55%. You
2843
+ # can also add the `MaxLabels` parameter to limit the number of labels
2844
+ # returned. The default and upper limit is 1000 labels. These arguments
2845
+ # are only valid when supplying GENERAL\_LABELS as a feature type.
2536
2846
  #
2537
2847
  # **Response Elements**
2538
2848
  #
@@ -2635,7 +2945,8 @@ module Aws::Rekognition
2635
2945
  # @option params [Integer] :max_labels
2636
2946
  # Maximum number of labels you want the service to return in the
2637
2947
  # response. The service returns the specified number of highest
2638
- # confidence labels.
2948
+ # confidence labels. Only valid when GENERAL\_LABELS is specified as a
2949
+ # feature type in the Feature input parameter.
2639
2950
  #
2640
2951
  # @option params [Float] :min_confidence
2641
2952
  # Specifies the minimum confidence level for the labels to return.
@@ -2643,7 +2954,9 @@ module Aws::Rekognition
2643
2954
  # than this specified value.
2644
2955
  #
2645
2956
  # If `MinConfidence` is not specified, the operation returns labels with
2646
- # a confidence values greater than or equal to 55 percent.
2957
+ # a confidence values greater than or equal to 55 percent. Only valid
2958
+ # when GENERAL\_LABELS is specified as a feature type in the Feature
2959
+ # input parameter.
2647
2960
  #
2648
2961
  # @option params [Array<String>] :features
2649
2962
  # A list of the types of analysis to perform. Specifying GENERAL\_LABELS
@@ -3227,6 +3540,26 @@ module Aws::Rekognition
3227
3540
  #
3228
3541
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3229
3542
  #
3543
+ #
3544
+ # @example Example: To distribute an Amazon Rekognition Custom Labels dataset
3545
+ #
3546
+ # # Distributes an Amazon Rekognition Custom Labels training dataset to a test dataset.
3547
+ #
3548
+ # resp = client.distribute_dataset_entries({
3549
+ # datasets: [
3550
+ # {
3551
+ # arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
3552
+ # },
3553
+ # {
3554
+ # arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/test/1690564858106",
3555
+ # },
3556
+ # ],
3557
+ # })
3558
+ #
3559
+ # resp.to_h outputs the following:
3560
+ # {
3561
+ # }
3562
+ #
3230
3563
  # @example Request syntax with placeholder values
3231
3564
  #
3232
3565
  # resp = client.distribute_dataset_entries({
@@ -3619,6 +3952,9 @@ module Aws::Rekognition
3619
3952
  # `GetFaceDetection` and populate the `NextToken` request parameter with
3620
3953
  # the token value returned from the previous call to `GetFaceDetection`.
3621
3954
  #
3955
+ # Note that for the `GetFaceDetection` operation, the returned values
3956
+ # for `FaceOccluded` and `EyeDirection` will always be "null".
3957
+ #
3622
3958
  # @option params [required, String] :job_id
3623
3959
  # Unique identifier for the face detection job. The `JobId` is returned
3624
3960
  # from `StartFaceDetection`.
@@ -3728,8 +4064,12 @@ module Aws::Rekognition
3728
4064
  # `CreateFaceLivenessSession`. Returns the corresponding Face Liveness
3729
4065
  # confidence score, a reference image that includes a face bounding box,
3730
4066
  # and audit images that also contain face bounding boxes. The Face
3731
- # Liveness confidence score ranges from 0 to 100. The reference image
3732
- # can optionally be returned.
4067
+ # Liveness confidence score ranges from 0 to 100.
4068
+ #
4069
+ # The number of audit images returned by `GetFaceLivenessSessionResults`
4070
+ # is defined by the `AuditImagesLimit` paramater when calling
4071
+ # `CreateFaceLivenessSession`. Reference images are always returned when
4072
+ # possible.
3733
4073
  #
3734
4074
  # @option params [required, String] :session_id
3735
4075
  # A unique 128-bit UUID. This is used to uniquely identify the session
@@ -4421,7 +4761,7 @@ module Aws::Rekognition
4421
4761
  # `StartLabelDetection`.
4422
4762
  #
4423
4763
  # `GetTextDetection` returns an array of detected text
4424
- # (`TextDetections`) sorted by the time the text was detected, up to 50
4764
+ # (`TextDetections`) sorted by the time the text was detected, up to 100
4425
4765
  # words per frame of video.
4426
4766
  #
4427
4767
  # Each element of the array includes the detected text, the precentage
@@ -5086,6 +5426,31 @@ module Aws::Rekognition
5086
5426
  #
5087
5427
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5088
5428
  #
5429
+ #
5430
+ # @example Example: To list the entries in an Amazon Rekognition Custom Labels dataset
5431
+ #
5432
+ # # Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
5433
+ #
5434
+ # resp = client.list_dataset_entries({
5435
+ # contains_labels: [
5436
+ # "camellia",
5437
+ # ],
5438
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
5439
+ # has_errors: true,
5440
+ # labeled: true,
5441
+ # max_results: 100,
5442
+ # next_token: "",
5443
+ # source_ref_contains: "camellia4.jpg",
5444
+ # })
5445
+ #
5446
+ # resp.to_h outputs the following:
5447
+ # {
5448
+ # dataset_entries: [
5449
+ # "{\"source-ref\":\"s3://custom-labels-console-us-east-1-1111111111/assets/flowers_1_train_dataset/camellia4.jpg\",\"camellia\":1,\"camellia-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/camellia\",\"class-name\":\"camellia\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"cl-metadata\":{\"is_labeled\":true}}",
5450
+ # ],
5451
+ # next_token: "",
5452
+ # }
5453
+ #
5089
5454
  # @example Request syntax with placeholder values
5090
5455
  #
5091
5456
  # resp = client.list_dataset_entries({
@@ -5145,6 +5510,41 @@ module Aws::Rekognition
5145
5510
  #
5146
5511
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5147
5512
  #
5513
+ #
5514
+ # @example Example: To list the entries in an Amazon Rekognition Custom Labels dataset
5515
+ #
5516
+ # # Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
5517
+ #
5518
+ # resp = client.list_dataset_labels({
5519
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
5520
+ # max_results: 100,
5521
+ # next_token: "",
5522
+ # })
5523
+ #
5524
+ # resp.to_h outputs the following:
5525
+ # {
5526
+ # dataset_label_descriptions: [
5527
+ # {
5528
+ # label_name: "camellia",
5529
+ # label_stats: {
5530
+ # entry_count: 1,
5531
+ # },
5532
+ # },
5533
+ # {
5534
+ # label_name: "with_leaves",
5535
+ # label_stats: {
5536
+ # entry_count: 2,
5537
+ # },
5538
+ # },
5539
+ # {
5540
+ # label_name: "mediterranean_spurge",
5541
+ # label_stats: {
5542
+ # entry_count: 1,
5543
+ # },
5544
+ # },
5545
+ # ],
5546
+ # }
5547
+ #
5148
5548
  # @example Request syntax with placeholder values
5149
5549
  #
5150
5550
  # resp = client.list_dataset_labels({
@@ -5190,10 +5590,12 @@ module Aws::Rekognition
5190
5590
  # Maximum number of faces to return.
5191
5591
  #
5192
5592
  # @option params [String] :user_id
5193
- # An array of user IDs to match when listing faces in a collection.
5593
+ # An array of user IDs to filter results with when listing faces in a
5594
+ # collection.
5194
5595
  #
5195
5596
  # @option params [Array<String>] :face_ids
5196
- # An array of face IDs to match when listing faces in a collection.
5597
+ # An array of face IDs to filter results with when listing faces in a
5598
+ # collection.
5197
5599
  #
5198
5600
  # @return [Types::ListFacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5199
5601
  #
@@ -6954,6 +7356,22 @@ module Aws::Rekognition
6954
7356
  #
6955
7357
  # * {Types::StartProjectVersionResponse#status #status} => String
6956
7358
  #
7359
+ #
7360
+ # @example Example: To start an Amazon Rekognition Custom Labels model
7361
+ #
7362
+ # # Starts a version of an Amazon Rekognition Custom Labels model.
7363
+ #
7364
+ # resp = client.start_project_version({
7365
+ # max_inference_units: 1,
7366
+ # min_inference_units: 1,
7367
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
7368
+ # })
7369
+ #
7370
+ # resp.to_h outputs the following:
7371
+ # {
7372
+ # status: "STARTING",
7373
+ # }
7374
+ #
6957
7375
  # @example Request syntax with placeholder values
6958
7376
  #
6959
7377
  # resp = client.start_project_version({
@@ -7264,6 +7682,20 @@ module Aws::Rekognition
7264
7682
  #
7265
7683
  # * {Types::StopProjectVersionResponse#status #status} => String
7266
7684
  #
7685
+ #
7686
+ # @example Example: To stop an Amazon Rekognition Custom Labels model.
7687
+ #
7688
+ # # Stops a version of an Amazon Rekognition Custom Labels model.
7689
+ #
7690
+ # resp = client.stop_project_version({
7691
+ # project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
7692
+ # })
7693
+ #
7694
+ # resp.to_h outputs the following:
7695
+ # {
7696
+ # status: "STOPPING",
7697
+ # }
7698
+ #
7267
7699
  # @example Request syntax with placeholder values
7268
7700
  #
7269
7701
  # resp = client.stop_project_version({
@@ -7406,6 +7838,22 @@ module Aws::Rekognition
7406
7838
  #
7407
7839
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7408
7840
  #
7841
+ #
7842
+ # @example Example: To-add dataset entries to an Amazon Rekognition Custom Labels dataset
7843
+ #
7844
+ # # Adds dataset entries to an Amazon Rekognition Custom Labels dataset.
7845
+ #
7846
+ # resp = client.update_dataset_entries({
7847
+ # changes: {
7848
+ # ground_truth: "{\"source-ref\":\"s3://custom-labels-console-us-east-1-111111111/assets/flowers_1_test_dataset/mediterranean_spurge4.jpg\",\"mediterranean_spurge\":1,\"mediterranean_spurge-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/mediterranean_spurge\",\"class-name\":\"mediterranean_spurge\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"}}",
7849
+ # },
7850
+ # dataset_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
7851
+ # })
7852
+ #
7853
+ # resp.to_h outputs the following:
7854
+ # {
7855
+ # }
7856
+ #
7409
7857
  # @example Request syntax with placeholder values
7410
7858
  #
7411
7859
  # resp = client.update_dataset_entries({
@@ -7501,7 +7949,7 @@ module Aws::Rekognition
7501
7949
  params: params,
7502
7950
  config: config)
7503
7951
  context[:gem_name] = 'aws-sdk-rekognition'
7504
- context[:gem_version] = '1.84.0'
7952
+ context[:gem_version] = '1.86.0'
7505
7953
  Seahorse::Client::Request.new(handlers, context)
7506
7954
  end
7507
7955
 
@@ -869,8 +869,8 @@ module Aws::Rekognition
869
869
  # @return [Types::DatasetSource]
870
870
  #
871
871
  # @!attribute [rw] dataset_type
872
- # The type of the dataset. Specify `train` to create a training
873
- # dataset. Specify `test` to create a test dataset.
872
+ # The type of the dataset. Specify `TRAIN` to create a training
873
+ # dataset. Specify `TEST` to create a test dataset.
874
874
  # @return [String]
875
875
  #
876
876
  # @!attribute [rw] project_arn
@@ -1981,6 +1981,10 @@ module Aws::Rekognition
1981
1981
  # If you provide both, `["ALL", "DEFAULT"]`, the service uses a
1982
1982
  # logical "AND" operator to determine which attributes to return (in
1983
1983
  # this case, all attributes).
1984
+ #
1985
+ # Note that while the FaceOccluded and EyeDirection attributes are
1986
+ # supported when using `DetectFaces`, they aren't supported when
1987
+ # analyzing videos with `StartFaceDetection` and `GetFaceDetection`.
1984
1988
  # @return [Array<String>]
1985
1989
  #
1986
1990
  class DetectFacesRequest < Struct.new(
@@ -2151,7 +2155,8 @@ module Aws::Rekognition
2151
2155
  # @!attribute [rw] max_labels
2152
2156
  # Maximum number of labels you want the service to return in the
2153
2157
  # response. The service returns the specified number of highest
2154
- # confidence labels.
2158
+ # confidence labels. Only valid when GENERAL\_LABELS is specified as a
2159
+ # feature type in the Feature input parameter.
2155
2160
  # @return [Integer]
2156
2161
  #
2157
2162
  # @!attribute [rw] min_confidence
@@ -2160,7 +2165,9 @@ module Aws::Rekognition
2160
2165
  # than this specified value.
2161
2166
  #
2162
2167
  # If `MinConfidence` is not specified, the operation returns labels
2163
- # with a confidence values greater than or equal to 55 percent.
2168
+ # with a confidence values greater than or equal to 55 percent. Only
2169
+ # valid when GENERAL\_LABELS is specified as a feature type in the
2170
+ # Feature input parameter.
2164
2171
  # @return [Float]
2165
2172
  #
2166
2173
  # @!attribute [rw] features
@@ -3487,7 +3494,8 @@ module Aws::Rekognition
3487
3494
  # Base64-encoded bytes that return an image. If the
3488
3495
  # CreateFaceLivenessSession request included an OutputConfig argument,
3489
3496
  # the image will be uploaded to an S3Object specified in the output
3490
- # configuration.
3497
+ # configuration. If no Amazon S3 bucket is defined, raw bytes are sent
3498
+ # instead.
3491
3499
  # @return [Array<Types::AuditImage>]
3492
3500
  #
3493
3501
  class GetFaceLivenessSessionResultsResponse < Struct.new(
@@ -4811,11 +4819,13 @@ module Aws::Rekognition
4811
4819
  # @return [Integer]
4812
4820
  #
4813
4821
  # @!attribute [rw] user_id
4814
- # An array of user IDs to match when listing faces in a collection.
4822
+ # An array of user IDs to filter results with when listing faces in a
4823
+ # collection.
4815
4824
  # @return [String]
4816
4825
  #
4817
4826
  # @!attribute [rw] face_ids
4818
- # An array of face IDs to match when listing faces in a collection.
4827
+ # An array of face IDs to filter results with when listing faces in a
4828
+ # collection.
4819
4829
  # @return [Array<String>]
4820
4830
  #
4821
4831
  class ListFacesRequest < Struct.new(
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-rekognition/customizations'
53
53
  # @!group service
54
54
  module Aws::Rekognition
55
55
 
56
- GEM_VERSION = '1.84.0'
56
+ GEM_VERSION = '1.86.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rekognition
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.84.0
4
+ version: 1.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core