aws-sdk-rekognition 1.49.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/lib/aws-sdk-rekognition/client.rb +120 -2
- data/lib/aws-sdk-rekognition/client_api.rb +83 -0
- data/lib/aws-sdk-rekognition/types.rb +123 -13
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10f8f92285c29318b052f243be8a1e66b51dd7f1bc57b08c2eba8fe379c4c033
|
4
|
+
data.tar.gz: c0aba0745f7c50120cfc7f275aa6118d10a0965bb547c4a202a489c106944194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64d71477d9e4130f2d146c5d98d201c763b0bf9a44661d2bfc8bb3afc5dca30ae4e01dacfd8d7051be98e974378f5106426037ba1704659e98ae91b52044297
|
7
|
+
data.tar.gz: e6ab0a7c31298697f88fd1925e41208e12ab673e6d9d024df8aae88c6793b4d702522f1c228dd755f4a1e662924bd5a1125b78a0432b0aa4ff123ddf80547730
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.50.0 (2021-03-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - "This release introduces AWS tagging support for Amazon Rekognition collections, stream processors, and Custom Label models."
|
8
|
+
|
4
9
|
1.49.0 (2021-03-10)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -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
|
-
#
|
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
|
@@ -583,6 +593,10 @@ module Aws::Rekognition
|
|
583
593
|
# @option params [required, String] :collection_id
|
584
594
|
# ID for the collection that you are creating.
|
585
595
|
#
|
596
|
+
# @option params [Hash<String,String>] :tags
|
597
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
598
|
+
# collection.
|
599
|
+
#
|
586
600
|
# @return [Types::CreateCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
587
601
|
#
|
588
602
|
# * {Types::CreateCollectionResponse#status_code #status_code} => Integer
|
@@ -608,6 +622,9 @@ module Aws::Rekognition
|
|
608
622
|
#
|
609
623
|
# resp = client.create_collection({
|
610
624
|
# collection_id: "CollectionId", # required
|
625
|
+
# tags: {
|
626
|
+
# "TagKey" => "TagValue",
|
627
|
+
# },
|
611
628
|
# })
|
612
629
|
#
|
613
630
|
# @example Response structure
|
@@ -688,6 +705,9 @@ module Aws::Rekognition
|
|
688
705
|
# @option params [required, Types::TestingData] :testing_data
|
689
706
|
# The dataset to use for testing.
|
690
707
|
#
|
708
|
+
# @option params [Hash<String,String>] :tags
|
709
|
+
# A set of tags (key-value pairs) that you want to attach to the model.
|
710
|
+
#
|
691
711
|
# @return [Types::CreateProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
692
712
|
#
|
693
713
|
# * {Types::CreateProjectVersionResponse#project_version_arn #project_version_arn} => String
|
@@ -728,6 +748,9 @@ module Aws::Rekognition
|
|
728
748
|
# ],
|
729
749
|
# auto_create: false,
|
730
750
|
# },
|
751
|
+
# tags: {
|
752
|
+
# "TagKey" => "TagValue",
|
753
|
+
# },
|
731
754
|
# })
|
732
755
|
#
|
733
756
|
# @example Response structure
|
@@ -784,6 +807,10 @@ module Aws::Rekognition
|
|
784
807
|
# @option params [required, String] :role_arn
|
785
808
|
# ARN of the IAM role that allows access to the stream processor.
|
786
809
|
#
|
810
|
+
# @option params [Hash<String,String>] :tags
|
811
|
+
# A set of tags (key-value pairs) that you want to attach to the stream
|
812
|
+
# processor.
|
813
|
+
#
|
787
814
|
# @return [Types::CreateStreamProcessorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
788
815
|
#
|
789
816
|
# * {Types::CreateStreamProcessorResponse#stream_processor_arn #stream_processor_arn} => String
|
@@ -809,6 +836,9 @@ module Aws::Rekognition
|
|
809
836
|
# },
|
810
837
|
# },
|
811
838
|
# role_arn: "RoleArn", # required
|
839
|
+
# tags: {
|
840
|
+
# "TagKey" => "TagValue",
|
841
|
+
# },
|
812
842
|
# })
|
813
843
|
#
|
814
844
|
# @example Response structure
|
@@ -3782,6 +3812,35 @@ module Aws::Rekognition
|
|
3782
3812
|
req.send_request(options)
|
3783
3813
|
end
|
3784
3814
|
|
3815
|
+
# Returns a list of tags in an Amazon Rekognition collection, stream
|
3816
|
+
# processor, or Custom Labels model.
|
3817
|
+
#
|
3818
|
+
# @option params [required, String] :resource_arn
|
3819
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
3820
|
+
# processor that contains the tags that you want a list of.
|
3821
|
+
#
|
3822
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3823
|
+
#
|
3824
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
3825
|
+
#
|
3826
|
+
# @example Request syntax with placeholder values
|
3827
|
+
#
|
3828
|
+
# resp = client.list_tags_for_resource({
|
3829
|
+
# resource_arn: "ResourceArn", # required
|
3830
|
+
# })
|
3831
|
+
#
|
3832
|
+
# @example Response structure
|
3833
|
+
#
|
3834
|
+
# resp.tags #=> Hash
|
3835
|
+
# resp.tags["TagKey"] #=> String
|
3836
|
+
#
|
3837
|
+
# @overload list_tags_for_resource(params = {})
|
3838
|
+
# @param [Hash] params ({})
|
3839
|
+
def list_tags_for_resource(params = {}, options = {})
|
3840
|
+
req = build_request(:list_tags_for_resource, params)
|
3841
|
+
req.send_request(options)
|
3842
|
+
end
|
3843
|
+
|
3785
3844
|
# Returns an array of celebrities recognized in the input image. For
|
3786
3845
|
# more information, see Recognizing Celebrities in the Amazon
|
3787
3846
|
# Rekognition Developer Guide.
|
@@ -4986,6 +5045,65 @@ module Aws::Rekognition
|
|
4986
5045
|
req.send_request(options)
|
4987
5046
|
end
|
4988
5047
|
|
5048
|
+
# Adds one or more key-value tags to an Amazon Rekognition collection,
|
5049
|
+
# stream processor, or Custom Labels model. For more information, see
|
5050
|
+
# [Tagging AWS Resources][1].
|
5051
|
+
#
|
5052
|
+
#
|
5053
|
+
#
|
5054
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
5055
|
+
#
|
5056
|
+
# @option params [required, String] :resource_arn
|
5057
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
5058
|
+
# processor that you want to assign the tags to.
|
5059
|
+
#
|
5060
|
+
# @option params [required, Hash<String,String>] :tags
|
5061
|
+
# The key-value tags to assign to the resource.
|
5062
|
+
#
|
5063
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5064
|
+
#
|
5065
|
+
# @example Request syntax with placeholder values
|
5066
|
+
#
|
5067
|
+
# resp = client.tag_resource({
|
5068
|
+
# resource_arn: "ResourceArn", # required
|
5069
|
+
# tags: { # required
|
5070
|
+
# "TagKey" => "TagValue",
|
5071
|
+
# },
|
5072
|
+
# })
|
5073
|
+
#
|
5074
|
+
# @overload tag_resource(params = {})
|
5075
|
+
# @param [Hash] params ({})
|
5076
|
+
def tag_resource(params = {}, options = {})
|
5077
|
+
req = build_request(:tag_resource, params)
|
5078
|
+
req.send_request(options)
|
5079
|
+
end
|
5080
|
+
|
5081
|
+
# Removes one or more tags from an Amazon Rekognition collection, stream
|
5082
|
+
# processor, or Custom Labels model.
|
5083
|
+
#
|
5084
|
+
# @option params [required, String] :resource_arn
|
5085
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
5086
|
+
# processor that you want to remove the tags from.
|
5087
|
+
#
|
5088
|
+
# @option params [required, Array<String>] :tag_keys
|
5089
|
+
# A list of the tags that you want to remove.
|
5090
|
+
#
|
5091
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5092
|
+
#
|
5093
|
+
# @example Request syntax with placeholder values
|
5094
|
+
#
|
5095
|
+
# resp = client.untag_resource({
|
5096
|
+
# resource_arn: "ResourceArn", # required
|
5097
|
+
# tag_keys: ["TagKey"], # required
|
5098
|
+
# })
|
5099
|
+
#
|
5100
|
+
# @overload untag_resource(params = {})
|
5101
|
+
# @param [Hash] params ({})
|
5102
|
+
def untag_resource(params = {}, options = {})
|
5103
|
+
req = build_request(:untag_resource, params)
|
5104
|
+
req.send_request(options)
|
5105
|
+
end
|
5106
|
+
|
4989
5107
|
# @!endgroup
|
4990
5108
|
|
4991
5109
|
# @param params ({})
|
@@ -4999,7 +5117,7 @@ module Aws::Rekognition
|
|
4999
5117
|
params: params,
|
5000
5118
|
config: config)
|
5001
5119
|
context[:gem_name] = 'aws-sdk-rekognition'
|
5002
|
-
context[:gem_version] = '1.
|
5120
|
+
context[:gem_version] = '1.50.0'
|
5003
5121
|
Seahorse::Client::Request.new(handlers, context)
|
5004
5122
|
end
|
5005
5123
|
|
@@ -191,6 +191,8 @@ module Aws::Rekognition
|
|
191
191
|
ListFacesResponse = Shapes::StructureShape.new(name: 'ListFacesResponse')
|
192
192
|
ListStreamProcessorsRequest = Shapes::StructureShape.new(name: 'ListStreamProcessorsRequest')
|
193
193
|
ListStreamProcessorsResponse = Shapes::StructureShape.new(name: 'ListStreamProcessorsResponse')
|
194
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
195
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
194
196
|
MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
|
195
197
|
MaxFacesToIndex = Shapes::IntegerShape.new(name: 'MaxFacesToIndex')
|
196
198
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
@@ -245,6 +247,7 @@ module Aws::Rekognition
|
|
245
247
|
RegionsOfInterest = Shapes::ListShape.new(name: 'RegionsOfInterest')
|
246
248
|
RekognitionUniqueId = Shapes::StringShape.new(name: 'RekognitionUniqueId')
|
247
249
|
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
250
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
248
251
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
249
252
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
250
253
|
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
@@ -309,6 +312,12 @@ module Aws::Rekognition
|
|
309
312
|
String = Shapes::StringShape.new(name: 'String')
|
310
313
|
Summary = Shapes::StructureShape.new(name: 'Summary')
|
311
314
|
Sunglasses = Shapes::StructureShape.new(name: 'Sunglasses')
|
315
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
316
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
317
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
318
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
319
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
320
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
312
321
|
TechnicalCueSegment = Shapes::StructureShape.new(name: 'TechnicalCueSegment')
|
313
322
|
TechnicalCueType = Shapes::StringShape.new(name: 'TechnicalCueType')
|
314
323
|
TestingData = Shapes::StructureShape.new(name: 'TestingData')
|
@@ -327,6 +336,8 @@ module Aws::Rekognition
|
|
327
336
|
ULong = Shapes::IntegerShape.new(name: 'ULong')
|
328
337
|
UnindexedFace = Shapes::StructureShape.new(name: 'UnindexedFace')
|
329
338
|
UnindexedFaces = Shapes::ListShape.new(name: 'UnindexedFaces')
|
339
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
340
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
330
341
|
Url = Shapes::StringShape.new(name: 'Url')
|
331
342
|
Urls = Shapes::ListShape.new(name: 'Urls')
|
332
343
|
ValidationData = Shapes::StructureShape.new(name: 'ValidationData')
|
@@ -443,6 +454,7 @@ module Aws::Rekognition
|
|
443
454
|
CoversBodyPart.struct_class = Types::CoversBodyPart
|
444
455
|
|
445
456
|
CreateCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
457
|
+
CreateCollectionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
446
458
|
CreateCollectionRequest.struct_class = Types::CreateCollectionRequest
|
447
459
|
|
448
460
|
CreateCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
|
@@ -461,6 +473,7 @@ module Aws::Rekognition
|
|
461
473
|
CreateProjectVersionRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "OutputConfig"))
|
462
474
|
CreateProjectVersionRequest.add_member(:training_data, Shapes::ShapeRef.new(shape: TrainingData, required: true, location_name: "TrainingData"))
|
463
475
|
CreateProjectVersionRequest.add_member(:testing_data, Shapes::ShapeRef.new(shape: TestingData, required: true, location_name: "TestingData"))
|
476
|
+
CreateProjectVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
464
477
|
CreateProjectVersionRequest.struct_class = Types::CreateProjectVersionRequest
|
465
478
|
|
466
479
|
CreateProjectVersionResponse.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, location_name: "ProjectVersionArn"))
|
@@ -471,6 +484,7 @@ module Aws::Rekognition
|
|
471
484
|
CreateStreamProcessorRequest.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, required: true, location_name: "Name"))
|
472
485
|
CreateStreamProcessorRequest.add_member(:settings, Shapes::ShapeRef.new(shape: StreamProcessorSettings, required: true, location_name: "Settings"))
|
473
486
|
CreateStreamProcessorRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
|
487
|
+
CreateStreamProcessorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
474
488
|
CreateStreamProcessorRequest.struct_class = Types::CreateStreamProcessorRequest
|
475
489
|
|
476
490
|
CreateStreamProcessorResponse.add_member(:stream_processor_arn, Shapes::ShapeRef.new(shape: StreamProcessorArn, location_name: "StreamProcessorArn"))
|
@@ -940,6 +954,12 @@ module Aws::Rekognition
|
|
940
954
|
ListStreamProcessorsResponse.add_member(:stream_processors, Shapes::ShapeRef.new(shape: StreamProcessorList, location_name: "StreamProcessors"))
|
941
955
|
ListStreamProcessorsResponse.struct_class = Types::ListStreamProcessorsResponse
|
942
956
|
|
957
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
958
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
959
|
+
|
960
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
961
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
962
|
+
|
943
963
|
ModerationLabel.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
944
964
|
ModerationLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
945
965
|
ModerationLabel.add_member(:parent_name, Shapes::ShapeRef.new(shape: String, location_name: "ParentName"))
|
@@ -1270,6 +1290,17 @@ module Aws::Rekognition
|
|
1270
1290
|
Sunglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
1271
1291
|
Sunglasses.struct_class = Types::Sunglasses
|
1272
1292
|
|
1293
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
1294
|
+
|
1295
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
1296
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
1297
|
+
|
1298
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
1299
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
1300
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
1301
|
+
|
1302
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
1303
|
+
|
1273
1304
|
TechnicalCueSegment.add_member(:type, Shapes::ShapeRef.new(shape: TechnicalCueType, location_name: "Type"))
|
1274
1305
|
TechnicalCueSegment.add_member(:confidence, Shapes::ShapeRef.new(shape: SegmentConfidence, location_name: "Confidence"))
|
1275
1306
|
TechnicalCueSegment.struct_class = Types::TechnicalCueSegment
|
@@ -1315,6 +1346,12 @@ module Aws::Rekognition
|
|
1315
1346
|
|
1316
1347
|
UnindexedFaces.member = Shapes::ShapeRef.new(shape: UnindexedFace)
|
1317
1348
|
|
1349
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
1350
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
1351
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
1352
|
+
|
1353
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
1354
|
+
|
1318
1355
|
Urls.member = Shapes::ShapeRef.new(shape: Url)
|
1319
1356
|
|
1320
1357
|
ValidationData.add_member(:assets, Shapes::ShapeRef.new(shape: Assets, location_name: "Assets"))
|
@@ -1383,6 +1420,7 @@ module Aws::Rekognition
|
|
1383
1420
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1384
1421
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1385
1422
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1423
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1386
1424
|
end)
|
1387
1425
|
|
1388
1426
|
api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1414,6 +1452,7 @@ module Aws::Rekognition
|
|
1414
1452
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1415
1453
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1416
1454
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1455
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1417
1456
|
end)
|
1418
1457
|
|
1419
1458
|
api.add_operation(:create_stream_processor, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1429,6 +1468,7 @@ module Aws::Rekognition
|
|
1429
1468
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1430
1469
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1431
1470
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1471
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1432
1472
|
end)
|
1433
1473
|
|
1434
1474
|
api.add_operation(:delete_collection, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1935,6 +1975,20 @@ module Aws::Rekognition
|
|
1935
1975
|
)
|
1936
1976
|
end)
|
1937
1977
|
|
1978
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
1979
|
+
o.name = "ListTagsForResource"
|
1980
|
+
o.http_method = "POST"
|
1981
|
+
o.http_request_uri = "/"
|
1982
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
1983
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
1984
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1985
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1986
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1987
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1988
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1989
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1990
|
+
end)
|
1991
|
+
|
1938
1992
|
api.add_operation(:recognize_celebrities, Seahorse::Model::Operation.new.tap do |o|
|
1939
1993
|
o.name = "RecognizeCelebrities"
|
1940
1994
|
o.http_method = "POST"
|
@@ -2180,6 +2234,35 @@ module Aws::Rekognition
|
|
2180
2234
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
2181
2235
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
2182
2236
|
end)
|
2237
|
+
|
2238
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
2239
|
+
o.name = "TagResource"
|
2240
|
+
o.http_method = "POST"
|
2241
|
+
o.http_request_uri = "/"
|
2242
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
2243
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
2244
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2245
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2246
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
2247
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2248
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2249
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2250
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
2251
|
+
end)
|
2252
|
+
|
2253
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
2254
|
+
o.name = "UntagResource"
|
2255
|
+
o.http_method = "POST"
|
2256
|
+
o.http_request_uri = "/"
|
2257
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
2258
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
2259
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2260
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2261
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2262
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2263
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2264
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
2265
|
+
end)
|
2183
2266
|
end
|
2184
2267
|
|
2185
2268
|
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,9 @@ module Aws::Rekognition
|
|
624
633
|
# ],
|
625
634
|
# auto_create: false,
|
626
635
|
# },
|
636
|
+
# tags: {
|
637
|
+
# "TagKey" => "TagValue",
|
638
|
+
# },
|
627
639
|
# }
|
628
640
|
#
|
629
641
|
# @!attribute [rw] project_arn
|
@@ -647,12 +659,18 @@ module Aws::Rekognition
|
|
647
659
|
# The dataset to use for testing.
|
648
660
|
# @return [Types::TestingData]
|
649
661
|
#
|
662
|
+
# @!attribute [rw] tags
|
663
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
664
|
+
# model.
|
665
|
+
# @return [Hash<String,String>]
|
666
|
+
#
|
650
667
|
class CreateProjectVersionRequest < Struct.new(
|
651
668
|
:project_arn,
|
652
669
|
:version_name,
|
653
670
|
:output_config,
|
654
671
|
:training_data,
|
655
|
-
:testing_data
|
672
|
+
:testing_data,
|
673
|
+
:tags)
|
656
674
|
SENSITIVE = []
|
657
675
|
include Aws::Structure
|
658
676
|
end
|
@@ -691,6 +709,9 @@ module Aws::Rekognition
|
|
691
709
|
# },
|
692
710
|
# },
|
693
711
|
# role_arn: "RoleArn", # required
|
712
|
+
# tags: {
|
713
|
+
# "TagKey" => "TagValue",
|
714
|
+
# },
|
694
715
|
# }
|
695
716
|
#
|
696
717
|
# @!attribute [rw] input
|
@@ -722,12 +743,18 @@ module Aws::Rekognition
|
|
722
743
|
# ARN of the IAM role that allows access to the stream processor.
|
723
744
|
# @return [String]
|
724
745
|
#
|
746
|
+
# @!attribute [rw] tags
|
747
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
748
|
+
# stream processor.
|
749
|
+
# @return [Hash<String,String>]
|
750
|
+
#
|
725
751
|
class CreateStreamProcessorRequest < Struct.new(
|
726
752
|
:input,
|
727
753
|
:output,
|
728
754
|
:name,
|
729
755
|
:settings,
|
730
|
-
:role_arn
|
756
|
+
:role_arn,
|
757
|
+
:tags)
|
731
758
|
SENSITIVE = []
|
732
759
|
include Aws::Structure
|
733
760
|
end
|
@@ -1649,10 +1676,10 @@ module Aws::Rekognition
|
|
1649
1676
|
# }
|
1650
1677
|
#
|
1651
1678
|
# @!attribute [rw] min_confidence
|
1652
|
-
# Sets confidence of word detection. Words with detection
|
1653
|
-
# below this will be excluded from the result. Values
|
1654
|
-
# between
|
1655
|
-
#
|
1679
|
+
# Sets the confidence of word detection. Words with detection
|
1680
|
+
# confidence below this will be excluded from the result. Values
|
1681
|
+
# should be between 50 and 100 as Text in Video will not return any
|
1682
|
+
# result below 50.
|
1656
1683
|
# @return [Float]
|
1657
1684
|
#
|
1658
1685
|
# @!attribute [rw] min_bounding_box_height
|
@@ -3011,9 +3038,10 @@ module Aws::Rekognition
|
|
3011
3038
|
include Aws::Structure
|
3012
3039
|
end
|
3013
3040
|
|
3014
|
-
# The input image size exceeds the allowed limit.
|
3015
|
-
#
|
3016
|
-
#
|
3041
|
+
# The input image size exceeds the allowed limit. If you are calling
|
3042
|
+
# DetectProtectiveEquipment, the image size or resolution exceeds the
|
3043
|
+
# allowed limit. For more information, see Limits in Amazon Rekognition
|
3044
|
+
# in the Amazon Rekognition Developer Guide.
|
3017
3045
|
#
|
3018
3046
|
class ImageTooLargeException < Aws::EmptyStructure; end
|
3019
3047
|
|
@@ -3495,6 +3523,34 @@ module Aws::Rekognition
|
|
3495
3523
|
include Aws::Structure
|
3496
3524
|
end
|
3497
3525
|
|
3526
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
3527
|
+
# data as a hash:
|
3528
|
+
#
|
3529
|
+
# {
|
3530
|
+
# resource_arn: "ResourceArn", # required
|
3531
|
+
# }
|
3532
|
+
#
|
3533
|
+
# @!attribute [rw] resource_arn
|
3534
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
3535
|
+
# processor that contains the tags that you want a list of.
|
3536
|
+
# @return [String]
|
3537
|
+
#
|
3538
|
+
class ListTagsForResourceRequest < Struct.new(
|
3539
|
+
:resource_arn)
|
3540
|
+
SENSITIVE = []
|
3541
|
+
include Aws::Structure
|
3542
|
+
end
|
3543
|
+
|
3544
|
+
# @!attribute [rw] tags
|
3545
|
+
# A list of key-value tags assigned to the resource.
|
3546
|
+
# @return [Hash<String,String>]
|
3547
|
+
#
|
3548
|
+
class ListTagsForResourceResponse < Struct.new(
|
3549
|
+
:tags)
|
3550
|
+
SENSITIVE = []
|
3551
|
+
include Aws::Structure
|
3552
|
+
end
|
3553
|
+
|
3498
3554
|
# Provides information about a single type of unsafe content found in an
|
3499
3555
|
# image or video. Each type of moderated content has a label within a
|
3500
3556
|
# hierarchical taxonomy. For more information, see Detecting Unsafe
|
@@ -3983,7 +4039,7 @@ module Aws::Rekognition
|
|
3983
4039
|
#
|
3984
4040
|
# @!attribute [rw] persons_without_required_equipment
|
3985
4041
|
# 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
|
4042
|
+
# PPE specified in the `RequiredEquipmentTypes` field of the detected
|
3987
4043
|
# personal protective equipment.
|
3988
4044
|
# @return [Array<Integer>]
|
3989
4045
|
#
|
@@ -4403,8 +4459,8 @@ module Aws::Rekognition
|
|
4403
4459
|
include Aws::Structure
|
4404
4460
|
end
|
4405
4461
|
|
4406
|
-
# The size of the collection exceeds the allowed limit. For
|
4407
|
-
# information, see Limits in Amazon Rekognition in the Amazon
|
4462
|
+
# The size of the collection or tag list exceeds the allowed limit. For
|
4463
|
+
# more information, see Limits in Amazon Rekognition in the Amazon
|
4408
4464
|
# Rekognition Developer Guide.
|
4409
4465
|
#
|
4410
4466
|
class ServiceQuotaExceededException < Aws::EmptyStructure; end
|
@@ -5428,6 +5484,34 @@ module Aws::Rekognition
|
|
5428
5484
|
include Aws::Structure
|
5429
5485
|
end
|
5430
5486
|
|
5487
|
+
# @note When making an API call, you may pass TagResourceRequest
|
5488
|
+
# data as a hash:
|
5489
|
+
#
|
5490
|
+
# {
|
5491
|
+
# resource_arn: "ResourceArn", # required
|
5492
|
+
# tags: { # required
|
5493
|
+
# "TagKey" => "TagValue",
|
5494
|
+
# },
|
5495
|
+
# }
|
5496
|
+
#
|
5497
|
+
# @!attribute [rw] resource_arn
|
5498
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
5499
|
+
# processor that you want to assign the tags to.
|
5500
|
+
# @return [String]
|
5501
|
+
#
|
5502
|
+
# @!attribute [rw] tags
|
5503
|
+
# The key-value tags to assign to the resource.
|
5504
|
+
# @return [Hash<String,String>]
|
5505
|
+
#
|
5506
|
+
class TagResourceRequest < Struct.new(
|
5507
|
+
:resource_arn,
|
5508
|
+
:tags)
|
5509
|
+
SENSITIVE = []
|
5510
|
+
include Aws::Structure
|
5511
|
+
end
|
5512
|
+
|
5513
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
5514
|
+
|
5431
5515
|
# Information about a technical cue segment. For more information, see
|
5432
5516
|
# SegmentDetection.
|
5433
5517
|
#
|
@@ -5681,6 +5765,32 @@ module Aws::Rekognition
|
|
5681
5765
|
include Aws::Structure
|
5682
5766
|
end
|
5683
5767
|
|
5768
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
5769
|
+
# data as a hash:
|
5770
|
+
#
|
5771
|
+
# {
|
5772
|
+
# resource_arn: "ResourceArn", # required
|
5773
|
+
# tag_keys: ["TagKey"], # required
|
5774
|
+
# }
|
5775
|
+
#
|
5776
|
+
# @!attribute [rw] resource_arn
|
5777
|
+
# Amazon Resource Name (ARN) of the model, collection, or stream
|
5778
|
+
# processor that you want to remove the tags from.
|
5779
|
+
# @return [String]
|
5780
|
+
#
|
5781
|
+
# @!attribute [rw] tag_keys
|
5782
|
+
# A list of the tags that you want to remove.
|
5783
|
+
# @return [Array<String>]
|
5784
|
+
#
|
5785
|
+
class UntagResourceRequest < Struct.new(
|
5786
|
+
:resource_arn,
|
5787
|
+
:tag_keys)
|
5788
|
+
SENSITIVE = []
|
5789
|
+
include Aws::Structure
|
5790
|
+
end
|
5791
|
+
|
5792
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
5793
|
+
|
5684
5794
|
# Contains the Amazon S3 bucket location of the validation data for a
|
5685
5795
|
# model training job.
|
5686
5796
|
#
|
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.
|
4
|
+
version: 1.50.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-
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -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/
|
71
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
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:
|