aws-sdk-lookoutforvision 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0c49923ba352472a17e7536a61240037c3893da3c418af3af51905f1214f6a0
4
- data.tar.gz: e4239f9cfe4c08afb9c2ff5a6b35af37cc9f08d7181a79b612907cca88b178c9
3
+ metadata.gz: 218132ffd1136a4e9e7a52e332b9e8aa6c1e07c3d49d9a58dab7ca247fef6cc3
4
+ data.tar.gz: '08a32047941b215881c4432b9217354c872e258c1af66dab4ef7042a21d074f3'
5
5
  SHA512:
6
- metadata.gz: 1b9cb8f0316f58142a7b90c281065152a88a9f31934d898848de0f216688a422b196bcda0259cc20eb64dc6c262fd68635c829e6f0b0af4863fac361b93265e8
7
- data.tar.gz: 7beb2389eea0b34befe5862ee765270fc427f0e259f8b2d6317605b80dfac5f0b74a86ff898b714722d78328317f3a8393ff8fec751ecce759777a3193603e62
6
+ metadata.gz: 50595f455a8dacb221c141840b081d940433c48ff714bd364788468a755dc230a167732199b61ffec27ba5d99a2877c1573222424c4892ac84423feab9ee7558
7
+ data.tar.gz: 35469c6695672fa98f87aea4092913b53b55c1fb779e721c00a14def10320844e2a9e99bcd4a81f0dbe4a97d6f8b9ab4ac2e33bfbcf1c14c0c44e115accd38a8
@@ -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.1.0'
52
52
 
53
53
  end
@@ -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
@@ -457,6 +465,9 @@ module Aws::LookoutforVision
457
465
  # not specified, the model is encrypted by a key that AWS owns and
458
466
  # manages.
459
467
  #
468
+ # @option params [Array<Types::Tag>] :tags
469
+ # A set of tags (key-value pairs) that you want to attach to the model.
470
+ #
460
471
  # @return [Types::CreateModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
461
472
  #
462
473
  # * {Types::CreateModelResponse#model_metadata #model_metadata} => Types::ModelMetadata
@@ -465,35 +476,7 @@ module Aws::LookoutforVision
465
476
  #
466
477
  # resp = client.create_model({
467
478
  # 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
- # },
479
+ # description: "ModelDescriptionMessage",
497
480
  # client_token: "ClientToken",
498
481
  # output_config: { # required
499
482
  # s3_location: { # required
@@ -502,6 +485,12 @@ module Aws::LookoutforVision
502
485
  # },
503
486
  # },
504
487
  # kms_key_id: "KmsKeyId",
488
+ # tags: [
489
+ # {
490
+ # key: "TagKey", # required
491
+ # value: "TagValue", # required
492
+ # },
493
+ # ],
505
494
  # })
506
495
  #
507
496
  # @example Response structure
@@ -528,8 +517,11 @@ module Aws::LookoutforVision
528
517
  # Creates an empty Amazon Lookout for Vision project. After you create
529
518
  # the project, add a dataset by calling CreateDataset.
530
519
  #
520
+ # This operation requires permissions to perform the
521
+ # `lookoutvision:CreateProject` operation.
522
+ #
531
523
  # @option params [required, String] :project_name
532
- # S nsme for the project.
524
+ # The name for the project.
533
525
  #
534
526
  # @option params [String] :client_token
535
527
  # ClientToken is an idempotency token that ensures a call to
@@ -591,6 +583,9 @@ module Aws::LookoutforVision
591
583
  # status, check the `Status` field in the response from a call to
592
584
  # DescribeDataset.
593
585
  #
586
+ # This operation requires permissions to perform the
587
+ # `lookoutvision:DeleteDataset` operation.
588
+ #
594
589
  # @option params [required, String] :project_name
595
590
  # The name of the project that contains the dataset that you want to
596
591
  # delete.
@@ -636,6 +631,9 @@ module Aws::LookoutforVision
636
631
  # Deletes an Amazon Lookout for Vision model. You can't delete a
637
632
  # running model. To stop a running model, use the StopModel operation.
638
633
  #
634
+ # This operation requires permissions to perform the
635
+ # `lookoutvision:DeleteModel` operation.
636
+ #
639
637
  # @option params [required, String] :project_name
640
638
  # The name of the project that contains the model that you want to
641
639
  # delete.
@@ -688,8 +686,12 @@ module Aws::LookoutforVision
688
686
  # associated with the project. To delete a model use the DeleteModel
689
687
  # operation.
690
688
  #
691
- # The training and test datasets are deleted automatically for you. The
692
- # images referenced by the training and test datasets aren't deleted.
689
+ # You also have to delete the dataset(s) associated with the model. For
690
+ # more information, see DeleteDataset. The images referenced by the
691
+ # training and test datasets aren't deleted.
692
+ #
693
+ # This operation requires permissions to perform the
694
+ # `lookoutvision:DeleteProject` operation.
693
695
  #
694
696
  # @option params [required, String] :project_name
695
697
  # The name of the project to delete.
@@ -734,6 +736,9 @@ module Aws::LookoutforVision
734
736
 
735
737
  # Describe an Amazon Lookout for Vision dataset.
736
738
  #
739
+ # This operation requires permissions to perform the
740
+ # `lookoutvision:DescribeDataset` operation.
741
+ #
737
742
  # @option params [required, String] :project_name
738
743
  # The name of the project that contains the dataset that you want to
739
744
  # describe.
@@ -778,6 +783,9 @@ module Aws::LookoutforVision
778
783
 
779
784
  # Describes a version of an Amazon Lookout for Vision model.
780
785
  #
786
+ # This operation requires permissions to perform the
787
+ # `lookoutvision:DescribeModel` operation.
788
+ #
781
789
  # @option params [required, String] :project_name
782
790
  # The project that contains the version of a model that you want to
783
791
  # describe.
@@ -827,6 +835,9 @@ module Aws::LookoutforVision
827
835
 
828
836
  # Describes an Amazon Lookout for Vision project.
829
837
  #
838
+ # This operation requires permissions to perform the
839
+ # `lookoutvision:DescribeProject` operation.
840
+ #
830
841
  # @option params [required, String] :project_name
831
842
  # The name of the project that you want to describe.
832
843
  #
@@ -874,6 +885,9 @@ module Aws::LookoutforVision
874
885
  #
875
886
  # </note>
876
887
  #
888
+ # This operation requires permissions to perform the
889
+ # `lookoutvision:DetectAnomalies` operation.
890
+ #
877
891
  # @option params [required, String] :project_name
878
892
  # The name of the project that contains the model version that you want
879
893
  # to use.
@@ -920,6 +934,9 @@ module Aws::LookoutforVision
920
934
  # JSON Line contains the anomaly information for a single image,
921
935
  # including the image location and the assigned label.
922
936
  #
937
+ # This operation requires permissions to perform the
938
+ # `lookoutvision:ListDatasetEntries` operation.
939
+ #
923
940
  # @option params [required, String] :project_name
924
941
  # The name of the project that contains the dataset that you want to
925
942
  # list.
@@ -1001,6 +1018,9 @@ module Aws::LookoutforVision
1001
1018
 
1002
1019
  # Lists the versions of a model in an Amazon Lookout for Vision project.
1003
1020
  #
1021
+ # This operation requires permissions to perform the
1022
+ # `lookoutvision:ListModels` operation.
1023
+ #
1004
1024
  # @option params [required, String] :project_name
1005
1025
  # The name of the project that contains the model versions that you want
1006
1026
  # to list.
@@ -1057,6 +1077,9 @@ module Aws::LookoutforVision
1057
1077
 
1058
1078
  # Lists the Amazon Lookout for Vision projects in your AWS account.
1059
1079
  #
1080
+ # This operation requires permissions to perform the
1081
+ # `lookoutvision:ListProjects` operation.
1082
+ #
1060
1083
  # @option params [String] :next_token
1061
1084
  # If the previous response was incomplete (because there is more data to
1062
1085
  # retrieve), Amazon Lookout for Vision returns a pagination token in the
@@ -1100,6 +1123,41 @@ module Aws::LookoutforVision
1100
1123
  req.send_request(options)
1101
1124
  end
1102
1125
 
1126
+ # Returns a list of tags attached to the specified Amazon Lookout for
1127
+ # Vision model.
1128
+ #
1129
+ # This operation requires permissions to perform the
1130
+ # `lookoutvision:ListTagsForResource` operation.
1131
+ #
1132
+ # @option params [required, String] :resource_arn
1133
+ # The Amazon Resource Name (ARN) of the model for which you want to list
1134
+ # tags.
1135
+ #
1136
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1137
+ #
1138
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1139
+ #
1140
+ # @example Request syntax with placeholder values
1141
+ #
1142
+ # resp = client.list_tags_for_resource({
1143
+ # resource_arn: "TagArn", # required
1144
+ # })
1145
+ #
1146
+ # @example Response structure
1147
+ #
1148
+ # resp.tags #=> Array
1149
+ # resp.tags[0].key #=> String
1150
+ # resp.tags[0].value #=> String
1151
+ #
1152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResource AWS API Documentation
1153
+ #
1154
+ # @overload list_tags_for_resource(params = {})
1155
+ # @param [Hash] params ({})
1156
+ def list_tags_for_resource(params = {}, options = {})
1157
+ req = build_request(:list_tags_for_resource, params)
1158
+ req.send_request(options)
1159
+ end
1160
+
1103
1161
  # Starts the running of the version of an Amazon Lookout for Vision
1104
1162
  # model. Starting a model takes a while to complete. To check the
1105
1163
  # current state of the model, use DescribeModel.
@@ -1112,6 +1170,9 @@ module Aws::LookoutforVision
1112
1170
  #
1113
1171
  # </note>
1114
1172
  #
1173
+ # This operation requires permissions to perform the
1174
+ # `lookoutvision:StartModel` operation.
1175
+ #
1115
1176
  # @option params [required, String] :project_name
1116
1177
  # The name of the project that contains the model that you want to
1117
1178
  # start.
@@ -1169,6 +1230,9 @@ module Aws::LookoutforVision
1169
1230
  # Stops a running model. The operation might take a while to complete.
1170
1231
  # To check the current status, call DescribeModel.
1171
1232
  #
1233
+ # This operation requires permissions to perform the
1234
+ # `lookoutvision:StopModel` operation.
1235
+ #
1172
1236
  # @option params [required, String] :project_name
1173
1237
  # The name of the project that contains the model that you want to stop.
1174
1238
  #
@@ -1213,6 +1277,74 @@ module Aws::LookoutforVision
1213
1277
  req.send_request(options)
1214
1278
  end
1215
1279
 
1280
+ # Adds one or more key-value tags to an Amazon Lookout for Vision model.
1281
+ # For more information, see *Tagging a model* in the *Amazon Lookout for
1282
+ # Vision Developer Guide*.
1283
+ #
1284
+ # This operation requires permissions to perform the
1285
+ # `lookoutvision:TagResource` operation.
1286
+ #
1287
+ # @option params [required, String] :resource_arn
1288
+ # The Amazon Resource Name (ARN) of the model to assign the tags.
1289
+ #
1290
+ # @option params [required, Array<Types::Tag>] :tags
1291
+ # The key-value tags to assign to the model.
1292
+ #
1293
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1294
+ #
1295
+ # @example Request syntax with placeholder values
1296
+ #
1297
+ # resp = client.tag_resource({
1298
+ # resource_arn: "TagArn", # required
1299
+ # tags: [ # required
1300
+ # {
1301
+ # key: "TagKey", # required
1302
+ # value: "TagValue", # required
1303
+ # },
1304
+ # ],
1305
+ # })
1306
+ #
1307
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResource AWS API Documentation
1308
+ #
1309
+ # @overload tag_resource(params = {})
1310
+ # @param [Hash] params ({})
1311
+ def tag_resource(params = {}, options = {})
1312
+ req = build_request(:tag_resource, params)
1313
+ req.send_request(options)
1314
+ end
1315
+
1316
+ # Removes one or more tags from an Amazon Lookout for Vision model. For
1317
+ # more information, see *Tagging a model* in the *Amazon Lookout for
1318
+ # Vision Developer Guide*.
1319
+ #
1320
+ # This operation requires permissions to perform the
1321
+ # `lookoutvision:UntagResource` operation.
1322
+ #
1323
+ # @option params [required, String] :resource_arn
1324
+ # The Amazon Resource Name (ARN) of the model from which you want to
1325
+ # remove tags.
1326
+ #
1327
+ # @option params [required, Array<String>] :tag_keys
1328
+ # A list of the keys of the tags that you want to remove.
1329
+ #
1330
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1331
+ #
1332
+ # @example Request syntax with placeholder values
1333
+ #
1334
+ # resp = client.untag_resource({
1335
+ # resource_arn: "TagArn", # required
1336
+ # tag_keys: ["TagKey"], # required
1337
+ # })
1338
+ #
1339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResource AWS API Documentation
1340
+ #
1341
+ # @overload untag_resource(params = {})
1342
+ # @param [Hash] params ({})
1343
+ def untag_resource(params = {}, options = {})
1344
+ req = build_request(:untag_resource, params)
1345
+ req.send_request(options)
1346
+ end
1347
+
1216
1348
  # Adds one or more JSON Line entries to a dataset. A JSON Line includes
1217
1349
  # information about an image used for training or testing an Amazon
1218
1350
  # Lookout for Vision model. The following is an example JSON Line.
@@ -1221,6 +1353,9 @@ module Aws::LookoutforVision
1221
1353
  # current status, call DescribeDataset and check the `Status` field in
1222
1354
  # the response.
1223
1355
  #
1356
+ # This operation requires permissions to perform the
1357
+ # `lookoutvision:UpdateDatasetEntries` operation.
1358
+ #
1224
1359
  # @option params [required, String] :project_name
1225
1360
  # The name of the project that contains the dataset that you want to
1226
1361
  # update.
@@ -1286,7 +1421,7 @@ module Aws::LookoutforVision
1286
1421
  params: params,
1287
1422
  config: config)
1288
1423
  context[:gem_name] = 'aws-sdk-lookoutforvision'
1289
- context[:gem_version] = '1.0.0'
1424
+ context[:gem_version] = '1.1.0'
1290
1425
  Seahorse::Client::Request.new(handlers, context)
1291
1426
  end
1292
1427
 
@@ -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"))
@@ -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"
@@ -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
@@ -205,6 +183,11 @@ module Aws::LookoutforVision
205
183
  # manages.
206
184
  # @return [String]
207
185
  #
186
+ # @!attribute [rw] tags
187
+ # A set of tags (key-value pairs) that you want to attach to the
188
+ # model.
189
+ # @return [Array<Types::Tag>]
190
+ #
208
191
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/CreateModelRequest AWS API Documentation
209
192
  #
210
193
  class CreateModelRequest < Struct.new(
@@ -212,7 +195,8 @@ module Aws::LookoutforVision
212
195
  :description,
213
196
  :client_token,
214
197
  :output_config,
215
- :kms_key_id)
198
+ :kms_key_id,
199
+ :tags)
216
200
  SENSITIVE = []
217
201
  include Aws::Structure
218
202
  end
@@ -238,7 +222,7 @@ module Aws::LookoutforVision
238
222
  # }
239
223
  #
240
224
  # @!attribute [rw] project_name
241
- # S nsme for the project.
225
+ # The name for the project.
242
226
  # @return [String]
243
227
  #
244
228
  # @!attribute [rw] client_token
@@ -1053,41 +1037,40 @@ module Aws::LookoutforVision
1053
1037
  include Aws::Structure
1054
1038
  end
1055
1039
 
1056
- # Describes an Amazon Lookout for Vision model.
1057
- #
1058
- # @note When making an API call, you may pass ModelDescription
1040
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1059
1041
  # data as a hash:
1060
1042
  #
1061
1043
  # {
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",
1044
+ # resource_arn: "TagArn", # required
1089
1045
  # }
1090
1046
  #
1047
+ # @!attribute [rw] resource_arn
1048
+ # The Amazon Resource Name (ARN) of the model for which you want to
1049
+ # list tags.
1050
+ # @return [String]
1051
+ #
1052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResourceRequest AWS API Documentation
1053
+ #
1054
+ class ListTagsForResourceRequest < Struct.new(
1055
+ :resource_arn)
1056
+ SENSITIVE = []
1057
+ include Aws::Structure
1058
+ end
1059
+
1060
+ # @!attribute [rw] tags
1061
+ # A map of tag keys and values attached to the specified model.
1062
+ # @return [Array<Types::Tag>]
1063
+ #
1064
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListTagsForResourceResponse AWS API Documentation
1065
+ #
1066
+ class ListTagsForResourceResponse < Struct.new(
1067
+ :tags)
1068
+ SENSITIVE = []
1069
+ include Aws::Structure
1070
+ end
1071
+
1072
+ # Describes an Amazon Lookout for Vision model.
1073
+ #
1091
1074
  # @!attribute [rw] model_version
1092
1075
  # The version of the model
1093
1076
  # @return [String]
@@ -1187,7 +1170,8 @@ module Aws::LookoutforVision
1187
1170
  # @return [String]
1188
1171
  #
1189
1172
  # @!attribute [rw] performance
1190
- # Performance metrics for the model. Created during training.
1173
+ # Performance metrics for the model. Not available until training has
1174
+ # successfully completed.
1191
1175
  # @return [Types::ModelPerformance]
1192
1176
  #
1193
1177
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ModelMetadata AWS API Documentation
@@ -1206,15 +1190,6 @@ module Aws::LookoutforVision
1206
1190
 
1207
1191
  # Information about the evaluation performance of a trained model.
1208
1192
  #
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
1193
  # @!attribute [rw] f1_score
1219
1194
  # The overall F1 score metric for the trained model.
1220
1195
  # @return [Float]
@@ -1264,14 +1239,6 @@ module Aws::LookoutforVision
1264
1239
 
1265
1240
  # The S3 location where Amazon Lookout for Vision saves training output.
1266
1241
  #
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
1242
  # @!attribute [rw] bucket
1276
1243
  # The bucket that contains the training output.
1277
1244
  # @return [String]
@@ -1550,6 +1517,68 @@ module Aws::LookoutforVision
1550
1517
  include Aws::Structure
1551
1518
  end
1552
1519
 
1520
+ # A key and value pair that is attached to the specified Amazon Lookout
1521
+ # for Vision model.
1522
+ #
1523
+ # @note When making an API call, you may pass Tag
1524
+ # data as a hash:
1525
+ #
1526
+ # {
1527
+ # key: "TagKey", # required
1528
+ # value: "TagValue", # required
1529
+ # }
1530
+ #
1531
+ # @!attribute [rw] key
1532
+ # The key of the tag that is attached to the specified model.
1533
+ # @return [String]
1534
+ #
1535
+ # @!attribute [rw] value
1536
+ # The value of the tag that is attached to the specified model.
1537
+ # @return [String]
1538
+ #
1539
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/Tag AWS API Documentation
1540
+ #
1541
+ class Tag < Struct.new(
1542
+ :key,
1543
+ :value)
1544
+ SENSITIVE = []
1545
+ include Aws::Structure
1546
+ end
1547
+
1548
+ # @note When making an API call, you may pass TagResourceRequest
1549
+ # data as a hash:
1550
+ #
1551
+ # {
1552
+ # resource_arn: "TagArn", # required
1553
+ # tags: [ # required
1554
+ # {
1555
+ # key: "TagKey", # required
1556
+ # value: "TagValue", # required
1557
+ # },
1558
+ # ],
1559
+ # }
1560
+ #
1561
+ # @!attribute [rw] resource_arn
1562
+ # The Amazon Resource Name (ARN) of the model to assign the tags.
1563
+ # @return [String]
1564
+ #
1565
+ # @!attribute [rw] tags
1566
+ # The key-value tags to assign to the model.
1567
+ # @return [Array<Types::Tag>]
1568
+ #
1569
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResourceRequest AWS API Documentation
1570
+ #
1571
+ class TagResourceRequest < Struct.new(
1572
+ :resource_arn,
1573
+ :tags)
1574
+ SENSITIVE = []
1575
+ include Aws::Structure
1576
+ end
1577
+
1578
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TagResourceResponse AWS API Documentation
1579
+ #
1580
+ class TagResourceResponse < Aws::EmptyStructure; end
1581
+
1553
1582
  # Amazon Lookout for Vision is temporarily unable to process the
1554
1583
  # request. Try your call again.
1555
1584
  #
@@ -1579,6 +1608,36 @@ module Aws::LookoutforVision
1579
1608
  include Aws::Structure
1580
1609
  end
1581
1610
 
1611
+ # @note When making an API call, you may pass UntagResourceRequest
1612
+ # data as a hash:
1613
+ #
1614
+ # {
1615
+ # resource_arn: "TagArn", # required
1616
+ # tag_keys: ["TagKey"], # required
1617
+ # }
1618
+ #
1619
+ # @!attribute [rw] resource_arn
1620
+ # The Amazon Resource Name (ARN) of the model from which you want to
1621
+ # remove tags.
1622
+ # @return [String]
1623
+ #
1624
+ # @!attribute [rw] tag_keys
1625
+ # A list of the keys of the tags that you want to remove.
1626
+ # @return [Array<String>]
1627
+ #
1628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResourceRequest AWS API Documentation
1629
+ #
1630
+ class UntagResourceRequest < Struct.new(
1631
+ :resource_arn,
1632
+ :tag_keys)
1633
+ SENSITIVE = []
1634
+ include Aws::Structure
1635
+ end
1636
+
1637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/UntagResourceResponse AWS API Documentation
1638
+ #
1639
+ class UntagResourceResponse < Aws::EmptyStructure; end
1640
+
1582
1641
  # @note When making an API call, you may pass UpdateDatasetEntriesRequest
1583
1642
  # data as a hash:
1584
1643
  #
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.1.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-02-02 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.112.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.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement