aws-sdk-rekognition 1.49.0 → 1.53.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: 01e4b112dcbe0fa24cc70880e0cd417ec9294accad27db8caccbefb794885e81
4
- data.tar.gz: 5005ec52bd1d2376179d7a38503c5ea017b10e28545eee32beff9d7ddcd89930
3
+ metadata.gz: ee84fb06704b864d6e850935c0993d13504308dedc59832df63b554951454aa3
4
+ data.tar.gz: 573db1696cc9ca01596429f839d5c5c0a07699ac1b07b82e49f9b2ffd877557e
5
5
  SHA512:
6
- metadata.gz: 67c82a0c8bfa99753dca7df8afd850dcdbe282ebf88f3970b71c7c009b72a1af156b90a0f3daae2c8ee962a2705d4972da5e06c051908c98a174f0b216114c96
7
- data.tar.gz: 3bacd79d43999b119375b3305b9398421009d1e60f54cb7c0720a0ed878471e9793e019f4c974a379dfe9867cb78fcb368075ac625e11dc8646e31a99e7ef40b
6
+ metadata.gz: 557d2ad9853c265c10e5b39194e0e22e42405d5d9dfd47198b9234ce9d778c3fa40ae10116f3095e3e436da3cfbddaa75e247b70de2e92c9bfc471ff7d5a94fb
7
+ data.tar.gz: 732dba155b2df524eb3f6e5cf9b175eaeeadc4b477aa9b4e94a536252dd0f1a62cf0a6778ce9ee57c0743de6e8bf7114a5916361b8a42e33d896f174047d7f74
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2021-07-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.52.0 (2021-07-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.51.0 (2021-05-19)
15
+ ------------------
16
+
17
+ * Feature - Amazon Rekognition Custom Labels adds support for customer managed encryption, using AWS Key Management Service, of image files copied into the service and files written back to the customer.
18
+
19
+ 1.50.0 (2021-03-25)
20
+ ------------------
21
+
22
+ * Feature - This release introduces AWS tagging support for Amazon Rekognition collections, stream processors, and Custom Label models.
23
+
4
24
  1.49.0 (2021-03-10)
5
25
  ------------------
6
26
 
@@ -335,4 +355,4 @@ Unreleased Changes
335
355
  1.0.0.rc2 (2016-12-09)
336
356
  ------------------
337
357
 
338
- * Feature - Initial release of `aws-sdk-rekognition`.
358
+ * Feature - Initial release of `aws-sdk-rekognition`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.53.0
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-rekognition/customizations'
49
49
  # @!group service
50
50
  module Aws::Rekognition
51
51
 
52
- GEM_VERSION = '1.49.0'
52
+ GEM_VERSION = '1.53.0'
53
53
 
54
54
  end
@@ -340,10 +340,20 @@ module Aws::Rekognition
340
340
  # Compares a face in the *source* input image with each of the 100
341
341
  # largest faces detected in the *target* input image.
342
342
  #
343
- # <note markdown="1"> If the source image contains multiple faces, the service detects the
343
+ # If the source image contains multiple faces, the service detects the
344
344
  # largest face and compares it with each face detected in the target
345
345
  # image.
346
346
  #
347
+ # <note markdown="1"> CompareFaces uses machine learning algorithms, which are
348
+ # probabilistic. A false negative is an incorrect prediction that a face
349
+ # in the target image has a low similarity confidence score when
350
+ # compared to the face in the source image. To reduce the probability of
351
+ # false negatives, we recommend that you compare the target image
352
+ # against multiple source images. If you plan to use `CompareFaces` to
353
+ # make a decision that impacts an individual's rights, privacy, or
354
+ # access to services, we recommend that you pass the result to a human
355
+ # for review and further validation before taking action.
356
+ #
347
357
  # </note>
348
358
  #
349
359
  # You pass the input and target images either as base64-encoded image
@@ -578,11 +588,17 @@ module Aws::Rekognition
578
588
  # </note>
579
589
  #
580
590
  # This operation requires permissions to perform the
581
- # `rekognition:CreateCollection` action.
591
+ # `rekognition:CreateCollection` action. If you want to tag your
592
+ # collection, you also require permission to perform the
593
+ # `rekognition:TagResource` operation.
582
594
  #
583
595
  # @option params [required, String] :collection_id
584
596
  # ID for the collection that you are creating.
585
597
  #
598
+ # @option params [Hash<String,String>] :tags
599
+ # A set of tags (key-value pairs) that you want to attach to the
600
+ # collection.
601
+ #
586
602
  # @return [Types::CreateCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
587
603
  #
588
604
  # * {Types::CreateCollectionResponse#status_code #status_code} => Integer
@@ -608,6 +624,9 @@ module Aws::Rekognition
608
624
  #
609
625
  # resp = client.create_collection({
610
626
  # collection_id: "CollectionId", # required
627
+ # tags: {
628
+ # "TagKey" => "TagValue",
629
+ # },
611
630
  # })
612
631
  #
613
632
  # @example Response structure
@@ -688,6 +707,21 @@ module Aws::Rekognition
688
707
  # @option params [required, Types::TestingData] :testing_data
689
708
  # The dataset to use for testing.
690
709
  #
710
+ # @option params [Hash<String,String>] :tags
711
+ # A set of tags (key-value pairs) that you want to attach to the model.
712
+ #
713
+ # @option params [String] :kms_key_id
714
+ # The identifier for your AWS Key Management Service (AWS KMS) customer
715
+ # master key (CMK). You can supply the Amazon Resource Name (ARN) of
716
+ # your CMK, the ID of your CMK, or an alias for your CMK. The key is
717
+ # used to encrypt training and test images copied into the service for
718
+ # model training. Your source images are unaffected. The key is also
719
+ # used to encrypt training results and manifest files written to the
720
+ # output Amazon S3 bucket (`OutputConfig`).
721
+ #
722
+ # If you don't specify a value for `KmsKeyId`, images copied into the
723
+ # service are encrypted using a key that AWS owns and manages.
724
+ #
691
725
  # @return [Types::CreateProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
692
726
  #
693
727
  # * {Types::CreateProjectVersionResponse#project_version_arn #project_version_arn} => String
@@ -728,6 +762,10 @@ module Aws::Rekognition
728
762
  # ],
729
763
  # auto_create: false,
730
764
  # },
765
+ # tags: {
766
+ # "TagKey" => "TagValue",
767
+ # },
768
+ # kms_key_id: "KmsKeyId",
731
769
  # })
732
770
  #
733
771
  # @example Response structure
@@ -760,6 +798,11 @@ module Aws::Rekognition
760
798
  # StopStreamProcessor to stop processing. You can delete the stream
761
799
  # processor by calling DeleteStreamProcessor.
762
800
  #
801
+ # This operation requires permissions to perform the
802
+ # `rekognition:CreateStreamProcessor` action. If you want to tag your
803
+ # stream processor, you also require permission to perform the
804
+ # `rekognition:TagResource` operation.
805
+ #
763
806
  # @option params [required, Types::StreamProcessorInput] :input
764
807
  # Kinesis video stream stream that provides the source streaming video.
765
808
  # If you are using the AWS CLI, the parameter name is
@@ -784,6 +827,10 @@ module Aws::Rekognition
784
827
  # @option params [required, String] :role_arn
785
828
  # ARN of the IAM role that allows access to the stream processor.
786
829
  #
830
+ # @option params [Hash<String,String>] :tags
831
+ # A set of tags (key-value pairs) that you want to attach to the stream
832
+ # processor.
833
+ #
787
834
  # @return [Types::CreateStreamProcessorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
788
835
  #
789
836
  # * {Types::CreateStreamProcessorResponse#stream_processor_arn #stream_processor_arn} => String
@@ -809,6 +856,9 @@ module Aws::Rekognition
809
856
  # },
810
857
  # },
811
858
  # role_arn: "RoleArn", # required
859
+ # tags: {
860
+ # "TagKey" => "TagValue",
861
+ # },
812
862
  # })
813
863
  #
814
864
  # @example Response structure
@@ -1143,6 +1193,7 @@ module Aws::Rekognition
1143
1193
  # resp.project_version_descriptions[0].manifest_summary.s3_object.bucket #=> String
1144
1194
  # resp.project_version_descriptions[0].manifest_summary.s3_object.name #=> String
1145
1195
  # resp.project_version_descriptions[0].manifest_summary.s3_object.version #=> String
1196
+ # resp.project_version_descriptions[0].kms_key_id #=> String
1146
1197
  # resp.next_token #=> String
1147
1198
  #
1148
1199
  #
@@ -3782,6 +3833,38 @@ module Aws::Rekognition
3782
3833
  req.send_request(options)
3783
3834
  end
3784
3835
 
3836
+ # Returns a list of tags in an Amazon Rekognition collection, stream
3837
+ # processor, or Custom Labels model.
3838
+ #
3839
+ # This operation requires permissions to perform the
3840
+ # `rekognition:ListTagsForResource` action.
3841
+ #
3842
+ # @option params [required, String] :resource_arn
3843
+ # Amazon Resource Name (ARN) of the model, collection, or stream
3844
+ # processor that contains the tags that you want a list of.
3845
+ #
3846
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3847
+ #
3848
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
3849
+ #
3850
+ # @example Request syntax with placeholder values
3851
+ #
3852
+ # resp = client.list_tags_for_resource({
3853
+ # resource_arn: "ResourceArn", # required
3854
+ # })
3855
+ #
3856
+ # @example Response structure
3857
+ #
3858
+ # resp.tags #=> Hash
3859
+ # resp.tags["TagKey"] #=> String
3860
+ #
3861
+ # @overload list_tags_for_resource(params = {})
3862
+ # @param [Hash] params ({})
3863
+ def list_tags_for_resource(params = {}, options = {})
3864
+ req = build_request(:list_tags_for_resource, params)
3865
+ req.send_request(options)
3866
+ end
3867
+
3785
3868
  # Returns an array of celebrities recognized in the input image. For
3786
3869
  # more information, see Recognizing Celebrities in the Amazon
3787
3870
  # Rekognition Developer Guide.
@@ -4058,6 +4141,9 @@ module Aws::Rekognition
4058
4141
  # bounding box contains a face) of the face that Amazon Rekognition used
4059
4142
  # for the input image.
4060
4143
  #
4144
+ # If no faces are detected in the input image, `SearchFacesByImage`
4145
+ # returns an `InvalidParameterException` error.
4146
+ #
4061
4147
  # For an example, Searching for a Face Using an Image in the Amazon
4062
4148
  # Rekognition Developer Guide.
4063
4149
  #
@@ -4986,6 +5072,71 @@ module Aws::Rekognition
4986
5072
  req.send_request(options)
4987
5073
  end
4988
5074
 
5075
+ # Adds one or more key-value tags to an Amazon Rekognition collection,
5076
+ # stream processor, or Custom Labels model. For more information, see
5077
+ # [Tagging AWS Resources][1].
5078
+ #
5079
+ # This operation requires permissions to perform the
5080
+ # `rekognition:TagResource` action.
5081
+ #
5082
+ #
5083
+ #
5084
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
5085
+ #
5086
+ # @option params [required, String] :resource_arn
5087
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5088
+ # processor that you want to assign the tags to.
5089
+ #
5090
+ # @option params [required, Hash<String,String>] :tags
5091
+ # The key-value tags to assign to the resource.
5092
+ #
5093
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5094
+ #
5095
+ # @example Request syntax with placeholder values
5096
+ #
5097
+ # resp = client.tag_resource({
5098
+ # resource_arn: "ResourceArn", # required
5099
+ # tags: { # required
5100
+ # "TagKey" => "TagValue",
5101
+ # },
5102
+ # })
5103
+ #
5104
+ # @overload tag_resource(params = {})
5105
+ # @param [Hash] params ({})
5106
+ def tag_resource(params = {}, options = {})
5107
+ req = build_request(:tag_resource, params)
5108
+ req.send_request(options)
5109
+ end
5110
+
5111
+ # Removes one or more tags from an Amazon Rekognition collection, stream
5112
+ # processor, or Custom Labels model.
5113
+ #
5114
+ # This operation requires permissions to perform the
5115
+ # `rekognition:UntagResource` action.
5116
+ #
5117
+ # @option params [required, String] :resource_arn
5118
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5119
+ # processor that you want to remove the tags from.
5120
+ #
5121
+ # @option params [required, Array<String>] :tag_keys
5122
+ # A list of the tags that you want to remove.
5123
+ #
5124
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5125
+ #
5126
+ # @example Request syntax with placeholder values
5127
+ #
5128
+ # resp = client.untag_resource({
5129
+ # resource_arn: "ResourceArn", # required
5130
+ # tag_keys: ["TagKey"], # required
5131
+ # })
5132
+ #
5133
+ # @overload untag_resource(params = {})
5134
+ # @param [Hash] params ({})
5135
+ def untag_resource(params = {}, options = {})
5136
+ req = build_request(:untag_resource, params)
5137
+ req.send_request(options)
5138
+ end
5139
+
4989
5140
  # @!endgroup
4990
5141
 
4991
5142
  # @param params ({})
@@ -4999,7 +5150,7 @@ module Aws::Rekognition
4999
5150
  params: params,
5000
5151
  config: config)
5001
5152
  context[:gem_name] = 'aws-sdk-rekognition'
5002
- context[:gem_version] = '1.49.0'
5153
+ context[:gem_version] = '1.53.0'
5003
5154
  Seahorse::Client::Request.new(handlers, context)
5004
5155
  end
5005
5156
 
@@ -176,6 +176,7 @@ module Aws::Rekognition
176
176
  KinesisDataStream = Shapes::StructureShape.new(name: 'KinesisDataStream')
177
177
  KinesisVideoArn = Shapes::StringShape.new(name: 'KinesisVideoArn')
178
178
  KinesisVideoStream = Shapes::StructureShape.new(name: 'KinesisVideoStream')
179
+ KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
179
180
  Label = Shapes::StructureShape.new(name: 'Label')
180
181
  LabelDetection = Shapes::StructureShape.new(name: 'LabelDetection')
181
182
  LabelDetectionSortBy = Shapes::StringShape.new(name: 'LabelDetectionSortBy')
@@ -191,6 +192,8 @@ module Aws::Rekognition
191
192
  ListFacesResponse = Shapes::StructureShape.new(name: 'ListFacesResponse')
192
193
  ListStreamProcessorsRequest = Shapes::StructureShape.new(name: 'ListStreamProcessorsRequest')
193
194
  ListStreamProcessorsResponse = Shapes::StructureShape.new(name: 'ListStreamProcessorsResponse')
195
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
196
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
194
197
  MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
195
198
  MaxFacesToIndex = Shapes::IntegerShape.new(name: 'MaxFacesToIndex')
196
199
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
@@ -245,6 +248,7 @@ module Aws::Rekognition
245
248
  RegionsOfInterest = Shapes::ListShape.new(name: 'RegionsOfInterest')
246
249
  RekognitionUniqueId = Shapes::StringShape.new(name: 'RekognitionUniqueId')
247
250
  ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
251
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
248
252
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
249
253
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
250
254
  ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
@@ -309,6 +313,12 @@ module Aws::Rekognition
309
313
  String = Shapes::StringShape.new(name: 'String')
310
314
  Summary = Shapes::StructureShape.new(name: 'Summary')
311
315
  Sunglasses = Shapes::StructureShape.new(name: 'Sunglasses')
316
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
317
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
318
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
319
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
320
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
321
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
312
322
  TechnicalCueSegment = Shapes::StructureShape.new(name: 'TechnicalCueSegment')
313
323
  TechnicalCueType = Shapes::StringShape.new(name: 'TechnicalCueType')
314
324
  TestingData = Shapes::StructureShape.new(name: 'TestingData')
@@ -327,6 +337,8 @@ module Aws::Rekognition
327
337
  ULong = Shapes::IntegerShape.new(name: 'ULong')
328
338
  UnindexedFace = Shapes::StructureShape.new(name: 'UnindexedFace')
329
339
  UnindexedFaces = Shapes::ListShape.new(name: 'UnindexedFaces')
340
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
341
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
330
342
  Url = Shapes::StringShape.new(name: 'Url')
331
343
  Urls = Shapes::ListShape.new(name: 'Urls')
332
344
  ValidationData = Shapes::StructureShape.new(name: 'ValidationData')
@@ -443,6 +455,7 @@ module Aws::Rekognition
443
455
  CoversBodyPart.struct_class = Types::CoversBodyPart
444
456
 
445
457
  CreateCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
458
+ CreateCollectionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
446
459
  CreateCollectionRequest.struct_class = Types::CreateCollectionRequest
447
460
 
448
461
  CreateCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
@@ -461,6 +474,8 @@ module Aws::Rekognition
461
474
  CreateProjectVersionRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "OutputConfig"))
462
475
  CreateProjectVersionRequest.add_member(:training_data, Shapes::ShapeRef.new(shape: TrainingData, required: true, location_name: "TrainingData"))
463
476
  CreateProjectVersionRequest.add_member(:testing_data, Shapes::ShapeRef.new(shape: TestingData, required: true, location_name: "TestingData"))
477
+ CreateProjectVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
478
+ CreateProjectVersionRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
464
479
  CreateProjectVersionRequest.struct_class = Types::CreateProjectVersionRequest
465
480
 
466
481
  CreateProjectVersionResponse.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, location_name: "ProjectVersionArn"))
@@ -471,6 +486,7 @@ module Aws::Rekognition
471
486
  CreateStreamProcessorRequest.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, required: true, location_name: "Name"))
472
487
  CreateStreamProcessorRequest.add_member(:settings, Shapes::ShapeRef.new(shape: StreamProcessorSettings, required: true, location_name: "Settings"))
473
488
  CreateStreamProcessorRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
489
+ CreateStreamProcessorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
474
490
  CreateStreamProcessorRequest.struct_class = Types::CreateStreamProcessorRequest
475
491
 
476
492
  CreateStreamProcessorResponse.add_member(:stream_processor_arn, Shapes::ShapeRef.new(shape: StreamProcessorArn, location_name: "StreamProcessorArn"))
@@ -940,6 +956,12 @@ module Aws::Rekognition
940
956
  ListStreamProcessorsResponse.add_member(:stream_processors, Shapes::ShapeRef.new(shape: StreamProcessorList, location_name: "StreamProcessors"))
941
957
  ListStreamProcessorsResponse.struct_class = Types::ListStreamProcessorsResponse
942
958
 
959
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
960
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
961
+
962
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
963
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
964
+
943
965
  ModerationLabel.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
944
966
  ModerationLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
945
967
  ModerationLabel.add_member(:parent_name, Shapes::ShapeRef.new(shape: String, location_name: "ParentName"))
@@ -1016,6 +1038,7 @@ module Aws::Rekognition
1016
1038
  ProjectVersionDescription.add_member(:testing_data_result, Shapes::ShapeRef.new(shape: TestingDataResult, location_name: "TestingDataResult"))
1017
1039
  ProjectVersionDescription.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "EvaluationResult"))
1018
1040
  ProjectVersionDescription.add_member(:manifest_summary, Shapes::ShapeRef.new(shape: GroundTruthManifest, location_name: "ManifestSummary"))
1041
+ ProjectVersionDescription.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
1019
1042
  ProjectVersionDescription.struct_class = Types::ProjectVersionDescription
1020
1043
 
1021
1044
  ProjectVersionDescriptions.member = Shapes::ShapeRef.new(shape: ProjectVersionDescription)
@@ -1270,6 +1293,17 @@ module Aws::Rekognition
1270
1293
  Sunglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
1271
1294
  Sunglasses.struct_class = Types::Sunglasses
1272
1295
 
1296
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
1297
+
1298
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
1299
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
1300
+
1301
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
1302
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
1303
+ TagResourceRequest.struct_class = Types::TagResourceRequest
1304
+
1305
+ TagResourceResponse.struct_class = Types::TagResourceResponse
1306
+
1273
1307
  TechnicalCueSegment.add_member(:type, Shapes::ShapeRef.new(shape: TechnicalCueType, location_name: "Type"))
1274
1308
  TechnicalCueSegment.add_member(:confidence, Shapes::ShapeRef.new(shape: SegmentConfidence, location_name: "Confidence"))
1275
1309
  TechnicalCueSegment.struct_class = Types::TechnicalCueSegment
@@ -1315,6 +1349,12 @@ module Aws::Rekognition
1315
1349
 
1316
1350
  UnindexedFaces.member = Shapes::ShapeRef.new(shape: UnindexedFace)
1317
1351
 
1352
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
1353
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
1354
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
1355
+
1356
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
1357
+
1318
1358
  Urls.member = Shapes::ShapeRef.new(shape: Url)
1319
1359
 
1320
1360
  ValidationData.add_member(:assets, Shapes::ShapeRef.new(shape: Assets, location_name: "Assets"))
@@ -1383,6 +1423,7 @@ module Aws::Rekognition
1383
1423
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1384
1424
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1385
1425
  o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
1426
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1386
1427
  end)
1387
1428
 
1388
1429
  api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
@@ -1414,6 +1455,7 @@ module Aws::Rekognition
1414
1455
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1415
1456
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1416
1457
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1458
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1417
1459
  end)
1418
1460
 
1419
1461
  api.add_operation(:create_stream_processor, Seahorse::Model::Operation.new.tap do |o|
@@ -1429,6 +1471,7 @@ module Aws::Rekognition
1429
1471
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1430
1472
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1431
1473
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1474
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1432
1475
  end)
1433
1476
 
1434
1477
  api.add_operation(:delete_collection, Seahorse::Model::Operation.new.tap do |o|
@@ -1935,6 +1978,20 @@ module Aws::Rekognition
1935
1978
  )
1936
1979
  end)
1937
1980
 
1981
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1982
+ o.name = "ListTagsForResource"
1983
+ o.http_method = "POST"
1984
+ o.http_request_uri = "/"
1985
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1986
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1987
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1988
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1989
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1990
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1991
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1992
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1993
+ end)
1994
+
1938
1995
  api.add_operation(:recognize_celebrities, Seahorse::Model::Operation.new.tap do |o|
1939
1996
  o.name = "RecognizeCelebrities"
1940
1997
  o.http_method = "POST"
@@ -2180,6 +2237,35 @@ module Aws::Rekognition
2180
2237
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2181
2238
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
2182
2239
  end)
2240
+
2241
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2242
+ o.name = "TagResource"
2243
+ o.http_method = "POST"
2244
+ o.http_request_uri = "/"
2245
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
2246
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
2247
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2248
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2249
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2250
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2251
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2252
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2253
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
2254
+ end)
2255
+
2256
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
2257
+ o.name = "UntagResource"
2258
+ o.http_method = "POST"
2259
+ o.http_request_uri = "/"
2260
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
2261
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
2262
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2263
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2264
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2265
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2266
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2267
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
2268
+ end)
2183
2269
  end
2184
2270
 
2185
2271
  end
@@ -525,14 +525,23 @@ module Aws::Rekognition
525
525
  #
526
526
  # {
527
527
  # collection_id: "CollectionId", # required
528
+ # tags: {
529
+ # "TagKey" => "TagValue",
530
+ # },
528
531
  # }
529
532
  #
530
533
  # @!attribute [rw] collection_id
531
534
  # ID for the collection that you are creating.
532
535
  # @return [String]
533
536
  #
537
+ # @!attribute [rw] tags
538
+ # A set of tags (key-value pairs) that you want to attach to the
539
+ # collection.
540
+ # @return [Hash<String,String>]
541
+ #
534
542
  class CreateCollectionRequest < Struct.new(
535
- :collection_id)
543
+ :collection_id,
544
+ :tags)
536
545
  SENSITIVE = []
537
546
  include Aws::Structure
538
547
  end
@@ -624,6 +633,10 @@ module Aws::Rekognition
624
633
  # ],
625
634
  # auto_create: false,
626
635
  # },
636
+ # tags: {
637
+ # "TagKey" => "TagValue",
638
+ # },
639
+ # kms_key_id: "KmsKeyId",
627
640
  # }
628
641
  #
629
642
  # @!attribute [rw] project_arn
@@ -647,12 +660,32 @@ module Aws::Rekognition
647
660
  # The dataset to use for testing.
648
661
  # @return [Types::TestingData]
649
662
  #
663
+ # @!attribute [rw] tags
664
+ # A set of tags (key-value pairs) that you want to attach to the
665
+ # model.
666
+ # @return [Hash<String,String>]
667
+ #
668
+ # @!attribute [rw] kms_key_id
669
+ # The identifier for your AWS Key Management Service (AWS KMS)
670
+ # customer master key (CMK). You can supply the Amazon Resource Name
671
+ # (ARN) of your CMK, the ID of your CMK, or an alias for your CMK. The
672
+ # key is used to encrypt training and test images copied into the
673
+ # service for model training. Your source images are unaffected. The
674
+ # key is also used to encrypt training results and manifest files
675
+ # written to the output Amazon S3 bucket (`OutputConfig`).
676
+ #
677
+ # If you don't specify a value for `KmsKeyId`, images copied into the
678
+ # service are encrypted using a key that AWS owns and manages.
679
+ # @return [String]
680
+ #
650
681
  class CreateProjectVersionRequest < Struct.new(
651
682
  :project_arn,
652
683
  :version_name,
653
684
  :output_config,
654
685
  :training_data,
655
- :testing_data)
686
+ :testing_data,
687
+ :tags,
688
+ :kms_key_id)
656
689
  SENSITIVE = []
657
690
  include Aws::Structure
658
691
  end
@@ -691,6 +724,9 @@ module Aws::Rekognition
691
724
  # },
692
725
  # },
693
726
  # role_arn: "RoleArn", # required
727
+ # tags: {
728
+ # "TagKey" => "TagValue",
729
+ # },
694
730
  # }
695
731
  #
696
732
  # @!attribute [rw] input
@@ -722,12 +758,18 @@ module Aws::Rekognition
722
758
  # ARN of the IAM role that allows access to the stream processor.
723
759
  # @return [String]
724
760
  #
761
+ # @!attribute [rw] tags
762
+ # A set of tags (key-value pairs) that you want to attach to the
763
+ # stream processor.
764
+ # @return [Hash<String,String>]
765
+ #
725
766
  class CreateStreamProcessorRequest < Struct.new(
726
767
  :input,
727
768
  :output,
728
769
  :name,
729
770
  :settings,
730
- :role_arn)
771
+ :role_arn,
772
+ :tags)
731
773
  SENSITIVE = []
732
774
  include Aws::Structure
733
775
  end
@@ -1649,10 +1691,10 @@ module Aws::Rekognition
1649
1691
  # }
1650
1692
  #
1651
1693
  # @!attribute [rw] min_confidence
1652
- # Sets confidence of word detection. Words with detection confidence
1653
- # below this will be excluded from the result. Values should be
1654
- # between 0.5 and 1 as Text in Video will not return any result below
1655
- # 0.5.
1694
+ # Sets the confidence of word detection. Words with detection
1695
+ # confidence below this will be excluded from the result. Values
1696
+ # should be between 50 and 100 as Text in Video will not return any
1697
+ # result below 50.
1656
1698
  # @return [Float]
1657
1699
  #
1658
1700
  # @!attribute [rw] min_bounding_box_height
@@ -3011,9 +3053,10 @@ module Aws::Rekognition
3011
3053
  include Aws::Structure
3012
3054
  end
3013
3055
 
3014
- # The input image size exceeds the allowed limit. For more information,
3015
- # see Limits in Amazon Rekognition in the Amazon Rekognition Developer
3016
- # Guide.
3056
+ # The input image size exceeds the allowed limit. If you are calling
3057
+ # DetectProtectiveEquipment, the image size or resolution exceeds the
3058
+ # allowed limit. For more information, see Limits in Amazon Rekognition
3059
+ # in the Amazon Rekognition Developer Guide.
3017
3060
  #
3018
3061
  class ImageTooLargeException < Aws::EmptyStructure; end
3019
3062
 
@@ -3495,6 +3538,34 @@ module Aws::Rekognition
3495
3538
  include Aws::Structure
3496
3539
  end
3497
3540
 
3541
+ # @note When making an API call, you may pass ListTagsForResourceRequest
3542
+ # data as a hash:
3543
+ #
3544
+ # {
3545
+ # resource_arn: "ResourceArn", # required
3546
+ # }
3547
+ #
3548
+ # @!attribute [rw] resource_arn
3549
+ # Amazon Resource Name (ARN) of the model, collection, or stream
3550
+ # processor that contains the tags that you want a list of.
3551
+ # @return [String]
3552
+ #
3553
+ class ListTagsForResourceRequest < Struct.new(
3554
+ :resource_arn)
3555
+ SENSITIVE = []
3556
+ include Aws::Structure
3557
+ end
3558
+
3559
+ # @!attribute [rw] tags
3560
+ # A list of key-value tags assigned to the resource.
3561
+ # @return [Hash<String,String>]
3562
+ #
3563
+ class ListTagsForResourceResponse < Struct.new(
3564
+ :tags)
3565
+ SENSITIVE = []
3566
+ include Aws::Structure
3567
+ end
3568
+
3498
3569
  # Provides information about a single type of unsafe content found in an
3499
3570
  # image or video. Each type of moderated content has a label within a
3500
3571
  # hierarchical taxonomy. For more information, see Detecting Unsafe
@@ -3833,6 +3904,11 @@ module Aws::Rekognition
3833
3904
  # datasets.
3834
3905
  # @return [Types::GroundTruthManifest]
3835
3906
  #
3907
+ # @!attribute [rw] kms_key_id
3908
+ # The identifer for the AWS Key Management Service (AWS KMS) customer
3909
+ # master key that was used to encrypt the model during training.
3910
+ # @return [String]
3911
+ #
3836
3912
  class ProjectVersionDescription < Struct.new(
3837
3913
  :project_version_arn,
3838
3914
  :creation_timestamp,
@@ -3845,7 +3921,8 @@ module Aws::Rekognition
3845
3921
  :training_data_result,
3846
3922
  :testing_data_result,
3847
3923
  :evaluation_result,
3848
- :manifest_summary)
3924
+ :manifest_summary,
3925
+ :kms_key_id)
3849
3926
  SENSITIVE = []
3850
3927
  include Aws::Structure
3851
3928
  end
@@ -3983,7 +4060,7 @@ module Aws::Rekognition
3983
4060
  #
3984
4061
  # @!attribute [rw] persons_without_required_equipment
3985
4062
  # An array of IDs for persons who are not wearing all of the types of
3986
- # PPE specified in the RequiredEquipmentTypes field of the detected
4063
+ # PPE specified in the `RequiredEquipmentTypes` field of the detected
3987
4064
  # personal protective equipment.
3988
4065
  # @return [Array<Integer>]
3989
4066
  #
@@ -4102,7 +4179,7 @@ module Aws::Rekognition
4102
4179
  include Aws::Structure
4103
4180
  end
4104
4181
 
4105
- # A collection with the specified ID already exists.
4182
+ # A resource with the specified ID already exists.
4106
4183
  #
4107
4184
  class ResourceAlreadyExistsException < Aws::EmptyStructure; end
4108
4185
 
@@ -4110,7 +4187,7 @@ module Aws::Rekognition
4110
4187
  #
4111
4188
  class ResourceInUseException < Aws::EmptyStructure; end
4112
4189
 
4113
- # The collection specified in the request cannot be found.
4190
+ # The resource specified in the request cannot be found.
4114
4191
  #
4115
4192
  class ResourceNotFoundException < Aws::EmptyStructure; end
4116
4193
 
@@ -5428,6 +5505,34 @@ module Aws::Rekognition
5428
5505
  include Aws::Structure
5429
5506
  end
5430
5507
 
5508
+ # @note When making an API call, you may pass TagResourceRequest
5509
+ # data as a hash:
5510
+ #
5511
+ # {
5512
+ # resource_arn: "ResourceArn", # required
5513
+ # tags: { # required
5514
+ # "TagKey" => "TagValue",
5515
+ # },
5516
+ # }
5517
+ #
5518
+ # @!attribute [rw] resource_arn
5519
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5520
+ # processor that you want to assign the tags to.
5521
+ # @return [String]
5522
+ #
5523
+ # @!attribute [rw] tags
5524
+ # The key-value tags to assign to the resource.
5525
+ # @return [Hash<String,String>]
5526
+ #
5527
+ class TagResourceRequest < Struct.new(
5528
+ :resource_arn,
5529
+ :tags)
5530
+ SENSITIVE = []
5531
+ include Aws::Structure
5532
+ end
5533
+
5534
+ class TagResourceResponse < Aws::EmptyStructure; end
5535
+
5431
5536
  # Information about a technical cue segment. For more information, see
5432
5537
  # SegmentDetection.
5433
5538
  #
@@ -5681,6 +5786,32 @@ module Aws::Rekognition
5681
5786
  include Aws::Structure
5682
5787
  end
5683
5788
 
5789
+ # @note When making an API call, you may pass UntagResourceRequest
5790
+ # data as a hash:
5791
+ #
5792
+ # {
5793
+ # resource_arn: "ResourceArn", # required
5794
+ # tag_keys: ["TagKey"], # required
5795
+ # }
5796
+ #
5797
+ # @!attribute [rw] resource_arn
5798
+ # Amazon Resource Name (ARN) of the model, collection, or stream
5799
+ # processor that you want to remove the tags from.
5800
+ # @return [String]
5801
+ #
5802
+ # @!attribute [rw] tag_keys
5803
+ # A list of the tags that you want to remove.
5804
+ # @return [Array<String>]
5805
+ #
5806
+ class UntagResourceRequest < Struct.new(
5807
+ :resource_arn,
5808
+ :tag_keys)
5809
+ SENSITIVE = []
5810
+ include Aws::Structure
5811
+ end
5812
+
5813
+ class UntagResourceResponse < Aws::EmptyStructure; end
5814
+
5684
5815
  # Contains the Amazon S3 bucket location of the validation data for a
5685
5816
  # model training job.
5686
5817
  #
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.49.0
4
+ version: 1.53.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.112.0
22
+ version: 3.119.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.112.0
32
+ version: 3.119.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -67,8 +67,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
67
67
  licenses:
68
68
  - Apache-2.0
69
69
  metadata:
70
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-rekognition
71
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-rekognition/CHANGELOG.md
70
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-rekognition
71
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-rekognition/CHANGELOG.md
72
72
  post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths:
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.6.2
87
+ rubygems_version: 3.1.6
89
88
  signing_key:
90
89
  specification_version: 4
91
90
  summary: AWS SDK for Ruby - Amazon Rekognition