aws-sdk-rekognition 1.91.0 → 1.93.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +11 -2
- data/lib/aws-sdk-rekognition/client_api.rb +15 -0
- data/lib/aws-sdk-rekognition/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-rekognition/types.rb +55 -5
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/sig/client.rbs +1537 -0
- data/sig/errors.rbs +65 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +2135 -0
- data/sig/waiters.rbs +39 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08d42dd29a8ccb0bd938c299d46df3304e306a0380b7af7bde98d6122f49d361'
|
4
|
+
data.tar.gz: d618ff9dd18eaa0a7177a10b0093e99eeac4e0bb84f5d4b30eb51e036de35438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee4095bd14c14613054ed3b416f6ec24360b2a9ce7f951ddca98c420a936bd007f290032ba2f516ca79ac23dec682781fc0ec2ade918ff741cf37823d76c1185
|
7
|
+
data.tar.gz: a637026c4685c8fe07c3572da95d69adc0b9b19188ef81031fea2d1ad7fa52c0bd2a381cb070a2f3c3916c8d309a08102cd60342bfd8697f6d918f0c8b0c7291
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.93.0 (2024-01-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.92.0 (2024-01-16)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds ContentType and TaxonomyLevel attributes to DetectModerationLabels and GetMediaAnalysisJob API responses.
|
13
|
+
|
4
14
|
1.91.0 (2023-11-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.93.0
|
@@ -2535,7 +2535,8 @@ module Aws::Rekognition
|
|
2535
2535
|
# `CustomLabel` object provides the label name (`Name`), the level of
|
2536
2536
|
# confidence that the image contains the object (`Confidence`), and
|
2537
2537
|
# object location information, if it exists, for the label on the image
|
2538
|
-
# (`Geometry`).
|
2538
|
+
# (`Geometry`). Note that for the `DetectCustomLabelsLabels` operation,
|
2539
|
+
# `Polygons` are not returned in the `Geometry` section of the response.
|
2539
2540
|
#
|
2540
2541
|
# To filter labels that are returned, specify a value for
|
2541
2542
|
# `MinConfidence`. `DetectCustomLabelsLabels` only returns labels with a
|
@@ -3226,6 +3227,7 @@ module Aws::Rekognition
|
|
3226
3227
|
# * {Types::DetectModerationLabelsResponse#moderation_model_version #moderation_model_version} => String
|
3227
3228
|
# * {Types::DetectModerationLabelsResponse#human_loop_activation_output #human_loop_activation_output} => Types::HumanLoopActivationOutput
|
3228
3229
|
# * {Types::DetectModerationLabelsResponse#project_version #project_version} => String
|
3230
|
+
# * {Types::DetectModerationLabelsResponse#content_types #content_types} => Array<Types::ContentType>
|
3229
3231
|
#
|
3230
3232
|
# @example Request syntax with placeholder values
|
3231
3233
|
#
|
@@ -3255,12 +3257,16 @@ module Aws::Rekognition
|
|
3255
3257
|
# resp.moderation_labels[0].confidence #=> Float
|
3256
3258
|
# resp.moderation_labels[0].name #=> String
|
3257
3259
|
# resp.moderation_labels[0].parent_name #=> String
|
3260
|
+
# resp.moderation_labels[0].taxonomy_level #=> Integer
|
3258
3261
|
# resp.moderation_model_version #=> String
|
3259
3262
|
# resp.human_loop_activation_output.human_loop_arn #=> String
|
3260
3263
|
# resp.human_loop_activation_output.human_loop_activation_reasons #=> Array
|
3261
3264
|
# resp.human_loop_activation_output.human_loop_activation_reasons[0] #=> String
|
3262
3265
|
# resp.human_loop_activation_output.human_loop_activation_conditions_evaluation_results #=> String
|
3263
3266
|
# resp.project_version #=> String
|
3267
|
+
# resp.content_types #=> Array
|
3268
|
+
# resp.content_types[0].confidence #=> Float
|
3269
|
+
# resp.content_types[0].name #=> String
|
3264
3270
|
#
|
3265
3271
|
# @overload detect_moderation_labels(params = {})
|
3266
3272
|
# @param [Hash] params ({})
|
@@ -3989,6 +3995,7 @@ module Aws::Rekognition
|
|
3989
3995
|
# resp.moderation_labels[0].moderation_label.confidence #=> Float
|
3990
3996
|
# resp.moderation_labels[0].moderation_label.name #=> String
|
3991
3997
|
# resp.moderation_labels[0].moderation_label.parent_name #=> String
|
3998
|
+
# resp.moderation_labels[0].moderation_label.taxonomy_level #=> Integer
|
3992
3999
|
# resp.moderation_labels[0].start_timestamp_millis #=> Integer
|
3993
4000
|
# resp.moderation_labels[0].end_timestamp_millis #=> Integer
|
3994
4001
|
# resp.moderation_labels[0].duration_millis #=> Integer
|
@@ -4643,6 +4650,7 @@ module Aws::Rekognition
|
|
4643
4650
|
# resp.results.s3_object.bucket #=> String
|
4644
4651
|
# resp.results.s3_object.name #=> String
|
4645
4652
|
# resp.results.s3_object.version #=> String
|
4653
|
+
# resp.results.model_versions.moderation #=> String
|
4646
4654
|
# resp.manifest_summary.s3_object.bucket #=> String
|
4647
4655
|
# resp.manifest_summary.s3_object.name #=> String
|
4648
4656
|
# resp.manifest_summary.s3_object.version #=> String
|
@@ -5984,6 +5992,7 @@ module Aws::Rekognition
|
|
5984
5992
|
# resp.media_analysis_jobs[0].results.s3_object.bucket #=> String
|
5985
5993
|
# resp.media_analysis_jobs[0].results.s3_object.name #=> String
|
5986
5994
|
# resp.media_analysis_jobs[0].results.s3_object.version #=> String
|
5995
|
+
# resp.media_analysis_jobs[0].results.model_versions.moderation #=> String
|
5987
5996
|
# resp.media_analysis_jobs[0].manifest_summary.s3_object.bucket #=> String
|
5988
5997
|
# resp.media_analysis_jobs[0].manifest_summary.s3_object.name #=> String
|
5989
5998
|
# resp.media_analysis_jobs[0].manifest_summary.s3_object.version #=> String
|
@@ -8368,7 +8377,7 @@ module Aws::Rekognition
|
|
8368
8377
|
params: params,
|
8369
8378
|
config: config)
|
8370
8379
|
context[:gem_name] = 'aws-sdk-rekognition'
|
8371
|
-
context[:gem_version] = '1.
|
8380
|
+
context[:gem_version] = '1.93.0'
|
8372
8381
|
Seahorse::Client::Request.new(handlers, context)
|
8373
8382
|
end
|
8374
8383
|
|
@@ -64,6 +64,8 @@ module Aws::Rekognition
|
|
64
64
|
ContentModerationDetection = Shapes::StructureShape.new(name: 'ContentModerationDetection')
|
65
65
|
ContentModerationDetections = Shapes::ListShape.new(name: 'ContentModerationDetections')
|
66
66
|
ContentModerationSortBy = Shapes::StringShape.new(name: 'ContentModerationSortBy')
|
67
|
+
ContentType = Shapes::StructureShape.new(name: 'ContentType')
|
68
|
+
ContentTypes = Shapes::ListShape.new(name: 'ContentTypes')
|
67
69
|
CopyProjectVersionRequest = Shapes::StructureShape.new(name: 'CopyProjectVersionRequest')
|
68
70
|
CopyProjectVersionResponse = Shapes::StructureShape.new(name: 'CopyProjectVersionResponse')
|
69
71
|
CoversBodyPart = Shapes::StructureShape.new(name: 'CoversBodyPart')
|
@@ -331,6 +333,7 @@ module Aws::Rekognition
|
|
331
333
|
MediaAnalysisJobName = Shapes::StringShape.new(name: 'MediaAnalysisJobName')
|
332
334
|
MediaAnalysisJobStatus = Shapes::StringShape.new(name: 'MediaAnalysisJobStatus')
|
333
335
|
MediaAnalysisManifestSummary = Shapes::StructureShape.new(name: 'MediaAnalysisManifestSummary')
|
336
|
+
MediaAnalysisModelVersions = Shapes::StructureShape.new(name: 'MediaAnalysisModelVersions')
|
334
337
|
MediaAnalysisOperationsConfig = Shapes::StructureShape.new(name: 'MediaAnalysisOperationsConfig')
|
335
338
|
MediaAnalysisOutputConfig = Shapes::StructureShape.new(name: 'MediaAnalysisOutputConfig')
|
336
339
|
MediaAnalysisResults = Shapes::StructureShape.new(name: 'MediaAnalysisResults')
|
@@ -695,6 +698,12 @@ module Aws::Rekognition
|
|
695
698
|
|
696
699
|
ContentModerationDetections.member = Shapes::ShapeRef.new(shape: ContentModerationDetection)
|
697
700
|
|
701
|
+
ContentType.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
702
|
+
ContentType.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
703
|
+
ContentType.struct_class = Types::ContentType
|
704
|
+
|
705
|
+
ContentTypes.member = Shapes::ShapeRef.new(shape: ContentType)
|
706
|
+
|
698
707
|
CopyProjectVersionRequest.add_member(:source_project_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location_name: "SourceProjectArn"))
|
699
708
|
CopyProjectVersionRequest.add_member(:source_project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, required: true, location_name: "SourceProjectVersionArn"))
|
700
709
|
CopyProjectVersionRequest.add_member(:destination_project_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location_name: "DestinationProjectArn"))
|
@@ -1017,6 +1026,7 @@ module Aws::Rekognition
|
|
1017
1026
|
DetectModerationLabelsResponse.add_member(:moderation_model_version, Shapes::ShapeRef.new(shape: String, location_name: "ModerationModelVersion"))
|
1018
1027
|
DetectModerationLabelsResponse.add_member(:human_loop_activation_output, Shapes::ShapeRef.new(shape: HumanLoopActivationOutput, location_name: "HumanLoopActivationOutput"))
|
1019
1028
|
DetectModerationLabelsResponse.add_member(:project_version, Shapes::ShapeRef.new(shape: ProjectVersionId, location_name: "ProjectVersion"))
|
1029
|
+
DetectModerationLabelsResponse.add_member(:content_types, Shapes::ShapeRef.new(shape: ContentTypes, location_name: "ContentTypes"))
|
1020
1030
|
DetectModerationLabelsResponse.struct_class = Types::DetectModerationLabelsResponse
|
1021
1031
|
|
1022
1032
|
DetectProtectiveEquipmentRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
@@ -1617,6 +1627,9 @@ module Aws::Rekognition
|
|
1617
1627
|
MediaAnalysisManifestSummary.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
|
1618
1628
|
MediaAnalysisManifestSummary.struct_class = Types::MediaAnalysisManifestSummary
|
1619
1629
|
|
1630
|
+
MediaAnalysisModelVersions.add_member(:moderation, Shapes::ShapeRef.new(shape: String, location_name: "Moderation"))
|
1631
|
+
MediaAnalysisModelVersions.struct_class = Types::MediaAnalysisModelVersions
|
1632
|
+
|
1620
1633
|
MediaAnalysisOperationsConfig.add_member(:detect_moderation_labels, Shapes::ShapeRef.new(shape: MediaAnalysisDetectModerationLabelsConfig, location_name: "DetectModerationLabels"))
|
1621
1634
|
MediaAnalysisOperationsConfig.struct_class = Types::MediaAnalysisOperationsConfig
|
1622
1635
|
|
@@ -1625,11 +1638,13 @@ module Aws::Rekognition
|
|
1625
1638
|
MediaAnalysisOutputConfig.struct_class = Types::MediaAnalysisOutputConfig
|
1626
1639
|
|
1627
1640
|
MediaAnalysisResults.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
|
1641
|
+
MediaAnalysisResults.add_member(:model_versions, Shapes::ShapeRef.new(shape: MediaAnalysisModelVersions, location_name: "ModelVersions"))
|
1628
1642
|
MediaAnalysisResults.struct_class = Types::MediaAnalysisResults
|
1629
1643
|
|
1630
1644
|
ModerationLabel.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
1631
1645
|
ModerationLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
1632
1646
|
ModerationLabel.add_member(:parent_name, Shapes::ShapeRef.new(shape: String, location_name: "ParentName"))
|
1647
|
+
ModerationLabel.add_member(:taxonomy_level, Shapes::ShapeRef.new(shape: UInteger, location_name: "TaxonomyLevel"))
|
1633
1648
|
ModerationLabel.struct_class = Types::ModerationLabel
|
1634
1649
|
|
1635
1650
|
ModerationLabels.member = Shapes::ShapeRef.new(shape: ModerationLabel)
|
@@ -14,6 +14,7 @@ module Aws::Rekognition
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::Rekognition::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -89,8 +89,8 @@ module Aws::Rekognition
|
|
89
89
|
end
|
90
90
|
|
91
91
|
# @!attribute [rw] associated_faces
|
92
|
-
# An array of AssociatedFace objects containing FaceIDs that
|
93
|
-
# successfully associated with the UserID
|
92
|
+
# An array of AssociatedFace objects containing FaceIDs that have been
|
93
|
+
# successfully associated with the UserID. Returned if the
|
94
94
|
# AssociateFaces action is successful.
|
95
95
|
# @return [Array<Types::AssociatedFace>]
|
96
96
|
#
|
@@ -730,6 +730,24 @@ module Aws::Rekognition
|
|
730
730
|
include Aws::Structure
|
731
731
|
end
|
732
732
|
|
733
|
+
# Contains information regarding the confidence and name of a detected
|
734
|
+
# content type.
|
735
|
+
#
|
736
|
+
# @!attribute [rw] confidence
|
737
|
+
# The confidence level of the label given
|
738
|
+
# @return [Float]
|
739
|
+
#
|
740
|
+
# @!attribute [rw] name
|
741
|
+
# The name of the label
|
742
|
+
# @return [String]
|
743
|
+
#
|
744
|
+
class ContentType < Struct.new(
|
745
|
+
:confidence,
|
746
|
+
:name)
|
747
|
+
SENSITIVE = []
|
748
|
+
include Aws::Structure
|
749
|
+
end
|
750
|
+
|
733
751
|
# @!attribute [rw] source_project_arn
|
734
752
|
# The ARN of the source project in the trusting AWS account.
|
735
753
|
# @return [String]
|
@@ -2389,11 +2407,18 @@ module Aws::Rekognition
|
|
2389
2407
|
# version was used.
|
2390
2408
|
# @return [String]
|
2391
2409
|
#
|
2410
|
+
# @!attribute [rw] content_types
|
2411
|
+
# A list of predicted results for the type of content an image
|
2412
|
+
# contains. For example, the image content might be from animation,
|
2413
|
+
# sports, or a video game.
|
2414
|
+
# @return [Array<Types::ContentType>]
|
2415
|
+
#
|
2392
2416
|
class DetectModerationLabelsResponse < Struct.new(
|
2393
2417
|
:moderation_labels,
|
2394
2418
|
:moderation_model_version,
|
2395
2419
|
:human_loop_activation_output,
|
2396
|
-
:project_version
|
2420
|
+
:project_version,
|
2421
|
+
:content_types)
|
2397
2422
|
SENSITIVE = []
|
2398
2423
|
include Aws::Structure
|
2399
2424
|
end
|
@@ -5385,6 +5410,19 @@ module Aws::Rekognition
|
|
5385
5410
|
include Aws::Structure
|
5386
5411
|
end
|
5387
5412
|
|
5413
|
+
# Object containing information about the model versions of selected
|
5414
|
+
# features in a given job.
|
5415
|
+
#
|
5416
|
+
# @!attribute [rw] moderation
|
5417
|
+
# The Moderation base model version.
|
5418
|
+
# @return [String]
|
5419
|
+
#
|
5420
|
+
class MediaAnalysisModelVersions < Struct.new(
|
5421
|
+
:moderation)
|
5422
|
+
SENSITIVE = []
|
5423
|
+
include Aws::Structure
|
5424
|
+
end
|
5425
|
+
|
5388
5426
|
# Configuration options for a media analysis job. Configuration is
|
5389
5427
|
# operation-specific.
|
5390
5428
|
#
|
@@ -5432,8 +5470,14 @@ module Aws::Rekognition
|
|
5432
5470
|
# Developer Guide.
|
5433
5471
|
# @return [Types::S3Object]
|
5434
5472
|
#
|
5473
|
+
# @!attribute [rw] model_versions
|
5474
|
+
# Information about the model versions for the features selected in a
|
5475
|
+
# given job.
|
5476
|
+
# @return [Types::MediaAnalysisModelVersions]
|
5477
|
+
#
|
5435
5478
|
class MediaAnalysisResults < Struct.new(
|
5436
|
-
:s3_object
|
5479
|
+
:s3_object,
|
5480
|
+
:model_versions)
|
5437
5481
|
SENSITIVE = []
|
5438
5482
|
include Aws::Structure
|
5439
5483
|
end
|
@@ -5462,10 +5506,16 @@ module Aws::Rekognition
|
|
5462
5506
|
# hierarchy have the parent label `""`.
|
5463
5507
|
# @return [String]
|
5464
5508
|
#
|
5509
|
+
# @!attribute [rw] taxonomy_level
|
5510
|
+
# The level of the moderation label with regard to its taxonomy, from
|
5511
|
+
# 1 to 3.
|
5512
|
+
# @return [Integer]
|
5513
|
+
#
|
5465
5514
|
class ModerationLabel < Struct.new(
|
5466
5515
|
:confidence,
|
5467
5516
|
:name,
|
5468
|
-
:parent_name
|
5517
|
+
:parent_name,
|
5518
|
+
:taxonomy_level)
|
5469
5519
|
SENSITIVE = []
|
5470
5520
|
include Aws::Structure
|
5471
5521
|
end
|