aws-sdk-rekognition 1.86.0 → 1.88.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,6 +84,10 @@ module Aws::Rekognition
84
84
  CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse')
85
85
  CustomLabel = Shapes::StructureShape.new(name: 'CustomLabel')
86
86
  CustomLabels = Shapes::ListShape.new(name: 'CustomLabels')
87
+ CustomizationFeature = Shapes::StringShape.new(name: 'CustomizationFeature')
88
+ CustomizationFeatureConfig = Shapes::StructureShape.new(name: 'CustomizationFeatureConfig')
89
+ CustomizationFeatureContentModerationConfig = Shapes::StructureShape.new(name: 'CustomizationFeatureContentModerationConfig')
90
+ CustomizationFeatures = Shapes::ListShape.new(name: 'CustomizationFeatures')
87
91
  DatasetArn = Shapes::StringShape.new(name: 'DatasetArn')
88
92
  DatasetChanges = Shapes::StructureShape.new(name: 'DatasetChanges')
89
93
  DatasetDescription = Shapes::StructureShape.new(name: 'DatasetDescription')
@@ -335,6 +339,7 @@ module Aws::Rekognition
335
339
  Polygon = Shapes::ListShape.new(name: 'Polygon')
336
340
  Pose = Shapes::StructureShape.new(name: 'Pose')
337
341
  ProjectArn = Shapes::StringShape.new(name: 'ProjectArn')
342
+ ProjectAutoUpdate = Shapes::StringShape.new(name: 'ProjectAutoUpdate')
338
343
  ProjectDescription = Shapes::StructureShape.new(name: 'ProjectDescription')
339
344
  ProjectDescriptions = Shapes::ListShape.new(name: 'ProjectDescriptions')
340
345
  ProjectName = Shapes::StringShape.new(name: 'ProjectName')
@@ -348,6 +353,7 @@ module Aws::Rekognition
348
353
  ProjectVersionArn = Shapes::StringShape.new(name: 'ProjectVersionArn')
349
354
  ProjectVersionDescription = Shapes::StructureShape.new(name: 'ProjectVersionDescription')
350
355
  ProjectVersionDescriptions = Shapes::ListShape.new(name: 'ProjectVersionDescriptions')
356
+ ProjectVersionId = Shapes::StringShape.new(name: 'ProjectVersionId')
351
357
  ProjectVersionStatus = Shapes::StringShape.new(name: 'ProjectVersionStatus')
352
358
  ProjectVersionsPageSize = Shapes::IntegerShape.new(name: 'ProjectVersionsPageSize')
353
359
  ProjectsPageSize = Shapes::IntegerShape.new(name: 'ProjectsPageSize')
@@ -510,6 +516,7 @@ module Aws::Rekognition
510
516
  UserMatchList = Shapes::ListShape.new(name: 'UserMatchList')
511
517
  UserStatus = Shapes::StringShape.new(name: 'UserStatus')
512
518
  ValidationData = Shapes::StructureShape.new(name: 'ValidationData')
519
+ VersionDescription = Shapes::StringShape.new(name: 'VersionDescription')
513
520
  VersionName = Shapes::StringShape.new(name: 'VersionName')
514
521
  VersionNames = Shapes::ListShape.new(name: 'VersionNames')
515
522
  Video = Shapes::StructureShape.new(name: 'Video')
@@ -712,6 +719,8 @@ module Aws::Rekognition
712
719
  CreateFaceLivenessSessionResponse.struct_class = Types::CreateFaceLivenessSessionResponse
713
720
 
714
721
  CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "ProjectName"))
722
+ CreateProjectRequest.add_member(:feature, Shapes::ShapeRef.new(shape: CustomizationFeature, location_name: "Feature"))
723
+ CreateProjectRequest.add_member(:auto_update, Shapes::ShapeRef.new(shape: ProjectAutoUpdate, location_name: "AutoUpdate"))
715
724
  CreateProjectRequest.struct_class = Types::CreateProjectRequest
716
725
 
717
726
  CreateProjectResponse.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
@@ -724,6 +733,8 @@ module Aws::Rekognition
724
733
  CreateProjectVersionRequest.add_member(:testing_data, Shapes::ShapeRef.new(shape: TestingData, location_name: "TestingData"))
725
734
  CreateProjectVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
726
735
  CreateProjectVersionRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
736
+ CreateProjectVersionRequest.add_member(:version_description, Shapes::ShapeRef.new(shape: VersionDescription, location_name: "VersionDescription"))
737
+ CreateProjectVersionRequest.add_member(:feature_config, Shapes::ShapeRef.new(shape: CustomizationFeatureConfig, location_name: "FeatureConfig"))
727
738
  CreateProjectVersionRequest.struct_class = Types::CreateProjectVersionRequest
728
739
 
729
740
  CreateProjectVersionResponse.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, location_name: "ProjectVersionArn"))
@@ -758,6 +769,14 @@ module Aws::Rekognition
758
769
 
759
770
  CustomLabels.member = Shapes::ShapeRef.new(shape: CustomLabel)
760
771
 
772
+ CustomizationFeatureConfig.add_member(:content_moderation, Shapes::ShapeRef.new(shape: CustomizationFeatureContentModerationConfig, location_name: "ContentModeration"))
773
+ CustomizationFeatureConfig.struct_class = Types::CustomizationFeatureConfig
774
+
775
+ CustomizationFeatureContentModerationConfig.add_member(:confidence_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "ConfidenceThreshold"))
776
+ CustomizationFeatureContentModerationConfig.struct_class = Types::CustomizationFeatureContentModerationConfig
777
+
778
+ CustomizationFeatures.member = Shapes::ShapeRef.new(shape: CustomizationFeature)
779
+
761
780
  DatasetChanges.add_member(:ground_truth, Shapes::ShapeRef.new(shape: GroundTruthBlob, required: true, location_name: "GroundTruth"))
762
781
  DatasetChanges.struct_class = Types::DatasetChanges
763
782
 
@@ -882,6 +901,7 @@ module Aws::Rekognition
882
901
  DescribeProjectsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ExtendedPaginationToken, location_name: "NextToken"))
883
902
  DescribeProjectsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ProjectsPageSize, location_name: "MaxResults"))
884
903
  DescribeProjectsRequest.add_member(:project_names, Shapes::ShapeRef.new(shape: ProjectNames, location_name: "ProjectNames"))
904
+ DescribeProjectsRequest.add_member(:features, Shapes::ShapeRef.new(shape: CustomizationFeatures, location_name: "Features"))
885
905
  DescribeProjectsRequest.struct_class = Types::DescribeProjectsRequest
886
906
 
887
907
  DescribeProjectsResponse.add_member(:project_descriptions, Shapes::ShapeRef.new(shape: ProjectDescriptions, location_name: "ProjectDescriptions"))
@@ -968,11 +988,13 @@ module Aws::Rekognition
968
988
  DetectModerationLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
969
989
  DetectModerationLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
970
990
  DetectModerationLabelsRequest.add_member(:human_loop_config, Shapes::ShapeRef.new(shape: HumanLoopConfig, location_name: "HumanLoopConfig"))
991
+ DetectModerationLabelsRequest.add_member(:project_version, Shapes::ShapeRef.new(shape: ProjectVersionId, location_name: "ProjectVersion"))
971
992
  DetectModerationLabelsRequest.struct_class = Types::DetectModerationLabelsRequest
972
993
 
973
994
  DetectModerationLabelsResponse.add_member(:moderation_labels, Shapes::ShapeRef.new(shape: ModerationLabels, location_name: "ModerationLabels"))
974
995
  DetectModerationLabelsResponse.add_member(:moderation_model_version, Shapes::ShapeRef.new(shape: String, location_name: "ModerationModelVersion"))
975
996
  DetectModerationLabelsResponse.add_member(:human_loop_activation_output, Shapes::ShapeRef.new(shape: HumanLoopActivationOutput, location_name: "HumanLoopActivationOutput"))
997
+ DetectModerationLabelsResponse.add_member(:project_version, Shapes::ShapeRef.new(shape: ProjectVersionId, location_name: "ProjectVersion"))
976
998
  DetectModerationLabelsResponse.struct_class = Types::DetectModerationLabelsResponse
977
999
 
978
1000
  DetectProtectiveEquipmentRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
@@ -1577,6 +1599,8 @@ module Aws::Rekognition
1577
1599
  ProjectDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
1578
1600
  ProjectDescription.add_member(:status, Shapes::ShapeRef.new(shape: ProjectStatus, location_name: "Status"))
1579
1601
  ProjectDescription.add_member(:datasets, Shapes::ShapeRef.new(shape: DatasetMetadataList, location_name: "Datasets"))
1602
+ ProjectDescription.add_member(:feature, Shapes::ShapeRef.new(shape: CustomizationFeature, location_name: "Feature"))
1603
+ ProjectDescription.add_member(:auto_update, Shapes::ShapeRef.new(shape: ProjectAutoUpdate, location_name: "AutoUpdate"))
1580
1604
  ProjectDescription.struct_class = Types::ProjectDescription
1581
1605
 
1582
1606
  ProjectDescriptions.member = Shapes::ShapeRef.new(shape: ProjectDescription)
@@ -1608,6 +1632,10 @@ module Aws::Rekognition
1608
1632
  ProjectVersionDescription.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
1609
1633
  ProjectVersionDescription.add_member(:max_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, location_name: "MaxInferenceUnits"))
1610
1634
  ProjectVersionDescription.add_member(:source_project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, location_name: "SourceProjectVersionArn"))
1635
+ ProjectVersionDescription.add_member(:version_description, Shapes::ShapeRef.new(shape: VersionDescription, location_name: "VersionDescription"))
1636
+ ProjectVersionDescription.add_member(:feature, Shapes::ShapeRef.new(shape: CustomizationFeature, location_name: "Feature"))
1637
+ ProjectVersionDescription.add_member(:base_model_version, Shapes::ShapeRef.new(shape: String, location_name: "BaseModelVersion"))
1638
+ ProjectVersionDescription.add_member(:feature_config, Shapes::ShapeRef.new(shape: CustomizationFeatureConfig, location_name: "FeatureConfig"))
1611
1639
  ProjectVersionDescription.struct_class = Types::ProjectVersionDescription
1612
1640
 
1613
1641
  ProjectVersionDescriptions.member = Shapes::ShapeRef.new(shape: ProjectVersionDescription)
@@ -2539,6 +2567,8 @@ module Aws::Rekognition
2539
2567
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
2540
2568
  o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
2541
2569
  o.errors << Shapes::ShapeRef.new(shape: HumanLoopQuotaExceededException)
2570
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2571
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
2542
2572
  end)
2543
2573
 
2544
2574
  api.add_operation(:detect_protective_equipment, Seahorse::Model::Operation.new.tap do |o|
@@ -964,8 +964,22 @@ module Aws::Rekognition
964
964
  # The name of the project to create.
965
965
  # @return [String]
966
966
  #
967
+ # @!attribute [rw] feature
968
+ # Specifies feature that is being customized. If no value is provided
969
+ # CUSTOM\_LABELS is used as a default.
970
+ # @return [String]
971
+ #
972
+ # @!attribute [rw] auto_update
973
+ # Specifies whether automatic retraining should be attempted for the
974
+ # versions of the project. Automatic retraining is done as a best
975
+ # effort. Required argument for Content Moderation. Applicable only to
976
+ # adapters.
977
+ # @return [String]
978
+ #
967
979
  class CreateProjectRequest < Struct.new(
968
- :project_name)
980
+ :project_name,
981
+ :feature,
982
+ :auto_update)
969
983
  SENSITIVE = []
970
984
  include Aws::Structure
971
985
  end
@@ -982,45 +996,47 @@ module Aws::Rekognition
982
996
  end
983
997
 
984
998
  # @!attribute [rw] project_arn
985
- # The ARN of the Amazon Rekognition Custom Labels project that manages
986
- # the model that you want to train.
999
+ # The ARN of the Amazon Rekognition project that will manage the
1000
+ # project version you want to train.
987
1001
  # @return [String]
988
1002
  #
989
1003
  # @!attribute [rw] version_name
990
- # A name for the version of the model. This value must be unique.
1004
+ # A name for the version of the project version. This value must be
1005
+ # unique.
991
1006
  # @return [String]
992
1007
  #
993
1008
  # @!attribute [rw] output_config
994
1009
  # The Amazon S3 bucket location to store the results of training. The
995
- # S3 bucket can be in any AWS account as long as the caller has
996
- # `s3:PutObject` permissions on the S3 bucket.
1010
+ # bucket can be any S3 bucket in your AWS account. You need
1011
+ # `s3:PutObject` permission on the bucket.
997
1012
  # @return [Types::OutputConfig]
998
1013
  #
999
1014
  # @!attribute [rw] training_data
1000
1015
  # Specifies an external manifest that the services uses to train the
1001
- # model. If you specify `TrainingData` you must also specify
1016
+ # project version. If you specify `TrainingData` you must also specify
1002
1017
  # `TestingData`. The project must not have any associated datasets.
1003
1018
  # @return [Types::TrainingData]
1004
1019
  #
1005
1020
  # @!attribute [rw] testing_data
1006
1021
  # Specifies an external manifest that the service uses to test the
1007
- # model. If you specify `TestingData` you must also specify
1022
+ # project version. If you specify `TestingData` you must also specify
1008
1023
  # `TrainingData`. The project must not have any associated datasets.
1009
1024
  # @return [Types::TestingData]
1010
1025
  #
1011
1026
  # @!attribute [rw] tags
1012
1027
  # A set of tags (key-value pairs) that you want to attach to the
1013
- # model.
1028
+ # project version.
1014
1029
  # @return [Hash<String,String>]
1015
1030
  #
1016
1031
  # @!attribute [rw] kms_key_id
1017
1032
  # The identifier for your AWS Key Management Service key (AWS KMS
1018
1033
  # key). You can supply the Amazon Resource Name (ARN) of your KMS key,
1019
1034
  # the ID of your KMS key, an alias for your KMS key, or an alias ARN.
1020
- # The key is used to encrypt training and test images copied into the
1021
- # service for model training. Your source images are unaffected. The
1022
- # key is also used to encrypt training results and manifest files
1023
- # written to the output Amazon S3 bucket (`OutputConfig`).
1035
+ # The key is used to encrypt training images, test images, and
1036
+ # manifest files copied into the service for the project version. Your
1037
+ # source images are unaffected. The key is also used to encrypt
1038
+ # training results and manifest files written to the output Amazon S3
1039
+ # bucket (`OutputConfig`).
1024
1040
  #
1025
1041
  # If you choose to use your own KMS key, you need the following
1026
1042
  # permissions on the KMS key.
@@ -1037,6 +1053,16 @@ module Aws::Rekognition
1037
1053
  # service are encrypted using a key that AWS owns and manages.
1038
1054
  # @return [String]
1039
1055
  #
1056
+ # @!attribute [rw] version_description
1057
+ # A description applied to the project version being created.
1058
+ # @return [String]
1059
+ #
1060
+ # @!attribute [rw] feature_config
1061
+ # Feature-specific configuration of the training job. If the job
1062
+ # configuration does not match the feature type associated with the
1063
+ # project, an InvalidParameterException is returned.
1064
+ # @return [Types::CustomizationFeatureConfig]
1065
+ #
1040
1066
  class CreateProjectVersionRequest < Struct.new(
1041
1067
  :project_arn,
1042
1068
  :version_name,
@@ -1044,13 +1070,15 @@ module Aws::Rekognition
1044
1070
  :training_data,
1045
1071
  :testing_data,
1046
1072
  :tags,
1047
- :kms_key_id)
1073
+ :kms_key_id,
1074
+ :version_description,
1075
+ :feature_config)
1048
1076
  SENSITIVE = []
1049
1077
  include Aws::Structure
1050
1078
  end
1051
1079
 
1052
1080
  # @!attribute [rw] project_version_arn
1053
- # The ARN of the model version that was created. Use
1081
+ # The ARN of the model or the project version that was created. Use
1054
1082
  # `DescribeProjectVersion` to get the current status of the training
1055
1083
  # operation.
1056
1084
  # @return [String]
@@ -1229,6 +1257,34 @@ module Aws::Rekognition
1229
1257
  include Aws::Structure
1230
1258
  end
1231
1259
 
1260
+ # Feature specific configuration for the training job. Configuration
1261
+ # provided for the job must match the feature type parameter associated
1262
+ # with project. If configuration and feature type do not match an
1263
+ # InvalidParameterException is returned.
1264
+ #
1265
+ # @!attribute [rw] content_moderation
1266
+ # Configuration options for Custom Moderation training.
1267
+ # @return [Types::CustomizationFeatureContentModerationConfig]
1268
+ #
1269
+ class CustomizationFeatureConfig < Struct.new(
1270
+ :content_moderation)
1271
+ SENSITIVE = []
1272
+ include Aws::Structure
1273
+ end
1274
+
1275
+ # Configuration options for Content Moderation training.
1276
+ #
1277
+ # @!attribute [rw] confidence_threshold
1278
+ # The confidence level you plan to use to identify if unsafe content
1279
+ # is present during inference.
1280
+ # @return [Float]
1281
+ #
1282
+ class CustomizationFeatureContentModerationConfig < Struct.new(
1283
+ :confidence_threshold)
1284
+ SENSITIVE = []
1285
+ include Aws::Structure
1286
+ end
1287
+
1232
1288
  # Describes updates or additions to a dataset. A Single update or
1233
1289
  # addition is an entry (JSON Line) that provides information about a
1234
1290
  # single image. To update an existing entry, you match the `source-ref`
@@ -1545,8 +1601,8 @@ module Aws::Rekognition
1545
1601
  end
1546
1602
 
1547
1603
  # @!attribute [rw] project_version_arn
1548
- # The Amazon Resource Name (ARN) of the model version that you want to
1549
- # delete.
1604
+ # The Amazon Resource Name (ARN) of the project version that you want
1605
+ # to delete.
1550
1606
  # @return [String]
1551
1607
  #
1552
1608
  class DeleteProjectVersionRequest < Struct.new(
@@ -1676,24 +1732,24 @@ module Aws::Rekognition
1676
1732
 
1677
1733
  # @!attribute [rw] project_arn
1678
1734
  # The Amazon Resource Name (ARN) of the project that contains the
1679
- # models you want to describe.
1735
+ # model/adapter you want to describe.
1680
1736
  # @return [String]
1681
1737
  #
1682
1738
  # @!attribute [rw] version_names
1683
- # A list of model version names that you want to describe. You can add
1684
- # up to 10 model version names to the list. If you don't specify a
1685
- # value, all model descriptions are returned. A version name is part
1686
- # of a model (ProjectVersion) ARN. For example,
1687
- # `my-model.2020-01-21T09.10.15` is the version name in the following
1688
- # ARN.
1739
+ # A list of model or project version names that you want to describe.
1740
+ # You can add up to 10 model or project version names to the list. If
1741
+ # you don't specify a value, all project version descriptions are
1742
+ # returned. A version name is part of a project version ARN. For
1743
+ # example, `my-model.2020-01-21T09.10.15` is the version name in the
1744
+ # following ARN.
1689
1745
  # `arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123`.
1690
1746
  # @return [Array<String>]
1691
1747
  #
1692
1748
  # @!attribute [rw] next_token
1693
1749
  # If the previous response was incomplete (because there is more
1694
- # results to retrieve), Amazon Rekognition Custom Labels returns a
1695
- # pagination token in the response. You can use this pagination token
1696
- # to retrieve the next set of results.
1750
+ # results to retrieve), Amazon Rekognition returns a pagination token
1751
+ # in the response. You can use this pagination token to retrieve the
1752
+ # next set of results.
1697
1753
  # @return [String]
1698
1754
  #
1699
1755
  # @!attribute [rw] max_results
@@ -1713,15 +1769,15 @@ module Aws::Rekognition
1713
1769
  end
1714
1770
 
1715
1771
  # @!attribute [rw] project_version_descriptions
1716
- # A list of model descriptions. The list is sorted by the creation
1717
- # date and time of the model versions, latest to earliest.
1772
+ # A list of project version descriptions. The list is sorted by the
1773
+ # creation date and time of the project versions, latest to earliest.
1718
1774
  # @return [Array<Types::ProjectVersionDescription>]
1719
1775
  #
1720
1776
  # @!attribute [rw] next_token
1721
1777
  # If the previous response was incomplete (because there is more
1722
- # results to retrieve), Amazon Rekognition Custom Labels returns a
1723
- # pagination token in the response. You can use this pagination token
1724
- # to retrieve the next set of results.
1778
+ # results to retrieve), Amazon Rekognition returns a pagination token
1779
+ # in the response. You can use this pagination token to retrieve the
1780
+ # next set of results.
1725
1781
  # @return [String]
1726
1782
  #
1727
1783
  class DescribeProjectVersionsResponse < Struct.new(
@@ -1733,9 +1789,9 @@ module Aws::Rekognition
1733
1789
 
1734
1790
  # @!attribute [rw] next_token
1735
1791
  # If the previous response was incomplete (because there is more
1736
- # results to retrieve), Amazon Rekognition Custom Labels returns a
1737
- # pagination token in the response. You can use this pagination token
1738
- # to retrieve the next set of results.
1792
+ # results to retrieve), Rekognition returns a pagination token in the
1793
+ # response. You can use this pagination token to retrieve the next set
1794
+ # of results.
1739
1795
  # @return [String]
1740
1796
  #
1741
1797
  # @!attribute [rw] max_results
@@ -1746,15 +1802,21 @@ module Aws::Rekognition
1746
1802
  # @return [Integer]
1747
1803
  #
1748
1804
  # @!attribute [rw] project_names
1749
- # A list of the projects that you want Amazon Rekognition Custom
1750
- # Labels to describe. If you don't specify a value, the response
1751
- # includes descriptions for all the projects in your AWS account.
1805
+ # A list of the projects that you want Rekognition to describe. If you
1806
+ # don't specify a value, the response includes descriptions for all
1807
+ # the projects in your AWS account.
1808
+ # @return [Array<String>]
1809
+ #
1810
+ # @!attribute [rw] features
1811
+ # Specifies the type of customization to filter projects by. If no
1812
+ # value is specified, CUSTOM\_LABELS is used as a default.
1752
1813
  # @return [Array<String>]
1753
1814
  #
1754
1815
  class DescribeProjectsRequest < Struct.new(
1755
1816
  :next_token,
1756
1817
  :max_results,
1757
- :project_names)
1818
+ :project_names,
1819
+ :features)
1758
1820
  SENSITIVE = []
1759
1821
  include Aws::Structure
1760
1822
  end
@@ -1766,9 +1828,9 @@ module Aws::Rekognition
1766
1828
  #
1767
1829
  # @!attribute [rw] next_token
1768
1830
  # If the previous response was incomplete (because there is more
1769
- # results to retrieve), Amazon Rekognition Custom Labels returns a
1770
- # pagination token in the response. You can use this pagination token
1771
- # to retrieve the next set of results.
1831
+ # results to retrieve), Amazon Rekognition returns a pagination token
1832
+ # in the response. You can use this pagination token to retrieve the
1833
+ # next set of results.
1772
1834
  # @return [String]
1773
1835
  #
1774
1836
  class DescribeProjectsResponse < Struct.new(
@@ -1888,7 +1950,11 @@ module Aws::Rekognition
1888
1950
  end
1889
1951
 
1890
1952
  # @!attribute [rw] project_version_arn
1891
- # The ARN of the model version that you want to use.
1953
+ # The ARN of the model version that you want to use. Only models
1954
+ # associated with Custom Labels projects accepted by the operation. If
1955
+ # a provided ARN refers to a model version associated with a project
1956
+ # for a different feature type, then an InvalidParameterException is
1957
+ # returned.
1892
1958
  # @return [String]
1893
1959
  #
1894
1960
  # @!attribute [rw] image
@@ -2287,10 +2353,17 @@ module Aws::Rekognition
2287
2353
  # FlowDefinition the image will be sent to.
2288
2354
  # @return [Types::HumanLoopConfig]
2289
2355
  #
2356
+ # @!attribute [rw] project_version
2357
+ # Identifier for the custom adapter. Expects the ProjectVersionArn as
2358
+ # a value. Use the CreateProject or CreateProjectVersion APIs to
2359
+ # create a custom adapter.
2360
+ # @return [String]
2361
+ #
2290
2362
  class DetectModerationLabelsRequest < Struct.new(
2291
2363
  :image,
2292
2364
  :min_confidence,
2293
- :human_loop_config)
2365
+ :human_loop_config,
2366
+ :project_version)
2294
2367
  SENSITIVE = []
2295
2368
  include Aws::Structure
2296
2369
  end
@@ -2301,18 +2374,26 @@ module Aws::Rekognition
2301
2374
  # @return [Array<Types::ModerationLabel>]
2302
2375
  #
2303
2376
  # @!attribute [rw] moderation_model_version
2304
- # Version number of the moderation detection model that was used to
2305
- # detect unsafe content.
2377
+ # Version number of the base moderation detection model that was used
2378
+ # to detect unsafe content.
2306
2379
  # @return [String]
2307
2380
  #
2308
2381
  # @!attribute [rw] human_loop_activation_output
2309
2382
  # Shows the results of the human in the loop evaluation.
2310
2383
  # @return [Types::HumanLoopActivationOutput]
2311
2384
  #
2385
+ # @!attribute [rw] project_version
2386
+ # Identifier of the custom adapter that was used during inference. If
2387
+ # during inference the adapter was EXPIRED, then the parameter will
2388
+ # not be returned, indicating that a base moderation detection project
2389
+ # version was used.
2390
+ # @return [String]
2391
+ #
2312
2392
  class DetectModerationLabelsResponse < Struct.new(
2313
2393
  :moderation_labels,
2314
2394
  :moderation_model_version,
2315
- :human_loop_activation_output)
2395
+ :human_loop_activation_output,
2396
+ :project_version)
2316
2397
  SENSITIVE = []
2317
2398
  include Aws::Structure
2318
2399
  end
@@ -4635,11 +4716,10 @@ module Aws::Rekognition
4635
4716
  end
4636
4717
 
4637
4718
  # An Amazon Rekognition service limit was exceeded. For example, if you
4638
- # start too many Amazon Rekognition Video jobs concurrently, calls to
4639
- # start operations (`StartLabelDetection`, for example) will raise a
4640
- # `LimitExceededException` exception (HTTP status code: 400) until the
4641
- # number of concurrently running jobs is below the Amazon Rekognition
4642
- # service limit.
4719
+ # start too many jobs concurrently, subsequent calls to start operations
4720
+ # (ex: `StartLabelDetection`) will raise a `LimitExceededException`
4721
+ # exception (HTTP status code: 400) until the number of concurrently
4722
+ # running jobs is below the Amazon Rekognition service limit.
4643
4723
  #
4644
4724
  class LimitExceededException < Aws::EmptyStructure; end
4645
4725
 
@@ -5319,11 +5399,22 @@ module Aws::Rekognition
5319
5399
  # Information about the training and test datasets in the project.
5320
5400
  # @return [Array<Types::DatasetMetadata>]
5321
5401
  #
5402
+ # @!attribute [rw] feature
5403
+ # Specifies the project that is being customized.
5404
+ # @return [String]
5405
+ #
5406
+ # @!attribute [rw] auto_update
5407
+ # Indicates whether automatic retraining will be attempted for the
5408
+ # versions of the project. Applies only to adapters.
5409
+ # @return [String]
5410
+ #
5322
5411
  class ProjectDescription < Struct.new(
5323
5412
  :project_arn,
5324
5413
  :creation_timestamp,
5325
5414
  :status,
5326
- :datasets)
5415
+ :datasets,
5416
+ :feature,
5417
+ :auto_update)
5327
5418
  SENSITIVE = []
5328
5419
  include Aws::Structure
5329
5420
  end
@@ -5366,11 +5457,10 @@ module Aws::Rekognition
5366
5457
  include Aws::Structure
5367
5458
  end
5368
5459
 
5369
- # A description of a version of an Amazon Rekognition Custom Labels
5370
- # model.
5460
+ # A description of a version of a Amazon Rekognition project version.
5371
5461
  #
5372
5462
  # @!attribute [rw] project_version_arn
5373
- # The Amazon Resource Name (ARN) of the model version.
5463
+ # The Amazon Resource Name (ARN) of the project version.
5374
5464
  # @return [String]
5375
5465
  #
5376
5466
  # @!attribute [rw] creation_timestamp
@@ -5378,8 +5468,9 @@ module Aws::Rekognition
5378
5468
  # @return [Time]
5379
5469
  #
5380
5470
  # @!attribute [rw] min_inference_units
5381
- # The minimum number of inference units used by the model. For more
5382
- # information, see StartProjectVersion.
5471
+ # The minimum number of inference units used by the model. Applies
5472
+ # only to Custom Labels projects. For more information, see
5473
+ # StartProjectVersion.
5383
5474
  # @return [Integer]
5384
5475
  #
5385
5476
  # @!attribute [rw] status
@@ -5429,9 +5520,9 @@ module Aws::Rekognition
5429
5520
  # @return [String]
5430
5521
  #
5431
5522
  # @!attribute [rw] max_inference_units
5432
- # The maximum number of inference units Amazon Rekognition Custom
5433
- # Labels uses to auto-scale the model. For more information, see
5434
- # StartProjectVersion.
5523
+ # The maximum number of inference units Amazon Rekognition uses to
5524
+ # auto-scale the model. Applies only to Custom Labels projects. For
5525
+ # more information, see StartProjectVersion.
5435
5526
  # @return [Integer]
5436
5527
  #
5437
5528
  # @!attribute [rw] source_project_version_arn
@@ -5440,6 +5531,22 @@ module Aws::Rekognition
5440
5531
  # version.
5441
5532
  # @return [String]
5442
5533
  #
5534
+ # @!attribute [rw] version_description
5535
+ # A user-provided description of the project version.
5536
+ # @return [String]
5537
+ #
5538
+ # @!attribute [rw] feature
5539
+ # The feature that was customized.
5540
+ # @return [String]
5541
+ #
5542
+ # @!attribute [rw] base_model_version
5543
+ # The base detection model version used to create the project version.
5544
+ # @return [String]
5545
+ #
5546
+ # @!attribute [rw] feature_config
5547
+ # Feature specific configuration that was applied during training.
5548
+ # @return [Types::CustomizationFeatureConfig]
5549
+ #
5443
5550
  class ProjectVersionDescription < Struct.new(
5444
5551
  :project_version_arn,
5445
5552
  :creation_timestamp,
@@ -5455,7 +5562,11 @@ module Aws::Rekognition
5455
5562
  :manifest_summary,
5456
5563
  :kms_key_id,
5457
5564
  :max_inference_units,
5458
- :source_project_version_arn)
5565
+ :source_project_version_arn,
5566
+ :version_description,
5567
+ :feature,
5568
+ :base_model_version,
5569
+ :feature_config)
5459
5570
  SENSITIVE = []
5460
5571
  include Aws::Structure
5461
5572
  end
@@ -6672,11 +6783,6 @@ module Aws::Rekognition
6672
6783
  # The minimum number of inference units to use. A single inference
6673
6784
  # unit represents 1 hour of processing.
6674
6785
  #
6675
- # For information about the number of transactions per second (TPS)
6676
- # that an inference unit can support, see *Running a trained Amazon
6677
- # Rekognition Custom Labels model* in the Amazon Rekognition Custom
6678
- # Labels Guide.
6679
- #
6680
6786
  # Use a higher number to increase the TPS throughput of your model.
6681
6787
  # You are charged for the number of inference units that you use.
6682
6788
  # @return [Integer]
@@ -6969,7 +7075,7 @@ module Aws::Rekognition
6969
7075
 
6970
7076
  # @!attribute [rw] project_version_arn
6971
7077
  # The Amazon Resource Name (ARN) of the model version that you want to
6972
- # delete.
7078
+ # stop.
6973
7079
  #
6974
7080
  # This operation requires permissions to perform the
6975
7081
  # `rekognition:StopProjectVersion` action.
@@ -7259,18 +7365,16 @@ module Aws::Rekognition
7259
7365
  end
7260
7366
 
7261
7367
  # The dataset used for testing. Optionally, if `AutoCreate` is set,
7262
- # Amazon Rekognition Custom Labels uses the training dataset to create a
7263
- # test dataset with a temporary split of the training dataset.
7368
+ # Amazon Rekognition uses the training dataset to create a test dataset
7369
+ # with a temporary split of the training dataset.
7264
7370
  #
7265
7371
  # @!attribute [rw] assets
7266
7372
  # The assets used for testing.
7267
7373
  # @return [Array<Types::Asset>]
7268
7374
  #
7269
7375
  # @!attribute [rw] auto_create
7270
- # If specified, Amazon Rekognition Custom Labels temporarily splits
7271
- # the training dataset (80%) to create a test dataset (20%) for the
7272
- # training job. After training completes, the test dataset is not
7273
- # stored and the training dataset reverts to its previous size.
7376
+ # If specified, Rekognition splits training dataset to create a test
7377
+ # dataset for the training job.
7274
7378
  # @return [Boolean]
7275
7379
  #
7276
7380
  class TestingData < Struct.new(
@@ -7390,8 +7494,8 @@ module Aws::Rekognition
7390
7494
  # The dataset used for training.
7391
7495
  #
7392
7496
  # @!attribute [rw] assets
7393
- # A Sagemaker GroundTruth manifest file that contains the training
7394
- # images (assets).
7497
+ # A manifest file that contains references to the training images and
7498
+ # ground-truth annotations.
7395
7499
  # @return [Array<Types::Asset>]
7396
7500
  #
7397
7501
  class TrainingData < Struct.new(
@@ -7400,21 +7504,21 @@ module Aws::Rekognition
7400
7504
  include Aws::Structure
7401
7505
  end
7402
7506
 
7403
- # Sagemaker Groundtruth format manifest files for the input, output and
7404
- # validation datasets that are used and created during testing.
7507
+ # The data validation manifest created for the training dataset during
7508
+ # model training.
7405
7509
  #
7406
7510
  # @!attribute [rw] input
7407
- # The training assets that you supplied for training.
7511
+ # The training data that you supplied.
7408
7512
  # @return [Types::TrainingData]
7409
7513
  #
7410
7514
  # @!attribute [rw] output
7411
- # The images (assets) that were actually trained by Amazon Rekognition
7412
- # Custom Labels.
7515
+ # Reference to images (assets) that were actually used during training
7516
+ # with trained model predictions.
7413
7517
  # @return [Types::TrainingData]
7414
7518
  #
7415
7519
  # @!attribute [rw] validation
7416
- # The location of the data validation manifest. The data validation
7417
- # manifest is created for the training dataset during model training.
7520
+ # A manifest that you supplied for training, with validation results
7521
+ # for each line.
7418
7522
  # @return [Types::ValidationData]
7419
7523
  #
7420
7524
  class TrainingDataResult < 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.86.0'
56
+ GEM_VERSION = '1.88.0'
57
57
 
58
58
  end