aws-sdk-elasticloadbalancingv2 1.21.0 → 1.75.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,445 @@
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:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::ElasticLoadBalancingV2
11
+
12
+ # When ElasticLoadBalancingV2 returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::ElasticLoadBalancingV2::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all ElasticLoadBalancingV2 errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::ElasticLoadBalancingV2::Errors::ServiceError
20
+ # # rescues all ElasticLoadBalancingV2 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
+ # * {ALPNPolicyNotSupportedException}
31
+ # * {AllocationIdNotFoundException}
32
+ # * {AvailabilityZoneNotSupportedException}
33
+ # * {CertificateNotFoundException}
34
+ # * {DuplicateListenerException}
35
+ # * {DuplicateLoadBalancerNameException}
36
+ # * {DuplicateTagKeysException}
37
+ # * {DuplicateTargetGroupNameException}
38
+ # * {HealthUnavailableException}
39
+ # * {IncompatibleProtocolsException}
40
+ # * {InvalidConfigurationRequestException}
41
+ # * {InvalidLoadBalancerActionException}
42
+ # * {InvalidSchemeException}
43
+ # * {InvalidSecurityGroupException}
44
+ # * {InvalidSubnetException}
45
+ # * {InvalidTargetException}
46
+ # * {ListenerNotFoundException}
47
+ # * {LoadBalancerNotFoundException}
48
+ # * {OperationNotPermittedException}
49
+ # * {PriorityInUseException}
50
+ # * {ResourceInUseException}
51
+ # * {RuleNotFoundException}
52
+ # * {SSLPolicyNotFoundException}
53
+ # * {SubnetNotFoundException}
54
+ # * {TargetGroupAssociationLimitException}
55
+ # * {TargetGroupNotFoundException}
56
+ # * {TooManyActionsException}
57
+ # * {TooManyCertificatesException}
58
+ # * {TooManyListenersException}
59
+ # * {TooManyLoadBalancersException}
60
+ # * {TooManyRegistrationsForTargetIdException}
61
+ # * {TooManyRulesException}
62
+ # * {TooManyTagsException}
63
+ # * {TooManyTargetGroupsException}
64
+ # * {TooManyTargetsException}
65
+ # * {TooManyUniqueTargetGroupsPerLoadBalancerException}
66
+ # * {UnsupportedProtocolException}
67
+ #
68
+ # Additionally, error classes are dynamically generated for service errors based on the error code
69
+ # if they are not defined above.
9
70
  module Errors
10
71
 
11
72
  extend Aws::Errors::DynamicErrors
12
73
 
74
+ class ALPNPolicyNotSupportedException < ServiceError
75
+
76
+ # @param [Seahorse::Client::RequestContext] context
77
+ # @param [String] message
78
+ # @param [Aws::ElasticLoadBalancingV2::Types::ALPNPolicyNotSupportedException] data
79
+ def initialize(context, message, data = Aws::EmptyStructure.new)
80
+ super(context, message, data)
81
+ end
82
+ end
83
+
84
+ class AllocationIdNotFoundException < ServiceError
85
+
86
+ # @param [Seahorse::Client::RequestContext] context
87
+ # @param [String] message
88
+ # @param [Aws::ElasticLoadBalancingV2::Types::AllocationIdNotFoundException] data
89
+ def initialize(context, message, data = Aws::EmptyStructure.new)
90
+ super(context, message, data)
91
+ end
92
+ end
93
+
94
+ class AvailabilityZoneNotSupportedException < ServiceError
95
+
96
+ # @param [Seahorse::Client::RequestContext] context
97
+ # @param [String] message
98
+ # @param [Aws::ElasticLoadBalancingV2::Types::AvailabilityZoneNotSupportedException] data
99
+ def initialize(context, message, data = Aws::EmptyStructure.new)
100
+ super(context, message, data)
101
+ end
102
+ end
103
+
104
+ class CertificateNotFoundException < ServiceError
105
+
106
+ # @param [Seahorse::Client::RequestContext] context
107
+ # @param [String] message
108
+ # @param [Aws::ElasticLoadBalancingV2::Types::CertificateNotFoundException] data
109
+ def initialize(context, message, data = Aws::EmptyStructure.new)
110
+ super(context, message, data)
111
+ end
112
+ end
113
+
114
+ class DuplicateListenerException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::ElasticLoadBalancingV2::Types::DuplicateListenerException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+ end
123
+
124
+ class DuplicateLoadBalancerNameException < ServiceError
125
+
126
+ # @param [Seahorse::Client::RequestContext] context
127
+ # @param [String] message
128
+ # @param [Aws::ElasticLoadBalancingV2::Types::DuplicateLoadBalancerNameException] data
129
+ def initialize(context, message, data = Aws::EmptyStructure.new)
130
+ super(context, message, data)
131
+ end
132
+ end
133
+
134
+ class DuplicateTagKeysException < ServiceError
135
+
136
+ # @param [Seahorse::Client::RequestContext] context
137
+ # @param [String] message
138
+ # @param [Aws::ElasticLoadBalancingV2::Types::DuplicateTagKeysException] data
139
+ def initialize(context, message, data = Aws::EmptyStructure.new)
140
+ super(context, message, data)
141
+ end
142
+ end
143
+
144
+ class DuplicateTargetGroupNameException < ServiceError
145
+
146
+ # @param [Seahorse::Client::RequestContext] context
147
+ # @param [String] message
148
+ # @param [Aws::ElasticLoadBalancingV2::Types::DuplicateTargetGroupNameException] data
149
+ def initialize(context, message, data = Aws::EmptyStructure.new)
150
+ super(context, message, data)
151
+ end
152
+ end
153
+
154
+ class HealthUnavailableException < ServiceError
155
+
156
+ # @param [Seahorse::Client::RequestContext] context
157
+ # @param [String] message
158
+ # @param [Aws::ElasticLoadBalancingV2::Types::HealthUnavailableException] data
159
+ def initialize(context, message, data = Aws::EmptyStructure.new)
160
+ super(context, message, data)
161
+ end
162
+ end
163
+
164
+ class IncompatibleProtocolsException < ServiceError
165
+
166
+ # @param [Seahorse::Client::RequestContext] context
167
+ # @param [String] message
168
+ # @param [Aws::ElasticLoadBalancingV2::Types::IncompatibleProtocolsException] data
169
+ def initialize(context, message, data = Aws::EmptyStructure.new)
170
+ super(context, message, data)
171
+ end
172
+ end
173
+
174
+ class InvalidConfigurationRequestException < ServiceError
175
+
176
+ # @param [Seahorse::Client::RequestContext] context
177
+ # @param [String] message
178
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidConfigurationRequestException] data
179
+ def initialize(context, message, data = Aws::EmptyStructure.new)
180
+ super(context, message, data)
181
+ end
182
+ end
183
+
184
+ class InvalidLoadBalancerActionException < ServiceError
185
+
186
+ # @param [Seahorse::Client::RequestContext] context
187
+ # @param [String] message
188
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidLoadBalancerActionException] data
189
+ def initialize(context, message, data = Aws::EmptyStructure.new)
190
+ super(context, message, data)
191
+ end
192
+ end
193
+
194
+ class InvalidSchemeException < ServiceError
195
+
196
+ # @param [Seahorse::Client::RequestContext] context
197
+ # @param [String] message
198
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidSchemeException] data
199
+ def initialize(context, message, data = Aws::EmptyStructure.new)
200
+ super(context, message, data)
201
+ end
202
+ end
203
+
204
+ class InvalidSecurityGroupException < ServiceError
205
+
206
+ # @param [Seahorse::Client::RequestContext] context
207
+ # @param [String] message
208
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidSecurityGroupException] data
209
+ def initialize(context, message, data = Aws::EmptyStructure.new)
210
+ super(context, message, data)
211
+ end
212
+ end
213
+
214
+ class InvalidSubnetException < ServiceError
215
+
216
+ # @param [Seahorse::Client::RequestContext] context
217
+ # @param [String] message
218
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidSubnetException] data
219
+ def initialize(context, message, data = Aws::EmptyStructure.new)
220
+ super(context, message, data)
221
+ end
222
+ end
223
+
224
+ class InvalidTargetException < ServiceError
225
+
226
+ # @param [Seahorse::Client::RequestContext] context
227
+ # @param [String] message
228
+ # @param [Aws::ElasticLoadBalancingV2::Types::InvalidTargetException] data
229
+ def initialize(context, message, data = Aws::EmptyStructure.new)
230
+ super(context, message, data)
231
+ end
232
+ end
233
+
234
+ class ListenerNotFoundException < ServiceError
235
+
236
+ # @param [Seahorse::Client::RequestContext] context
237
+ # @param [String] message
238
+ # @param [Aws::ElasticLoadBalancingV2::Types::ListenerNotFoundException] data
239
+ def initialize(context, message, data = Aws::EmptyStructure.new)
240
+ super(context, message, data)
241
+ end
242
+ end
243
+
244
+ class LoadBalancerNotFoundException < ServiceError
245
+
246
+ # @param [Seahorse::Client::RequestContext] context
247
+ # @param [String] message
248
+ # @param [Aws::ElasticLoadBalancingV2::Types::LoadBalancerNotFoundException] data
249
+ def initialize(context, message, data = Aws::EmptyStructure.new)
250
+ super(context, message, data)
251
+ end
252
+ end
253
+
254
+ class OperationNotPermittedException < ServiceError
255
+
256
+ # @param [Seahorse::Client::RequestContext] context
257
+ # @param [String] message
258
+ # @param [Aws::ElasticLoadBalancingV2::Types::OperationNotPermittedException] data
259
+ def initialize(context, message, data = Aws::EmptyStructure.new)
260
+ super(context, message, data)
261
+ end
262
+ end
263
+
264
+ class PriorityInUseException < ServiceError
265
+
266
+ # @param [Seahorse::Client::RequestContext] context
267
+ # @param [String] message
268
+ # @param [Aws::ElasticLoadBalancingV2::Types::PriorityInUseException] data
269
+ def initialize(context, message, data = Aws::EmptyStructure.new)
270
+ super(context, message, data)
271
+ end
272
+ end
273
+
274
+ class ResourceInUseException < ServiceError
275
+
276
+ # @param [Seahorse::Client::RequestContext] context
277
+ # @param [String] message
278
+ # @param [Aws::ElasticLoadBalancingV2::Types::ResourceInUseException] data
279
+ def initialize(context, message, data = Aws::EmptyStructure.new)
280
+ super(context, message, data)
281
+ end
282
+ end
283
+
284
+ class RuleNotFoundException < ServiceError
285
+
286
+ # @param [Seahorse::Client::RequestContext] context
287
+ # @param [String] message
288
+ # @param [Aws::ElasticLoadBalancingV2::Types::RuleNotFoundException] data
289
+ def initialize(context, message, data = Aws::EmptyStructure.new)
290
+ super(context, message, data)
291
+ end
292
+ end
293
+
294
+ class SSLPolicyNotFoundException < ServiceError
295
+
296
+ # @param [Seahorse::Client::RequestContext] context
297
+ # @param [String] message
298
+ # @param [Aws::ElasticLoadBalancingV2::Types::SSLPolicyNotFoundException] data
299
+ def initialize(context, message, data = Aws::EmptyStructure.new)
300
+ super(context, message, data)
301
+ end
302
+ end
303
+
304
+ class SubnetNotFoundException < ServiceError
305
+
306
+ # @param [Seahorse::Client::RequestContext] context
307
+ # @param [String] message
308
+ # @param [Aws::ElasticLoadBalancingV2::Types::SubnetNotFoundException] data
309
+ def initialize(context, message, data = Aws::EmptyStructure.new)
310
+ super(context, message, data)
311
+ end
312
+ end
313
+
314
+ class TargetGroupAssociationLimitException < ServiceError
315
+
316
+ # @param [Seahorse::Client::RequestContext] context
317
+ # @param [String] message
318
+ # @param [Aws::ElasticLoadBalancingV2::Types::TargetGroupAssociationLimitException] data
319
+ def initialize(context, message, data = Aws::EmptyStructure.new)
320
+ super(context, message, data)
321
+ end
322
+ end
323
+
324
+ class TargetGroupNotFoundException < ServiceError
325
+
326
+ # @param [Seahorse::Client::RequestContext] context
327
+ # @param [String] message
328
+ # @param [Aws::ElasticLoadBalancingV2::Types::TargetGroupNotFoundException] data
329
+ def initialize(context, message, data = Aws::EmptyStructure.new)
330
+ super(context, message, data)
331
+ end
332
+ end
333
+
334
+ class TooManyActionsException < ServiceError
335
+
336
+ # @param [Seahorse::Client::RequestContext] context
337
+ # @param [String] message
338
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyActionsException] data
339
+ def initialize(context, message, data = Aws::EmptyStructure.new)
340
+ super(context, message, data)
341
+ end
342
+ end
343
+
344
+ class TooManyCertificatesException < ServiceError
345
+
346
+ # @param [Seahorse::Client::RequestContext] context
347
+ # @param [String] message
348
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyCertificatesException] data
349
+ def initialize(context, message, data = Aws::EmptyStructure.new)
350
+ super(context, message, data)
351
+ end
352
+ end
353
+
354
+ class TooManyListenersException < ServiceError
355
+
356
+ # @param [Seahorse::Client::RequestContext] context
357
+ # @param [String] message
358
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyListenersException] data
359
+ def initialize(context, message, data = Aws::EmptyStructure.new)
360
+ super(context, message, data)
361
+ end
362
+ end
363
+
364
+ class TooManyLoadBalancersException < ServiceError
365
+
366
+ # @param [Seahorse::Client::RequestContext] context
367
+ # @param [String] message
368
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyLoadBalancersException] data
369
+ def initialize(context, message, data = Aws::EmptyStructure.new)
370
+ super(context, message, data)
371
+ end
372
+ end
373
+
374
+ class TooManyRegistrationsForTargetIdException < ServiceError
375
+
376
+ # @param [Seahorse::Client::RequestContext] context
377
+ # @param [String] message
378
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyRegistrationsForTargetIdException] data
379
+ def initialize(context, message, data = Aws::EmptyStructure.new)
380
+ super(context, message, data)
381
+ end
382
+ end
383
+
384
+ class TooManyRulesException < ServiceError
385
+
386
+ # @param [Seahorse::Client::RequestContext] context
387
+ # @param [String] message
388
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyRulesException] data
389
+ def initialize(context, message, data = Aws::EmptyStructure.new)
390
+ super(context, message, data)
391
+ end
392
+ end
393
+
394
+ class TooManyTagsException < ServiceError
395
+
396
+ # @param [Seahorse::Client::RequestContext] context
397
+ # @param [String] message
398
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyTagsException] data
399
+ def initialize(context, message, data = Aws::EmptyStructure.new)
400
+ super(context, message, data)
401
+ end
402
+ end
403
+
404
+ class TooManyTargetGroupsException < ServiceError
405
+
406
+ # @param [Seahorse::Client::RequestContext] context
407
+ # @param [String] message
408
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyTargetGroupsException] data
409
+ def initialize(context, message, data = Aws::EmptyStructure.new)
410
+ super(context, message, data)
411
+ end
412
+ end
413
+
414
+ class TooManyTargetsException < ServiceError
415
+
416
+ # @param [Seahorse::Client::RequestContext] context
417
+ # @param [String] message
418
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyTargetsException] data
419
+ def initialize(context, message, data = Aws::EmptyStructure.new)
420
+ super(context, message, data)
421
+ end
422
+ end
423
+
424
+ class TooManyUniqueTargetGroupsPerLoadBalancerException < ServiceError
425
+
426
+ # @param [Seahorse::Client::RequestContext] context
427
+ # @param [String] message
428
+ # @param [Aws::ElasticLoadBalancingV2::Types::TooManyUniqueTargetGroupsPerLoadBalancerException] data
429
+ def initialize(context, message, data = Aws::EmptyStructure.new)
430
+ super(context, message, data)
431
+ end
432
+ end
433
+
434
+ class UnsupportedProtocolException < ServiceError
435
+
436
+ # @param [Seahorse::Client::RequestContext] context
437
+ # @param [String] message
438
+ # @param [Aws::ElasticLoadBalancingV2::Types::UnsupportedProtocolException] data
439
+ def initialize(context, message, data = Aws::EmptyStructure.new)
440
+ super(context, message, data)
441
+ end
442
+ end
443
+
13
444
  end
14
445
  end
@@ -1,11 +1,14 @@
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:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::ElasticLoadBalancingV2
11
+
9
12
  class Resource
10
13
 
11
14
  # @param options ({})