aws-sdk-rekognition 1.46.0 → 1.51.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.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -42,6 +42,7 @@ module Aws::Rekognition
42
42
  # * {ResourceInUseException}
43
43
  # * {ResourceNotFoundException}
44
44
  # * {ResourceNotReadyException}
45
+ # * {ServiceQuotaExceededException}
45
46
  # * {ThrottlingException}
46
47
  # * {VideoTooLargeException}
47
48
  #
@@ -216,6 +217,16 @@ module Aws::Rekognition
216
217
  end
217
218
  end
218
219
 
220
+ class ServiceQuotaExceededException < ServiceError
221
+
222
+ # @param [Seahorse::Client::RequestContext] context
223
+ # @param [String] message
224
+ # @param [Aws::Rekognition::Types::ServiceQuotaExceededException] data
225
+ def initialize(context, message, data = Aws::EmptyStructure.new)
226
+ super(context, message, data)
227
+ end
228
+ end
229
+
219
230
  class ThrottlingException < ServiceError
220
231
 
221
232
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -111,10 +111,11 @@ module Aws::Rekognition
111
111
  include Aws::Structure
112
112
  end
113
113
 
114
- # Identifies the bounding box around the label, face, or text. The
115
- # `left` (x-coordinate) and `top` (y-coordinate) are coordinates
116
- # representing the top and left sides of the bounding box. Note that the
117
- # upper-left corner of the image is the origin (0,0).
114
+ # Identifies the bounding box around the label, face, text or personal
115
+ # protective equipment. The `left` (x-coordinate) and `top`
116
+ # (y-coordinate) are coordinates representing the top and left sides of
117
+ # the bounding box. Note that the upper-left corner of the image is the
118
+ # origin (0,0).
118
119
  #
119
120
  # The `top` and `left` values returned are ratios of the overall image
120
121
  # size. For example, if the input image is 700x200 pixels, and the
@@ -500,19 +501,47 @@ module Aws::Rekognition
500
501
  include Aws::Structure
501
502
  end
502
503
 
504
+ # Information about an item of Personal Protective Equipment covering a
505
+ # corresponding body part. For more information, see
506
+ # DetectProtectiveEquipment.
507
+ #
508
+ # @!attribute [rw] confidence
509
+ # The confidence that Amazon Rekognition has in the value of `Value`.
510
+ # @return [Float]
511
+ #
512
+ # @!attribute [rw] value
513
+ # True if the PPE covers the corresponding body part, otherwise false.
514
+ # @return [Boolean]
515
+ #
516
+ class CoversBodyPart < Struct.new(
517
+ :confidence,
518
+ :value)
519
+ SENSITIVE = []
520
+ include Aws::Structure
521
+ end
522
+
503
523
  # @note When making an API call, you may pass CreateCollectionRequest
504
524
  # data as a hash:
505
525
  #
506
526
  # {
507
527
  # collection_id: "CollectionId", # required
528
+ # tags: {
529
+ # "TagKey" => "TagValue",
530
+ # },
508
531
  # }
509
532
  #
510
533
  # @!attribute [rw] collection_id
511
534
  # ID for the collection that you are creating.
512
535
  # @return [String]
513
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
+ #
514
542
  class CreateCollectionRequest < Struct.new(
515
- :collection_id)
543
+ :collection_id,
544
+ :tags)
516
545
  SENSITIVE = []
517
546
  include Aws::Structure
518
547
  end
@@ -604,6 +633,10 @@ module Aws::Rekognition
604
633
  # ],
605
634
  # auto_create: false,
606
635
  # },
636
+ # tags: {
637
+ # "TagKey" => "TagValue",
638
+ # },
639
+ # kms_key_id: "KmsKeyId",
607
640
  # }
608
641
  #
609
642
  # @!attribute [rw] project_arn
@@ -627,12 +660,32 @@ module Aws::Rekognition
627
660
  # The dataset to use for testing.
628
661
  # @return [Types::TestingData]
629
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
+ #
630
681
  class CreateProjectVersionRequest < Struct.new(
631
682
  :project_arn,
632
683
  :version_name,
633
684
  :output_config,
634
685
  :training_data,
635
- :testing_data)
686
+ :testing_data,
687
+ :tags,
688
+ :kms_key_id)
636
689
  SENSITIVE = []
637
690
  include Aws::Structure
638
691
  end
@@ -671,6 +724,9 @@ module Aws::Rekognition
671
724
  # },
672
725
  # },
673
726
  # role_arn: "RoleArn", # required
727
+ # tags: {
728
+ # "TagKey" => "TagValue",
729
+ # },
674
730
  # }
675
731
  #
676
732
  # @!attribute [rw] input
@@ -702,12 +758,18 @@ module Aws::Rekognition
702
758
  # ARN of the IAM role that allows access to the stream processor.
703
759
  # @return [String]
704
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
+ #
705
766
  class CreateStreamProcessorRequest < Struct.new(
706
767
  :input,
707
768
  :output,
708
769
  :name,
709
770
  :settings,
710
- :role_arn)
771
+ :role_arn,
772
+ :tags)
711
773
  SENSITIVE = []
712
774
  include Aws::Structure
713
775
  end
@@ -1446,6 +1508,64 @@ module Aws::Rekognition
1446
1508
  include Aws::Structure
1447
1509
  end
1448
1510
 
1511
+ # @note When making an API call, you may pass DetectProtectiveEquipmentRequest
1512
+ # data as a hash:
1513
+ #
1514
+ # {
1515
+ # image: { # required
1516
+ # bytes: "data",
1517
+ # s3_object: {
1518
+ # bucket: "S3Bucket",
1519
+ # name: "S3ObjectName",
1520
+ # version: "S3ObjectVersion",
1521
+ # },
1522
+ # },
1523
+ # summarization_attributes: {
1524
+ # min_confidence: 1.0, # required
1525
+ # required_equipment_types: ["FACE_COVER"], # required, accepts FACE_COVER, HAND_COVER, HEAD_COVER
1526
+ # },
1527
+ # }
1528
+ #
1529
+ # @!attribute [rw] image
1530
+ # The image in which you want to detect PPE on detected persons. The
1531
+ # image can be passed as image bytes or you can reference an image
1532
+ # stored in an Amazon S3 bucket.
1533
+ # @return [Types::Image]
1534
+ #
1535
+ # @!attribute [rw] summarization_attributes
1536
+ # An array of PPE types that you want to summarize.
1537
+ # @return [Types::ProtectiveEquipmentSummarizationAttributes]
1538
+ #
1539
+ class DetectProtectiveEquipmentRequest < Struct.new(
1540
+ :image,
1541
+ :summarization_attributes)
1542
+ SENSITIVE = []
1543
+ include Aws::Structure
1544
+ end
1545
+
1546
+ # @!attribute [rw] protective_equipment_model_version
1547
+ # The version number of the PPE detection model used to detect PPE in
1548
+ # the image.
1549
+ # @return [String]
1550
+ #
1551
+ # @!attribute [rw] persons
1552
+ # An array of persons detected in the image (including persons not
1553
+ # wearing PPE).
1554
+ # @return [Array<Types::ProtectiveEquipmentPerson>]
1555
+ #
1556
+ # @!attribute [rw] summary
1557
+ # Summary information for the types of PPE specified in the
1558
+ # `SummarizationAttributes` input parameter.
1559
+ # @return [Types::ProtectiveEquipmentSummary]
1560
+ #
1561
+ class DetectProtectiveEquipmentResponse < Struct.new(
1562
+ :protective_equipment_model_version,
1563
+ :persons,
1564
+ :summary)
1565
+ SENSITIVE = []
1566
+ include Aws::Structure
1567
+ end
1568
+
1449
1569
  # A set of optional parameters that you can use to set the criteria that
1450
1570
  # the text must meet to be included in your response. `WordFilter` looks
1451
1571
  # at a word’s height, width, and minimum confidence. `RegionOfInterest`
@@ -1571,10 +1691,10 @@ module Aws::Rekognition
1571
1691
  # }
1572
1692
  #
1573
1693
  # @!attribute [rw] min_confidence
1574
- # Sets confidence of word detection. Words with detection confidence
1575
- # below this will be excluded from the result. Values should be
1576
- # between 0.5 and 1 as Text in Video will not return any result below
1577
- # 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.
1578
1698
  # @return [Float]
1579
1699
  #
1580
1700
  # @!attribute [rw] min_bounding_box_height
@@ -1619,6 +1739,36 @@ module Aws::Rekognition
1619
1739
  include Aws::Structure
1620
1740
  end
1621
1741
 
1742
+ # Information about an item of Personal Protective Equipment (PPE)
1743
+ # detected by DetectProtectiveEquipment. For more information, see
1744
+ # DetectProtectiveEquipment.
1745
+ #
1746
+ # @!attribute [rw] bounding_box
1747
+ # A bounding box surrounding the item of detected PPE.
1748
+ # @return [Types::BoundingBox]
1749
+ #
1750
+ # @!attribute [rw] confidence
1751
+ # The confidence that Amazon Rekognition has that the bounding box
1752
+ # (`BoundingBox`) contains an item of PPE.
1753
+ # @return [Float]
1754
+ #
1755
+ # @!attribute [rw] type
1756
+ # The type of detected PPE.
1757
+ # @return [String]
1758
+ #
1759
+ # @!attribute [rw] covers_body_part
1760
+ # Information about the body part covered by the detected PPE.
1761
+ # @return [Types::CoversBodyPart]
1762
+ #
1763
+ class EquipmentDetection < Struct.new(
1764
+ :bounding_box,
1765
+ :confidence,
1766
+ :type,
1767
+ :covers_body_part)
1768
+ SENSITIVE = []
1769
+ include Aws::Structure
1770
+ end
1771
+
1622
1772
  # The evaluation results for the training of a model.
1623
1773
  #
1624
1774
  # @!attribute [rw] f1_score
@@ -2903,9 +3053,10 @@ module Aws::Rekognition
2903
3053
  include Aws::Structure
2904
3054
  end
2905
3055
 
2906
- # The input image size exceeds the allowed limit. For more information,
2907
- # see Limits in Amazon Rekognition in the Amazon Rekognition Developer
2908
- # 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.
2909
3060
  #
2910
3061
  class ImageTooLargeException < Aws::EmptyStructure; end
2911
3062
 
@@ -3387,6 +3538,34 @@ module Aws::Rekognition
3387
3538
  include Aws::Structure
3388
3539
  end
3389
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
+
3390
3569
  # Provides information about a single type of unsafe content found in an
3391
3570
  # image or video. Each type of moderated content has a label within a
3392
3571
  # hierarchical taxonomy. For more information, see Detecting Unsafe
@@ -3725,6 +3904,11 @@ module Aws::Rekognition
3725
3904
  # datasets.
3726
3905
  # @return [Types::GroundTruthManifest]
3727
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
+ #
3728
3912
  class ProjectVersionDescription < Struct.new(
3729
3913
  :project_version_arn,
3730
3914
  :creation_timestamp,
@@ -3737,7 +3921,158 @@ module Aws::Rekognition
3737
3921
  :training_data_result,
3738
3922
  :testing_data_result,
3739
3923
  :evaluation_result,
3740
- :manifest_summary)
3924
+ :manifest_summary,
3925
+ :kms_key_id)
3926
+ SENSITIVE = []
3927
+ include Aws::Structure
3928
+ end
3929
+
3930
+ # Information about a body part detected by DetectProtectiveEquipment
3931
+ # that contains PPE. An array of `ProtectiveEquipmentBodyPart` objects
3932
+ # is returned for each person detected by `DetectProtectiveEquipment`.
3933
+ #
3934
+ # @!attribute [rw] name
3935
+ # The detected body part.
3936
+ # @return [String]
3937
+ #
3938
+ # @!attribute [rw] confidence
3939
+ # The confidence that Amazon Rekognition has in the detection accuracy
3940
+ # of the detected body part.
3941
+ # @return [Float]
3942
+ #
3943
+ # @!attribute [rw] equipment_detections
3944
+ # An array of Personal Protective Equipment items detected around a
3945
+ # body part.
3946
+ # @return [Array<Types::EquipmentDetection>]
3947
+ #
3948
+ class ProtectiveEquipmentBodyPart < Struct.new(
3949
+ :name,
3950
+ :confidence,
3951
+ :equipment_detections)
3952
+ SENSITIVE = []
3953
+ include Aws::Structure
3954
+ end
3955
+
3956
+ # A person detected by a call to DetectProtectiveEquipment. The API
3957
+ # returns all persons detected in the input image in an array of
3958
+ # `ProtectiveEquipmentPerson` objects.
3959
+ #
3960
+ # @!attribute [rw] body_parts
3961
+ # An array of body parts detected on a person's body (including body
3962
+ # parts without PPE).
3963
+ # @return [Array<Types::ProtectiveEquipmentBodyPart>]
3964
+ #
3965
+ # @!attribute [rw] bounding_box
3966
+ # A bounding box around the detected person.
3967
+ # @return [Types::BoundingBox]
3968
+ #
3969
+ # @!attribute [rw] confidence
3970
+ # The confidence that Amazon Rekognition has that the bounding box
3971
+ # contains a person.
3972
+ # @return [Float]
3973
+ #
3974
+ # @!attribute [rw] id
3975
+ # The identifier for the detected person. The identifier is only
3976
+ # unique for a single call to `DetectProtectiveEquipment`.
3977
+ # @return [Integer]
3978
+ #
3979
+ class ProtectiveEquipmentPerson < Struct.new(
3980
+ :body_parts,
3981
+ :bounding_box,
3982
+ :confidence,
3983
+ :id)
3984
+ SENSITIVE = []
3985
+ include Aws::Structure
3986
+ end
3987
+
3988
+ # Specifies summary attributes to return from a call to
3989
+ # DetectProtectiveEquipment. You can specify which types of PPE to
3990
+ # summarize. You can also specify a minimum confidence value for
3991
+ # detections. Summary information is returned in the `Summary`
3992
+ # (ProtectiveEquipmentSummary) field of the response from
3993
+ # `DetectProtectiveEquipment`. The summary includes which persons in an
3994
+ # image were detected wearing the requested types of person protective
3995
+ # equipment (PPE), which persons were detected as not wearing PPE, and
3996
+ # the persons in which a determination could not be made. For more
3997
+ # information, see ProtectiveEquipmentSummary.
3998
+ #
3999
+ # @note When making an API call, you may pass ProtectiveEquipmentSummarizationAttributes
4000
+ # data as a hash:
4001
+ #
4002
+ # {
4003
+ # min_confidence: 1.0, # required
4004
+ # required_equipment_types: ["FACE_COVER"], # required, accepts FACE_COVER, HAND_COVER, HEAD_COVER
4005
+ # }
4006
+ #
4007
+ # @!attribute [rw] min_confidence
4008
+ # The minimum confidence level for which you want summary information.
4009
+ # The confidence level applies to person detection, body part
4010
+ # detection, equipment detection, and body part coverage. Amazon
4011
+ # Rekognition doesn't return summary information with a confidence
4012
+ # than this specified value. There isn't a default value.
4013
+ #
4014
+ # Specify a `MinConfidence` value that is between 50-100% as
4015
+ # `DetectProtectiveEquipment` returns predictions only where the
4016
+ # detection confidence is between 50% - 100%. If you specify a value
4017
+ # that is less than 50%, the results are the same specifying a value
4018
+ # of 50%.
4019
+ # @return [Float]
4020
+ #
4021
+ # @!attribute [rw] required_equipment_types
4022
+ # An array of personal protective equipment types for which you want
4023
+ # summary information. If a person is detected wearing a required
4024
+ # requipment type, the person's ID is added to the
4025
+ # `PersonsWithRequiredEquipment` array field returned in
4026
+ # ProtectiveEquipmentSummary by `DetectProtectiveEquipment`.
4027
+ # @return [Array<String>]
4028
+ #
4029
+ class ProtectiveEquipmentSummarizationAttributes < Struct.new(
4030
+ :min_confidence,
4031
+ :required_equipment_types)
4032
+ SENSITIVE = []
4033
+ include Aws::Structure
4034
+ end
4035
+
4036
+ # Summary information for required items of personal protective
4037
+ # equipment (PPE) detected on persons by a call to
4038
+ # DetectProtectiveEquipment. You specify the required type of PPE in the
4039
+ # `SummarizationAttributes` (ProtectiveEquipmentSummarizationAttributes)
4040
+ # input parameter. The summary includes which persons were detected
4041
+ # wearing the required personal protective equipment
4042
+ # (`PersonsWithRequiredEquipment`), which persons were detected as not
4043
+ # wearing the required PPE (`PersonsWithoutRequiredEquipment`), and the
4044
+ # persons in which a determination could not be made
4045
+ # (`PersonsIndeterminate`).
4046
+ #
4047
+ # To get a total for each category, use the size of the field array. For
4048
+ # example, to find out how many people were detected as wearing the
4049
+ # specified PPE, use the size of the `PersonsWithRequiredEquipment`
4050
+ # array. If you want to find out more about a person, such as the
4051
+ # location (BoundingBox) of the person on the image, use the person ID
4052
+ # in each array element. Each person ID matches the ID field of a
4053
+ # ProtectiveEquipmentPerson object returned in the `Persons` array by
4054
+ # `DetectProtectiveEquipment`.
4055
+ #
4056
+ # @!attribute [rw] persons_with_required_equipment
4057
+ # An array of IDs for persons who are wearing detected personal
4058
+ # protective equipment.
4059
+ # @return [Array<Integer>]
4060
+ #
4061
+ # @!attribute [rw] persons_without_required_equipment
4062
+ # An array of IDs for persons who are not wearing all of the types of
4063
+ # PPE specified in the `RequiredEquipmentTypes` field of the detected
4064
+ # personal protective equipment.
4065
+ # @return [Array<Integer>]
4066
+ #
4067
+ # @!attribute [rw] persons_indeterminate
4068
+ # An array of IDs for persons where it was not possible to determine
4069
+ # if they are wearing personal protective equipment.
4070
+ # @return [Array<Integer>]
4071
+ #
4072
+ class ProtectiveEquipmentSummary < Struct.new(
4073
+ :persons_with_required_equipment,
4074
+ :persons_without_required_equipment,
4075
+ :persons_indeterminate)
3741
4076
  SENSITIVE = []
3742
4077
  include Aws::Structure
3743
4078
  end
@@ -3844,7 +4179,7 @@ module Aws::Rekognition
3844
4179
  include Aws::Structure
3845
4180
  end
3846
4181
 
3847
- # A collection with the specified ID already exists.
4182
+ # A resource with the specified ID already exists.
3848
4183
  #
3849
4184
  class ResourceAlreadyExistsException < Aws::EmptyStructure; end
3850
4185
 
@@ -3852,7 +4187,7 @@ module Aws::Rekognition
3852
4187
  #
3853
4188
  class ResourceInUseException < Aws::EmptyStructure; end
3854
4189
 
3855
- # The collection specified in the request cannot be found.
4190
+ # The resource specified in the request cannot be found.
3856
4191
  #
3857
4192
  class ResourceNotFoundException < Aws::EmptyStructure; end
3858
4193
 
@@ -4145,6 +4480,12 @@ module Aws::Rekognition
4145
4480
  include Aws::Structure
4146
4481
  end
4147
4482
 
4483
+ # The size of the collection exceeds the allowed limit. For more
4484
+ # information, see Limits in Amazon Rekognition in the Amazon
4485
+ # Rekognition Developer Guide.
4486
+ #
4487
+ class ServiceQuotaExceededException < Aws::EmptyStructure; end
4488
+
4148
4489
  # Information about a shot detection segment detected in a video. For
4149
4490
  # more information, see SegmentDetection.
4150
4491
  #
@@ -5164,6 +5505,34 @@ module Aws::Rekognition
5164
5505
  include Aws::Structure
5165
5506
  end
5166
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
+
5167
5536
  # Information about a technical cue segment. For more information, see
5168
5537
  # SegmentDetection.
5169
5538
  #
@@ -5417,6 +5786,32 @@ module Aws::Rekognition
5417
5786
  include Aws::Structure
5418
5787
  end
5419
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
+
5420
5815
  # Contains the Amazon S3 bucket location of the validation data for a
5421
5816
  # model training job.
5422
5817
  #