aws-sdk-lookoutforvision 1.0.0 → 1.4.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: a0c49923ba352472a17e7536a61240037c3893da3c418af3af51905f1214f6a0
4
- data.tar.gz: e4239f9cfe4c08afb9c2ff5a6b35af37cc9f08d7181a79b612907cca88b178c9
3
+ metadata.gz: c135914519318209ce85dfc8077493218cfeae85fb2e8f1937c4f7853681e8ff
4
+ data.tar.gz: 57beab033d7c6f3e4976cc16955dd2d4b17370457902369a7d4ac27622ebc393
5
5
  SHA512:
6
- metadata.gz: 1b9cb8f0316f58142a7b90c281065152a88a9f31934d898848de0f216688a422b196bcda0259cc20eb64dc6c262fd68635c829e6f0b0af4863fac361b93265e8
7
- data.tar.gz: 7beb2389eea0b34befe5862ee765270fc427f0e259f8b2d6317605b80dfac5f0b74a86ff898b714722d78328317f3a8393ff8fec751ecce759777a3193603e62
6
+ metadata.gz: 956b4f76e6a25b17b37c83bc560b6c73d11ea02144189c3c2062f9d9490ff10d00caf4ef42639fb5809e87dc0dc8586cd8c58993e7c72faaacd6fcb0e717d141
7
+ data.tar.gz: bcb7227d3c7e4b4d0bbff0d1cf4b3d38279ecd1c78e8ccea17f29b433e29950538cbefbd29758093787203c60f68ca21ef1701e5e1c76e1cc7469646f9906db9
data/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.4.0 (2021-07-28)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.3.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.2.0 (2021-02-17)
15
+ ------------------
16
+
17
+ * Feature - This release for Amazon Lookout for Vision includes documentation updates and a correction to the Status field returned in the response from StartModel and StopModel.
18
+
19
+ 1.1.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - This release includes the General Availability (GA) SDK for Amazon Lookout for Vision. New for GA is tagging support for Amazon Lookout for Vision models.
23
+
24
+ 1.0.0 (2020-12-01)
25
+ ------------------
26
+
27
+ * Feature - Initial release of `aws-sdk-lookoutforvision`.
28
+
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.4.0
@@ -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
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lookoutforvision/customizations'
48
48
  # @!group service
49
49
  module Aws::LookoutforVision
50
50
 
51
- GEM_VERSION = '1.0.0'
51
+ GEM_VERSION = '1.4.0'
52
52
 
53
53
  end
@@ -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
 
@@ -337,7 +337,10 @@ module Aws::LookoutforVision
337
337
  # To have a project with separate training and test datasets, call
338
338
  # `CreateDataset` twice. On the first call, specify `train` for the
339
339
  # value of `DatasetType`. On the second call, specify `test` for the
340
- # value of `DatasetType`. of dataset with
340
+ # value of `DatasetType`.
341
+ #
342
+ # This operation requires permissions to perform the
343
+ # `lookoutvision:CreateDataset` operation.
341
344
  #
342
345
  # @option params [required, String] :project_name
343
346
  # The name of the project in which you want to create a dataset.
@@ -427,10 +430,15 @@ module Aws::LookoutforVision
427
430
  # After training completes, the evaluation metrics are stored at the
428
431
  # location specified in `OutputConfig`.
429
432
  #
433
+ # This operation requires permissions to perform the
434
+ # `lookoutvision:CreateModel` operation. If you want to tag your model,
435
+ # you also require permission to the `lookoutvision:TagResource`
436
+ # operation.
437
+ #
430
438
  # @option params [required, String] :project_name
431
439
  # The name of the project in which you want to create a model version.
432
440
  #
433
- # @option params [Types::ModelDescription] :description
441
+ # @option params [String] :description
434
442
  # A description for the version of the model.
435
443
  #
436
444
  # @option params [String] :client_token
@@ -452,10 +460,14 @@ module Aws::LookoutforVision
452
460
  # results.
453
461
  #
454
462
  # @option params [String] :kms_key_id
455
- # The identifier of the AWS Key Management Service (AWS KMS) customer
456
- # master key (CMK) to use for encypting the model. If this parameter is
457
- # not specified, the model is encrypted by a key that AWS owns and
458
- # manages.
463
+ # The identifier for your AWS Key Management Service (AWS KMS) customer
464
+ # master key (CMK). The key is used to encrypt training and test images
465
+ # copied into the service for model training. Your source images are
466
+ # unaffected. If this parameter is not specified, the copied images are
467
+ # encrypted by a key that AWS owns and manages.
468
+ #
469
+ # @option params [Array<Types::Tag>] :tags
470
+ # A set of tags (key-value pairs) that you want to attach to the model.
459
471
  #
460
472
  # @return [Types::CreateModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
461
473
  #
@@ -465,35 +477,7 @@ module Aws::LookoutforVision
465
477
  #
466
478
  # resp = client.create_model({
467
479
  # project_name: "ProjectName", # required
468
- # description: {
469
- # model_version: "ModelVersion",
470
- # model_arn: "ModelArn",
471
- # creation_timestamp: Time.now,
472
- # description: "ModelDescriptionMessage",
473
- # status: "TRAINING", # accepts TRAINING, TRAINED, TRAINING_FAILED, STARTING_HOSTING, HOSTED, HOSTING_FAILED, STOPPING_HOSTING, SYSTEM_UPDATING, DELETING
474
- # status_message: "ModelStatusMessage",
475
- # performance: {
476
- # f1_score: 1.0,
477
- # recall: 1.0,
478
- # precision: 1.0,
479
- # },
480
- # output_config: {
481
- # s3_location: { # required
482
- # bucket: "S3BucketName", # required
483
- # prefix: "S3KeyPrefix",
484
- # },
485
- # },
486
- # evaluation_manifest: {
487
- # bucket: "S3BucketName", # required
488
- # key: "S3ObjectKey", # required
489
- # },
490
- # evaluation_result: {
491
- # bucket: "S3BucketName", # required
492
- # key: "S3ObjectKey", # required
493
- # },
494
- # evaluation_end_timestamp: Time.now,
495
- # kms_key_id: "KmsKeyId",
496
- # },
480
+ # description: "ModelDescriptionMessage",
497
481
  # client_token: "ClientToken",
498
482
  # output_config: { # required
499
483
  # s3_location: { # required
@@ -502,6 +486,12 @@ module Aws::LookoutforVision
502
486
  # },
503
487
  # },
504
488
  # kms_key_id: "KmsKeyId",
489
+ # tags: [
490
+ # {
491
+ # key: "TagKey", # required
492
+ # value: "TagValue", # required
493
+ # },
494
+ # ],
505
495
  # })
506
496
  #
507
497
  # @example Response structure
@@ -528,8 +518,11 @@ module Aws::LookoutforVision
528
518
  # Creates an empty Amazon Lookout for Vision project. After you create
529
519
  # the project, add a dataset by calling CreateDataset.
530
520
  #
521
+ # This operation requires permissions to perform the
522
+ # `lookoutvision:CreateProject` operation.
523
+ #
531
524
  # @option params [required, String] :project_name
532
- # S nsme for the project.
525
+ # The name for the project.
533
526
  #
534
527
  # @option params [String] :client_token
535
528
  # ClientToken is an idempotency token that ensures a call to
@@ -587,9 +580,8 @@ module Aws::LookoutforVision
587
580
  # * If you delete the training dataset, you must create a training
588
581
  # dataset before you can create a model.
589
582
  #
590
- # It might take a while to delete the dataset. To check the current
591
- # status, check the `Status` field in the response from a call to
592
- # DescribeDataset.
583
+ # This operation requires permissions to perform the
584
+ # `lookoutvision:DeleteDataset` operation.
593
585
  #
594
586
  # @option params [required, String] :project_name
595
587
  # The name of the project that contains the dataset that you want to
@@ -636,6 +628,13 @@ module Aws::LookoutforVision
636
628
  # Deletes an Amazon Lookout for Vision model. You can't delete a
637
629
  # running model. To stop a running model, use the StopModel operation.
638
630
  #
631
+ # It might take a few seconds to delete a model. To determine if a model
632
+ # has been deleted, call ListProjects and check if the version of the
633
+ # model (`ModelVersion`) is in the `Models` array.
634
+ #
635
+ # This operation requires permissions to perform the
636
+ # `lookoutvision:DeleteModel` operation.
637
+ #
639
638
  # @option params [required, String] :project_name
640
639
  # The name of the project that contains the model that you want to
641
640
  # delete.
@@ -688,8 +687,12 @@ module Aws::LookoutforVision
688
687
  # associated with the project. To delete a model use the DeleteModel
689
688
  # operation.
690
689
  #
691
- # The training and test datasets are deleted automatically for you. The
692
- # images referenced by the training and test datasets aren't deleted.
690
+ # You also have to delete the dataset(s) associated with the model. For
691
+ # more information, see DeleteDataset. The images referenced by the
692
+ # training and test datasets aren't deleted.
693
+ #
694
+ # This operation requires permissions to perform the
695
+ # `lookoutvision:DeleteProject` operation.
693
696
  #
694
697
  # @option params [required, String] :project_name
695
698
  # The name of the project to delete.
@@ -734,6 +737,9 @@ module Aws::LookoutforVision
734
737
 
735
738
  # Describe an Amazon Lookout for Vision dataset.
736
739
  #
740
+ # This operation requires permissions to perform the
741
+ # `lookoutvision:DescribeDataset` operation.
742
+ #
737
743
  # @option params [required, String] :project_name
738
744
  # The name of the project that contains the dataset that you want to
739
745
  # describe.
@@ -778,6 +784,9 @@ module Aws::LookoutforVision
778
784
 
779
785
  # Describes a version of an Amazon Lookout for Vision model.
780
786
  #
787
+ # This operation requires permissions to perform the
788
+ # `lookoutvision:DescribeModel` operation.
789
+ #
781
790
  # @option params [required, String] :project_name
782
791
  # The project that contains the version of a model that you want to
783
792
  # describe.
@@ -827,6 +836,9 @@ module Aws::LookoutforVision
827
836
 
828
837
  # Describes an Amazon Lookout for Vision project.
829
838
  #
839
+ # This operation requires permissions to perform the
840
+ # `lookoutvision:DescribeProject` operation.
841
+ #
830
842
  # @option params [required, String] :project_name
831
843
  # The name of the project that you want to describe.
832
844
  #
@@ -874,6 +886,9 @@ module Aws::LookoutforVision
874
886
  #
875
887
  # </note>
876
888
  #
889
+ # This operation requires permissions to perform the
890
+ # `lookoutvision:DetectAnomalies` operation.
891
+ #
877
892
  # @option params [required, String] :project_name
878
893
  # The name of the project that contains the model version that you want
879
894
  # to use.
@@ -920,6 +935,9 @@ module Aws::LookoutforVision
920
935
  # JSON Line contains the anomaly information for a single image,
921
936
  # including the image location and the assigned label.
922
937
  #
938
+ # This operation requires permissions to perform the
939
+ # `lookoutvision:ListDatasetEntries` operation.
940
+ #
923
941
  # @option params [required, String] :project_name
924
942
  # The name of the project that contains the dataset that you want to
925
943
  # list.
@@ -1001,6 +1019,9 @@ module Aws::LookoutforVision
1001
1019
 
1002
1020
  # Lists the versions of a model in an Amazon Lookout for Vision project.
1003
1021
  #
1022
+ # This operation requires permissions to perform the
1023
+ # `lookoutvision:ListModels` operation.
1024
+ #
1004
1025
  # @option params [required, String] :project_name
1005
1026
  # The name of the project that contains the model versions that you want
1006
1027
  # to list.
@@ -1057,6 +1078,9 @@ module Aws::LookoutforVision
1057
1078
 
1058
1079
  # Lists the Amazon Lookout for Vision projects in your AWS account.
1059
1080
  #
1081
+ # This operation requires permissions to perform the
1082
+ # `lookoutvision:ListProjects` operation.
1083
+ #
1060
1084
  # @option params [String] :next_token
1061
1085
  # If the previous response was incomplete (because there is more data to
1062
1086
  # retrieve), Amazon Lookout for Vision returns a pagination token in the
@@ -1100,10 +1124,47 @@ module Aws::LookoutforVision
1100
1124
  req.send_request(options)
1101
1125
  end
1102
1126
 
1127
+ # Returns a list of tags attached to the specified Amazon Lookout for
1128
+ # Vision model.
1129
+ #
1130
+ # This operation requires permissions to perform the
1131
+ # `lookoutvision:ListTagsForResource` operation.
1132
+ #
1133
+ # @option params [required, String] :resource_arn
1134
+ # The Amazon Resource Name (ARN) of the model for which you want to list
1135
+ # tags.
1136
+ #
1137
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1138
+ #
1139
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1140
+ #
1141
+ # @example Request syntax with placeholder values
1142
+ #
1143
+ # resp = client.list_tags_for_resource({
1144
+ # resource_arn: "TagArn", # required
1145
+ # })
1146
+ #
1147
+ # @example Response structure
1148
+ #
1149
+ # resp.tags #=> Array
1150
+ # resp.tags[0].key #=> String
1151
+ # resp.tags[0].value #=> String
1152
+ #
1153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResource AWS API Documentation
1154
+ #
1155
+ # @overload list_tags_for_resource(params = {})
1156
+ # @param [Hash] params ({})
1157
+ def list_tags_for_resource(params = {}, options = {})
1158
+ req = build_request(:list_tags_for_resource, params)
1159
+ req.send_request(options)
1160
+ end
1161
+
1103
1162
  # Starts the running of the version of an Amazon Lookout for Vision
1104
1163
  # model. Starting a model takes a while to complete. To check the
1105
1164
  # current state of the model, use DescribeModel.
1106
1165
  #
1166
+ # A model is ready to use when its status is `HOSTED`.
1167
+ #
1107
1168
  # Once the model is running, you can detect custom labels in new images
1108
1169
  # by calling DetectAnomalies.
1109
1170
  #
@@ -1112,6 +1173,9 @@ module Aws::LookoutforVision
1112
1173
  #
1113
1174
  # </note>
1114
1175
  #
1176
+ # This operation requires permissions to perform the
1177
+ # `lookoutvision:StartModel` operation.
1178
+ #
1115
1179
  # @option params [required, String] :project_name
1116
1180
  # The name of the project that contains the model that you want to
1117
1181
  # start.
@@ -1155,7 +1219,7 @@ module Aws::LookoutforVision
1155
1219
  #
1156
1220
  # @example Response structure
1157
1221
  #
1158
- # resp.status #=> String, one of "RUNNING", "STARTING", "STOPPED", "FAILED"
1222
+ # resp.status #=> String, one of "STARTING_HOSTING", "HOSTED", "HOSTING_FAILED", "STOPPING_HOSTING", "SYSTEM_UPDATING"
1159
1223
  #
1160
1224
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/StartModel AWS API Documentation
1161
1225
  #
@@ -1166,8 +1230,13 @@ module Aws::LookoutforVision
1166
1230
  req.send_request(options)
1167
1231
  end
1168
1232
 
1169
- # Stops a running model. The operation might take a while to complete.
1170
- # To check the current status, call DescribeModel.
1233
+ # Stops the hosting of a running model. The operation might take a while
1234
+ # to complete. To check the current status, call DescribeModel.
1235
+ #
1236
+ # After the model hosting stops, the `Status` of the model is `TRAINED`.
1237
+ #
1238
+ # This operation requires permissions to perform the
1239
+ # `lookoutvision:StopModel` operation.
1171
1240
  #
1172
1241
  # @option params [required, String] :project_name
1173
1242
  # The name of the project that contains the model that you want to stop.
@@ -1202,7 +1271,7 @@ module Aws::LookoutforVision
1202
1271
  #
1203
1272
  # @example Response structure
1204
1273
  #
1205
- # resp.status #=> String, one of "RUNNING", "STARTING", "STOPPED", "FAILED"
1274
+ # resp.status #=> String, one of "STARTING_HOSTING", "HOSTED", "HOSTING_FAILED", "STOPPING_HOSTING", "SYSTEM_UPDATING"
1206
1275
  #
1207
1276
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/StopModel AWS API Documentation
1208
1277
  #
@@ -1213,6 +1282,74 @@ module Aws::LookoutforVision
1213
1282
  req.send_request(options)
1214
1283
  end
1215
1284
 
1285
+ # Adds one or more key-value tags to an Amazon Lookout for Vision model.
1286
+ # For more information, see *Tagging a model* in the *Amazon Lookout for
1287
+ # Vision Developer Guide*.
1288
+ #
1289
+ # This operation requires permissions to perform the
1290
+ # `lookoutvision:TagResource` operation.
1291
+ #
1292
+ # @option params [required, String] :resource_arn
1293
+ # The Amazon Resource Name (ARN) of the model to assign the tags.
1294
+ #
1295
+ # @option params [required, Array<Types::Tag>] :tags
1296
+ # The key-value tags to assign to the model.
1297
+ #
1298
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1299
+ #
1300
+ # @example Request syntax with placeholder values
1301
+ #
1302
+ # resp = client.tag_resource({
1303
+ # resource_arn: "TagArn", # required
1304
+ # tags: [ # required
1305
+ # {
1306
+ # key: "TagKey", # required
1307
+ # value: "TagValue", # required
1308
+ # },
1309
+ # ],
1310
+ # })
1311
+ #
1312
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResource AWS API Documentation
1313
+ #
1314
+ # @overload tag_resource(params = {})
1315
+ # @param [Hash] params ({})
1316
+ def tag_resource(params = {}, options = {})
1317
+ req = build_request(:tag_resource, params)
1318
+ req.send_request(options)
1319
+ end
1320
+
1321
+ # Removes one or more tags from an Amazon Lookout for Vision model. For
1322
+ # more information, see *Tagging a model* in the *Amazon Lookout for
1323
+ # Vision Developer Guide*.
1324
+ #
1325
+ # This operation requires permissions to perform the
1326
+ # `lookoutvision:UntagResource` operation.
1327
+ #
1328
+ # @option params [required, String] :resource_arn
1329
+ # The Amazon Resource Name (ARN) of the model from which you want to
1330
+ # remove tags.
1331
+ #
1332
+ # @option params [required, Array<String>] :tag_keys
1333
+ # A list of the keys of the tags that you want to remove.
1334
+ #
1335
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1336
+ #
1337
+ # @example Request syntax with placeholder values
1338
+ #
1339
+ # resp = client.untag_resource({
1340
+ # resource_arn: "TagArn", # required
1341
+ # tag_keys: ["TagKey"], # required
1342
+ # })
1343
+ #
1344
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResource AWS API Documentation
1345
+ #
1346
+ # @overload untag_resource(params = {})
1347
+ # @param [Hash] params ({})
1348
+ def untag_resource(params = {}, options = {})
1349
+ req = build_request(:untag_resource, params)
1350
+ req.send_request(options)
1351
+ end
1352
+
1216
1353
  # Adds one or more JSON Line entries to a dataset. A JSON Line includes
1217
1354
  # information about an image used for training or testing an Amazon
1218
1355
  # Lookout for Vision model. The following is an example JSON Line.
@@ -1221,6 +1358,9 @@ module Aws::LookoutforVision
1221
1358
  # current status, call DescribeDataset and check the `Status` field in
1222
1359
  # the response.
1223
1360
  #
1361
+ # This operation requires permissions to perform the
1362
+ # `lookoutvision:UpdateDatasetEntries` operation.
1363
+ #
1224
1364
  # @option params [required, String] :project_name
1225
1365
  # The name of the project that contains the dataset that you want to
1226
1366
  # update.
@@ -1286,7 +1426,7 @@ module Aws::LookoutforVision
1286
1426
  params: params,
1287
1427
  config: config)
1288
1428
  context[:gem_name] = 'aws-sdk-lookoutforvision'
1289
- context[:gem_version] = '1.0.0'
1429
+ context[:gem_version] = '1.4.0'
1290
1430
  Seahorse::Client::Request.new(handlers, context)
1291
1431
  end
1292
1432
 
@@ -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
 
@@ -69,6 +69,8 @@ module Aws::LookoutforVision
69
69
  ListModelsResponse = Shapes::StructureShape.new(name: 'ListModelsResponse')
70
70
  ListProjectsRequest = Shapes::StructureShape.new(name: 'ListProjectsRequest')
71
71
  ListProjectsResponse = Shapes::StructureShape.new(name: 'ListProjectsResponse')
72
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
73
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
72
74
  ModelArn = Shapes::StringShape.new(name: 'ModelArn')
73
75
  ModelDescription = Shapes::StructureShape.new(name: 'ModelDescription')
74
76
  ModelDescriptionMessage = Shapes::StringShape.new(name: 'ModelDescriptionMessage')
@@ -103,7 +105,17 @@ module Aws::LookoutforVision
103
105
  StopModelRequest = Shapes::StructureShape.new(name: 'StopModelRequest')
104
106
  StopModelResponse = Shapes::StructureShape.new(name: 'StopModelResponse')
105
107
  Stream = Shapes::BlobShape.new(name: 'Stream', requiresLength: true, streaming: true)
108
+ Tag = Shapes::StructureShape.new(name: 'Tag')
109
+ TagArn = Shapes::StringShape.new(name: 'TagArn')
110
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
111
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
112
+ TagList = Shapes::ListShape.new(name: 'TagList')
113
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
114
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
115
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
106
116
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
117
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
118
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
107
119
  UpdateDatasetEntriesRequest = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesRequest')
108
120
  UpdateDatasetEntriesResponse = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesResponse')
109
121
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -126,10 +138,11 @@ module Aws::LookoutforVision
126
138
  CreateDatasetResponse.struct_class = Types::CreateDatasetResponse
127
139
 
128
140
  CreateModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
129
- CreateModelRequest.add_member(:description, Shapes::ShapeRef.new(shape: ModelDescription, location_name: "Description"))
141
+ CreateModelRequest.add_member(:description, Shapes::ShapeRef.new(shape: ModelDescriptionMessage, location_name: "Description"))
130
142
  CreateModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
131
143
  CreateModelRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "OutputConfig"))
132
144
  CreateModelRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
145
+ CreateModelRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
133
146
  CreateModelRequest.struct_class = Types::CreateModelRequest
134
147
 
135
148
  CreateModelResponse.add_member(:model_metadata, Shapes::ShapeRef.new(shape: ModelMetadata, location_name: "ModelMetadata"))
@@ -218,7 +231,7 @@ module Aws::LookoutforVision
218
231
  DetectAnomaliesRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
219
232
  DetectAnomaliesRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
220
233
  DetectAnomaliesRequest.add_member(:body, Shapes::ShapeRef.new(shape: Stream, required: true, location_name: "Body"))
221
- DetectAnomaliesRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location: "header", location_name: "content-type"))
234
+ DetectAnomaliesRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location: "header", location_name: "Content-Type"))
222
235
  DetectAnomaliesRequest.struct_class = Types::DetectAnomaliesRequest
223
236
  DetectAnomaliesRequest[:payload] = :body
224
237
  DetectAnomaliesRequest[:payload_member] = DetectAnomaliesRequest.member(:body)
@@ -275,6 +288,12 @@ module Aws::LookoutforVision
275
288
  ListProjectsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
276
289
  ListProjectsResponse.struct_class = Types::ListProjectsResponse
277
290
 
291
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagArn, required: true, location: "uri", location_name: "resourceArn"))
292
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
293
+
294
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
295
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
296
+
278
297
  ModelDescription.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, location_name: "ModelVersion"))
279
298
  ModelDescription.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "ModelArn"))
280
299
  ModelDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
@@ -358,12 +377,32 @@ module Aws::LookoutforVision
358
377
  StopModelResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelHostingStatus, location_name: "Status"))
359
378
  StopModelResponse.struct_class = Types::StopModelResponse
360
379
 
380
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
381
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
382
+ Tag.struct_class = Types::Tag
383
+
384
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
385
+
386
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
387
+
388
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagArn, required: true, location: "uri", location_name: "resourceArn"))
389
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
390
+ TagResourceRequest.struct_class = Types::TagResourceRequest
391
+
392
+ TagResourceResponse.struct_class = Types::TagResourceResponse
393
+
361
394
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
362
395
  ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: ExceptionString, location_name: "QuotaCode"))
363
396
  ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: ExceptionString, location_name: "ServiceCode"))
364
397
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
365
398
  ThrottlingException.struct_class = Types::ThrottlingException
366
399
 
400
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagArn, required: true, location: "uri", location_name: "resourceArn"))
401
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
402
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
403
+
404
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
405
+
367
406
  UpdateDatasetEntriesRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
368
407
  UpdateDatasetEntriesRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location: "uri", location_name: "datasetType"))
369
408
  UpdateDatasetEntriesRequest.add_member(:changes, Shapes::ShapeRef.new(shape: DatasetChanges, required: true, location_name: "Changes"))
@@ -597,6 +636,20 @@ module Aws::LookoutforVision
597
636
  )
598
637
  end)
599
638
 
639
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
640
+ o.name = "ListTagsForResource"
641
+ o.http_method = "GET"
642
+ o.http_request_uri = "/2020-11-20/tags/{resourceArn}"
643
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
644
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
645
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
646
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
647
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
648
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
649
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
650
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
651
+ end)
652
+
600
653
  api.add_operation(:start_model, Seahorse::Model::Operation.new.tap do |o|
601
654
  o.name = "StartModel"
602
655
  o.http_method = "POST"
@@ -626,6 +679,35 @@ module Aws::LookoutforVision
626
679
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
627
680
  end)
628
681
 
682
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
683
+ o.name = "TagResource"
684
+ o.http_method = "POST"
685
+ o.http_request_uri = "/2020-11-20/tags/{resourceArn}"
686
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
687
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
688
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
689
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
690
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
691
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
692
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
693
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
694
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
695
+ end)
696
+
697
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
698
+ o.name = "UntagResource"
699
+ o.http_method = "DELETE"
700
+ o.http_request_uri = "/2020-11-20/tags/{resourceArn}"
701
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
702
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
703
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
704
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
705
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
706
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
707
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
708
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
709
+ end)
710
+
629
711
  api.add_operation(:update_dataset_entries, Seahorse::Model::Operation.new.tap do |o|
630
712
  o.name = "UpdateDatasetEntries"
631
713
  o.http_method = "PATCH"
@@ -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
 
@@ -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
 
@@ -131,35 +131,7 @@ module Aws::LookoutforVision
131
131
  #
132
132
  # {
133
133
  # project_name: "ProjectName", # required
134
- # description: {
135
- # model_version: "ModelVersion",
136
- # model_arn: "ModelArn",
137
- # creation_timestamp: Time.now,
138
- # description: "ModelDescriptionMessage",
139
- # status: "TRAINING", # accepts TRAINING, TRAINED, TRAINING_FAILED, STARTING_HOSTING, HOSTED, HOSTING_FAILED, STOPPING_HOSTING, SYSTEM_UPDATING, DELETING
140
- # status_message: "ModelStatusMessage",
141
- # performance: {
142
- # f1_score: 1.0,
143
- # recall: 1.0,
144
- # precision: 1.0,
145
- # },
146
- # output_config: {
147
- # s3_location: { # required
148
- # bucket: "S3BucketName", # required
149
- # prefix: "S3KeyPrefix",
150
- # },
151
- # },
152
- # evaluation_manifest: {
153
- # bucket: "S3BucketName", # required
154
- # key: "S3ObjectKey", # required
155
- # },
156
- # evaluation_result: {
157
- # bucket: "S3BucketName", # required
158
- # key: "S3ObjectKey", # required
159
- # },
160
- # evaluation_end_timestamp: Time.now,
161
- # kms_key_id: "KmsKeyId",
162
- # },
134
+ # description: "ModelDescriptionMessage",
163
135
  # client_token: "ClientToken",
164
136
  # output_config: { # required
165
137
  # s3_location: { # required
@@ -168,6 +140,12 @@ module Aws::LookoutforVision
168
140
  # },
169
141
  # },
170
142
  # kms_key_id: "KmsKeyId",
143
+ # tags: [
144
+ # {
145
+ # key: "TagKey", # required
146
+ # value: "TagValue", # required
147
+ # },
148
+ # ],
171
149
  # }
172
150
  #
173
151
  # @!attribute [rw] project_name
@@ -176,7 +154,7 @@ module Aws::LookoutforVision
176
154
  #
177
155
  # @!attribute [rw] description
178
156
  # A description for the version of the model.
179
- # @return [Types::ModelDescription]
157
+ # @return [String]
180
158
  #
181
159
  # @!attribute [rw] client_token
182
160
  # ClientToken is an idempotency token that ensures a call to
@@ -199,12 +177,18 @@ module Aws::LookoutforVision
199
177
  # @return [Types::OutputConfig]
200
178
  #
201
179
  # @!attribute [rw] kms_key_id
202
- # The identifier of the AWS Key Management Service (AWS KMS) customer
203
- # master key (CMK) to use for encypting the model. If this parameter
204
- # is not specified, the model is encrypted by a key that AWS owns and
205
- # manages.
180
+ # The identifier for your AWS Key Management Service (AWS KMS)
181
+ # customer master key (CMK). The key is used to encrypt training and
182
+ # test images copied into the service for model training. Your source
183
+ # images are unaffected. If this parameter is not specified, the
184
+ # copied images are encrypted by a key that AWS owns and manages.
206
185
  # @return [String]
207
186
  #
187
+ # @!attribute [rw] tags
188
+ # A set of tags (key-value pairs) that you want to attach to the
189
+ # model.
190
+ # @return [Array<Types::Tag>]
191
+ #
208
192
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/CreateModelRequest AWS API Documentation
209
193
  #
210
194
  class CreateModelRequest < Struct.new(
@@ -212,7 +196,8 @@ module Aws::LookoutforVision
212
196
  :description,
213
197
  :client_token,
214
198
  :output_config,
215
- :kms_key_id)
199
+ :kms_key_id,
200
+ :tags)
216
201
  SENSITIVE = []
217
202
  include Aws::Structure
218
203
  end
@@ -238,7 +223,7 @@ module Aws::LookoutforVision
238
223
  # }
239
224
  #
240
225
  # @!attribute [rw] project_name
241
- # S nsme for the project.
226
+ # The name for the project.
242
227
  # @return [String]
243
228
  #
244
229
  # @!attribute [rw] client_token
@@ -1053,41 +1038,40 @@ module Aws::LookoutforVision
1053
1038
  include Aws::Structure
1054
1039
  end
1055
1040
 
1056
- # Describes an Amazon Lookout for Vision model.
1057
- #
1058
- # @note When making an API call, you may pass ModelDescription
1041
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1059
1042
  # data as a hash:
1060
1043
  #
1061
1044
  # {
1062
- # model_version: "ModelVersion",
1063
- # model_arn: "ModelArn",
1064
- # creation_timestamp: Time.now,
1065
- # description: "ModelDescriptionMessage",
1066
- # status: "TRAINING", # accepts TRAINING, TRAINED, TRAINING_FAILED, STARTING_HOSTING, HOSTED, HOSTING_FAILED, STOPPING_HOSTING, SYSTEM_UPDATING, DELETING
1067
- # status_message: "ModelStatusMessage",
1068
- # performance: {
1069
- # f1_score: 1.0,
1070
- # recall: 1.0,
1071
- # precision: 1.0,
1072
- # },
1073
- # output_config: {
1074
- # s3_location: { # required
1075
- # bucket: "S3BucketName", # required
1076
- # prefix: "S3KeyPrefix",
1077
- # },
1078
- # },
1079
- # evaluation_manifest: {
1080
- # bucket: "S3BucketName", # required
1081
- # key: "S3ObjectKey", # required
1082
- # },
1083
- # evaluation_result: {
1084
- # bucket: "S3BucketName", # required
1085
- # key: "S3ObjectKey", # required
1086
- # },
1087
- # evaluation_end_timestamp: Time.now,
1088
- # kms_key_id: "KmsKeyId",
1045
+ # resource_arn: "TagArn", # required
1089
1046
  # }
1090
1047
  #
1048
+ # @!attribute [rw] resource_arn
1049
+ # The Amazon Resource Name (ARN) of the model for which you want to
1050
+ # list tags.
1051
+ # @return [String]
1052
+ #
1053
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResourceRequest AWS API Documentation
1054
+ #
1055
+ class ListTagsForResourceRequest < Struct.new(
1056
+ :resource_arn)
1057
+ SENSITIVE = []
1058
+ include Aws::Structure
1059
+ end
1060
+
1061
+ # @!attribute [rw] tags
1062
+ # A map of tag keys and values attached to the specified model.
1063
+ # @return [Array<Types::Tag>]
1064
+ #
1065
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResourceResponse AWS API Documentation
1066
+ #
1067
+ class ListTagsForResourceResponse < Struct.new(
1068
+ :tags)
1069
+ SENSITIVE = []
1070
+ include Aws::Structure
1071
+ end
1072
+
1073
+ # Describes an Amazon Lookout for Vision model.
1074
+ #
1091
1075
  # @!attribute [rw] model_version
1092
1076
  # The version of the model
1093
1077
  # @return [String]
@@ -1187,7 +1171,8 @@ module Aws::LookoutforVision
1187
1171
  # @return [String]
1188
1172
  #
1189
1173
  # @!attribute [rw] performance
1190
- # Performance metrics for the model. Created during training.
1174
+ # Performance metrics for the model. Not available until training has
1175
+ # successfully completed.
1191
1176
  # @return [Types::ModelPerformance]
1192
1177
  #
1193
1178
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ModelMetadata AWS API Documentation
@@ -1206,15 +1191,6 @@ module Aws::LookoutforVision
1206
1191
 
1207
1192
  # Information about the evaluation performance of a trained model.
1208
1193
  #
1209
- # @note When making an API call, you may pass ModelPerformance
1210
- # data as a hash:
1211
- #
1212
- # {
1213
- # f1_score: 1.0,
1214
- # recall: 1.0,
1215
- # precision: 1.0,
1216
- # }
1217
- #
1218
1194
  # @!attribute [rw] f1_score
1219
1195
  # The overall F1 score metric for the trained model.
1220
1196
  # @return [Float]
@@ -1264,14 +1240,6 @@ module Aws::LookoutforVision
1264
1240
 
1265
1241
  # The S3 location where Amazon Lookout for Vision saves training output.
1266
1242
  #
1267
- # @note When making an API call, you may pass OutputS3Object
1268
- # data as a hash:
1269
- #
1270
- # {
1271
- # bucket: "S3BucketName", # required
1272
- # key: "S3ObjectKey", # required
1273
- # }
1274
- #
1275
1243
  # @!attribute [rw] bucket
1276
1244
  # The bucket that contains the training output.
1277
1245
  # @return [String]
@@ -1368,7 +1336,7 @@ module Aws::LookoutforVision
1368
1336
  include Aws::Structure
1369
1337
  end
1370
1338
 
1371
- # Information about the location of a manifest file.
1339
+ # Information about the location training output.
1372
1340
  #
1373
1341
  # @note When making an API call, you may pass S3Location
1374
1342
  # data as a hash:
@@ -1379,11 +1347,12 @@ module Aws::LookoutforVision
1379
1347
  # }
1380
1348
  #
1381
1349
  # @!attribute [rw] bucket
1382
- # The S3 bucket that contain the manifest file.
1350
+ # The S3 bucket that contains the training output.
1383
1351
  # @return [String]
1384
1352
  #
1385
1353
  # @!attribute [rw] prefix
1386
- # The path and name of the manifest file with the S3 bucket.
1354
+ # The path of the folder, within the S3 bucket, that contains the
1355
+ # training output.
1387
1356
  # @return [String]
1388
1357
  #
1389
1358
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/S3Location AWS API Documentation
@@ -1550,6 +1519,68 @@ module Aws::LookoutforVision
1550
1519
  include Aws::Structure
1551
1520
  end
1552
1521
 
1522
+ # A key and value pair that is attached to the specified Amazon Lookout
1523
+ # for Vision model.
1524
+ #
1525
+ # @note When making an API call, you may pass Tag
1526
+ # data as a hash:
1527
+ #
1528
+ # {
1529
+ # key: "TagKey", # required
1530
+ # value: "TagValue", # required
1531
+ # }
1532
+ #
1533
+ # @!attribute [rw] key
1534
+ # The key of the tag that is attached to the specified model.
1535
+ # @return [String]
1536
+ #
1537
+ # @!attribute [rw] value
1538
+ # The value of the tag that is attached to the specified model.
1539
+ # @return [String]
1540
+ #
1541
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/Tag AWS API Documentation
1542
+ #
1543
+ class Tag < Struct.new(
1544
+ :key,
1545
+ :value)
1546
+ SENSITIVE = []
1547
+ include Aws::Structure
1548
+ end
1549
+
1550
+ # @note When making an API call, you may pass TagResourceRequest
1551
+ # data as a hash:
1552
+ #
1553
+ # {
1554
+ # resource_arn: "TagArn", # required
1555
+ # tags: [ # required
1556
+ # {
1557
+ # key: "TagKey", # required
1558
+ # value: "TagValue", # required
1559
+ # },
1560
+ # ],
1561
+ # }
1562
+ #
1563
+ # @!attribute [rw] resource_arn
1564
+ # The Amazon Resource Name (ARN) of the model to assign the tags.
1565
+ # @return [String]
1566
+ #
1567
+ # @!attribute [rw] tags
1568
+ # The key-value tags to assign to the model.
1569
+ # @return [Array<Types::Tag>]
1570
+ #
1571
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResourceRequest AWS API Documentation
1572
+ #
1573
+ class TagResourceRequest < Struct.new(
1574
+ :resource_arn,
1575
+ :tags)
1576
+ SENSITIVE = []
1577
+ include Aws::Structure
1578
+ end
1579
+
1580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResourceResponse AWS API Documentation
1581
+ #
1582
+ class TagResourceResponse < Aws::EmptyStructure; end
1583
+
1553
1584
  # Amazon Lookout for Vision is temporarily unable to process the
1554
1585
  # request. Try your call again.
1555
1586
  #
@@ -1579,6 +1610,36 @@ module Aws::LookoutforVision
1579
1610
  include Aws::Structure
1580
1611
  end
1581
1612
 
1613
+ # @note When making an API call, you may pass UntagResourceRequest
1614
+ # data as a hash:
1615
+ #
1616
+ # {
1617
+ # resource_arn: "TagArn", # required
1618
+ # tag_keys: ["TagKey"], # required
1619
+ # }
1620
+ #
1621
+ # @!attribute [rw] resource_arn
1622
+ # The Amazon Resource Name (ARN) of the model from which you want to
1623
+ # remove tags.
1624
+ # @return [String]
1625
+ #
1626
+ # @!attribute [rw] tag_keys
1627
+ # A list of the keys of the tags that you want to remove.
1628
+ # @return [Array<String>]
1629
+ #
1630
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResourceRequest AWS API Documentation
1631
+ #
1632
+ class UntagResourceRequest < Struct.new(
1633
+ :resource_arn,
1634
+ :tag_keys)
1635
+ SENSITIVE = []
1636
+ include Aws::Structure
1637
+ end
1638
+
1639
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResourceResponse AWS API Documentation
1640
+ #
1641
+ class UntagResourceResponse < Aws::EmptyStructure; end
1642
+
1582
1643
  # @note When making an API call, you may pass UpdateDatasetEntriesRequest
1583
1644
  # data as a hash:
1584
1645
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lookoutforvision
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.4.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: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2021-07-28 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.109.0
22
+ version: 3.118.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.109.0
32
+ version: 3.118.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon Lookout for Vision. This gem is part
48
48
  of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-lookoutforvision.rb
56
59
  - lib/aws-sdk-lookoutforvision/client.rb
57
60
  - lib/aws-sdk-lookoutforvision/client_api.rb
@@ -63,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
63
66
  licenses:
64
67
  - Apache-2.0
65
68
  metadata:
66
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-lookoutforvision
67
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-lookoutforvision/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lookoutforvision
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lookoutforvision/CHANGELOG.md
68
71
  post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths:
@@ -80,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
83
  - !ruby/object:Gem::Version
81
84
  version: '0'
82
85
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
85
87
  signing_key:
86
88
  specification_version: 4
87
89
  summary: AWS SDK for Ruby - Amazon Lookout for Vision