aws-sdk-rekognition 1.87.0 → 1.88.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: 4ae37b2912fd788e9d6749b64bb13789ebe8b90d4d6b79fad47e09054db2da9f
4
- data.tar.gz: 852341bc504a11798aaade72239c94b547548f840408b9b8c0edbb71da106637
3
+ metadata.gz: a551cb396b27bb20cdc60e830aac3154aacd2202ca39e68511ed086ea4db2306
4
+ data.tar.gz: b8b9019dd0392c6b98e5ea515ee4c0676e9332adbd05e46c8a224fd5aba4926f
5
5
  SHA512:
6
- metadata.gz: 4fda36f647e6e94d4ee85d448315b442cf80e988e6d6e6e4ded54b13a045e72a2d68bd81446c92a9e567ae1c87008b3166f6111fc4b3529cd975b779e888cc59
7
- data.tar.gz: 9fe35a6bc9ef1630ed3e2ab6be6ffc359881e538b498815afebc053b23392a79273b83d3ec40bfe910dc3950526e90249b55d1b148192389e145a12db33da975
6
+ metadata.gz: c9b3926a9be08e983a65f76747b77038ceba3bac3e82812db173010d86f44310b3b22aaabc576840d067f0174bb539621361e202c1d492451d654da8e049f23c
7
+ data.tar.gz: ec1cea85821ee0dbeb2eac1894fe82c1f9f542264399da50464b9d5da9cbaebb1f9d06cbf31c22b27bfee09c52e1d4ce6452b97e482bbec415bf657769326dba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.88.0 (2023-10-12)
5
+ ------------------
6
+
7
+ * Feature - Amazon Rekognition introduces support for Custom Moderation. This allows the enhancement of accuracy for detect moderation labels operations by creating custom adapters tuned on customer data.
8
+
4
9
  1.87.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.87.0
1
+ 1.88.0
@@ -776,6 +776,10 @@ module Aws::Rekognition
776
776
  req.send_request(options)
777
777
  end
778
778
 
779
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
780
+ #
781
+ # </note>
782
+ #
779
783
  # Copies a version of an Amazon Rekognition Custom Labels model from a
780
784
  # source project to a destination project. The source and destination
781
785
  # projects can be in different AWS accounts but must be in the same AWS
@@ -794,7 +798,9 @@ module Aws::Rekognition
794
798
  # If you are copying a model version to a project in the same AWS
795
799
  # account, you don't need to create a project policy.
796
800
  #
797
- # <note markdown="1"> To copy a model, the destination project, source project, and source
801
+ # <note markdown="1"> Copying project versions is supported only for Custom Labels models.
802
+ #
803
+ # To copy a model, the destination project, source project, and source
798
804
  # model version must already exist.
799
805
  #
800
806
  # </note>
@@ -977,6 +983,10 @@ module Aws::Rekognition
977
983
  req.send_request(options)
978
984
  end
979
985
 
986
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
987
+ #
988
+ # </note>
989
+ #
980
990
  # Creates a new Amazon Rekognition Custom Labels dataset. You can create
981
991
  # a dataset by using an Amazon Sagemaker format manifest file or by
982
992
  # copying an existing Amazon Rekognition Custom Labels dataset.
@@ -1133,16 +1143,28 @@ module Aws::Rekognition
1133
1143
  req.send_request(options)
1134
1144
  end
1135
1145
 
1136
- # Creates a new Amazon Rekognition Custom Labels project. A project is a
1137
- # group of resources (datasets, model versions) that you use to create
1138
- # and manage Amazon Rekognition Custom Labels models.
1139
- #
1140
- # This operation requires permissions to perform the
1141
- # `rekognition:CreateProject` action.
1146
+ # Creates a new Amazon Rekognition project. A project is a group of
1147
+ # resources (datasets, model versions) that you use to create and manage
1148
+ # a Amazon Rekognition Custom Labels Model or custom adapter. You can
1149
+ # specify a feature to create the project with, if no feature is
1150
+ # specified then Custom Labels is used by default. For adapters, you can
1151
+ # also choose whether or not to have the project auto update by using
1152
+ # the AutoUpdate argument. This operation requires permissions to
1153
+ # perform the `rekognition:CreateProject` action.
1142
1154
  #
1143
1155
  # @option params [required, String] :project_name
1144
1156
  # The name of the project to create.
1145
1157
  #
1158
+ # @option params [String] :feature
1159
+ # Specifies feature that is being customized. If no value is provided
1160
+ # CUSTOM\_LABELS is used as a default.
1161
+ #
1162
+ # @option params [String] :auto_update
1163
+ # Specifies whether automatic retraining should be attempted for the
1164
+ # versions of the project. Automatic retraining is done as a best
1165
+ # effort. Required argument for Content Moderation. Applicable only to
1166
+ # adapters.
1167
+ #
1146
1168
  # @return [Types::CreateProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1147
1169
  #
1148
1170
  # * {Types::CreateProjectResponse#project_arn #project_arn} => String
@@ -1165,6 +1187,8 @@ module Aws::Rekognition
1165
1187
  #
1166
1188
  # resp = client.create_project({
1167
1189
  # project_name: "ProjectName", # required
1190
+ # feature: "CONTENT_MODERATION", # accepts CONTENT_MODERATION, CUSTOM_LABELS
1191
+ # auto_update: "ENABLED", # accepts ENABLED, DISABLED
1168
1192
  # })
1169
1193
  #
1170
1194
  # @example Response structure
@@ -1178,16 +1202,28 @@ module Aws::Rekognition
1178
1202
  req.send_request(options)
1179
1203
  end
1180
1204
 
1181
- # Creates a new version of a model and begins training. Models are
1182
- # managed as part of an Amazon Rekognition Custom Labels project. The
1183
- # response from `CreateProjectVersion` is an Amazon Resource Name (ARN)
1184
- # for the version of the model.
1205
+ # Creates a new version of Amazon Rekognition project (like a Custom
1206
+ # Labels model or a custom adapter) and begins training. Models and
1207
+ # adapters are managed as part of a Rekognition project. The response
1208
+ # from `CreateProjectVersion` is an Amazon Resource Name (ARN) for the
1209
+ # project version.
1210
+ #
1211
+ # The FeatureConfig operation argument allows you to configure specific
1212
+ # model or adapter settings. You can provide a description to the
1213
+ # project version by using the VersionDescription argment. Training can
1214
+ # take a while to complete. You can get the current status by calling
1215
+ # DescribeProjectVersions. Training completed successfully if the value
1216
+ # of the `Status` field is `TRAINING_COMPLETED`. Once training has
1217
+ # successfully completed, call DescribeProjectVersions to get the
1218
+ # training results and evaluate the model.
1185
1219
  #
1186
- # Training uses the training and test datasets associated with the
1187
- # project. For more information, see Creating training and test dataset
1188
- # in the *Amazon Rekognition Custom Labels Developer Guide*.
1220
+ # This operation requires permissions to perform the
1221
+ # `rekognition:CreateProjectVersion` action.
1222
+ #
1223
+ # <note markdown="1"> *The following applies only to projects with Amazon Rekognition Custom
1224
+ # Labels as the chosen feature:*
1189
1225
  #
1190
- # <note markdown="1"> You can train a model in a project that doesn't have associated
1226
+ # You can train a model in a project that doesn't have associated
1191
1227
  # datasets by specifying manifest files in the `TrainingData` and
1192
1228
  # `TestingData` fields.
1193
1229
  #
@@ -1202,57 +1238,42 @@ module Aws::Rekognition
1202
1238
  #
1203
1239
  # </note>
1204
1240
  #
1205
- # Training takes a while to complete. You can get the current status by
1206
- # calling DescribeProjectVersions. Training completed successfully if
1207
- # the value of the `Status` field is `TRAINING_COMPLETED`.
1208
- #
1209
- # If training fails, see Debugging a failed model training in the
1210
- # *Amazon Rekognition Custom Labels* developer guide.
1211
- #
1212
- # Once training has successfully completed, call DescribeProjectVersions
1213
- # to get the training results and evaluate the model. For more
1214
- # information, see Improving a trained Amazon Rekognition Custom Labels
1215
- # model in the *Amazon Rekognition Custom Labels* developers guide.
1216
- #
1217
- # After evaluating the model, you start the model by calling
1218
- # StartProjectVersion.
1219
- #
1220
- # This operation requires permissions to perform the
1221
- # `rekognition:CreateProjectVersion` action.
1222
- #
1223
1241
  # @option params [required, String] :project_arn
1224
- # The ARN of the Amazon Rekognition Custom Labels project that manages
1225
- # the model that you want to train.
1242
+ # The ARN of the Amazon Rekognition project that will manage the project
1243
+ # version you want to train.
1226
1244
  #
1227
1245
  # @option params [required, String] :version_name
1228
- # A name for the version of the model. This value must be unique.
1246
+ # A name for the version of the project version. This value must be
1247
+ # unique.
1229
1248
  #
1230
1249
  # @option params [required, Types::OutputConfig] :output_config
1231
- # The Amazon S3 bucket location to store the results of training. The S3
1232
- # bucket can be in any AWS account as long as the caller has
1233
- # `s3:PutObject` permissions on the S3 bucket.
1250
+ # The Amazon S3 bucket location to store the results of training. The
1251
+ # bucket can be any S3 bucket in your AWS account. You need
1252
+ # `s3:PutObject` permission on the bucket.
1234
1253
  #
1235
1254
  # @option params [Types::TrainingData] :training_data
1236
1255
  # Specifies an external manifest that the services uses to train the
1237
- # model. If you specify `TrainingData` you must also specify
1256
+ # project version. If you specify `TrainingData` you must also specify
1238
1257
  # `TestingData`. The project must not have any associated datasets.
1239
1258
  #
1240
1259
  # @option params [Types::TestingData] :testing_data
1241
1260
  # Specifies an external manifest that the service uses to test the
1242
- # model. If you specify `TestingData` you must also specify
1261
+ # project version. If you specify `TestingData` you must also specify
1243
1262
  # `TrainingData`. The project must not have any associated datasets.
1244
1263
  #
1245
1264
  # @option params [Hash<String,String>] :tags
1246
- # A set of tags (key-value pairs) that you want to attach to the model.
1265
+ # A set of tags (key-value pairs) that you want to attach to the project
1266
+ # version.
1247
1267
  #
1248
1268
  # @option params [String] :kms_key_id
1249
1269
  # The identifier for your AWS Key Management Service key (AWS KMS key).
1250
1270
  # You can supply the Amazon Resource Name (ARN) of your KMS key, the ID
1251
1271
  # of your KMS key, an alias for your KMS key, or an alias ARN. The key
1252
- # is used to encrypt training and test images copied into the service
1253
- # for model training. Your source images are unaffected. The key is also
1254
- # used to encrypt training results and manifest files written to the
1255
- # output Amazon S3 bucket (`OutputConfig`).
1272
+ # is used to encrypt training images, test images, and manifest files
1273
+ # copied into the service for the project version. Your source images
1274
+ # are unaffected. The key is also used to encrypt training results and
1275
+ # manifest files written to the output Amazon S3 bucket
1276
+ # (`OutputConfig`).
1256
1277
  #
1257
1278
  # If you choose to use your own KMS key, you need the following
1258
1279
  # permissions on the KMS key.
@@ -1268,6 +1289,14 @@ module Aws::Rekognition
1268
1289
  # If you don't specify a value for `KmsKeyId`, images copied into the
1269
1290
  # service are encrypted using a key that AWS owns and manages.
1270
1291
  #
1292
+ # @option params [String] :version_description
1293
+ # A description applied to the project version being created.
1294
+ #
1295
+ # @option params [Types::CustomizationFeatureConfig] :feature_config
1296
+ # Feature-specific configuration of the training job. If the job
1297
+ # configuration does not match the feature type associated with the
1298
+ # project, an InvalidParameterException is returned.
1299
+ #
1271
1300
  # @return [Types::CreateProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1272
1301
  #
1273
1302
  # * {Types::CreateProjectVersionResponse#project_version_arn #project_version_arn} => String
@@ -1331,6 +1360,12 @@ module Aws::Rekognition
1331
1360
  # "TagKey" => "TagValue",
1332
1361
  # },
1333
1362
  # kms_key_id: "KmsKeyId",
1363
+ # version_description: "VersionDescription",
1364
+ # feature_config: {
1365
+ # content_moderation: {
1366
+ # confidence_threshold: 1.0,
1367
+ # },
1368
+ # },
1334
1369
  # })
1335
1370
  #
1336
1371
  # @example Response structure
@@ -1636,6 +1671,10 @@ module Aws::Rekognition
1636
1671
  req.send_request(options)
1637
1672
  end
1638
1673
 
1674
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
1675
+ #
1676
+ # </note>
1677
+ #
1639
1678
  # Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting
1640
1679
  # a dataset might take while. Use DescribeDataset to check the current
1641
1680
  # status. The dataset is still deleting if the value of `Status` is
@@ -1741,9 +1780,9 @@ module Aws::Rekognition
1741
1780
  req.send_request(options)
1742
1781
  end
1743
1782
 
1744
- # Deletes an Amazon Rekognition Custom Labels project. To delete a
1745
- # project you must first delete all models associated with the project.
1746
- # To delete a model, see DeleteProjectVersion.
1783
+ # Deletes a Amazon Rekognition project. To delete a project you must
1784
+ # first delete all models or adapters associated with the project. To
1785
+ # delete a model or adapter, see DeleteProjectVersion.
1747
1786
  #
1748
1787
  # `DeleteProject` is an asynchronous operation. To check if the project
1749
1788
  # is deleted, call DescribeProjects. The project is deleted when the
@@ -1792,6 +1831,10 @@ module Aws::Rekognition
1792
1831
  req.send_request(options)
1793
1832
  end
1794
1833
 
1834
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
1835
+ #
1836
+ # </note>
1837
+ #
1795
1838
  # Deletes an existing project policy.
1796
1839
  #
1797
1840
  # To get a list of project policies attached to a project, call
@@ -1843,18 +1886,20 @@ module Aws::Rekognition
1843
1886
  req.send_request(options)
1844
1887
  end
1845
1888
 
1846
- # Deletes an Amazon Rekognition Custom Labels model.
1889
+ # Deletes a Rekognition project model or project version, like a Amazon
1890
+ # Rekognition Custom Labels model or a custom adapter.
1847
1891
  #
1848
- # You can't delete a model if it is running or if it is training. To
1849
- # check the status of a model, use the `Status` field returned from
1850
- # DescribeProjectVersions. To stop a running model call
1851
- # StopProjectVersion. If the model is training, wait until it finishes.
1892
+ # You can't delete a project version if it is running or if it is
1893
+ # training. To check the status of a project version, use the Status
1894
+ # field returned from DescribeProjectVersions. To stop a project version
1895
+ # call StopProjectVersion. If the project version is training, wait
1896
+ # until it finishes.
1852
1897
  #
1853
1898
  # This operation requires permissions to perform the
1854
1899
  # `rekognition:DeleteProjectVersion` action.
1855
1900
  #
1856
1901
  # @option params [required, String] :project_version_arn
1857
- # The Amazon Resource Name (ARN) of the model version that you want to
1902
+ # The Amazon Resource Name (ARN) of the project version that you want to
1858
1903
  # delete.
1859
1904
  #
1860
1905
  # @return [Types::DeleteProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1883,7 +1928,7 @@ module Aws::Rekognition
1883
1928
  #
1884
1929
  # @example Response structure
1885
1930
  #
1886
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
1931
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED", "DEPRECATED", "EXPIRED"
1887
1932
  #
1888
1933
  # @overload delete_project_version(params = {})
1889
1934
  # @param [Hash] params ({})
@@ -2007,6 +2052,10 @@ module Aws::Rekognition
2007
2052
  req.send_request(options)
2008
2053
  end
2009
2054
 
2055
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
2056
+ #
2057
+ # </note>
2058
+ #
2010
2059
  # Describes an Amazon Rekognition Custom Labels dataset. You can get
2011
2060
  # information such as the current status of a dataset and statistics
2012
2061
  # about the images and labels in a dataset.
@@ -2073,32 +2122,32 @@ module Aws::Rekognition
2073
2122
  req.send_request(options)
2074
2123
  end
2075
2124
 
2076
- # Lists and describes the versions of a model in an Amazon Rekognition
2077
- # Custom Labels project. You can specify up to 10 model versions in
2125
+ # Lists and describes the versions of an Amazon Rekognition project. You
2126
+ # can specify up to 10 model or adapter versions in
2078
2127
  # `ProjectVersionArns`. If you don't specify a value, descriptions for
2079
- # all model versions in the project are returned.
2128
+ # all model/adapter versions in the project are returned.
2080
2129
  #
2081
2130
  # This operation requires permissions to perform the
2082
2131
  # `rekognition:DescribeProjectVersions` action.
2083
2132
  #
2084
2133
  # @option params [required, String] :project_arn
2085
- # The Amazon Resource Name (ARN) of the project that contains the models
2086
- # you want to describe.
2134
+ # The Amazon Resource Name (ARN) of the project that contains the
2135
+ # model/adapter you want to describe.
2087
2136
  #
2088
2137
  # @option params [Array<String>] :version_names
2089
- # A list of model version names that you want to describe. You can add
2090
- # up to 10 model version names to the list. If you don't specify a
2091
- # value, all model descriptions are returned. A version name is part of
2092
- # a model (ProjectVersion) ARN. For example,
2093
- # `my-model.2020-01-21T09.10.15` is the version name in the following
2094
- # ARN.
2138
+ # A list of model or project version names that you want to describe.
2139
+ # You can add up to 10 model or project version names to the list. If
2140
+ # you don't specify a value, all project version descriptions are
2141
+ # returned. A version name is part of a project version ARN. For
2142
+ # example, `my-model.2020-01-21T09.10.15` is the version name in the
2143
+ # following ARN.
2095
2144
  # `arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123`.
2096
2145
  #
2097
2146
  # @option params [String] :next_token
2098
2147
  # If the previous response was incomplete (because there is more results
2099
- # to retrieve), Amazon Rekognition Custom Labels returns a pagination
2100
- # token in the response. You can use this pagination token to retrieve
2101
- # the next set of results.
2148
+ # to retrieve), Amazon Rekognition returns a pagination token in the
2149
+ # response. You can use this pagination token to retrieve the next set
2150
+ # of results.
2102
2151
  #
2103
2152
  # @option params [Integer] :max_results
2104
2153
  # The maximum number of results to return per paginated call. The
@@ -2232,7 +2281,7 @@ module Aws::Rekognition
2232
2281
  # resp.project_version_descriptions[0].project_version_arn #=> String
2233
2282
  # resp.project_version_descriptions[0].creation_timestamp #=> Time
2234
2283
  # resp.project_version_descriptions[0].min_inference_units #=> Integer
2235
- # resp.project_version_descriptions[0].status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
2284
+ # resp.project_version_descriptions[0].status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED", "DEPRECATED", "EXPIRED"
2236
2285
  # resp.project_version_descriptions[0].status_message #=> String
2237
2286
  # resp.project_version_descriptions[0].billable_training_time_in_seconds #=> Integer
2238
2287
  # resp.project_version_descriptions[0].training_end_timestamp #=> Time
@@ -2274,6 +2323,10 @@ module Aws::Rekognition
2274
2323
  # resp.project_version_descriptions[0].kms_key_id #=> String
2275
2324
  # resp.project_version_descriptions[0].max_inference_units #=> Integer
2276
2325
  # resp.project_version_descriptions[0].source_project_version_arn #=> String
2326
+ # resp.project_version_descriptions[0].version_description #=> String
2327
+ # resp.project_version_descriptions[0].feature #=> String, one of "CONTENT_MODERATION", "CUSTOM_LABELS"
2328
+ # resp.project_version_descriptions[0].base_model_version #=> String
2329
+ # resp.project_version_descriptions[0].feature_config.content_moderation.confidence_threshold #=> Float
2277
2330
  # resp.next_token #=> String
2278
2331
  #
2279
2332
  #
@@ -2289,16 +2342,15 @@ module Aws::Rekognition
2289
2342
  req.send_request(options)
2290
2343
  end
2291
2344
 
2292
- # Gets information about your Amazon Rekognition Custom Labels projects.
2345
+ # Gets information about your Rekognition projects.
2293
2346
  #
2294
2347
  # This operation requires permissions to perform the
2295
2348
  # `rekognition:DescribeProjects` action.
2296
2349
  #
2297
2350
  # @option params [String] :next_token
2298
2351
  # If the previous response was incomplete (because there is more results
2299
- # to retrieve), Amazon Rekognition Custom Labels returns a pagination
2300
- # token in the response. You can use this pagination token to retrieve
2301
- # the next set of results.
2352
+ # to retrieve), Rekognition returns a pagination token in the response.
2353
+ # You can use this pagination token to retrieve the next set of results.
2302
2354
  #
2303
2355
  # @option params [Integer] :max_results
2304
2356
  # The maximum number of results to return per paginated call. The
@@ -2307,9 +2359,13 @@ module Aws::Rekognition
2307
2359
  # 100.
2308
2360
  #
2309
2361
  # @option params [Array<String>] :project_names
2310
- # A list of the projects that you want Amazon Rekognition Custom Labels
2311
- # to describe. If you don't specify a value, the response includes
2312
- # descriptions for all the projects in your AWS account.
2362
+ # A list of the projects that you want Rekognition to describe. If you
2363
+ # don't specify a value, the response includes descriptions for all the
2364
+ # projects in your AWS account.
2365
+ #
2366
+ # @option params [Array<String>] :features
2367
+ # Specifies the type of customization to filter projects by. If no value
2368
+ # is specified, CUSTOM\_LABELS is used as a default.
2313
2369
  #
2314
2370
  # @return [Types::DescribeProjectsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2315
2371
  #
@@ -2364,6 +2420,7 @@ module Aws::Rekognition
2364
2420
  # next_token: "ExtendedPaginationToken",
2365
2421
  # max_results: 1,
2366
2422
  # project_names: ["ProjectName"],
2423
+ # features: ["CONTENT_MODERATION"], # accepts CONTENT_MODERATION, CUSTOM_LABELS
2367
2424
  # })
2368
2425
  #
2369
2426
  # @example Response structure
@@ -2379,6 +2436,8 @@ module Aws::Rekognition
2379
2436
  # 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"
2380
2437
  # resp.project_descriptions[0].datasets[0].status_message #=> String
2381
2438
  # resp.project_descriptions[0].datasets[0].status_message_code #=> String, one of "SUCCESS", "SERVICE_ERROR", "CLIENT_ERROR"
2439
+ # resp.project_descriptions[0].feature #=> String, one of "CONTENT_MODERATION", "CUSTOM_LABELS"
2440
+ # resp.project_descriptions[0].auto_update #=> String, one of "ENABLED", "DISABLED"
2382
2441
  # resp.next_token #=> String
2383
2442
  #
2384
2443
  # @overload describe_projects(params = {})
@@ -2456,6 +2515,10 @@ module Aws::Rekognition
2456
2515
  req.send_request(options)
2457
2516
  end
2458
2517
 
2518
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
2519
+ #
2520
+ # </note>
2521
+ #
2459
2522
  # Detects custom labels in a supplied image by using an Amazon
2460
2523
  # Rekognition Custom Labels model.
2461
2524
  #
@@ -2502,7 +2565,10 @@ module Aws::Rekognition
2502
2565
  # Rekognition Custom Labels Developer Guide.
2503
2566
  #
2504
2567
  # @option params [required, String] :project_version_arn
2505
- # The ARN of the model version that you want to use.
2568
+ # The ARN of the model version that you want to use. Only models
2569
+ # associated with Custom Labels projects accepted by the operation. If a
2570
+ # provided ARN refers to a model version associated with a project for a
2571
+ # different feature type, then an InvalidParameterException is returned.
2506
2572
  #
2507
2573
  # @option params [required, Types::Image] :image
2508
2574
  # Provides the input image either as bytes or an S3 object.
@@ -3124,6 +3190,9 @@ module Aws::Rekognition
3124
3190
  # to call Amazon Rekognition operations, passing image bytes is not
3125
3191
  # supported. The image must be either a PNG or JPEG formatted file.
3126
3192
  #
3193
+ # You can specify an adapter to use when retrieving label predictions by
3194
+ # providing a `ProjectVersionArn` to the `ProjectVersion` argument.
3195
+ #
3127
3196
  # @option params [required, Types::Image] :image
3128
3197
  # The input image as base64-encoded bytes or an S3 object. If you use
3129
3198
  # the AWS CLI to call Amazon Rekognition operations, passing
@@ -3146,11 +3215,17 @@ module Aws::Rekognition
3146
3215
  # Sets up the configuration for human evaluation, including the
3147
3216
  # FlowDefinition the image will be sent to.
3148
3217
  #
3218
+ # @option params [String] :project_version
3219
+ # Identifier for the custom adapter. Expects the ProjectVersionArn as a
3220
+ # value. Use the CreateProject or CreateProjectVersion APIs to create a
3221
+ # custom adapter.
3222
+ #
3149
3223
  # @return [Types::DetectModerationLabelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3150
3224
  #
3151
3225
  # * {Types::DetectModerationLabelsResponse#moderation_labels #moderation_labels} => Array&lt;Types::ModerationLabel&gt;
3152
3226
  # * {Types::DetectModerationLabelsResponse#moderation_model_version #moderation_model_version} => String
3153
3227
  # * {Types::DetectModerationLabelsResponse#human_loop_activation_output #human_loop_activation_output} => Types::HumanLoopActivationOutput
3228
+ # * {Types::DetectModerationLabelsResponse#project_version #project_version} => String
3154
3229
  #
3155
3230
  # @example Request syntax with placeholder values
3156
3231
  #
@@ -3171,6 +3246,7 @@ module Aws::Rekognition
3171
3246
  # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
3172
3247
  # },
3173
3248
  # },
3249
+ # project_version: "ProjectVersionId",
3174
3250
  # })
3175
3251
  #
3176
3252
  # @example Response structure
@@ -3184,6 +3260,7 @@ module Aws::Rekognition
3184
3260
  # resp.human_loop_activation_output.human_loop_activation_reasons #=> Array
3185
3261
  # resp.human_loop_activation_output.human_loop_activation_reasons[0] #=> String
3186
3262
  # resp.human_loop_activation_output.human_loop_activation_conditions_evaluation_results #=> String
3263
+ # resp.project_version #=> String
3187
3264
  #
3188
3265
  # @overload detect_moderation_labels(params = {})
3189
3266
  # @param [Hash] params ({})
@@ -3513,6 +3590,10 @@ module Aws::Rekognition
3513
3590
  req.send_request(options)
3514
3591
  end
3515
3592
 
3593
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
3594
+ #
3595
+ # </note>
3596
+ #
3516
3597
  # Distributes the entries (images) in a training dataset across the
3517
3598
  # training dataset and the test dataset for a project.
3518
3599
  # `DistributeDatasetEntries` moves 20% of the training dataset images to
@@ -5359,6 +5440,10 @@ module Aws::Rekognition
5359
5440
  req.send_request(options)
5360
5441
  end
5361
5442
 
5443
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
5444
+ #
5445
+ # </note>
5446
+ #
5362
5447
  # Lists the entries (images) within a dataset. An entry is a JSON Line
5363
5448
  # that contains the information for a single image, including the image
5364
5449
  # location, assigned labels, and object location bounding boxes. For
@@ -5476,6 +5561,10 @@ module Aws::Rekognition
5476
5561
  req.send_request(options)
5477
5562
  end
5478
5563
 
5564
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
5565
+ #
5566
+ # </note>
5567
+ #
5479
5568
  # Lists the labels in a dataset. Amazon Rekognition Custom Labels uses
5480
5569
  # labels to describe images. For more information, see [Labeling
5481
5570
  # images][1].
@@ -5692,6 +5781,10 @@ module Aws::Rekognition
5692
5781
  req.send_request(options)
5693
5782
  end
5694
5783
 
5784
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
5785
+ #
5786
+ # </note>
5787
+ #
5695
5788
  # Gets a list of the project policies attached to a project.
5696
5789
  #
5697
5790
  # To attach a project policy to a project, call PutProjectPolicy. To
@@ -5916,11 +6009,16 @@ module Aws::Rekognition
5916
6009
  req.send_request(options)
5917
6010
  end
5918
6011
 
6012
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
6013
+ #
6014
+ # </note>
6015
+ #
5919
6016
  # Attaches a project policy to a Amazon Rekognition Custom Labels
5920
6017
  # project in a trusting AWS account. A project policy specifies that a
5921
6018
  # trusted AWS account can copy a model version from a trusting AWS
5922
6019
  # account to a project in the trusted AWS account. To copy a model
5923
- # version you use the CopyProjectVersion operation.
6020
+ # version you use the CopyProjectVersion operation. Only applies to
6021
+ # Custom Labels projects.
5924
6022
  #
5925
6023
  # For more information about the format of a project policy document,
5926
6024
  # see Attaching a project policy (SDK) in the *Amazon Rekognition Custom
@@ -7313,6 +7411,10 @@ module Aws::Rekognition
7313
7411
  req.send_request(options)
7314
7412
  end
7315
7413
 
7414
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
7415
+ #
7416
+ # </note>
7417
+ #
7316
7418
  # Starts the running of the version of a model. Starting a model takes a
7317
7419
  # while to complete. To check the current state of the model, use
7318
7420
  # DescribeProjectVersions.
@@ -7325,9 +7427,6 @@ module Aws::Rekognition
7325
7427
  #
7326
7428
  # </note>
7327
7429
  #
7328
- # For more information, see *Running a trained Amazon Rekognition Custom
7329
- # Labels model* in the Amazon Rekognition Custom Labels Guide.
7330
- #
7331
7430
  # This operation requires permissions to perform the
7332
7431
  # `rekognition:StartProjectVersion` action.
7333
7432
  #
@@ -7339,11 +7438,6 @@ module Aws::Rekognition
7339
7438
  # The minimum number of inference units to use. A single inference unit
7340
7439
  # represents 1 hour of processing.
7341
7440
  #
7342
- # For information about the number of transactions per second (TPS) that
7343
- # an inference unit can support, see *Running a trained Amazon
7344
- # Rekognition Custom Labels model* in the Amazon Rekognition Custom
7345
- # Labels Guide.
7346
- #
7347
7441
  # Use a higher number to increase the TPS throughput of your model. You
7348
7442
  # are charged for the number of inference units that you use.
7349
7443
  #
@@ -7382,7 +7476,7 @@ module Aws::Rekognition
7382
7476
  #
7383
7477
  # @example Response structure
7384
7478
  #
7385
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
7479
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED", "DEPRECATED", "EXPIRED"
7386
7480
  #
7387
7481
  # @overload start_project_version(params = {})
7388
7482
  # @param [Hash] params ({})
@@ -7665,15 +7759,20 @@ module Aws::Rekognition
7665
7759
  req.send_request(options)
7666
7760
  end
7667
7761
 
7762
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
7763
+ #
7764
+ # </note>
7765
+ #
7668
7766
  # Stops a running model. The operation might take a while to complete.
7669
- # To check the current status, call DescribeProjectVersions.
7767
+ # To check the current status, call DescribeProjectVersions. Only
7768
+ # applies to Custom Labels projects.
7670
7769
  #
7671
7770
  # This operation requires permissions to perform the
7672
7771
  # `rekognition:StopProjectVersion` action.
7673
7772
  #
7674
7773
  # @option params [required, String] :project_version_arn
7675
7774
  # The Amazon Resource Name (ARN) of the model version that you want to
7676
- # delete.
7775
+ # stop.
7677
7776
  #
7678
7777
  # This operation requires permissions to perform the
7679
7778
  # `rekognition:StopProjectVersion` action.
@@ -7704,7 +7803,7 @@ module Aws::Rekognition
7704
7803
  #
7705
7804
  # @example Response structure
7706
7805
  #
7707
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
7806
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED", "DEPRECATED", "EXPIRED"
7708
7807
  #
7709
7808
  # @overload stop_project_version(params = {})
7710
7809
  # @param [Hash] params ({})
@@ -7799,6 +7898,10 @@ module Aws::Rekognition
7799
7898
  req.send_request(options)
7800
7899
  end
7801
7900
 
7901
+ # <note markdown="1"> This operation applies only to Amazon Rekognition Custom Labels.
7902
+ #
7903
+ # </note>
7904
+ #
7802
7905
  # Adds or updates one or more entries (images) in a dataset. An entry is
7803
7906
  # a JSON Line which contains the information for a single image,
7804
7907
  # including the image location, assigned labels, and object location
@@ -7949,7 +8052,7 @@ module Aws::Rekognition
7949
8052
  params: params,
7950
8053
  config: config)
7951
8054
  context[:gem_name] = 'aws-sdk-rekognition'
7952
- context[:gem_version] = '1.87.0'
8055
+ context[:gem_version] = '1.88.0'
7953
8056
  Seahorse::Client::Request.new(handlers, context)
7954
8057
  end
7955
8058