aws-sdk 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aws/api_config/{EC2-2012-06-01.yml → EC2-2012-07-20.yml} +191 -9
- data/lib/aws/api_config/{ELB-2011-08-15.yml → ELB-2012-06-01.yml} +85 -1
- data/lib/aws/core.rb +1 -1
- data/lib/aws/core/rest_client/output_handler.rb +12 -2
- data/lib/aws/ec2/client.rb +180 -936
- data/lib/aws/ec2/instance_collection.rb +10 -10
- data/lib/aws/ec2/volume.rb +4 -0
- data/lib/aws/ec2/volume_collection.rb +4 -0
- data/lib/aws/elb/client.rb +168 -94
- data/lib/aws/s3/s3_object.rb +1 -1
- metadata +71 -83
@@ -132,12 +132,12 @@ module AWS
|
|
132
132
|
# be used when launching an instance.
|
133
133
|
#
|
134
134
|
# @option options [Array] :security_groups Security groups are used
|
135
|
-
# to determine network access rules for the instances.
|
135
|
+
# to determine network access rules for the instances.
|
136
136
|
# +:security_groups+ can be a single value or an array of values.
|
137
137
|
# Values should be group name strings or {SecurityGroup} objects.
|
138
138
|
#
|
139
|
-
# @option options [Array<String>] :security_group_ids Security groups
|
140
|
-
# are used to determine network access rules for the instances.
|
139
|
+
# @option options [Array<String>] :security_group_ids Security groups
|
140
|
+
# are used to determine network access rules for the instances.
|
141
141
|
# +:security_group_ids+ accepts a single ID or an array of security
|
142
142
|
# group IDs.
|
143
143
|
#
|
@@ -176,11 +176,11 @@ module AWS
|
|
176
176
|
# Determines whether the instance stops or terminates on
|
177
177
|
# instance-initiated shutdown.
|
178
178
|
#
|
179
|
-
# @option options [Subnet,String] :subnet (nil) The VPC Subnet (or
|
179
|
+
# @option options [Subnet,String] :subnet (nil) The VPC Subnet (or
|
180
180
|
# subnet id string) to launch the instance in.
|
181
181
|
#
|
182
182
|
# @option options [String] :private_ip_address (nil) If you're using VPC,
|
183
|
-
# you can optionally use this option to assign the instance a
|
183
|
+
# you can optionally use this option to assign the instance a
|
184
184
|
# specific available IP address from the subnet (e.g., '10.0.0.25').
|
185
185
|
# This option is not valid for instances launched outside a VPC (i.e.
|
186
186
|
# those launched without the :subnet option).
|
@@ -192,9 +192,9 @@ module AWS
|
|
192
192
|
# valid for instances launched outside a VPC (e.g. those
|
193
193
|
# launched without the :subnet option).
|
194
194
|
#
|
195
|
-
# @return [Instance or Array] If a single instance is being created,
|
195
|
+
# @return [Instance or Array] If a single instance is being created,
|
196
196
|
# this returns an {EC2::Instance} to represent the newly
|
197
|
-
# created instance. Otherwise it returns an array of instance
|
197
|
+
# created instance. Otherwise it returns an array of instance
|
198
198
|
# objects.
|
199
199
|
#
|
200
200
|
def create options = {}
|
@@ -204,7 +204,7 @@ module AWS
|
|
204
204
|
when /^arn:aws:iam::/ then { :arn => profile }
|
205
205
|
when String then { :name => profile }
|
206
206
|
when Hash then profile
|
207
|
-
else
|
207
|
+
else
|
208
208
|
msg = "expected a name or ARN string for :iam_instance_profile"
|
209
209
|
end
|
210
210
|
options[:iam_instance_profile] = profile
|
@@ -248,7 +248,7 @@ module AWS
|
|
248
248
|
end
|
249
249
|
|
250
250
|
if options[:dedicated_tenancy]
|
251
|
-
placement[:tenancy] = 'dedicated'
|
251
|
+
placement[:tenancy] = 'dedicated'
|
252
252
|
options.delete(:dedicated_tenancy)
|
253
253
|
end
|
254
254
|
|
@@ -351,7 +351,7 @@ module AWS
|
|
351
351
|
|
352
352
|
else
|
353
353
|
|
354
|
-
# non-vpc instances accept both group names and ids, so
|
354
|
+
# non-vpc instances accept both group names and ids, so
|
355
355
|
# we accept whichever
|
356
356
|
options[:security_groups] = names unless names.empty?
|
357
357
|
options[:security_group_ids] = ids unless ids.empty?
|
data/lib/aws/ec2/volume.rb
CHANGED
@@ -48,6 +48,8 @@ module AWS
|
|
48
48
|
# @attr_reader [Time] create_time The time at which the volume
|
49
49
|
# was created.
|
50
50
|
#
|
51
|
+
# @attr_reader [String] iops
|
52
|
+
#
|
51
53
|
class Volume < Resource
|
52
54
|
|
53
55
|
include TaggedItem
|
@@ -76,6 +78,8 @@ module AWS
|
|
76
78
|
|
77
79
|
attribute :attachment_set
|
78
80
|
|
81
|
+
attribute :iops, :static => true
|
82
|
+
|
79
83
|
populates_from(:create_volume) do |resp|
|
80
84
|
resp if resp.volume_id == id
|
81
85
|
end
|
data/lib/aws/elb/client.rb
CHANGED
@@ -17,7 +17,7 @@ module AWS
|
|
17
17
|
# Client class for Elastic Load Balancing (ELB).
|
18
18
|
class Client < Core::Client
|
19
19
|
|
20
|
-
API_VERSION = '
|
20
|
+
API_VERSION = '2012-06-01'
|
21
21
|
|
22
22
|
extend Core::QueryClient
|
23
23
|
|
@@ -26,6 +26,36 @@ module AWS
|
|
26
26
|
|
27
27
|
## client methods ##
|
28
28
|
|
29
|
+
# Calls the ApplySecurityGroupsToLoadBalancer API operation.
|
30
|
+
# @method apply_security_groups_to_load_balancer(options = {})
|
31
|
+
# @param [Hash] options
|
32
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
33
|
+
# with the LoadBalancer. The name must be unique within the client
|
34
|
+
# AWS account.
|
35
|
+
# * +:security_groups+ - *required* - (Array<String>) A list of
|
36
|
+
# security group IDs to associate with your LoadBalancer in VPC. The
|
37
|
+
# security group IDs must be provided as the ID and not the security
|
38
|
+
# group name (For example, sg-1234).
|
39
|
+
# @return [Core::Response]
|
40
|
+
# The #data method of the response object returns
|
41
|
+
# a hash with the following structure:
|
42
|
+
# * +:security_groups+ - (Array<>)
|
43
|
+
define_client_method :apply_security_groups_to_load_balancer, 'ApplySecurityGroupsToLoadBalancer'
|
44
|
+
|
45
|
+
# Calls the AttachLoadBalancerToSubnets API operation.
|
46
|
+
# @method attach_load_balancer_to_subnets(options = {})
|
47
|
+
# @param [Hash] options
|
48
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
49
|
+
# with the LoadBalancer. The name must be unique within the client
|
50
|
+
# AWS account.
|
51
|
+
# * +:subnets+ - *required* - (Array<String>) A list of subnet IDs to
|
52
|
+
# add for the LoadBalancer.
|
53
|
+
# @return [Core::Response]
|
54
|
+
# The #data method of the response object returns
|
55
|
+
# a hash with the following structure:
|
56
|
+
# * +:subnets+ - (Array<>)
|
57
|
+
define_client_method :attach_load_balancer_to_subnets, 'AttachLoadBalancerToSubnets'
|
58
|
+
|
29
59
|
# Calls the ConfigureHealthCheck API operation.
|
30
60
|
# @method configure_health_check(options = {})
|
31
61
|
# @param [Hash] options
|
@@ -35,13 +65,15 @@ module AWS
|
|
35
65
|
# * +:health_check+ - *required* - (Hash) A structure containing the
|
36
66
|
# configuration information for the new healthcheck.
|
37
67
|
# * +:target+ - *required* - (String) Specifies the instance being
|
38
|
-
# checked. The protocol is either TCP or
|
39
|
-
# ports is one (1) through 65535. TCP is the
|
40
|
-
# a TCP: port pair, for example "TCP:5000".
|
41
|
-
# healthcheck simply attempts to open a TCP
|
42
|
-
# instance on the specified port. Failure to
|
43
|
-
# configured timeout is considered unhealthy.
|
44
|
-
#
|
68
|
+
# checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The
|
69
|
+
# range of valid ports is one (1) through 65535. TCP is the
|
70
|
+
# default, specified as a TCP: port pair, for example "TCP:5000".
|
71
|
+
# In this case a healthcheck simply attempts to open a TCP
|
72
|
+
# connection to the instance on the specified port. Failure to
|
73
|
+
# connect within the configured timeout is considered unhealthy.
|
74
|
+
# SSL is also specified as SSL: port pair, for example, SSL:5000.
|
75
|
+
# For HTTP or HTTPS protocol, the situation is different. You have
|
76
|
+
# to include a ping path in the string. HTTP is specified as a
|
45
77
|
# HTTP:port;/;PathToPing; grouping, for example
|
46
78
|
# "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request
|
47
79
|
# is issued to the instance on the given port and path. Any answer
|
@@ -64,7 +96,6 @@ module AWS
|
|
64
96
|
# The #data method of the response object returns
|
65
97
|
# a hash with the following structure:
|
66
98
|
# * +:health_check+ - (Hash)
|
67
|
-
# * +:target+ - (String)
|
68
99
|
# * +:interval+ - (Integer)
|
69
100
|
# * +:timeout+ - (Integer)
|
70
101
|
# * +:unhealthy_threshold+ - (Integer)
|
@@ -79,7 +110,7 @@ module AWS
|
|
79
110
|
# AWS account.
|
80
111
|
# * +:policy_name+ - *required* - (String) The name of the policy being
|
81
112
|
# created. The name must be unique within the set of policies for
|
82
|
-
# this
|
113
|
+
# this LoadBalancer.
|
83
114
|
# * +:cookie_name+ - *required* - (String) Name of the application
|
84
115
|
# cookie used for stickiness.
|
85
116
|
# @return [Core::Response]
|
@@ -93,7 +124,7 @@ module AWS
|
|
93
124
|
# AWS account.
|
94
125
|
# * +:policy_name+ - *required* - (String) The name of the policy being
|
95
126
|
# created. The name must be unique within the set of policies for
|
96
|
-
# this
|
127
|
+
# this LoadBalancer.
|
97
128
|
# * +:cookie_expiration_period+ - (Integer) The time period in seconds
|
98
129
|
# after which the cookie should be considered stale. Not specifying
|
99
130
|
# this parameter indicates that the sticky session will last for the
|
@@ -110,29 +141,47 @@ module AWS
|
|
110
141
|
# * +:listeners+ - *required* - (Array<Hash>) A list of the following
|
111
142
|
# tuples: LoadBalancerPort, InstancePort, and Protocol.
|
112
143
|
# * +:protocol+ - *required* - (String) Specifies the LoadBalancer
|
113
|
-
# transport protocol to use for routing - TCP or
|
114
|
-
# property cannot be modified for the life of the
|
144
|
+
# transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
|
145
|
+
# This property cannot be modified for the life of the
|
146
|
+
# LoadBalancer.
|
115
147
|
# * +:load_balancer_port+ - *required* - (Integer) Specifies the
|
116
148
|
# external LoadBalancer port number. This property cannot be
|
117
149
|
# modified for the life of the LoadBalancer.
|
118
|
-
# * +:instance_protocol+ - (String)
|
150
|
+
# * +:instance_protocol+ - (String) Specifies the protocol to use for
|
151
|
+
# routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
|
152
|
+
# This property cannot be modified for the life of the
|
153
|
+
# LoadBalancer. If the front-end protocol is HTTP or HTTPS,
|
154
|
+
# InstanceProtocol has to be at the same protocol layer, i.e., HTTP
|
155
|
+
# or HTTPS. Likewise, if the front-end protocol is TCP or SSL,
|
156
|
+
# InstanceProtocol has to be TCP or SSL. If there is another
|
157
|
+
# listener with the same InstancePort whose InstanceProtocol is
|
158
|
+
# secure, i.e., HTTPS or SSL, the listener's InstanceProtocol has
|
159
|
+
# to be secure, i.e., HTTPS or SSL. If there is another listener
|
160
|
+
# with the same InstancePort whose InstanceProtocol is HTTP or TCP,
|
161
|
+
# the listener's InstanceProtocol must be either HTTP or TCP.
|
119
162
|
# * +:instance_port+ - *required* - (Integer) Specifies the TCP port
|
120
163
|
# on which the instance server is listening. This property cannot
|
121
164
|
# be modified for the life of the LoadBalancer.
|
122
|
-
# * +:ssl_certificate_id+ - (String) The
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
# Availability Zones
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
165
|
+
# * +:ssl_certificate_id+ - (String) The ARN string of the server
|
166
|
+
# certificate. To get the ARN of the server certificate, call the
|
167
|
+
# AWS Identity and Access Management UploadServerCertificate API.
|
168
|
+
# * +:availability_zones+ - (Array<String>) A list of Availability
|
169
|
+
# Zones. At least one Availability Zone must be specified. Specified
|
170
|
+
# Availability Zones must be in the same EC2 Region as the
|
171
|
+
# LoadBalancer. Traffic will be equally distributed across all zones.
|
172
|
+
# This list can be modified after the creation of the LoadBalancer.
|
173
|
+
# * +:subnets+ - (Array<String>) A list of subnet IDs in your VPC to
|
174
|
+
# attach to your LoadBalancer.
|
175
|
+
# * +:security_groups+ - (Array<String>) The security groups assigned
|
176
|
+
# to your LoadBalancer within your VPC.
|
177
|
+
# * +:scheme+ - (String) The type of a LoadBalancer. This option is
|
178
|
+
# only available for LoadBalancers attached to a Amazon VPC. By
|
179
|
+
# default, Elastic Load Balancer creates an internet-facing load
|
180
|
+
# balancer with publicly resolvable DNS name that resolves to public
|
181
|
+
# IP addresses. Specify the value internal for this option to create
|
182
|
+
# an internal load balancer with a DNS name that resolves to private
|
183
|
+
# IP addresses.
|
132
184
|
# @return [Core::Response]
|
133
|
-
# The #data method of the response object returns
|
134
|
-
# a hash with the following structure:
|
135
|
-
# * +:dns_name+ - (String)
|
136
185
|
define_client_method :create_load_balancer, 'CreateLoadBalancer'
|
137
186
|
|
138
187
|
# Calls the CreateLoadBalancerListeners API operation.
|
@@ -144,31 +193,51 @@ module AWS
|
|
144
193
|
# LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId
|
145
194
|
# items.
|
146
195
|
# * +:protocol+ - *required* - (String) Specifies the LoadBalancer
|
147
|
-
# transport protocol to use for routing - TCP or
|
148
|
-
# property cannot be modified for the life of the
|
196
|
+
# transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
|
197
|
+
# This property cannot be modified for the life of the
|
198
|
+
# LoadBalancer.
|
149
199
|
# * +:load_balancer_port+ - *required* - (Integer) Specifies the
|
150
200
|
# external LoadBalancer port number. This property cannot be
|
151
201
|
# modified for the life of the LoadBalancer.
|
152
|
-
# * +:instance_protocol+ - (String)
|
202
|
+
# * +:instance_protocol+ - (String) Specifies the protocol to use for
|
203
|
+
# routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
|
204
|
+
# This property cannot be modified for the life of the
|
205
|
+
# LoadBalancer. If the front-end protocol is HTTP or HTTPS,
|
206
|
+
# InstanceProtocol has to be at the same protocol layer, i.e., HTTP
|
207
|
+
# or HTTPS. Likewise, if the front-end protocol is TCP or SSL,
|
208
|
+
# InstanceProtocol has to be TCP or SSL. If there is another
|
209
|
+
# listener with the same InstancePort whose InstanceProtocol is
|
210
|
+
# secure, i.e., HTTPS or SSL, the listener's InstanceProtocol has
|
211
|
+
# to be secure, i.e., HTTPS or SSL. If there is another listener
|
212
|
+
# with the same InstancePort whose InstanceProtocol is HTTP or TCP,
|
213
|
+
# the listener's InstanceProtocol must be either HTTP or TCP.
|
153
214
|
# * +:instance_port+ - *required* - (Integer) Specifies the TCP port
|
154
215
|
# on which the instance server is listening. This property cannot
|
155
216
|
# be modified for the life of the LoadBalancer.
|
156
|
-
# * +:ssl_certificate_id+ - (String) The
|
157
|
-
#
|
158
|
-
#
|
159
|
-
# Management documentation.
|
217
|
+
# * +:ssl_certificate_id+ - (String) The ARN string of the server
|
218
|
+
# certificate. To get the ARN of the server certificate, call the
|
219
|
+
# AWS Identity and Access Management UploadServerCertificate API.
|
160
220
|
# @return [Core::Response]
|
161
221
|
define_client_method :create_load_balancer_listeners, 'CreateLoadBalancerListeners'
|
162
222
|
|
163
223
|
# Calls the CreateLoadBalancerPolicy API operation.
|
164
224
|
# @method create_load_balancer_policy(options = {})
|
165
225
|
# @param [Hash] options
|
166
|
-
# * +:load_balancer_name+ - *required* - (String)
|
167
|
-
#
|
168
|
-
#
|
169
|
-
# * +:
|
170
|
-
#
|
171
|
-
#
|
226
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
227
|
+
# with the LoadBalancer for which the policy is being created. This
|
228
|
+
# name must be unique within the client AWS account.
|
229
|
+
# * +:policy_name+ - *required* - (String) The name of the LoadBalancer
|
230
|
+
# policy being created. The name must be unique within the set of
|
231
|
+
# policies for this LoadBalancer.
|
232
|
+
# * +:policy_type_name+ - *required* - (String) The name of the base
|
233
|
+
# policy type being used to create this policy. To get the list of
|
234
|
+
# policy types, use the DescribeLoadBalancerPolicyTypes action.
|
235
|
+
# * +:policy_attributes+ - (Array<Hash>) A list of attributes
|
236
|
+
# associated with the policy being created.
|
237
|
+
# * +:attribute_name+ - (String) The name of the attribute associated
|
238
|
+
# with the policy.
|
239
|
+
# * +:attribute_value+ - (String) The value of the attribute
|
240
|
+
# associated with the policy.
|
172
241
|
# @return [Core::Response]
|
173
242
|
define_client_method :create_load_balancer_policy, 'CreateLoadBalancerPolicy'
|
174
243
|
|
@@ -214,8 +283,7 @@ module AWS
|
|
214
283
|
# @return [Core::Response]
|
215
284
|
# The #data method of the response object returns
|
216
285
|
# a hash with the following structure:
|
217
|
-
# * +:instances+ - (Array<
|
218
|
-
# * +:instance_id+ - (String)
|
286
|
+
# * +:instances+ - (Array<String>)
|
219
287
|
define_client_method :deregister_instances_from_load_balancer, 'DeregisterInstancesFromLoadBalancer'
|
220
288
|
|
221
289
|
# Calls the DescribeInstanceHealth API operation.
|
@@ -230,45 +298,37 @@ module AWS
|
|
230
298
|
# @return [Core::Response]
|
231
299
|
# The #data method of the response object returns
|
232
300
|
# a hash with the following structure:
|
233
|
-
# * +:instance_states+ - (Array
|
234
|
-
# * +:instance_id+ - (String)
|
235
|
-
# * +:state+ - (String)
|
236
|
-
# * +:reason_code+ - (String)
|
237
|
-
# * +:description+ - (String)
|
301
|
+
# * +:instance_states+ - (Array<>)
|
238
302
|
define_client_method :describe_instance_health, 'DescribeInstanceHealth'
|
239
303
|
|
240
304
|
# Calls the DescribeLoadBalancerPolicies API operation.
|
241
305
|
# @method describe_load_balancer_policies(options = {})
|
242
306
|
# @param [Hash] options
|
243
|
-
# * +:load_balancer_name+ - (String)
|
244
|
-
#
|
307
|
+
# * +:load_balancer_name+ - (String) The mnemonic name associated with
|
308
|
+
# the LoadBalancer. If no name is specified, the operation returns
|
309
|
+
# the attributes of either all the sample policies pre-defined by
|
310
|
+
# Elastic Load Balancing or the specified sample polices.
|
311
|
+
# * +:policy_names+ - (Array<String>) The names of LoadBalancer
|
312
|
+
# policies you've created or Elastic Load Balancing sample policy
|
313
|
+
# names.
|
245
314
|
# @return [Core::Response]
|
246
315
|
# The #data method of the response object returns
|
247
316
|
# a hash with the following structure:
|
248
317
|
# * +:policy_descriptions+ - (Array<Hash>)
|
249
|
-
# * +:
|
250
|
-
# * +:policy_type_name+ - (String)
|
251
|
-
# * +:policy_attribute_descriptions+ - (Array<Hash>)
|
252
|
-
# * +:attribute_name+ - (String)
|
253
|
-
# * +:attribute_value+ - (String)
|
318
|
+
# * +:policy_attribute_descriptions+ - (Array<>)
|
254
319
|
define_client_method :describe_load_balancer_policies, 'DescribeLoadBalancerPolicies'
|
255
320
|
|
256
321
|
# Calls the DescribeLoadBalancerPolicyTypes API operation.
|
257
322
|
# @method describe_load_balancer_policy_types(options = {})
|
258
323
|
# @param [Hash] options
|
259
|
-
# * +:policy_type_names+ - (Array<String>)
|
324
|
+
# * +:policy_type_names+ - (Array<String>) Specifies the name of the
|
325
|
+
# policy types. If no names are specified, returns the description of
|
326
|
+
# all the policy types defined by Elastic Load Balancing service.
|
260
327
|
# @return [Core::Response]
|
261
328
|
# The #data method of the response object returns
|
262
329
|
# a hash with the following structure:
|
263
330
|
# * +:policy_type_descriptions+ - (Array<Hash>)
|
264
|
-
# * +:
|
265
|
-
# * +:description+ - (String)
|
266
|
-
# * +:policy_attribute_type_descriptions+ - (Array<Hash>)
|
267
|
-
# * +:attribute_name+ - (String)
|
268
|
-
# * +:attribute_type+ - (String)
|
269
|
-
# * +:description+ - (String)
|
270
|
-
# * +:default_value+ - (String)
|
271
|
-
# * +:cardinality+ - (String)
|
331
|
+
# * +:policy_attribute_type_descriptions+ - (Array<>)
|
272
332
|
define_client_method :describe_load_balancer_policy_types, 'DescribeLoadBalancerPolicyTypes'
|
273
333
|
|
274
334
|
# Calls the DescribeLoadBalancers API operation.
|
@@ -276,48 +336,50 @@ module AWS
|
|
276
336
|
# @param [Hash] options
|
277
337
|
# * +:load_balancer_names+ - (Array<String>) A list of names associated
|
278
338
|
# with the LoadBalancers at creation time.
|
339
|
+
# * +:marker+ - (String) An optional parameter reserved for future use.
|
279
340
|
# @return [Core::Response]
|
280
341
|
# The #data method of the response object returns
|
281
342
|
# a hash with the following structure:
|
282
343
|
# * +:load_balancer_descriptions+ - (Array<Hash>)
|
283
|
-
# * +:load_balancer_name+ - (String)
|
284
|
-
# * +:dns_name+ - (String)
|
285
|
-
# * +:canonical_hosted_zone_name+ - (String)
|
286
|
-
# * +:canonical_hosted_zone_name_id+ - (String)
|
287
344
|
# * +:listener_descriptions+ - (Array<Hash>)
|
288
345
|
# * +:listener+ - (Hash)
|
289
|
-
# * +:protocol+ - (String)
|
290
346
|
# * +:load_balancer_port+ - (Integer)
|
291
|
-
# * +:instance_protocol+ - (String)
|
292
347
|
# * +:instance_port+ - (Integer)
|
293
|
-
#
|
294
|
-
# * +:policy_names+ - (Array<String>)
|
348
|
+
# * +:policy_names+ - (Array<>)
|
295
349
|
# * +:policies+ - (Hash)
|
296
|
-
# * +:app_cookie_stickiness_policies+ - (Array
|
297
|
-
# * +:policy_name+ - (String)
|
298
|
-
# * +:cookie_name+ - (String)
|
350
|
+
# * +:app_cookie_stickiness_policies+ - (Array<>)
|
299
351
|
# * +:lb_cookie_stickiness_policies+ - (Array<Hash>)
|
300
|
-
# * +:policy_name+ - (String)
|
301
352
|
# * +:cookie_expiration_period+ - (Integer)
|
302
|
-
# * +:other_policies+ - (Array
|
353
|
+
# * +:other_policies+ - (Array<>)
|
303
354
|
# * +:backend_server_descriptions+ - (Array<Hash>)
|
304
355
|
# * +:instance_port+ - (Integer)
|
305
|
-
# * +:policy_names+ - (Array
|
306
|
-
# * +:availability_zones+ - (Array
|
307
|
-
# * +:
|
308
|
-
#
|
356
|
+
# * +:policy_names+ - (Array<>)
|
357
|
+
# * +:availability_zones+ - (Array<>)
|
358
|
+
# * +:subnets+ - (Array<>)
|
359
|
+
# * +:instances+ - (Array<>)
|
309
360
|
# * +:health_check+ - (Hash)
|
310
|
-
# * +:target+ - (String)
|
311
361
|
# * +:interval+ - (Integer)
|
312
362
|
# * +:timeout+ - (Integer)
|
313
363
|
# * +:unhealthy_threshold+ - (Integer)
|
314
364
|
# * +:healthy_threshold+ - (Integer)
|
315
|
-
# * +:
|
316
|
-
# * +:owner_alias+ - (String)
|
317
|
-
# * +:group_name+ - (String)
|
365
|
+
# * +:security_groups+ - (Array<>)
|
318
366
|
# * +:created_time+ - (Time)
|
319
367
|
define_client_method :describe_load_balancers, 'DescribeLoadBalancers'
|
320
368
|
|
369
|
+
# Calls the DetachLoadBalancerFromSubnets API operation.
|
370
|
+
# @method detach_load_balancer_from_subnets(options = {})
|
371
|
+
# @param [Hash] options
|
372
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
373
|
+
# with the LoadBalancer to be detached. The name must be unique
|
374
|
+
# within the client AWS account.
|
375
|
+
# * +:subnets+ - *required* - (Array<String>) A list of subnet IDs to
|
376
|
+
# remove from the set of configured subnets for the LoadBalancer.
|
377
|
+
# @return [Core::Response]
|
378
|
+
# The #data method of the response object returns
|
379
|
+
# a hash with the following structure:
|
380
|
+
# * +:subnets+ - (Array<>)
|
381
|
+
define_client_method :detach_load_balancer_from_subnets, 'DetachLoadBalancerFromSubnets'
|
382
|
+
|
321
383
|
# Calls the DisableAvailabilityZonesForLoadBalancer API operation.
|
322
384
|
# @method disable_availability_zones_for_load_balancer(options = {})
|
323
385
|
# @param [Hash] options
|
@@ -333,7 +395,7 @@ module AWS
|
|
333
395
|
# @return [Core::Response]
|
334
396
|
# The #data method of the response object returns
|
335
397
|
# a hash with the following structure:
|
336
|
-
# * +:availability_zones+ - (Array
|
398
|
+
# * +:availability_zones+ - (Array<>)
|
337
399
|
define_client_method :disable_availability_zones_for_load_balancer, 'DisableAvailabilityZonesForLoadBalancer'
|
338
400
|
|
339
401
|
# Calls the EnableAvailabilityZonesForLoadBalancer API operation.
|
@@ -348,7 +410,7 @@ module AWS
|
|
348
410
|
# @return [Core::Response]
|
349
411
|
# The #data method of the response object returns
|
350
412
|
# a hash with the following structure:
|
351
|
-
# * +:availability_zones+ - (Array
|
413
|
+
# * +:availability_zones+ - (Array<>)
|
352
414
|
define_client_method :enable_availability_zones_for_load_balancer, 'EnableAvailabilityZonesForLoadBalancer'
|
353
415
|
|
354
416
|
# Calls the RegisterInstancesWithLoadBalancer API operation.
|
@@ -357,14 +419,21 @@ module AWS
|
|
357
419
|
# * +:load_balancer_name+ - *required* - (String) The name associated
|
358
420
|
# with the LoadBalancer. The name must be unique within the client
|
359
421
|
# AWS account.
|
360
|
-
# * +:instances+ - *required* - (Array<Hash>) A list of
|
361
|
-
# that should be registered with the LoadBalancer.
|
422
|
+
# * +:instances+ - *required* - (Array<Hash>) A list of instance IDs
|
423
|
+
# that should be registered with the LoadBalancer. When the instance
|
424
|
+
# is stopped and then restarted, the IP addresses associated with
|
425
|
+
# your instance changes. Elastic Load Balancing cannot recognize the
|
426
|
+
# new IP address, which prevents it from routing traffic to your
|
427
|
+
# instances. We recommend that you de-register your Amazon EC2
|
428
|
+
# instances from your load balancer after you stop your instance, and
|
429
|
+
# then register the load balancer with your instance after you've
|
430
|
+
# restarted. To de-register your instances from load balancer, use
|
431
|
+
# DeregisterInstancesFromLoadBalancer action.
|
362
432
|
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
363
433
|
# @return [Core::Response]
|
364
434
|
# The #data method of the response object returns
|
365
435
|
# a hash with the following structure:
|
366
|
-
# * +:instances+ - (Array
|
367
|
-
# * +:instance_id+ - (String)
|
436
|
+
# * +:instances+ - (Array<>)
|
368
437
|
define_client_method :register_instances_with_load_balancer, 'RegisterInstancesWithLoadBalancer'
|
369
438
|
|
370
439
|
# Calls the SetLoadBalancerListenerSSLCertificate API operation.
|
@@ -384,9 +453,14 @@ module AWS
|
|
384
453
|
# Calls the SetLoadBalancerPoliciesForBackendServer API operation.
|
385
454
|
# @method set_load_balancer_policies_for_backend_server(options = {})
|
386
455
|
# @param [Hash] options
|
387
|
-
# * +:load_balancer_name+ - *required* - (String)
|
388
|
-
#
|
389
|
-
#
|
456
|
+
# * +:load_balancer_name+ - *required* - (String) The mnemonic name
|
457
|
+
# associated with the LoadBalancer. This name must be unique within
|
458
|
+
# the client AWS account.
|
459
|
+
# * +:instance_port+ - *required* - (Integer) The port number
|
460
|
+
# associated with the back-end server.
|
461
|
+
# * +:policy_names+ - *required* - (Array<String>) List of policy names
|
462
|
+
# to be set. If the list is empty, then all current polices are
|
463
|
+
# removed from the back-end server.
|
390
464
|
# @return [Core::Response]
|
391
465
|
define_client_method :set_load_balancer_policies_for_backend_server, 'SetLoadBalancerPoliciesForBackendServer'
|
392
466
|
|
@@ -397,7 +471,7 @@ module AWS
|
|
397
471
|
# with the LoadBalancer. The name must be unique within the client
|
398
472
|
# AWS account.
|
399
473
|
# * +:load_balancer_port+ - *required* - (Integer) The external port of
|
400
|
-
# the LoadBalancer with which this policy
|
474
|
+
# the LoadBalancer with which this policy applies to.
|
401
475
|
# * +:policy_names+ - *required* - (Array<String>) List of policies to
|
402
476
|
# be associated with the listener. Currently this list can have at
|
403
477
|
# most one policy. If the list is empty, the current policy is
|