aws-sdk-devicefarm 1.30.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9f66577057c7fdf55b3b5bb1f8b99a9dad584a5c
4
- data.tar.gz: 3399c43a8d26aad047ab1b052f6db63afc94f7d1
2
+ SHA256:
3
+ metadata.gz: '0755891181c9356167a4b035134708102a1f14eaac6c5bd6be29ea13702cb69e'
4
+ data.tar.gz: 1cf4d3ded19fb79d3f90be5f5e3cec1c6b309aee7e4f95510e607da251bd1579
5
5
  SHA512:
6
- metadata.gz: e4c72022390206b4977dbd181651119d4edf02632583985d7753f47db593e686a9e2d888b7fd46364e35c3b8a63a14fc21de5a31005eb61327c224a7a2130fad
7
- data.tar.gz: 074a97d358027d02e18ed63d0157e779827485e934d82d346ed8794103d207c2ca6c4dfaf55302891b16bb8c2825244795bdd21597c41824aa4048b22ad2c6a9
6
+ metadata.gz: dc4b9f15a06a6b7eee25f2fcceb8af156b575bc0c1a660cde71559f87218bbbebb45d14b0b4b6a6d7a57266c025a967cbdd9faa41c4979703290f5409a2c503c
7
+ data.tar.gz: 4518092bb037db0cdce0f418dd4b24989855b35f155c3a0ea7c78273f92fcba0f25a911fe6bade031baa98a938c562ad3570fe4c62eb51d69b62f292bad7f3d0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-devicefarm/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # device_farm = Aws::DeviceFarm::Client.new
30
+ # resp = device_farm.create_device_pool(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from AWS Device Farm all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from AWS Device Farm are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
33
38
  #
34
39
  # begin
35
40
  # # do stuff
36
41
  # rescue Aws::DeviceFarm::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all AWS Device Farm API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-devicefarm/customizations'
42
47
  # @service
43
48
  module Aws::DeviceFarm
44
49
 
45
- GEM_VERSION = '1.30.0'
50
+ GEM_VERSION = '1.35.0'
46
51
 
47
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,12 +26,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:devicefarm)
31
34
 
32
35
  module Aws::DeviceFarm
36
+ # An API client for DeviceFarm. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::DeviceFarm::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
33
48
  class Client < Seahorse::Client::Base
34
49
 
35
50
  include Aws::ClientStubs
@@ -57,6 +72,7 @@ module Aws::DeviceFarm
57
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
60
76
  add_plugin(Aws::Plugins::SignatureV4)
61
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
78
 
@@ -93,7 +109,7 @@ module Aws::DeviceFarm
93
109
  # @option options [required, String] :region
94
110
  # The AWS region to connect to. The configured `:region` is
95
111
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
97
113
  #
98
114
  # * `Aws.config[:region]`
99
115
  # * `ENV['AWS_REGION']`
@@ -108,6 +124,12 @@ module Aws::DeviceFarm
108
124
  # When set to `true`, a thread polling for endpoints will be running in
109
125
  # the background every 60 secs (default). Defaults to `false`.
110
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
111
133
  # @option options [Boolean] :client_side_monitoring (false)
112
134
  # When `true`, client-side metrics will be collected for all API requests from
113
135
  # this client.
@@ -132,6 +154,10 @@ module Aws::DeviceFarm
132
154
  # When `true`, an attempt is made to coerce request parameters into
133
155
  # the required types.
134
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
135
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
162
  # Set to true to disable SDK automatically adding host prefix
137
163
  # to default service endpoint when available.
@@ -139,7 +165,7 @@ module Aws::DeviceFarm
139
165
  # @option options [String] :endpoint
140
166
  # The client endpoint is normally constructed from the `:region`
141
167
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
169
  #
144
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +180,7 @@ module Aws::DeviceFarm
154
180
  # requests fetching endpoints information. Defaults to 60 sec.
155
181
  #
156
182
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
184
  #
159
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
186
  # The log formatter.
@@ -166,15 +192,29 @@ module Aws::DeviceFarm
166
192
  # The Logger instance to send log messages to. If this option
167
193
  # is not set, logging will be disabled.
168
194
  #
195
+ # @option options [Integer] :max_attempts (3)
196
+ # An integer representing the maximum number attempts that will be made for
197
+ # a single request, including the initial attempt. For example,
198
+ # setting this value to 5 will result in a request being retried up to
199
+ # 4 times. Used in `standard` and `adaptive` retry modes.
200
+ #
169
201
  # @option options [String] :profile ("default")
170
202
  # Used when loading credentials from the shared credentials file
171
203
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
204
  #
205
+ # @option options [Proc] :retry_backoff
206
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
207
+ # This option is only used in the `legacy` retry mode.
208
+ #
173
209
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
210
+ # The base delay in seconds used by the default backoff function. This option
211
+ # is only used in the `legacy` retry mode.
175
212
  #
176
213
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
214
+ # A delay randomiser function used by the default backoff function.
215
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
216
+ # otherwise a Proc that takes and returns a number. This option is only used
217
+ # in the `legacy` retry mode.
178
218
  #
179
219
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
220
  #
@@ -182,11 +222,30 @@ module Aws::DeviceFarm
182
222
  # The maximum number of times to retry failed requests. Only
183
223
  # ~ 500 level server errors and certain ~ 400 level client errors
184
224
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
225
+ # checksum errors, networking errors, timeout errors, auth errors,
226
+ # endpoint discovery, and errors from expired credentials.
227
+ # This option is only used in the `legacy` retry mode.
187
228
  #
188
229
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
230
+ # The maximum number of seconds to delay between retries (0 for no limit)
231
+ # used by the default backoff function. This option is only used in the
232
+ # `legacy` retry mode.
233
+ #
234
+ # @option options [String] :retry_mode ("legacy")
235
+ # Specifies which retry algorithm to use. Values are:
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
190
249
  #
191
250
  # @option options [String] :secret_access_key
192
251
  #
@@ -219,16 +278,15 @@ module Aws::DeviceFarm
219
278
  # requests through. Formatted like 'http://proxy.com:123'.
220
279
  #
221
280
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
281
+ # seconds to wait when opening a HTTP session before raising a
223
282
  # `Timeout::Error`.
224
283
  #
225
284
  # @option options [Integer] :http_read_timeout (60) The default
226
285
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
286
+ # safely be set per-request on the session.
229
287
  #
230
288
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
289
+ # seconds a connection is allowed to sit idle before it is
232
290
  # considered stale. Stale connections are closed and removed
233
291
  # from the pool before making a request.
234
292
  #
@@ -237,7 +295,7 @@ module Aws::DeviceFarm
237
295
  # request body. This option has no effect unless the request has
238
296
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
297
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
298
+ # request on the session.
241
299
  #
242
300
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
301
  # HTTP debug output will be sent to the `:logger`.
@@ -1955,6 +2013,8 @@ module Aws::DeviceFarm
1955
2013
  # * {Types::GetOfferingStatusResult#next_period #next_period} => Hash&lt;String,Types::OfferingStatus&gt;
1956
2014
  # * {Types::GetOfferingStatusResult#next_token #next_token} => String
1957
2015
  #
2016
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2017
+ #
1958
2018
  #
1959
2019
  # @example Example: To get status information about device offerings
1960
2020
  #
@@ -2692,6 +2752,8 @@ module Aws::DeviceFarm
2692
2752
  # * {Types::ListArtifactsResult#artifacts #artifacts} => Array&lt;Types::Artifact&gt;
2693
2753
  # * {Types::ListArtifactsResult#next_token #next_token} => String
2694
2754
  #
2755
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2756
+ #
2695
2757
  #
2696
2758
  # @example Example: To list artifacts for a resource
2697
2759
  #
@@ -2806,6 +2868,8 @@ module Aws::DeviceFarm
2806
2868
  # * {Types::ListDevicePoolsResult#device_pools #device_pools} => Array&lt;Types::DevicePool&gt;
2807
2869
  # * {Types::ListDevicePoolsResult#next_token #next_token} => String
2808
2870
  #
2871
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2872
+ #
2809
2873
  #
2810
2874
  # @example Example: To get information about device pools
2811
2875
  #
@@ -2963,6 +3027,8 @@ module Aws::DeviceFarm
2963
3027
  # * {Types::ListDevicesResult#devices #devices} => Array&lt;Types::Device&gt;
2964
3028
  # * {Types::ListDevicesResult#next_token #next_token} => String
2965
3029
  #
3030
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3031
+ #
2966
3032
  #
2967
3033
  # @example Example: To get information about devices
2968
3034
  #
@@ -3100,6 +3166,8 @@ module Aws::DeviceFarm
3100
3166
  # * {Types::ListJobsResult#jobs #jobs} => Array&lt;Types::Job&gt;
3101
3167
  # * {Types::ListJobsResult#next_token #next_token} => String
3102
3168
  #
3169
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3170
+ #
3103
3171
  #
3104
3172
  # @example Example: To get information about jobs
3105
3173
  #
@@ -3300,6 +3368,8 @@ module Aws::DeviceFarm
3300
3368
  # * {Types::ListOfferingTransactionsResult#offering_transactions #offering_transactions} => Array&lt;Types::OfferingTransaction&gt;
3301
3369
  # * {Types::ListOfferingTransactionsResult#next_token #next_token} => String
3302
3370
  #
3371
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3372
+ #
3303
3373
  #
3304
3374
  # @example Example: To get information about device offering transactions
3305
3375
  #
@@ -3444,6 +3514,8 @@ module Aws::DeviceFarm
3444
3514
  # * {Types::ListOfferingsResult#offerings #offerings} => Array&lt;Types::Offering&gt;
3445
3515
  # * {Types::ListOfferingsResult#next_token #next_token} => String
3446
3516
  #
3517
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3518
+ #
3447
3519
  #
3448
3520
  # @example Example: To get information about device offerings
3449
3521
  #
@@ -3564,6 +3636,8 @@ module Aws::DeviceFarm
3564
3636
  # * {Types::ListProjectsResult#projects #projects} => Array&lt;Types::Project&gt;
3565
3637
  # * {Types::ListProjectsResult#next_token #next_token} => String
3566
3638
  #
3639
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3640
+ #
3567
3641
  #
3568
3642
  # @example Example: To get information about a Device Farm project
3569
3643
  #
@@ -3743,6 +3817,8 @@ module Aws::DeviceFarm
3743
3817
  # * {Types::ListRunsResult#runs #runs} => Array&lt;Types::Run&gt;
3744
3818
  # * {Types::ListRunsResult#next_token #next_token} => String
3745
3819
  #
3820
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3821
+ #
3746
3822
  #
3747
3823
  # @example Example: To get information about a test run
3748
3824
  #
@@ -3886,6 +3962,8 @@ module Aws::DeviceFarm
3886
3962
  # * {Types::ListSamplesResult#samples #samples} => Array&lt;Types::Sample&gt;
3887
3963
  # * {Types::ListSamplesResult#next_token #next_token} => String
3888
3964
  #
3965
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3966
+ #
3889
3967
  #
3890
3968
  # @example Example: To get information about samples
3891
3969
  #
@@ -3941,6 +4019,8 @@ module Aws::DeviceFarm
3941
4019
  # * {Types::ListSuitesResult#suites #suites} => Array&lt;Types::Suite&gt;
3942
4020
  # * {Types::ListSuitesResult#next_token #next_token} => String
3943
4021
  #
4022
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4023
+ #
3944
4024
  #
3945
4025
  # @example Example: To get information about suites
3946
4026
  #
@@ -4044,6 +4124,8 @@ module Aws::DeviceFarm
4044
4124
  # * {Types::ListTestGridProjectsResult#test_grid_projects #test_grid_projects} => Array&lt;Types::TestGridProject&gt;
4045
4125
  # * {Types::ListTestGridProjectsResult#next_token #next_token} => String
4046
4126
  #
4127
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4128
+ #
4047
4129
  # @example Request syntax with placeholder values
4048
4130
  #
4049
4131
  # resp = client.list_test_grid_projects({
@@ -4085,6 +4167,8 @@ module Aws::DeviceFarm
4085
4167
  # * {Types::ListTestGridSessionActionsResult#actions #actions} => Array&lt;Types::TestGridSessionAction&gt;
4086
4168
  # * {Types::ListTestGridSessionActionsResult#next_token #next_token} => String
4087
4169
  #
4170
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4171
+ #
4088
4172
  # @example Request syntax with placeholder values
4089
4173
  #
4090
4174
  # resp = client.list_test_grid_session_actions({
@@ -4131,6 +4215,8 @@ module Aws::DeviceFarm
4131
4215
  # * {Types::ListTestGridSessionArtifactsResult#artifacts #artifacts} => Array&lt;Types::TestGridSessionArtifact&gt;
4132
4216
  # * {Types::ListTestGridSessionArtifactsResult#next_token #next_token} => String
4133
4217
  #
4218
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4219
+ #
4134
4220
  # @example Request syntax with placeholder values
4135
4221
  #
4136
4222
  # resp = client.list_test_grid_session_artifacts({
@@ -4188,6 +4274,8 @@ module Aws::DeviceFarm
4188
4274
  # * {Types::ListTestGridSessionsResult#test_grid_sessions #test_grid_sessions} => Array&lt;Types::TestGridSession&gt;
4189
4275
  # * {Types::ListTestGridSessionsResult#next_token #next_token} => String
4190
4276
  #
4277
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4278
+ #
4191
4279
  # @example Request syntax with placeholder values
4192
4280
  #
4193
4281
  # resp = client.list_test_grid_sessions({
@@ -4236,6 +4324,8 @@ module Aws::DeviceFarm
4236
4324
  # * {Types::ListTestsResult#tests #tests} => Array&lt;Types::Test&gt;
4237
4325
  # * {Types::ListTestsResult#next_token #next_token} => String
4238
4326
  #
4327
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4328
+ #
4239
4329
  #
4240
4330
  # @example Example: To get information about tests
4241
4331
  #
@@ -4313,6 +4403,8 @@ module Aws::DeviceFarm
4313
4403
  # * {Types::ListUniqueProblemsResult#unique_problems #unique_problems} => Hash&lt;String,Array&lt;Types::UniqueProblem&gt;&gt;
4314
4404
  # * {Types::ListUniqueProblemsResult#next_token #next_token} => String
4315
4405
  #
4406
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4407
+ #
4316
4408
  #
4317
4409
  # @example Example: To get information about unique problems
4318
4410
  #
@@ -4485,6 +4577,8 @@ module Aws::DeviceFarm
4485
4577
  # * {Types::ListUploadsResult#uploads #uploads} => Array&lt;Types::Upload&gt;
4486
4578
  # * {Types::ListUploadsResult#next_token #next_token} => String
4487
4579
  #
4580
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4581
+ #
4488
4582
  #
4489
4583
  # @example Example: To get information about uploads
4490
4584
  #
@@ -5837,7 +5931,7 @@ module Aws::DeviceFarm
5837
5931
  params: params,
5838
5932
  config: config)
5839
5933
  context[:gem_name] = 'aws-sdk-devicefarm'
5840
- context[:gem_version] = '1.30.0'
5934
+ context[:gem_version] = '1.35.0'
5841
5935
  Seahorse::Client::Request.new(handlers, context)
5842
5936
  end
5843
5937
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,6 +8,40 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::DeviceFarm
11
+
12
+ # When DeviceFarm returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::DeviceFarm::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all DeviceFarm errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::DeviceFarm::Errors::ServiceError
20
+ # # rescues all DeviceFarm API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {ArgumentException}
31
+ # * {CannotDeleteException}
32
+ # * {IdempotencyException}
33
+ # * {InternalServiceException}
34
+ # * {InvalidOperationException}
35
+ # * {LimitExceededException}
36
+ # * {NotEligibleException}
37
+ # * {NotFoundException}
38
+ # * {ServiceAccountException}
39
+ # * {TagOperationException}
40
+ # * {TagPolicyException}
41
+ # * {TooManyTagsException}
42
+ #
43
+ # Additionally, error classes are dynamically generated for service errors based on the error code
44
+ # if they are not defined above.
9
45
  module Errors
10
46
 
11
47
  extend Aws::Errors::DynamicErrors
@@ -23,7 +59,6 @@ module Aws::DeviceFarm
23
59
  def message
24
60
  @message || @data[:message]
25
61
  end
26
-
27
62
  end
28
63
 
29
64
  class CannotDeleteException < ServiceError
@@ -39,7 +74,6 @@ module Aws::DeviceFarm
39
74
  def message
40
75
  @message || @data[:message]
41
76
  end
42
-
43
77
  end
44
78
 
45
79
  class IdempotencyException < ServiceError
@@ -55,7 +89,6 @@ module Aws::DeviceFarm
55
89
  def message
56
90
  @message || @data[:message]
57
91
  end
58
-
59
92
  end
60
93
 
61
94
  class InternalServiceException < ServiceError
@@ -71,7 +104,6 @@ module Aws::DeviceFarm
71
104
  def message
72
105
  @message || @data[:message]
73
106
  end
74
-
75
107
  end
76
108
 
77
109
  class InvalidOperationException < ServiceError
@@ -87,7 +119,6 @@ module Aws::DeviceFarm
87
119
  def message
88
120
  @message || @data[:message]
89
121
  end
90
-
91
122
  end
92
123
 
93
124
  class LimitExceededException < ServiceError
@@ -103,7 +134,6 @@ module Aws::DeviceFarm
103
134
  def message
104
135
  @message || @data[:message]
105
136
  end
106
-
107
137
  end
108
138
 
109
139
  class NotEligibleException < ServiceError
@@ -119,7 +149,6 @@ module Aws::DeviceFarm
119
149
  def message
120
150
  @message || @data[:message]
121
151
  end
122
-
123
152
  end
124
153
 
125
154
  class NotFoundException < ServiceError
@@ -135,7 +164,6 @@ module Aws::DeviceFarm
135
164
  def message
136
165
  @message || @data[:message]
137
166
  end
138
-
139
167
  end
140
168
 
141
169
  class ServiceAccountException < ServiceError
@@ -151,7 +179,6 @@ module Aws::DeviceFarm
151
179
  def message
152
180
  @message || @data[:message]
153
181
  end
154
-
155
182
  end
156
183
 
157
184
  class TagOperationException < ServiceError
@@ -172,7 +199,6 @@ module Aws::DeviceFarm
172
199
  def resource_name
173
200
  @data[:resource_name]
174
201
  end
175
-
176
202
  end
177
203
 
178
204
  class TagPolicyException < ServiceError
@@ -193,7 +219,6 @@ module Aws::DeviceFarm
193
219
  def resource_name
194
220
  @data[:resource_name]
195
221
  end
196
-
197
222
  end
198
223
 
199
224
  class TooManyTagsException < ServiceError
@@ -214,7 +239,6 @@ module Aws::DeviceFarm
214
239
  def resource_name
215
240
  @data[:resource_name]
216
241
  end
217
-
218
242
  end
219
243
 
220
244
  end