aws-sdk-elasticloadbalancing 1.19.0 → 1.24.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: 0f46128422edb3f6423e404f272bbac8027e4acf
4
- data.tar.gz: d2ac526fe23d406fef0dbb2388c40ad0097618a7
2
+ SHA256:
3
+ metadata.gz: 167251557023ba7b90f41265ae0805925ba8acd9d0b0ea6219fd480d4ce551b3
4
+ data.tar.gz: c4a668ba405489331e0ca5ac69325f35a91a5ec7cbc14cb3e10739a651b29b68
5
5
  SHA512:
6
- metadata.gz: cc816ec4081886719f59cd13edcc80494b79c3a1de87d3f0e5a4caab4d9dc3b81fe30a7929966beffe2d37bcf7224ff8aad47277a8e3e3dedeed3283df87ecbc
7
- data.tar.gz: e9a7fb38aa0fbfd3872fb50cc7e60d2a92837180d64d0912cea9f5ca2b40a14a4a6a3c9c5c1f92aa0e26901356324777762e56009cf0c3b01c0706e33aa36252
6
+ metadata.gz: cb6bd28968b3323ba23f84c0f37fef546b2251ee15130ef94771bbe88bccc110290e140eb943290f62b0c80cc1b96fe3392c0dde7276df4473a7a8f1ecda1646
7
+ data.tar.gz: 86cb39b670d0119031c03c0f3c4c4e3e9f71477d777a79df54fab42b58f6b66c31146b41f67732e359e0b0cad7673041d03569fdbcf079800503369d674de9a2
@@ -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:
@@ -25,17 +27,20 @@ require_relative 'aws-sdk-elasticloadbalancing/customizations'
25
27
  # methods each accept a hash of request parameters and return a response
26
28
  # structure.
27
29
  #
30
+ # elastic_load_balancing = Aws::ElasticLoadBalancing::Client.new
31
+ # resp = elastic_load_balancing.add_tags(params)
32
+ #
28
33
  # See {Client} for more information.
29
34
  #
30
35
  # # Errors
31
36
  #
32
- # Errors returned from Elastic Load Balancing all
33
- # extend {Errors::ServiceError}.
37
+ # Errors returned from Elastic Load Balancing are defined in the
38
+ # {Errors} module and all extend {Errors::ServiceError}.
34
39
  #
35
40
  # begin
36
41
  # # do stuff
37
42
  # rescue Aws::ElasticLoadBalancing::Errors::ServiceError
38
- # # rescues all service API errors
43
+ # # rescues all Elastic Load Balancing API errors
39
44
  # end
40
45
  #
41
46
  # See {Errors} for more information.
@@ -43,6 +48,6 @@ require_relative 'aws-sdk-elasticloadbalancing/customizations'
43
48
  # @service
44
49
  module Aws::ElasticLoadBalancing
45
50
 
46
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.24.0'
47
52
 
48
53
  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/query.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:elasticloadbalancing)
31
34
 
32
35
  module Aws::ElasticLoadBalancing
36
+ # An API client for ElasticLoadBalancing. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::ElasticLoadBalancing::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::ElasticLoadBalancing
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::Query)
62
78
 
@@ -93,7 +109,7 @@ module Aws::ElasticLoadBalancing
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::ElasticLoadBalancing
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::ElasticLoadBalancing
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::ElasticLoadBalancing
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::ElasticLoadBalancing
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::ElasticLoadBalancing
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::ElasticLoadBalancing
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
  #
@@ -209,16 +268,15 @@ module Aws::ElasticLoadBalancing
209
268
  # requests through. Formatted like 'http://proxy.com:123'.
210
269
  #
211
270
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
271
+ # seconds to wait when opening a HTTP session before raising a
213
272
  # `Timeout::Error`.
214
273
  #
215
274
  # @option options [Integer] :http_read_timeout (60) The default
216
275
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
276
+ # safely be set per-request on the session.
219
277
  #
220
278
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
279
+ # seconds a connection is allowed to sit idle before it is
222
280
  # considered stale. Stale connections are closed and removed
223
281
  # from the pool before making a request.
224
282
  #
@@ -227,7 +285,7 @@ module Aws::ElasticLoadBalancing
227
285
  # request body. This option has no effect unless the request has
228
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
287
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
288
+ # request on the session.
231
289
  #
232
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
291
  # HTTP debug output will be sent to the `:logger`.
@@ -1392,6 +1450,13 @@ module Aws::ElasticLoadBalancing
1392
1450
  # resp.instance_states[0].reason_code #=> String
1393
1451
  # resp.instance_states[0].description #=> String
1394
1452
  #
1453
+ #
1454
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1455
+ #
1456
+ # * any_instance_in_service
1457
+ # * instance_deregistered
1458
+ # * instance_in_service
1459
+ #
1395
1460
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth AWS API Documentation
1396
1461
  #
1397
1462
  # @overload describe_instance_health(params = {})
@@ -1635,6 +1700,8 @@ module Aws::ElasticLoadBalancing
1635
1700
  # * {Types::DescribeAccessPointsOutput#load_balancer_descriptions #load_balancer_descriptions} => Array&lt;Types::LoadBalancerDescription&gt;
1636
1701
  # * {Types::DescribeAccessPointsOutput#next_marker #next_marker} => String
1637
1702
  #
1703
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1704
+ #
1638
1705
  #
1639
1706
  # @example Example: To describe one of your load balancers
1640
1707
  #
@@ -2530,7 +2597,7 @@ module Aws::ElasticLoadBalancing
2530
2597
  params: params,
2531
2598
  config: config)
2532
2599
  context[:gem_name] = 'aws-sdk-elasticloadbalancing'
2533
- context[:gem_version] = '1.19.0'
2600
+ context[:gem_version] = '1.24.0'
2534
2601
  Seahorse::Client::Request.new(handlers, context)
2535
2602
  end
2536
2603
 
@@ -2596,11 +2663,11 @@ module Aws::ElasticLoadBalancing
2596
2663
  # The following table lists the valid waiter names, the operations they call,
2597
2664
  # and the default `:delay` and `:max_attempts` values.
2598
2665
  #
2599
- # | waiter_name | params | :delay | :max_attempts |
2600
- # | ----------------------- | --------------------------- | -------- | ------------- |
2601
- # | any_instance_in_service | {#describe_instance_health} | 15 | 40 |
2602
- # | instance_deregistered | {#describe_instance_health} | 15 | 40 |
2603
- # | instance_in_service | {#describe_instance_health} | 15 | 40 |
2666
+ # | waiter_name | params | :delay | :max_attempts |
2667
+ # | ----------------------- | --------------------------------- | -------- | ------------- |
2668
+ # | any_instance_in_service | {Client#describe_instance_health} | 15 | 40 |
2669
+ # | instance_deregistered | {Client#describe_instance_health} | 15 | 40 |
2670
+ # | instance_in_service | {Client#describe_instance_health} | 15 | 40 |
2604
2671
  #
2605
2672
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
2606
2673
  # because the waiter has entered a state that it will not transition
@@ -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:
@@ -199,6 +201,8 @@ module Aws::ElasticLoadBalancing
199
201
  AccessLog.add_member(:s3_bucket_prefix, Shapes::ShapeRef.new(shape: AccessLogPrefix, location_name: "S3BucketPrefix"))
200
202
  AccessLog.struct_class = Types::AccessLog
201
203
 
204
+ AccessPointNotFoundException.struct_class = Types::AccessPointNotFoundException
205
+
202
206
  AddAvailabilityZonesInput.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location_name: "LoadBalancerName"))
203
207
  AddAvailabilityZonesInput.add_member(:availability_zones, Shapes::ShapeRef.new(shape: AvailabilityZones, required: true, location_name: "AvailabilityZones"))
204
208
  AddAvailabilityZonesInput.struct_class = Types::AddAvailabilityZonesInput
@@ -246,6 +250,8 @@ module Aws::ElasticLoadBalancing
246
250
 
247
251
  BackendServerDescriptions.member = Shapes::ShapeRef.new(shape: BackendServerDescription)
248
252
 
253
+ CertificateNotFoundException.struct_class = Types::CertificateNotFoundException
254
+
249
255
  ConfigureHealthCheckInput.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location_name: "LoadBalancerName"))
250
256
  ConfigureHealthCheckInput.add_member(:health_check, Shapes::ShapeRef.new(shape: HealthCheck, required: true, location_name: "HealthCheck"))
251
257
  ConfigureHealthCheckInput.struct_class = Types::ConfigureHealthCheckInput
@@ -320,6 +326,8 @@ module Aws::ElasticLoadBalancing
320
326
 
321
327
  DeleteLoadBalancerPolicyOutput.struct_class = Types::DeleteLoadBalancerPolicyOutput
322
328
 
329
+ DependencyThrottleException.struct_class = Types::DependencyThrottleException
330
+
323
331
  DeregisterEndPointsInput.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location_name: "LoadBalancerName"))
324
332
  DeregisterEndPointsInput.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, required: true, location_name: "Instances"))
325
333
  DeregisterEndPointsInput.struct_class = Types::DeregisterEndPointsInput
@@ -383,6 +391,14 @@ module Aws::ElasticLoadBalancing
383
391
  DetachLoadBalancerFromSubnetsOutput.add_member(:subnets, Shapes::ShapeRef.new(shape: Subnets, location_name: "Subnets"))
384
392
  DetachLoadBalancerFromSubnetsOutput.struct_class = Types::DetachLoadBalancerFromSubnetsOutput
385
393
 
394
+ DuplicateAccessPointNameException.struct_class = Types::DuplicateAccessPointNameException
395
+
396
+ DuplicateListenerException.struct_class = Types::DuplicateListenerException
397
+
398
+ DuplicatePolicyNameException.struct_class = Types::DuplicatePolicyNameException
399
+
400
+ DuplicateTagKeysException.struct_class = Types::DuplicateTagKeysException
401
+
386
402
  HealthCheck.add_member(:target, Shapes::ShapeRef.new(shape: HealthCheckTarget, required: true, location_name: "Target"))
387
403
  HealthCheck.add_member(:interval, Shapes::ShapeRef.new(shape: HealthCheckInterval, required: true, location_name: "Interval"))
388
404
  HealthCheck.add_member(:timeout, Shapes::ShapeRef.new(shape: HealthCheckTimeout, required: true, location_name: "Timeout"))
@@ -403,6 +419,16 @@ module Aws::ElasticLoadBalancing
403
419
 
404
420
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
405
421
 
422
+ InvalidConfigurationRequestException.struct_class = Types::InvalidConfigurationRequestException
423
+
424
+ InvalidEndPointException.struct_class = Types::InvalidEndPointException
425
+
426
+ InvalidSchemeException.struct_class = Types::InvalidSchemeException
427
+
428
+ InvalidSecurityGroupException.struct_class = Types::InvalidSecurityGroupException
429
+
430
+ InvalidSubnetException.struct_class = Types::InvalidSubnetException
431
+
406
432
  LBCookieStickinessPolicies.member = Shapes::ShapeRef.new(shape: LBCookieStickinessPolicy)
407
433
 
408
434
  LBCookieStickinessPolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "PolicyName"))
@@ -428,8 +454,12 @@ module Aws::ElasticLoadBalancing
428
454
 
429
455
  ListenerDescriptions.member = Shapes::ShapeRef.new(shape: ListenerDescription)
430
456
 
457
+ ListenerNotFoundException.struct_class = Types::ListenerNotFoundException
458
+
431
459
  Listeners.member = Shapes::ShapeRef.new(shape: Listener)
432
460
 
461
+ LoadBalancerAttributeNotFoundException.struct_class = Types::LoadBalancerAttributeNotFoundException
462
+
433
463
  LoadBalancerAttributes.add_member(:cross_zone_load_balancing, Shapes::ShapeRef.new(shape: CrossZoneLoadBalancing, location_name: "CrossZoneLoadBalancing"))
434
464
  LoadBalancerAttributes.add_member(:access_log, Shapes::ShapeRef.new(shape: AccessLog, location_name: "AccessLog"))
435
465
  LoadBalancerAttributes.add_member(:connection_draining, Shapes::ShapeRef.new(shape: ConnectionDraining, location_name: "ConnectionDraining"))
@@ -469,6 +499,8 @@ module Aws::ElasticLoadBalancing
469
499
  ModifyLoadBalancerAttributesOutput.add_member(:load_balancer_attributes, Shapes::ShapeRef.new(shape: LoadBalancerAttributes, location_name: "LoadBalancerAttributes"))
470
500
  ModifyLoadBalancerAttributesOutput.struct_class = Types::ModifyLoadBalancerAttributesOutput
471
501
 
502
+ OperationNotPermittedException.struct_class = Types::OperationNotPermittedException
503
+
472
504
  Policies.add_member(:app_cookie_stickiness_policies, Shapes::ShapeRef.new(shape: AppCookieStickinessPolicies, location_name: "AppCookieStickinessPolicies"))
473
505
  Policies.add_member(:lb_cookie_stickiness_policies, Shapes::ShapeRef.new(shape: LBCookieStickinessPolicies, location_name: "LBCookieStickinessPolicies"))
474
506
  Policies.add_member(:other_policies, Shapes::ShapeRef.new(shape: PolicyNames, location_name: "OtherPolicies"))
@@ -504,6 +536,8 @@ module Aws::ElasticLoadBalancing
504
536
 
505
537
  PolicyNames.member = Shapes::ShapeRef.new(shape: PolicyName)
506
538
 
539
+ PolicyNotFoundException.struct_class = Types::PolicyNotFoundException
540
+
507
541
  PolicyTypeDescription.add_member(:policy_type_name, Shapes::ShapeRef.new(shape: PolicyTypeName, location_name: "PolicyTypeName"))
508
542
  PolicyTypeDescription.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
509
543
  PolicyTypeDescription.add_member(:policy_attribute_type_descriptions, Shapes::ShapeRef.new(shape: PolicyAttributeTypeDescriptions, location_name: "PolicyAttributeTypeDescriptions"))
@@ -513,6 +547,8 @@ module Aws::ElasticLoadBalancing
513
547
 
514
548
  PolicyTypeNames.member = Shapes::ShapeRef.new(shape: PolicyTypeName)
515
549
 
550
+ PolicyTypeNotFoundException.struct_class = Types::PolicyTypeNotFoundException
551
+
516
552
  Ports.member = Shapes::ShapeRef.new(shape: AccessPointPort)
517
553
 
518
554
  RegisterEndPointsInput.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location_name: "LoadBalancerName"))
@@ -562,6 +598,8 @@ module Aws::ElasticLoadBalancing
562
598
  SourceSecurityGroup.add_member(:group_name, Shapes::ShapeRef.new(shape: SecurityGroupName, location_name: "GroupName"))
563
599
  SourceSecurityGroup.struct_class = Types::SourceSecurityGroup
564
600
 
601
+ SubnetNotFoundException.struct_class = Types::SubnetNotFoundException
602
+
565
603
  Subnets.member = Shapes::ShapeRef.new(shape: SubnetId)
566
604
 
567
605
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
@@ -581,6 +619,14 @@ module Aws::ElasticLoadBalancing
581
619
 
582
620
  TagList.member = Shapes::ShapeRef.new(shape: Tag)
583
621
 
622
+ TooManyAccessPointsException.struct_class = Types::TooManyAccessPointsException
623
+
624
+ TooManyPoliciesException.struct_class = Types::TooManyPoliciesException
625
+
626
+ TooManyTagsException.struct_class = Types::TooManyTagsException
627
+
628
+ UnsupportedProtocolException.struct_class = Types::UnsupportedProtocolException
629
+
584
630
 
585
631
  # @api private
586
632
  API = Seahorse::Model::Api.new.tap do |api|
@@ -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,9 +8,273 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::ElasticLoadBalancing
11
+
12
+ # When ElasticLoadBalancing returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::ElasticLoadBalancing::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all ElasticLoadBalancing errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::ElasticLoadBalancing::Errors::ServiceError
20
+ # # rescues all ElasticLoadBalancing 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
+ # * {AccessPointNotFoundException}
31
+ # * {CertificateNotFoundException}
32
+ # * {DependencyThrottleException}
33
+ # * {DuplicateAccessPointNameException}
34
+ # * {DuplicateListenerException}
35
+ # * {DuplicatePolicyNameException}
36
+ # * {DuplicateTagKeysException}
37
+ # * {InvalidConfigurationRequestException}
38
+ # * {InvalidEndPointException}
39
+ # * {InvalidSchemeException}
40
+ # * {InvalidSecurityGroupException}
41
+ # * {InvalidSubnetException}
42
+ # * {ListenerNotFoundException}
43
+ # * {LoadBalancerAttributeNotFoundException}
44
+ # * {OperationNotPermittedException}
45
+ # * {PolicyNotFoundException}
46
+ # * {PolicyTypeNotFoundException}
47
+ # * {SubnetNotFoundException}
48
+ # * {TooManyAccessPointsException}
49
+ # * {TooManyPoliciesException}
50
+ # * {TooManyTagsException}
51
+ # * {UnsupportedProtocolException}
52
+ #
53
+ # Additionally, error classes are dynamically generated for service errors based on the error code
54
+ # if they are not defined above.
9
55
  module Errors
10
56
 
11
57
  extend Aws::Errors::DynamicErrors
12
58
 
59
+ class AccessPointNotFoundException < ServiceError
60
+
61
+ # @param [Seahorse::Client::RequestContext] context
62
+ # @param [String] message
63
+ # @param [Aws::ElasticLoadBalancing::Types::AccessPointNotFoundException] data
64
+ def initialize(context, message, data = Aws::EmptyStructure.new)
65
+ super(context, message, data)
66
+ end
67
+ end
68
+
69
+ class CertificateNotFoundException < ServiceError
70
+
71
+ # @param [Seahorse::Client::RequestContext] context
72
+ # @param [String] message
73
+ # @param [Aws::ElasticLoadBalancing::Types::CertificateNotFoundException] data
74
+ def initialize(context, message, data = Aws::EmptyStructure.new)
75
+ super(context, message, data)
76
+ end
77
+ end
78
+
79
+ class DependencyThrottleException < ServiceError
80
+
81
+ # @param [Seahorse::Client::RequestContext] context
82
+ # @param [String] message
83
+ # @param [Aws::ElasticLoadBalancing::Types::DependencyThrottleException] data
84
+ def initialize(context, message, data = Aws::EmptyStructure.new)
85
+ super(context, message, data)
86
+ end
87
+ end
88
+
89
+ class DuplicateAccessPointNameException < ServiceError
90
+
91
+ # @param [Seahorse::Client::RequestContext] context
92
+ # @param [String] message
93
+ # @param [Aws::ElasticLoadBalancing::Types::DuplicateAccessPointNameException] data
94
+ def initialize(context, message, data = Aws::EmptyStructure.new)
95
+ super(context, message, data)
96
+ end
97
+ end
98
+
99
+ class DuplicateListenerException < ServiceError
100
+
101
+ # @param [Seahorse::Client::RequestContext] context
102
+ # @param [String] message
103
+ # @param [Aws::ElasticLoadBalancing::Types::DuplicateListenerException] data
104
+ def initialize(context, message, data = Aws::EmptyStructure.new)
105
+ super(context, message, data)
106
+ end
107
+ end
108
+
109
+ class DuplicatePolicyNameException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::ElasticLoadBalancing::Types::DuplicatePolicyNameException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+ end
118
+
119
+ class DuplicateTagKeysException < ServiceError
120
+
121
+ # @param [Seahorse::Client::RequestContext] context
122
+ # @param [String] message
123
+ # @param [Aws::ElasticLoadBalancing::Types::DuplicateTagKeysException] data
124
+ def initialize(context, message, data = Aws::EmptyStructure.new)
125
+ super(context, message, data)
126
+ end
127
+ end
128
+
129
+ class InvalidConfigurationRequestException < ServiceError
130
+
131
+ # @param [Seahorse::Client::RequestContext] context
132
+ # @param [String] message
133
+ # @param [Aws::ElasticLoadBalancing::Types::InvalidConfigurationRequestException] data
134
+ def initialize(context, message, data = Aws::EmptyStructure.new)
135
+ super(context, message, data)
136
+ end
137
+ end
138
+
139
+ class InvalidEndPointException < ServiceError
140
+
141
+ # @param [Seahorse::Client::RequestContext] context
142
+ # @param [String] message
143
+ # @param [Aws::ElasticLoadBalancing::Types::InvalidEndPointException] data
144
+ def initialize(context, message, data = Aws::EmptyStructure.new)
145
+ super(context, message, data)
146
+ end
147
+ end
148
+
149
+ class InvalidSchemeException < ServiceError
150
+
151
+ # @param [Seahorse::Client::RequestContext] context
152
+ # @param [String] message
153
+ # @param [Aws::ElasticLoadBalancing::Types::InvalidSchemeException] data
154
+ def initialize(context, message, data = Aws::EmptyStructure.new)
155
+ super(context, message, data)
156
+ end
157
+ end
158
+
159
+ class InvalidSecurityGroupException < ServiceError
160
+
161
+ # @param [Seahorse::Client::RequestContext] context
162
+ # @param [String] message
163
+ # @param [Aws::ElasticLoadBalancing::Types::InvalidSecurityGroupException] data
164
+ def initialize(context, message, data = Aws::EmptyStructure.new)
165
+ super(context, message, data)
166
+ end
167
+ end
168
+
169
+ class InvalidSubnetException < ServiceError
170
+
171
+ # @param [Seahorse::Client::RequestContext] context
172
+ # @param [String] message
173
+ # @param [Aws::ElasticLoadBalancing::Types::InvalidSubnetException] data
174
+ def initialize(context, message, data = Aws::EmptyStructure.new)
175
+ super(context, message, data)
176
+ end
177
+ end
178
+
179
+ class ListenerNotFoundException < ServiceError
180
+
181
+ # @param [Seahorse::Client::RequestContext] context
182
+ # @param [String] message
183
+ # @param [Aws::ElasticLoadBalancing::Types::ListenerNotFoundException] data
184
+ def initialize(context, message, data = Aws::EmptyStructure.new)
185
+ super(context, message, data)
186
+ end
187
+ end
188
+
189
+ class LoadBalancerAttributeNotFoundException < ServiceError
190
+
191
+ # @param [Seahorse::Client::RequestContext] context
192
+ # @param [String] message
193
+ # @param [Aws::ElasticLoadBalancing::Types::LoadBalancerAttributeNotFoundException] data
194
+ def initialize(context, message, data = Aws::EmptyStructure.new)
195
+ super(context, message, data)
196
+ end
197
+ end
198
+
199
+ class OperationNotPermittedException < ServiceError
200
+
201
+ # @param [Seahorse::Client::RequestContext] context
202
+ # @param [String] message
203
+ # @param [Aws::ElasticLoadBalancing::Types::OperationNotPermittedException] data
204
+ def initialize(context, message, data = Aws::EmptyStructure.new)
205
+ super(context, message, data)
206
+ end
207
+ end
208
+
209
+ class PolicyNotFoundException < ServiceError
210
+
211
+ # @param [Seahorse::Client::RequestContext] context
212
+ # @param [String] message
213
+ # @param [Aws::ElasticLoadBalancing::Types::PolicyNotFoundException] data
214
+ def initialize(context, message, data = Aws::EmptyStructure.new)
215
+ super(context, message, data)
216
+ end
217
+ end
218
+
219
+ class PolicyTypeNotFoundException < ServiceError
220
+
221
+ # @param [Seahorse::Client::RequestContext] context
222
+ # @param [String] message
223
+ # @param [Aws::ElasticLoadBalancing::Types::PolicyTypeNotFoundException] data
224
+ def initialize(context, message, data = Aws::EmptyStructure.new)
225
+ super(context, message, data)
226
+ end
227
+ end
228
+
229
+ class SubnetNotFoundException < ServiceError
230
+
231
+ # @param [Seahorse::Client::RequestContext] context
232
+ # @param [String] message
233
+ # @param [Aws::ElasticLoadBalancing::Types::SubnetNotFoundException] data
234
+ def initialize(context, message, data = Aws::EmptyStructure.new)
235
+ super(context, message, data)
236
+ end
237
+ end
238
+
239
+ class TooManyAccessPointsException < ServiceError
240
+
241
+ # @param [Seahorse::Client::RequestContext] context
242
+ # @param [String] message
243
+ # @param [Aws::ElasticLoadBalancing::Types::TooManyAccessPointsException] data
244
+ def initialize(context, message, data = Aws::EmptyStructure.new)
245
+ super(context, message, data)
246
+ end
247
+ end
248
+
249
+ class TooManyPoliciesException < ServiceError
250
+
251
+ # @param [Seahorse::Client::RequestContext] context
252
+ # @param [String] message
253
+ # @param [Aws::ElasticLoadBalancing::Types::TooManyPoliciesException] data
254
+ def initialize(context, message, data = Aws::EmptyStructure.new)
255
+ super(context, message, data)
256
+ end
257
+ end
258
+
259
+ class TooManyTagsException < ServiceError
260
+
261
+ # @param [Seahorse::Client::RequestContext] context
262
+ # @param [String] message
263
+ # @param [Aws::ElasticLoadBalancing::Types::TooManyTagsException] data
264
+ def initialize(context, message, data = Aws::EmptyStructure.new)
265
+ super(context, message, data)
266
+ end
267
+ end
268
+
269
+ class UnsupportedProtocolException < ServiceError
270
+
271
+ # @param [Seahorse::Client::RequestContext] context
272
+ # @param [String] message
273
+ # @param [Aws::ElasticLoadBalancing::Types::UnsupportedProtocolException] data
274
+ def initialize(context, message, data = Aws::EmptyStructure.new)
275
+ super(context, message, data)
276
+ end
277
+ end
278
+
13
279
  end
14
280
  end