aws-sdk-rekognition 1.90.0 → 1.92.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: f6f0bfc30e7ba369e438d4c046030673a7a5624957f1a350262525855df4af2f
4
- data.tar.gz: 9b1ae6b93409b48b14211473e3099c95f6320ed4aad0438afeb3327b67f401ad
3
+ metadata.gz: 87a2f4bb362bcbc2482f748940f818934865ce73ce1771e335652ff32e2cee02
4
+ data.tar.gz: fd0cdc82d2b3a2f3ff2cd14f65ce1d5a882be5b81f1c4dd26b0532e2ea312c84
5
5
  SHA512:
6
- metadata.gz: 781fad304fec5e0a78e7e761eda298f50e5d628278df268556190f53e7b77c0a3456f7920098e034e83ce01239da36db23a9e6074b959afcc36e81cc90704ced
7
- data.tar.gz: b7ac3224160171dd13a065faed05a2e0414ac04d7a99c1049a5c375769855189b4be8da8c5deb7a032c4292d7c45b4ab32c6c7129548ee3e2bb1e075f727bac9
6
+ metadata.gz: eed3f8a107a3faf0a783e0fa0ec86c1778a34135d6b624ce47d8f29b3b48b73740e42a11b15ccfa272fb9dda09bb5cf42efb0903b025a197f40481a7c3107012
7
+ data.tar.gz: 6c473333206c489430da2ef828835a36a5c610636a7a0e4c1f0f2b2c4ee3b61f6fc1c77ebf459b2387c86b3f83bcbff9b0d1d509c7a8ebba3e05dcd15bfc1ac2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.92.0 (2024-01-16)
5
+ ------------------
6
+
7
+ * Feature - This release adds ContentType and TaxonomyLevel attributes to DetectModerationLabels and GetMediaAnalysisJob API responses.
8
+
9
+ 1.91.0 (2023-11-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.90.0 (2023-11-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.90.0
1
+ 1.92.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.90.0'
8380
+ context[:gem_version] = '1.92.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)
@@ -25,16 +25,17 @@ module Aws::Rekognition
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -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 are
93
- # successfully associated with the UserID is returned. Returned if the
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
@@ -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.90.0'
56
+ GEM_VERSION = '1.92.0'
57
57
 
58
58
  end
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.90.0
4
+ version: 1.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -73,7 +73,7 @@ licenses:
73
73
  metadata:
74
74
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-rekognition
75
75
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-rekognition/CHANGELOG.md
76
- post_install_message:
76
+ post_install_message:
77
77
  rdoc_options: []
78
78
  require_paths:
79
79
  - lib
@@ -88,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.1.6
92
- signing_key:
91
+ rubygems_version: 3.4.10
92
+ signing_key:
93
93
  specification_version: 4
94
94
  summary: AWS SDK for Ruby - Amazon Rekognition
95
95
  test_files: []