aws-sdk-lookoutforvision 1.9.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lookoutforvision/client.rb +396 -58
- data/lib/aws-sdk-lookoutforvision/client_api.rb +156 -1
- data/lib/aws-sdk-lookoutforvision/types.rb +685 -73
- data/lib/aws-sdk-lookoutforvision.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2999cc572597990dd76d6fd7b8c66728293126c1218ea52231fff6948e4bba3f
|
4
|
+
data.tar.gz: b19fadbfd5308fe6b083326f6e7c8a1fedea16e788c2962ec136af4511f4b7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036a85e6b1089d84b3a58e60292430c1232f721f57345397aaae414c62a2022553a30ba72d97b18f606e6757497d5c63ba7479771f740a6e4ca5b971b0cfff7d
|
7
|
+
data.tar.gz: 6abdfbbda8c95d39f44581053dee0a3874a53d99db23afda208cde362ce2de19d280a4d475a542803c8a4c4a8f3b218fd0bcf035926947ac5e25cf0d8c05d87f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.13.0 (2022-02-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional.
|
8
|
+
|
9
|
+
1.12.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.11.0 (2021-12-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.10.0 (2021-12-08)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds new APIs for packaging an Amazon Lookout for Vision model as an AWS IoT Greengrass component.
|
23
|
+
|
4
24
|
1.9.0 (2021-11-30)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.13.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::LookoutforVision
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
82
|
|
@@ -175,6 +179,10 @@ module Aws::LookoutforVision
|
|
175
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
178
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
187
|
# Set to true to disable SDK automatically adding host prefix
|
180
188
|
# to default service endpoint when available.
|
@@ -297,7 +305,7 @@ module Aws::LookoutforVision
|
|
297
305
|
# seconds to wait when opening a HTTP session before raising a
|
298
306
|
# `Timeout::Error`.
|
299
307
|
#
|
300
|
-
# @option options [
|
308
|
+
# @option options [Float] :http_read_timeout (60) The default
|
301
309
|
# number of seconds to wait for response data. This value can
|
302
310
|
# safely be set per-request on the session.
|
303
311
|
#
|
@@ -313,6 +321,9 @@ module Aws::LookoutforVision
|
|
313
321
|
# disables this behaviour. This value can safely be set per
|
314
322
|
# request on the session.
|
315
323
|
#
|
324
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
325
|
+
# in seconds.
|
326
|
+
#
|
316
327
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
317
328
|
# HTTP debug output will be sent to the `:logger`.
|
318
329
|
#
|
@@ -377,11 +388,17 @@ module Aws::LookoutforVision
|
|
377
388
|
# @option params [String] :client_token
|
378
389
|
# ClientToken is an idempotency token that ensures a call to
|
379
390
|
# `CreateDataset` completes only once. You choose the value to pass. For
|
380
|
-
# example, An issue
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
391
|
+
# example, An issue might prevent you from getting a response from
|
392
|
+
# `CreateDataset`. In this case, safely retry your call to
|
393
|
+
# `CreateDataset` by using the same `ClientToken` parameter value.
|
394
|
+
#
|
395
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
396
|
+
# using inserts a value for you. This prevents retries after a network
|
397
|
+
# error from making multiple dataset creation requests. You'll need to
|
398
|
+
# provide your own value for other use cases.
|
399
|
+
#
|
400
|
+
# An error occurs if the other input parameters are not the same as in
|
401
|
+
# the first request. Using a different value for `ClientToken` is
|
385
402
|
# considered a new call to `CreateDataset`. An idempotency token is
|
386
403
|
# active for 8 hours.
|
387
404
|
#
|
@@ -455,9 +472,15 @@ module Aws::LookoutforVision
|
|
455
472
|
# @option params [String] :client_token
|
456
473
|
# ClientToken is an idempotency token that ensures a call to
|
457
474
|
# `CreateModel` completes only once. You choose the value to pass. For
|
458
|
-
# example, An issue
|
459
|
-
#
|
460
|
-
#
|
475
|
+
# example, An issue might prevent you from getting a response from
|
476
|
+
# `CreateModel`. In this case, safely retry your call to `CreateModel`
|
477
|
+
# by using the same `ClientToken` parameter value.
|
478
|
+
#
|
479
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
480
|
+
# using inserts a value for you. This prevents retries after a network
|
481
|
+
# error from starting multiple training jobs. You'll need to provide
|
482
|
+
# your own value for other use cases.
|
483
|
+
#
|
461
484
|
# An error occurs if the other input parameters are not the same as in
|
462
485
|
# the first request. Using a different value for `ClientToken` is
|
463
486
|
# considered a new call to `CreateModel`. An idempotency token is active
|
@@ -471,11 +494,10 @@ module Aws::LookoutforVision
|
|
471
494
|
# results.
|
472
495
|
#
|
473
496
|
# @option params [String] :kms_key_id
|
474
|
-
# The identifier for your AWS
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
# encrypted by a key that AWS owns and manages.
|
497
|
+
# The identifier for your AWS KMS key. The key is used to encrypt
|
498
|
+
# training and test images copied into the service for model training.
|
499
|
+
# Your source images are unaffected. If this parameter is not specified,
|
500
|
+
# the copied images are encrypted by a key that AWS owns and manages.
|
479
501
|
#
|
480
502
|
# @option params [Array<Types::Tag>] :tags
|
481
503
|
# A set of tags (key-value pairs) that you want to attach to the model.
|
@@ -538,11 +560,17 @@ module Aws::LookoutforVision
|
|
538
560
|
# @option params [String] :client_token
|
539
561
|
# ClientToken is an idempotency token that ensures a call to
|
540
562
|
# `CreateProject` completes only once. You choose the value to pass. For
|
541
|
-
# example, An issue
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
563
|
+
# example, An issue might prevent you from getting a response from
|
564
|
+
# `CreateProject`. In this case, safely retry your call to
|
565
|
+
# `CreateProject` by using the same `ClientToken` parameter value.
|
566
|
+
#
|
567
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
568
|
+
# using inserts a value for you. This prevents retries after a network
|
569
|
+
# error from making multiple project creation requests. You'll need to
|
570
|
+
# provide your own value for other use cases.
|
571
|
+
#
|
572
|
+
# An error occurs if the other input parameters are not the same as in
|
573
|
+
# the first request. Using a different value for `ClientToken` is
|
546
574
|
# considered a new call to `CreateProject`. An idempotency token is
|
547
575
|
# active for 8 hours.
|
548
576
|
#
|
@@ -606,11 +634,17 @@ module Aws::LookoutforVision
|
|
606
634
|
# @option params [String] :client_token
|
607
635
|
# ClientToken is an idempotency token that ensures a call to
|
608
636
|
# `DeleteDataset` completes only once. You choose the value to pass. For
|
609
|
-
# example, An issue
|
610
|
-
#
|
611
|
-
#
|
612
|
-
#
|
613
|
-
#
|
637
|
+
# example, An issue might prevent you from getting a response from
|
638
|
+
# `DeleteDataset`. In this case, safely retry your call to
|
639
|
+
# `DeleteDataset` by using the same `ClientToken` parameter value.
|
640
|
+
#
|
641
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
642
|
+
# using inserts a value for you. This prevents retries after a network
|
643
|
+
# error from making multiple deletetion requests. You'll need to
|
644
|
+
# provide your own value for other use cases.
|
645
|
+
#
|
646
|
+
# An error occurs if the other input parameters are not the same as in
|
647
|
+
# the first request. Using a different value for `ClientToken` is
|
614
648
|
# considered a new call to `DeleteDataset`. An idempotency token is
|
615
649
|
# active for 8 hours.
|
616
650
|
#
|
@@ -640,9 +674,11 @@ module Aws::LookoutforVision
|
|
640
674
|
# running model. To stop a running model, use the StopModel operation.
|
641
675
|
#
|
642
676
|
# It might take a few seconds to delete a model. To determine if a model
|
643
|
-
# has been deleted, call
|
677
|
+
# has been deleted, call ListModels and check if the version of the
|
644
678
|
# model (`ModelVersion`) is in the `Models` array.
|
645
679
|
#
|
680
|
+
#
|
681
|
+
#
|
646
682
|
# This operation requires permissions to perform the
|
647
683
|
# `lookoutvision:DeleteModel` operation.
|
648
684
|
#
|
@@ -656,9 +692,15 @@ module Aws::LookoutforVision
|
|
656
692
|
# @option params [String] :client_token
|
657
693
|
# ClientToken is an idempotency token that ensures a call to
|
658
694
|
# `DeleteModel` completes only once. You choose the value to pass. For
|
659
|
-
# example,
|
660
|
-
#
|
661
|
-
#
|
695
|
+
# example, an issue might prevent you from getting a response from
|
696
|
+
# `DeleteModel`. In this case, safely retry your call to `DeleteModel`
|
697
|
+
# by using the same `ClientToken` parameter value.
|
698
|
+
#
|
699
|
+
# If you don't supply a value for ClientToken, the AWS SDK you are
|
700
|
+
# using inserts a value for you. This prevents retries after a network
|
701
|
+
# error from making multiple model deletion requests. You'll need to
|
702
|
+
# provide your own value for other use cases.
|
703
|
+
#
|
662
704
|
# An error occurs if the other input parameters are not the same as in
|
663
705
|
# the first request. Using a different value for `ClientToken` is
|
664
706
|
# considered a new call to `DeleteModel`. An idempotency token is active
|
@@ -675,7 +717,7 @@ module Aws::LookoutforVision
|
|
675
717
|
#
|
676
718
|
# resp = client.delete_model({
|
677
719
|
# project_name: "ProjectName", # required
|
678
|
-
# model_version: "
|
720
|
+
# model_version: "ModelVersionNoLatest", # required
|
679
721
|
# client_token: "ClientToken",
|
680
722
|
# })
|
681
723
|
#
|
@@ -711,11 +753,17 @@ module Aws::LookoutforVision
|
|
711
753
|
# @option params [String] :client_token
|
712
754
|
# ClientToken is an idempotency token that ensures a call to
|
713
755
|
# `DeleteProject` completes only once. You choose the value to pass. For
|
714
|
-
# example, An issue
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
756
|
+
# example, An issue might prevent you from getting a response from
|
757
|
+
# `DeleteProject`. In this case, safely retry your call to
|
758
|
+
# `DeleteProject` by using the same `ClientToken` parameter value.
|
759
|
+
#
|
760
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
761
|
+
# using inserts a value for you. This prevents retries after a network
|
762
|
+
# error from making multiple project deletion requests. You'll need to
|
763
|
+
# provide your own value for other use cases.
|
764
|
+
#
|
765
|
+
# An error occurs if the other input parameters are not the same as in
|
766
|
+
# the first request. Using a different value for `ClientToken` is
|
719
767
|
# considered a new call to `DeleteProject`. An idempotency token is
|
720
768
|
# active for 8 hours.
|
721
769
|
#
|
@@ -845,6 +893,69 @@ module Aws::LookoutforVision
|
|
845
893
|
req.send_request(options)
|
846
894
|
end
|
847
895
|
|
896
|
+
# Describes an Amazon Lookout for Vision model packaging job.
|
897
|
+
#
|
898
|
+
# This operation requires permissions to perform the
|
899
|
+
# `lookoutvision:DescribeModelPackagingJob` operation.
|
900
|
+
#
|
901
|
+
# For more information, see *Using your Amazon Lookout for Vision model
|
902
|
+
# on an edge device* in the Amazon Lookout for Vision Developer Guide.
|
903
|
+
#
|
904
|
+
# @option params [required, String] :project_name
|
905
|
+
# The name of the project that contains the model packaging job that you
|
906
|
+
# want to describe.
|
907
|
+
#
|
908
|
+
# @option params [required, String] :job_name
|
909
|
+
# The job name for the model packaging job.
|
910
|
+
#
|
911
|
+
# @return [Types::DescribeModelPackagingJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
912
|
+
#
|
913
|
+
# * {Types::DescribeModelPackagingJobResponse#model_packaging_description #model_packaging_description} => Types::ModelPackagingDescription
|
914
|
+
#
|
915
|
+
# @example Request syntax with placeholder values
|
916
|
+
#
|
917
|
+
# resp = client.describe_model_packaging_job({
|
918
|
+
# project_name: "ProjectName", # required
|
919
|
+
# job_name: "ModelPackagingJobName", # required
|
920
|
+
# })
|
921
|
+
#
|
922
|
+
# @example Response structure
|
923
|
+
#
|
924
|
+
# resp.model_packaging_description.job_name #=> String
|
925
|
+
# resp.model_packaging_description.project_name #=> String
|
926
|
+
# resp.model_packaging_description.model_version #=> String
|
927
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.compiler_options #=> String
|
928
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.target_device #=> String, one of "jetson_xavier"
|
929
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.target_platform.os #=> String, one of "LINUX"
|
930
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.target_platform.arch #=> String, one of "ARM64", "X86_64"
|
931
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.target_platform.accelerator #=> String, one of "NVIDIA"
|
932
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.s3_output_location.bucket #=> String
|
933
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.s3_output_location.prefix #=> String
|
934
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.component_name #=> String
|
935
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.component_version #=> String
|
936
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.component_description #=> String
|
937
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.tags #=> Array
|
938
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.tags[0].key #=> String
|
939
|
+
# resp.model_packaging_description.model_packaging_configuration.greengrass.tags[0].value #=> String
|
940
|
+
# resp.model_packaging_description.model_packaging_job_description #=> String
|
941
|
+
# resp.model_packaging_description.model_packaging_method #=> String
|
942
|
+
# resp.model_packaging_description.model_packaging_output_details.greengrass.component_version_arn #=> String
|
943
|
+
# resp.model_packaging_description.model_packaging_output_details.greengrass.component_name #=> String
|
944
|
+
# resp.model_packaging_description.model_packaging_output_details.greengrass.component_version #=> String
|
945
|
+
# resp.model_packaging_description.status #=> String, one of "CREATED", "RUNNING", "SUCCEEDED", "FAILED"
|
946
|
+
# resp.model_packaging_description.status_message #=> String
|
947
|
+
# resp.model_packaging_description.creation_timestamp #=> Time
|
948
|
+
# resp.model_packaging_description.last_updated_timestamp #=> Time
|
949
|
+
#
|
950
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DescribeModelPackagingJob AWS API Documentation
|
951
|
+
#
|
952
|
+
# @overload describe_model_packaging_job(params = {})
|
953
|
+
# @param [Hash] params ({})
|
954
|
+
def describe_model_packaging_job(params = {}, options = {})
|
955
|
+
req = build_request(:describe_model_packaging_job, params)
|
956
|
+
req.send_request(options)
|
957
|
+
end
|
958
|
+
|
848
959
|
# Describes an Amazon Lookout for Vision project.
|
849
960
|
#
|
850
961
|
# This operation requires permissions to perform the
|
@@ -1028,8 +1139,75 @@ module Aws::LookoutforVision
|
|
1028
1139
|
req.send_request(options)
|
1029
1140
|
end
|
1030
1141
|
|
1142
|
+
# Lists the model packaging jobs created for an Amazon Lookout for
|
1143
|
+
# Vision project.
|
1144
|
+
#
|
1145
|
+
# This operation requires permissions to perform the
|
1146
|
+
# `lookoutvision:ListModelPackagingJobs` operation.
|
1147
|
+
#
|
1148
|
+
# For more information, see *Using your Amazon Lookout for Vision model
|
1149
|
+
# on an edge device* in the Amazon Lookout for Vision Developer Guide.
|
1150
|
+
#
|
1151
|
+
# @option params [required, String] :project_name
|
1152
|
+
# The name of the project for which you want to list the model packaging
|
1153
|
+
# jobs.
|
1154
|
+
#
|
1155
|
+
# @option params [String] :next_token
|
1156
|
+
# If the previous response was incomplete (because there is more results
|
1157
|
+
# to retrieve), Amazon Lookout for Vision returns a pagination token in
|
1158
|
+
# the response. You can use this pagination token to retrieve the next
|
1159
|
+
# set of results.
|
1160
|
+
#
|
1161
|
+
# @option params [Integer] :max_results
|
1162
|
+
# The maximum number of results to return per paginated call. The
|
1163
|
+
# largest value you can specify is 100. If you specify a value greater
|
1164
|
+
# than 100, a ValidationException error occurs. The default value is
|
1165
|
+
# 100.
|
1166
|
+
#
|
1167
|
+
# @return [Types::ListModelPackagingJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1168
|
+
#
|
1169
|
+
# * {Types::ListModelPackagingJobsResponse#model_packaging_jobs #model_packaging_jobs} => Array<Types::ModelPackagingJobMetadata>
|
1170
|
+
# * {Types::ListModelPackagingJobsResponse#next_token #next_token} => String
|
1171
|
+
#
|
1172
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1173
|
+
#
|
1174
|
+
# @example Request syntax with placeholder values
|
1175
|
+
#
|
1176
|
+
# resp = client.list_model_packaging_jobs({
|
1177
|
+
# project_name: "ProjectName", # required
|
1178
|
+
# next_token: "PaginationToken",
|
1179
|
+
# max_results: 1,
|
1180
|
+
# })
|
1181
|
+
#
|
1182
|
+
# @example Response structure
|
1183
|
+
#
|
1184
|
+
# resp.model_packaging_jobs #=> Array
|
1185
|
+
# resp.model_packaging_jobs[0].job_name #=> String
|
1186
|
+
# resp.model_packaging_jobs[0].project_name #=> String
|
1187
|
+
# resp.model_packaging_jobs[0].model_version #=> String
|
1188
|
+
# resp.model_packaging_jobs[0].model_packaging_job_description #=> String
|
1189
|
+
# resp.model_packaging_jobs[0].model_packaging_method #=> String
|
1190
|
+
# resp.model_packaging_jobs[0].status #=> String, one of "CREATED", "RUNNING", "SUCCEEDED", "FAILED"
|
1191
|
+
# resp.model_packaging_jobs[0].status_message #=> String
|
1192
|
+
# resp.model_packaging_jobs[0].creation_timestamp #=> Time
|
1193
|
+
# resp.model_packaging_jobs[0].last_updated_timestamp #=> Time
|
1194
|
+
# resp.next_token #=> String
|
1195
|
+
#
|
1196
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/ListModelPackagingJobs AWS API Documentation
|
1197
|
+
#
|
1198
|
+
# @overload list_model_packaging_jobs(params = {})
|
1199
|
+
# @param [Hash] params ({})
|
1200
|
+
def list_model_packaging_jobs(params = {}, options = {})
|
1201
|
+
req = build_request(:list_model_packaging_jobs, params)
|
1202
|
+
req.send_request(options)
|
1203
|
+
end
|
1204
|
+
|
1031
1205
|
# Lists the versions of a model in an Amazon Lookout for Vision project.
|
1032
1206
|
#
|
1207
|
+
# The `ListModels` operation is eventually consistent. Recent calls to
|
1208
|
+
# `CreateModel` might take a while to appear in the response from
|
1209
|
+
# `ListProjects`.
|
1210
|
+
#
|
1033
1211
|
# This operation requires permissions to perform the
|
1034
1212
|
# `lookoutvision:ListModels` operation.
|
1035
1213
|
#
|
@@ -1089,6 +1267,10 @@ module Aws::LookoutforVision
|
|
1089
1267
|
|
1090
1268
|
# Lists the Amazon Lookout for Vision projects in your AWS account.
|
1091
1269
|
#
|
1270
|
+
# The `ListProjects` operation is eventually consistent. Recent calls to
|
1271
|
+
# `CreateProject` and `DeleteProject` might take a while to appear in
|
1272
|
+
# the response from `ListProjects`.
|
1273
|
+
#
|
1092
1274
|
# This operation requires permissions to perform the
|
1093
1275
|
# `lookoutvision:ListProjects` operation.
|
1094
1276
|
#
|
@@ -1196,17 +1378,22 @@ module Aws::LookoutforVision
|
|
1196
1378
|
#
|
1197
1379
|
# @option params [required, Integer] :min_inference_units
|
1198
1380
|
# The minimum number of inference units to use. A single inference unit
|
1199
|
-
# represents 1 hour of processing
|
1200
|
-
#
|
1201
|
-
#
|
1202
|
-
# you use.
|
1381
|
+
# represents 1 hour of processing. Use a higher number to increase the
|
1382
|
+
# TPS throughput of your model. You are charged for the number of
|
1383
|
+
# inference units that you use.
|
1203
1384
|
#
|
1204
1385
|
# @option params [String] :client_token
|
1205
1386
|
# ClientToken is an idempotency token that ensures a call to
|
1206
1387
|
# `StartModel` completes only once. You choose the value to pass. For
|
1207
|
-
# example, An issue
|
1208
|
-
#
|
1209
|
-
#
|
1388
|
+
# example, An issue might prevent you from getting a response from
|
1389
|
+
# `StartModel`. In this case, safely retry your call to `StartModel` by
|
1390
|
+
# using the same `ClientToken` parameter value.
|
1391
|
+
#
|
1392
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
1393
|
+
# using inserts a value for you. This prevents retries after a network
|
1394
|
+
# error from making multiple start requests. You'll need to provide
|
1395
|
+
# your own value for other use cases.
|
1396
|
+
#
|
1210
1397
|
# An error occurs if the other input parameters are not the same as in
|
1211
1398
|
# the first request. Using a different value for `ClientToken` is
|
1212
1399
|
# considered a new call to `StartModel`. An idempotency token is active
|
@@ -1241,6 +1428,130 @@ module Aws::LookoutforVision
|
|
1241
1428
|
req.send_request(options)
|
1242
1429
|
end
|
1243
1430
|
|
1431
|
+
# Starts an Amazon Lookout for Vision model packaging job. A model
|
1432
|
+
# packaging job creates an AWS IoT Greengrass component for a Lookout
|
1433
|
+
# for Vision model. You can use the component to deploy your model to an
|
1434
|
+
# edge device managed by Greengrass.
|
1435
|
+
#
|
1436
|
+
# Use the DescribeModelPackagingJob API to determine the current status
|
1437
|
+
# of the job. The model packaging job is complete if the value of
|
1438
|
+
# `Status` is `SUCCEEDED`.
|
1439
|
+
#
|
1440
|
+
# To deploy the component to the target device, use the component name
|
1441
|
+
# and component version with the AWS IoT Greengrass
|
1442
|
+
# [CreateDeployment][1] API.
|
1443
|
+
#
|
1444
|
+
# This operation requires the following permissions:
|
1445
|
+
#
|
1446
|
+
# * `lookoutvision:StartModelPackagingJob`
|
1447
|
+
#
|
1448
|
+
# * `s3:PutObject`
|
1449
|
+
#
|
1450
|
+
# * `s3:GetBucketLocation`
|
1451
|
+
#
|
1452
|
+
# * `greengrass:CreateComponentVersion`
|
1453
|
+
#
|
1454
|
+
# * `greengrass:DescribeComponent`
|
1455
|
+
#
|
1456
|
+
# * (Optional) `greengrass:TagResource`. Only required if you want to
|
1457
|
+
# tag the component.
|
1458
|
+
#
|
1459
|
+
# For more information, see *Using your Amazon Lookout for Vision model
|
1460
|
+
# on an edge device* in the Amazon Lookout for Vision Developer Guide.
|
1461
|
+
#
|
1462
|
+
#
|
1463
|
+
#
|
1464
|
+
# [1]: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_CreateDeployment.html
|
1465
|
+
#
|
1466
|
+
# @option params [required, String] :project_name
|
1467
|
+
# The name of the project which contains the version of the model that
|
1468
|
+
# you want to package.
|
1469
|
+
#
|
1470
|
+
# @option params [required, String] :model_version
|
1471
|
+
# The version of the model within the project that you want to package.
|
1472
|
+
#
|
1473
|
+
# @option params [String] :job_name
|
1474
|
+
# A name for the model packaging job. If you don't supply a value, the
|
1475
|
+
# service creates a job name for you.
|
1476
|
+
#
|
1477
|
+
# @option params [required, Types::ModelPackagingConfiguration] :configuration
|
1478
|
+
# The configuration for the model packaging job.
|
1479
|
+
#
|
1480
|
+
# @option params [String] :description
|
1481
|
+
# A description for the model packaging job.
|
1482
|
+
#
|
1483
|
+
# @option params [String] :client_token
|
1484
|
+
# ClientToken is an idempotency token that ensures a call to
|
1485
|
+
# `StartModelPackagingJob` completes only once. You choose the value to
|
1486
|
+
# pass. For example, An issue might prevent you from getting a response
|
1487
|
+
# from `StartModelPackagingJob`. In this case, safely retry your call to
|
1488
|
+
# `StartModelPackagingJob` by using the same `ClientToken` parameter
|
1489
|
+
# value.
|
1490
|
+
#
|
1491
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
1492
|
+
# using inserts a value for you. This prevents retries after a network
|
1493
|
+
# error from making multiple dataset creation requests. You'll need to
|
1494
|
+
# provide your own value for other use cases.
|
1495
|
+
#
|
1496
|
+
# An error occurs if the other input parameters are not the same as in
|
1497
|
+
# the first request. Using a different value for `ClientToken` is
|
1498
|
+
# considered a new call to `StartModelPackagingJob`. An idempotency
|
1499
|
+
# token is active for 8 hours.
|
1500
|
+
#
|
1501
|
+
# **A suitable default value is auto-generated.** You should normally
|
1502
|
+
# not need to pass this option.**
|
1503
|
+
#
|
1504
|
+
# @return [Types::StartModelPackagingJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1505
|
+
#
|
1506
|
+
# * {Types::StartModelPackagingJobResponse#job_name #job_name} => String
|
1507
|
+
#
|
1508
|
+
# @example Request syntax with placeholder values
|
1509
|
+
#
|
1510
|
+
# resp = client.start_model_packaging_job({
|
1511
|
+
# project_name: "ProjectName", # required
|
1512
|
+
# model_version: "ModelVersion", # required
|
1513
|
+
# job_name: "ModelPackagingJobName",
|
1514
|
+
# configuration: { # required
|
1515
|
+
# greengrass: { # required
|
1516
|
+
# compiler_options: "CompilerOptions",
|
1517
|
+
# target_device: "jetson_xavier", # accepts jetson_xavier
|
1518
|
+
# target_platform: {
|
1519
|
+
# os: "LINUX", # required, accepts LINUX
|
1520
|
+
# arch: "ARM64", # required, accepts ARM64, X86_64
|
1521
|
+
# accelerator: "NVIDIA", # required, accepts NVIDIA
|
1522
|
+
# },
|
1523
|
+
# s3_output_location: { # required
|
1524
|
+
# bucket: "S3BucketName", # required
|
1525
|
+
# prefix: "S3KeyPrefix",
|
1526
|
+
# },
|
1527
|
+
# component_name: "ComponentName", # required
|
1528
|
+
# component_version: "ComponentVersion",
|
1529
|
+
# component_description: "ComponentDescription",
|
1530
|
+
# tags: [
|
1531
|
+
# {
|
1532
|
+
# key: "TagKey", # required
|
1533
|
+
# value: "TagValue", # required
|
1534
|
+
# },
|
1535
|
+
# ],
|
1536
|
+
# },
|
1537
|
+
# },
|
1538
|
+
# description: "ModelPackagingJobDescription",
|
1539
|
+
# client_token: "ClientToken",
|
1540
|
+
# })
|
1541
|
+
#
|
1542
|
+
# @example Response structure
|
1543
|
+
#
|
1544
|
+
# resp.job_name #=> String
|
1545
|
+
#
|
1546
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/StartModelPackagingJob AWS API Documentation
|
1547
|
+
#
|
1548
|
+
# @overload start_model_packaging_job(params = {})
|
1549
|
+
# @param [Hash] params ({})
|
1550
|
+
def start_model_packaging_job(params = {}, options = {})
|
1551
|
+
req = build_request(:start_model_packaging_job, params)
|
1552
|
+
req.send_request(options)
|
1553
|
+
end
|
1554
|
+
|
1244
1555
|
# Stops the hosting of a running model. The operation might take a while
|
1245
1556
|
# to complete. To check the current status, call DescribeModel.
|
1246
1557
|
#
|
@@ -1258,12 +1569,19 @@ module Aws::LookoutforVision
|
|
1258
1569
|
# @option params [String] :client_token
|
1259
1570
|
# ClientToken is an idempotency token that ensures a call to `StopModel`
|
1260
1571
|
# completes only once. You choose the value to pass. For example, An
|
1261
|
-
# issue
|
1262
|
-
#
|
1263
|
-
# `
|
1264
|
-
#
|
1265
|
-
#
|
1266
|
-
#
|
1572
|
+
# issue might prevent you from getting a response from `StopModel`. In
|
1573
|
+
# this case, safely retry your call to `StopModel` by using the same
|
1574
|
+
# `ClientToken` parameter value.
|
1575
|
+
#
|
1576
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
1577
|
+
# using inserts a value for you. This prevents retries after a network
|
1578
|
+
# error from making multiple stop requests. You'll need to provide your
|
1579
|
+
# own value for other use cases.
|
1580
|
+
#
|
1581
|
+
# An error occurs if the other input parameters are not the same as in
|
1582
|
+
# the first request. Using a different value for `ClientToken` is
|
1583
|
+
# considered a new call to `StopModel`. An idempotency token is active
|
1584
|
+
# for 8 hours.
|
1267
1585
|
#
|
1268
1586
|
# **A suitable default value is auto-generated.** You should normally
|
1269
1587
|
# not need to pass this option.**
|
@@ -1361,9 +1679,22 @@ module Aws::LookoutforVision
|
|
1361
1679
|
req.send_request(options)
|
1362
1680
|
end
|
1363
1681
|
|
1364
|
-
# Adds one or more JSON Line entries
|
1365
|
-
# information about an image used for training or testing
|
1366
|
-
# Lookout for Vision model.
|
1682
|
+
# Adds or updates one or more JSON Line entries in a dataset. A JSON
|
1683
|
+
# Line includes information about an image used for training or testing
|
1684
|
+
# an Amazon Lookout for Vision model.
|
1685
|
+
#
|
1686
|
+
# To update an existing JSON Line, use the `source-ref` field to
|
1687
|
+
# identify the JSON Line. The JSON line that you supply replaces the
|
1688
|
+
# existing JSON line. Any existing annotations that are not in the new
|
1689
|
+
# JSON line are removed from the dataset.
|
1690
|
+
#
|
1691
|
+
# For more information, see *Defining JSON lines for anomaly
|
1692
|
+
# classification* in the Amazon Lookout for Vision Developer Guide.
|
1693
|
+
#
|
1694
|
+
# <note markdown="1"> The images you reference in the `source-ref` field of a JSON line,
|
1695
|
+
# must be in the same S3 bucket as the existing images in the dataset.
|
1696
|
+
#
|
1697
|
+
# </note>
|
1367
1698
|
#
|
1368
1699
|
# Updating a dataset might take a while to complete. To check the
|
1369
1700
|
# current status, call DescribeDataset and check the `Status` field in
|
@@ -1387,13 +1718,20 @@ module Aws::LookoutforVision
|
|
1387
1718
|
# @option params [String] :client_token
|
1388
1719
|
# ClientToken is an idempotency token that ensures a call to
|
1389
1720
|
# `UpdateDatasetEntries` completes only once. You choose the value to
|
1390
|
-
# pass. For example, An issue
|
1391
|
-
#
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
# value for `ClientToken
|
1396
|
-
#
|
1721
|
+
# pass. For example, An issue might prevent you from getting a response
|
1722
|
+
# from `UpdateDatasetEntries`. In this case, safely retry your call to
|
1723
|
+
# `UpdateDatasetEntries` by using the same `ClientToken` parameter
|
1724
|
+
# value.
|
1725
|
+
#
|
1726
|
+
# If you don't supply a value for `ClientToken`, the AWS SDK you are
|
1727
|
+
# using inserts a value for you. This prevents retries after a network
|
1728
|
+
# error from making multiple updates with the same dataset entries.
|
1729
|
+
# You'll need to provide your own value for other use cases.
|
1730
|
+
#
|
1731
|
+
# An error occurs if the other input parameters are not the same as in
|
1732
|
+
# the first request. Using a different value for `ClientToken` is
|
1733
|
+
# considered a new call to `UpdateDatasetEntries`. An idempotency token
|
1734
|
+
# is active for 8 hours.
|
1397
1735
|
#
|
1398
1736
|
# **A suitable default value is auto-generated.** You should normally
|
1399
1737
|
# not need to pass this option.**
|
@@ -1437,7 +1775,7 @@ module Aws::LookoutforVision
|
|
1437
1775
|
params: params,
|
1438
1776
|
config: config)
|
1439
1777
|
context[:gem_name] = 'aws-sdk-lookoutforvision'
|
1440
|
-
context[:gem_version] = '1.
|
1778
|
+
context[:gem_version] = '1.13.0'
|
1441
1779
|
Seahorse::Client::Request.new(handlers, context)
|
1442
1780
|
end
|
1443
1781
|
|