aws-sdk-lookoutforvision 1.15.0 → 1.17.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: 1b85b666e9666266e00f26ee190f05ed419d177d77ba8cadd49783bc4230826f
4
- data.tar.gz: 7d7434eebc074e2499b98be6afec242c742df7f3ecac18d89314d49f61600f6d
3
+ metadata.gz: 6bc77056c678b97fde17f2e3e2ea4901802410a303fbf5fa0ab292b1d0f8d970
4
+ data.tar.gz: 6f7aff23f999668672635c99d08452e8473b16bfec2de783b62652f4b3352891
5
5
  SHA512:
6
- metadata.gz: 7ec0fd5d4c30059ae040d407e6040a22603c3a6b64591912a913590e592c458c149f6bc95f8bf00f05496fa1e4d70c3f099b208a1b0d4d10e5a3d7aa4c7bec90
7
- data.tar.gz: 067b2b61f02d4d04e923be0a1060b371ed2d67dee0d9e56338805d0570979429357616b370ecce45d95160658ebdbb72f39162a3a149c40d9a6e43cabd2228b9
6
+ metadata.gz: bab047eb3559132536b6cf67a02f376710f8b8f0c4e8735d851d4da3d2a8e873ccd6de3d01ea0f1a524a36ae81325f68c026485c12beee74597ea84a1d5a4fd6
7
+ data.tar.gz: '059bad1ed278246d8dcb673ff143a7978f58fbc72fb381199201f1b908fc3436d51be0b46f430581664cf95810dd8baf895ad02fd52d3d436484b4fa33757abd'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.16.0 (2022-07-28)
10
+ ------------------
11
+
12
+ * Feature - This release introduces support for image segmentation models and updates CPU accelerator options for models hosted on edge devices.
13
+
4
14
  1.15.0 (2022-07-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.17.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:lookoutforvision)
@@ -79,8 +79,9 @@ module Aws::LookoutforVision
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::LookoutforVision::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::LookoutforVision
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::LookoutforVision
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::LookoutforVision::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LookoutforVision::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -1002,7 +1019,9 @@ module Aws::LookoutforVision
1002
1019
  #
1003
1020
  # The response from `DetectAnomalies` includes a boolean prediction that
1004
1021
  # the image contains one or more anomalies and a confidence value for
1005
- # the prediction.
1022
+ # the prediction. If the model is an image segmentation model, the
1023
+ # response also includes segmentation information for each type of
1024
+ # anomaly found in the image.
1006
1025
  #
1007
1026
  # <note markdown="1"> Before calling `DetectAnomalies`, you must first start your model with
1008
1027
  # the StartModel operation. You are charged for the amount of time, in
@@ -1012,6 +1031,9 @@ module Aws::LookoutforVision
1012
1031
  #
1013
1032
  # </note>
1014
1033
  #
1034
+ # For more information, see *Detecting anomalies in an image* in the
1035
+ # Amazon Lookout for Vision developer guide.
1036
+ #
1015
1037
  # This operation requires permissions to perform the
1016
1038
  # `lookoutvision:DetectAnomalies` operation.
1017
1039
  #
@@ -1047,6 +1069,11 @@ module Aws::LookoutforVision
1047
1069
  # resp.detect_anomaly_result.source.type #=> String
1048
1070
  # resp.detect_anomaly_result.is_anomalous #=> Boolean
1049
1071
  # resp.detect_anomaly_result.confidence #=> Float
1072
+ # resp.detect_anomaly_result.anomalies #=> Array
1073
+ # resp.detect_anomaly_result.anomalies[0].name #=> String
1074
+ # resp.detect_anomaly_result.anomalies[0].pixel_anomaly.total_percentage_area #=> Float
1075
+ # resp.detect_anomaly_result.anomalies[0].pixel_anomaly.color #=> String
1076
+ # resp.detect_anomaly_result.anomaly_mask #=> String
1050
1077
  #
1051
1078
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DetectAnomalies AWS API Documentation
1052
1079
  #
@@ -1529,7 +1556,7 @@ module Aws::LookoutforVision
1529
1556
  # target_platform: {
1530
1557
  # os: "LINUX", # required, accepts LINUX
1531
1558
  # arch: "ARM64", # required, accepts ARM64, X86_64
1532
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1559
+ # accelerator: "NVIDIA", # accepts NVIDIA
1533
1560
  # },
1534
1561
  # s3_output_location: { # required
1535
1562
  # bucket: "S3BucketName", # required
@@ -1786,7 +1813,7 @@ module Aws::LookoutforVision
1786
1813
  params: params,
1787
1814
  config: config)
1788
1815
  context[:gem_name] = 'aws-sdk-lookoutforvision'
1789
- context[:gem_version] = '1.15.0'
1816
+ context[:gem_version] = '1.17.0'
1790
1817
  Seahorse::Client::Request.new(handlers, context)
1791
1818
  end
1792
1819
 
@@ -14,9 +14,14 @@ module Aws::LookoutforVision
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ Anomaly = Shapes::StructureShape.new(name: 'Anomaly')
17
18
  AnomalyClassFilter = Shapes::StringShape.new(name: 'AnomalyClassFilter')
19
+ AnomalyList = Shapes::ListShape.new(name: 'AnomalyList')
20
+ AnomalyMask = Shapes::BlobShape.new(name: 'AnomalyMask')
21
+ AnomalyName = Shapes::StringShape.new(name: 'AnomalyName')
18
22
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
23
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
24
+ Color = Shapes::StringShape.new(name: 'Color')
20
25
  CompilerOptions = Shapes::StringShape.new(name: 'CompilerOptions')
21
26
  ComponentDescription = Shapes::StringShape.new(name: 'ComponentDescription')
22
27
  ComponentName = Shapes::StringShape.new(name: 'ComponentName')
@@ -107,6 +112,7 @@ module Aws::LookoutforVision
107
112
  OutputS3Object = Shapes::StructureShape.new(name: 'OutputS3Object')
108
113
  PageSize = Shapes::IntegerShape.new(name: 'PageSize')
109
114
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
115
+ PixelAnomaly = Shapes::StructureShape.new(name: 'PixelAnomaly')
110
116
  ProjectArn = Shapes::StringShape.new(name: 'ProjectArn')
111
117
  ProjectDescription = Shapes::StructureShape.new(name: 'ProjectDescription')
112
118
  ProjectMetadata = Shapes::StructureShape.new(name: 'ProjectMetadata')
@@ -152,6 +158,12 @@ module Aws::LookoutforVision
152
158
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
153
159
  AccessDeniedException.struct_class = Types::AccessDeniedException
154
160
 
161
+ Anomaly.add_member(:name, Shapes::ShapeRef.new(shape: AnomalyName, location_name: "Name"))
162
+ Anomaly.add_member(:pixel_anomaly, Shapes::ShapeRef.new(shape: PixelAnomaly, location_name: "PixelAnomaly"))
163
+ Anomaly.struct_class = Types::Anomaly
164
+
165
+ AnomalyList.member = Shapes::ShapeRef.new(shape: Anomaly)
166
+
155
167
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
156
168
  ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "ResourceId"))
157
169
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
@@ -278,6 +290,8 @@ module Aws::LookoutforVision
278
290
  DetectAnomalyResult.add_member(:source, Shapes::ShapeRef.new(shape: ImageSource, location_name: "Source"))
279
291
  DetectAnomalyResult.add_member(:is_anomalous, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsAnomalous"))
280
292
  DetectAnomalyResult.add_member(:confidence, Shapes::ShapeRef.new(shape: Float, location_name: "Confidence"))
293
+ DetectAnomalyResult.add_member(:anomalies, Shapes::ShapeRef.new(shape: AnomalyList, location_name: "Anomalies"))
294
+ DetectAnomalyResult.add_member(:anomaly_mask, Shapes::ShapeRef.new(shape: AnomalyMask, location_name: "AnomalyMask"))
281
295
  DetectAnomalyResult.struct_class = Types::DetectAnomalyResult
282
296
 
283
297
  GreengrassConfiguration.add_member(:compiler_options, Shapes::ShapeRef.new(shape: CompilerOptions, location_name: "CompilerOptions"))
@@ -425,6 +439,10 @@ module Aws::LookoutforVision
425
439
  OutputS3Object.add_member(:key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "Key"))
426
440
  OutputS3Object.struct_class = Types::OutputS3Object
427
441
 
442
+ PixelAnomaly.add_member(:total_percentage_area, Shapes::ShapeRef.new(shape: Float, location_name: "TotalPercentageArea"))
443
+ PixelAnomaly.add_member(:color, Shapes::ShapeRef.new(shape: Color, location_name: "Color"))
444
+ PixelAnomaly.struct_class = Types::PixelAnomaly
445
+
428
446
  ProjectDescription.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
429
447
  ProjectDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
430
448
  ProjectDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
@@ -499,7 +517,7 @@ module Aws::LookoutforVision
499
517
 
500
518
  TargetPlatform.add_member(:os, Shapes::ShapeRef.new(shape: TargetPlatformOs, required: true, location_name: "Os"))
501
519
  TargetPlatform.add_member(:arch, Shapes::ShapeRef.new(shape: TargetPlatformArch, required: true, location_name: "Arch"))
502
- TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, required: true, location_name: "Accelerator"))
520
+ TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, location_name: "Accelerator"))
503
521
  TargetPlatform.struct_class = Types::TargetPlatform
504
522
 
505
523
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::LookoutforVision
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::LookoutforVision
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
+ ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
+ ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
+ aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
+ OiJCb29sZWF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VybCI6Imh0dHBz
106
+ Oi8vbG9va291dHZpc2lvbi57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ru
107
+ c1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBl
108
+ IjoiZW5kcG9pbnQifV19XX0=
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,323 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LookoutforVision
12
+ module Endpoints
13
+
14
+ class CreateDataset
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::LookoutforVision::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateModel
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::LookoutforVision::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class CreateProject
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::LookoutforVision::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DeleteDataset
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::LookoutforVision::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteModel
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::LookoutforVision::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DeleteProject
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::LookoutforVision::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DescribeDataset
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::LookoutforVision::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class DescribeModel
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::LookoutforVision::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class DescribeModelPackagingJob
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::LookoutforVision::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class DescribeProject
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::LookoutforVision::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class DetectAnomalies
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::LookoutforVision::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ListDatasetEntries
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::LookoutforVision::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListModelPackagingJobs
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::LookoutforVision::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListModels
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::LookoutforVision::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class ListProjects
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::LookoutforVision::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class ListTagsForResource
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::LookoutforVision::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class StartModel
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::LookoutforVision::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class StartModelPackagingJob
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::LookoutforVision::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class StopModel
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::LookoutforVision::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class TagResource
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::LookoutforVision::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ class UntagResource
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::LookoutforVision::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ class UpdateDatasetEntries
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::LookoutforVision::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
322
+ end
323
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LookoutforVision
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::LookoutforVision::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::LookoutforVision::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::LookoutforVision::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_dataset
60
+ Aws::LookoutforVision::Endpoints::CreateDataset.build(context)
61
+ when :create_model
62
+ Aws::LookoutforVision::Endpoints::CreateModel.build(context)
63
+ when :create_project
64
+ Aws::LookoutforVision::Endpoints::CreateProject.build(context)
65
+ when :delete_dataset
66
+ Aws::LookoutforVision::Endpoints::DeleteDataset.build(context)
67
+ when :delete_model
68
+ Aws::LookoutforVision::Endpoints::DeleteModel.build(context)
69
+ when :delete_project
70
+ Aws::LookoutforVision::Endpoints::DeleteProject.build(context)
71
+ when :describe_dataset
72
+ Aws::LookoutforVision::Endpoints::DescribeDataset.build(context)
73
+ when :describe_model
74
+ Aws::LookoutforVision::Endpoints::DescribeModel.build(context)
75
+ when :describe_model_packaging_job
76
+ Aws::LookoutforVision::Endpoints::DescribeModelPackagingJob.build(context)
77
+ when :describe_project
78
+ Aws::LookoutforVision::Endpoints::DescribeProject.build(context)
79
+ when :detect_anomalies
80
+ Aws::LookoutforVision::Endpoints::DetectAnomalies.build(context)
81
+ when :list_dataset_entries
82
+ Aws::LookoutforVision::Endpoints::ListDatasetEntries.build(context)
83
+ when :list_model_packaging_jobs
84
+ Aws::LookoutforVision::Endpoints::ListModelPackagingJobs.build(context)
85
+ when :list_models
86
+ Aws::LookoutforVision::Endpoints::ListModels.build(context)
87
+ when :list_projects
88
+ Aws::LookoutforVision::Endpoints::ListProjects.build(context)
89
+ when :list_tags_for_resource
90
+ Aws::LookoutforVision::Endpoints::ListTagsForResource.build(context)
91
+ when :start_model
92
+ Aws::LookoutforVision::Endpoints::StartModel.build(context)
93
+ when :start_model_packaging_job
94
+ Aws::LookoutforVision::Endpoints::StartModelPackagingJob.build(context)
95
+ when :stop_model
96
+ Aws::LookoutforVision::Endpoints::StopModel.build(context)
97
+ when :tag_resource
98
+ Aws::LookoutforVision::Endpoints::TagResource.build(context)
99
+ when :untag_resource
100
+ Aws::LookoutforVision::Endpoints::UntagResource.build(context)
101
+ when :update_dataset_entries
102
+ Aws::LookoutforVision::Endpoints::UpdateDatasetEntries.build(context)
103
+ end
104
+ end
105
+ end
106
+
107
+ def add_handlers(handlers, _config)
108
+ handlers.add(Handler, step: :build, priority: 75)
109
+ end
110
+ end
111
+ end
112
+ end
@@ -23,6 +23,29 @@ module Aws::LookoutforVision
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
+ # Information about an anomaly type found on an image by an image
27
+ # segmentation model. For more information, see DetectAnomalies.
28
+ #
29
+ # @!attribute [rw] name
30
+ # The name of an anomaly type found in an image. `Name` maps to an
31
+ # anomaly type in the training dataset, apart from the anomaly type
32
+ # `background`. The service automatically inserts the `background`
33
+ # anomaly type into the response from `DetectAnomalies`.
34
+ # @return [String]
35
+ #
36
+ # @!attribute [rw] pixel_anomaly
37
+ # Information about the pixel mask that covers an anomaly type.
38
+ # @return [Types::PixelAnomaly]
39
+ #
40
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/Anomaly AWS API Documentation
41
+ #
42
+ class Anomaly < Struct.new(
43
+ :name,
44
+ :pixel_anomaly)
45
+ SENSITIVE = []
46
+ include Aws::Structure
47
+ end
48
+
26
49
  # The update or deletion of a resource caused an inconsistent state.
27
50
  #
28
51
  # @!attribute [rw] message
@@ -812,6 +835,12 @@ module Aws::LookoutforVision
812
835
  end
813
836
 
814
837
  # The prediction results from a call to DetectAnomalies.
838
+ # `DetectAnomalyResult` includes classification information for the
839
+ # prediction (`IsAnomalous` and `Confidence`). If the model you use is
840
+ # an image segementation model, `DetectAnomalyResult` also includes
841
+ # segmentation information (`Anomalies` and `AnomalyMask`).
842
+ # Classification information is calculated separately from segmentation
843
+ # information and you shouldn't assume a relationship between them.
815
844
  #
816
845
  # @!attribute [rw] source
817
846
  # The source of the image that was analyzed. `direct` means that the
@@ -820,20 +849,51 @@ module Aws::LookoutforVision
820
849
  # @return [Types::ImageSource]
821
850
  #
822
851
  # @!attribute [rw] is_anomalous
823
- # True if the image contains an anomaly, otherwise false.
852
+ # True if Amazon Lookout for Vision classifies the image as containing
853
+ # an anomaly, otherwise false.
824
854
  # @return [Boolean]
825
855
  #
826
856
  # @!attribute [rw] confidence
827
- # The confidence that Amazon Lookout for Vision has in the accuracy of
828
- # the prediction.
857
+ # The confidence that Lookout for Vision has in the accuracy of the
858
+ # classification in `IsAnomalous`.
829
859
  # @return [Float]
830
860
  #
861
+ # @!attribute [rw] anomalies
862
+ # If the model is an image segmentation model, `Anomalies` contains a
863
+ # list of anomaly types found in the image. There is one entry for
864
+ # each type of anomaly found (even if multiple instances of an anomaly
865
+ # type exist on the image). The first element in the list is always an
866
+ # anomaly type representing the image background ('background') and
867
+ # shouldn't be considered an anomaly. Amazon Lookout for Vision
868
+ # automatically add the background anomaly type to the response, and
869
+ # you don't need to declare a background anomaly type in your
870
+ # dataset.
871
+ #
872
+ # If the list has one entry ('background'), no anomalies were found
873
+ # on the image.
874
+ #
875
+ #
876
+ #
877
+ # An image classification model doesn't return an `Anomalies` list.
878
+ # @return [Array<Types::Anomaly>]
879
+ #
880
+ # @!attribute [rw] anomaly_mask
881
+ # If the model is an image segmentation model, `AnomalyMask` contains
882
+ # pixel masks that covers all anomaly types found on the image. Each
883
+ # anomaly type has a different mask color. To map a color to an
884
+ # anomaly type, see the `color` field of the PixelAnomaly object.
885
+ #
886
+ # An image classification model doesn't return an `Anomalies` list.
887
+ # @return [String]
888
+ #
831
889
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/DetectAnomalyResult AWS API Documentation
832
890
  #
833
891
  class DetectAnomalyResult < Struct.new(
834
892
  :source,
835
893
  :is_anomalous,
836
- :confidence)
894
+ :confidence,
895
+ :anomalies,
896
+ :anomaly_mask)
837
897
  SENSITIVE = []
838
898
  include Aws::Structure
839
899
  end
@@ -857,7 +917,7 @@ module Aws::LookoutforVision
857
917
  # target_platform: {
858
918
  # os: "LINUX", # required, accepts LINUX
859
919
  # arch: "ARM64", # required, accepts ARM64, X86_64
860
- # accelerator: "NVIDIA", # required, accepts NVIDIA
920
+ # accelerator: "NVIDIA", # accepts NVIDIA
861
921
  # },
862
922
  # s3_output_location: { # required
863
923
  # bucket: "S3BucketName", # required
@@ -876,9 +936,9 @@ module Aws::LookoutforVision
876
936
  #
877
937
  # @!attribute [rw] compiler_options
878
938
  # Additional compiler options for the Greengrass component. Currently,
879
- # only NVIDIA Graphics Processing Units (GPU) are supported. If you
880
- # specify `TargetPlatform`, you must specify `CompilerOptions`. If you
881
- # specify `TargetDevice`, don't specify `CompilerOptions`.
939
+ # only NVIDIA Graphics Processing Units (GPU) and CPU accelerators are
940
+ # supported. If you specify `TargetDevice`, don't specify
941
+ # `CompilerOptions`.
882
942
  #
883
943
  # For more information, see *Compiler options* in the Amazon Lookout
884
944
  # for Vision Developer Guide.
@@ -1469,7 +1529,7 @@ module Aws::LookoutforVision
1469
1529
  # target_platform: {
1470
1530
  # os: "LINUX", # required, accepts LINUX
1471
1531
  # arch: "ARM64", # required, accepts ARM64, X86_64
1472
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1532
+ # accelerator: "NVIDIA", # accepts NVIDIA
1473
1533
  # },
1474
1534
  # s3_output_location: { # required
1475
1535
  # bucket: "S3BucketName", # required
@@ -1711,6 +1771,29 @@ module Aws::LookoutforVision
1711
1771
  include Aws::Structure
1712
1772
  end
1713
1773
 
1774
+ # Information about the pixels in an anomaly mask. For more information,
1775
+ # see Anomaly. `PixelAnomaly` is only returned by image segmentation
1776
+ # models.
1777
+ #
1778
+ # @!attribute [rw] total_percentage_area
1779
+ # The percentage area of the image that the anomaly type covers.
1780
+ # @return [Float]
1781
+ #
1782
+ # @!attribute [rw] color
1783
+ # A hex color value for the mask that covers an anomaly type. Each
1784
+ # anomaly type has a different mask color. The color maps to the color
1785
+ # of the anomaly type used in the training dataset.
1786
+ # @return [String]
1787
+ #
1788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/PixelAnomaly AWS API Documentation
1789
+ #
1790
+ class PixelAnomaly < Struct.new(
1791
+ :total_percentage_area,
1792
+ :color)
1793
+ SENSITIVE = []
1794
+ include Aws::Structure
1795
+ end
1796
+
1714
1797
  # Describe an Amazon Lookout for Vision project. For more information,
1715
1798
  # see DescribeProject.
1716
1799
  #
@@ -1872,7 +1955,7 @@ module Aws::LookoutforVision
1872
1955
  # target_platform: {
1873
1956
  # os: "LINUX", # required, accepts LINUX
1874
1957
  # arch: "ARM64", # required, accepts ARM64, X86_64
1875
- # accelerator: "NVIDIA", # required, accepts NVIDIA
1958
+ # accelerator: "NVIDIA", # accepts NVIDIA
1876
1959
  # },
1877
1960
  # s3_output_location: { # required
1878
1961
  # bucket: "S3BucketName", # required
@@ -2175,7 +2258,7 @@ module Aws::LookoutforVision
2175
2258
  # {
2176
2259
  # os: "LINUX", # required, accepts LINUX
2177
2260
  # arch: "ARM64", # required, accepts ARM64, X86_64
2178
- # accelerator: "NVIDIA", # required, accepts NVIDIA
2261
+ # accelerator: "NVIDIA", # accepts NVIDIA
2179
2262
  # }
2180
2263
  #
2181
2264
  # @!attribute [rw] os
@@ -2190,10 +2273,20 @@ module Aws::LookoutforVision
2190
2273
  # @return [String]
2191
2274
  #
2192
2275
  # @!attribute [rw] accelerator
2193
- # The target accelerator for the model. NVIDIA (Nvidia graphics
2194
- # processing unit) is the only accelerator that is currently
2195
- # supported. You must also specify the `gpu-code`, `trt-ver`, and
2196
- # `cuda-ver` compiler options.
2276
+ # The target accelerator for the model. Currently, Amazon Lookout for
2277
+ # Vision only supports NVIDIA (Nvidia graphics processing unit) and
2278
+ # CPU accelerators. If you specify NVIDIA as an accelerator, you must
2279
+ # also specify the `gpu-code`, `trt-ver`, and `cuda-ver` compiler
2280
+ # options. If you don't specify an accelerator, Lookout for Vision
2281
+ # uses the CPU for compilation and we highly recommend that you use
2282
+ # the GreengrassConfiguration$CompilerOptions field. For example, you
2283
+ # can use the following compiler options for CPU:
2284
+ #
2285
+ # * `mcpu`\: CPU micro-architecture. For example, `\{'mcpu':
2286
+ # 'skylake-avx512'\}`
2287
+ #
2288
+ # * `mattr`\: CPU flags. For example, `\{'mattr': ['+neon',
2289
+ # '+vfpv4']\}`
2197
2290
  # @return [String]
2198
2291
  #
2199
2292
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutvision-2020-11-20/TargetPlatform AWS API Documentation
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-lookoutforvision/types'
15
15
  require_relative 'aws-sdk-lookoutforvision/client_api'
16
+ require_relative 'aws-sdk-lookoutforvision/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-lookoutforvision/client'
17
18
  require_relative 'aws-sdk-lookoutforvision/errors'
18
19
  require_relative 'aws-sdk-lookoutforvision/resource'
20
+ require_relative 'aws-sdk-lookoutforvision/endpoint_parameters'
21
+ require_relative 'aws-sdk-lookoutforvision/endpoint_provider'
22
+ require_relative 'aws-sdk-lookoutforvision/endpoints'
19
23
  require_relative 'aws-sdk-lookoutforvision/customizations'
20
24
 
21
25
  # This module provides support for Amazon Lookout for Vision. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-lookoutforvision/customizations'
48
52
  # @!group service
49
53
  module Aws::LookoutforVision
50
54
 
51
- GEM_VERSION = '1.15.0'
55
+ GEM_VERSION = '1.17.0'
52
56
 
53
57
  end
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.15.0
4
+ version: 1.17.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: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-10-25 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-lookoutforvision/client.rb
60
60
  - lib/aws-sdk-lookoutforvision/client_api.rb
61
61
  - lib/aws-sdk-lookoutforvision/customizations.rb
62
+ - lib/aws-sdk-lookoutforvision/endpoint_parameters.rb
63
+ - lib/aws-sdk-lookoutforvision/endpoint_provider.rb
64
+ - lib/aws-sdk-lookoutforvision/endpoints.rb
62
65
  - lib/aws-sdk-lookoutforvision/errors.rb
66
+ - lib/aws-sdk-lookoutforvision/plugins/endpoints.rb
63
67
  - lib/aws-sdk-lookoutforvision/resource.rb
64
68
  - lib/aws-sdk-lookoutforvision/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby