aws-sdk 1.5.8 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aws.rb +2 -0
- data/lib/aws/api_config/Route53-2012-02-29.yml +348 -0
- data/lib/aws/auto_scaling/client.rb +362 -588
- data/lib/aws/cloud_formation/client.rb +155 -224
- data/lib/aws/cloud_watch/client.rb +156 -229
- data/lib/aws/core.rb +67 -52
- data/lib/aws/core/client.rb +81 -82
- data/lib/aws/core/collection/with_limit_and_next_token.rb +2 -2
- data/lib/aws/core/configuration.rb +75 -72
- data/lib/aws/core/http/net_http_handler.rb +3 -3
- data/lib/aws/core/http/request.rb +107 -138
- data/lib/aws/core/inflection.rb +3 -3
- data/lib/aws/core/json_client.rb +106 -0
- data/lib/aws/core/option_grammar.rb +10 -1
- data/lib/aws/core/options/validator.rb +140 -0
- data/lib/aws/core/options/xml_serializer.rb +98 -0
- data/lib/aws/core/query_client.rb +131 -0
- data/lib/aws/core/rest_client.rb +90 -0
- data/lib/aws/core/rest_client/input_handler.rb +145 -0
- data/lib/aws/core/rest_client/output_handler.rb +43 -0
- data/lib/aws/core/signature/version_2.rb +7 -7
- data/lib/aws/core/signature/version_3.rb +5 -1
- data/lib/aws/core/signature/version_3_https.rb +51 -0
- data/lib/aws/core/signature/version_4.rb +5 -22
- data/lib/aws/core/signer.rb +1 -1
- data/lib/aws/core/uri_escape.rb +2 -0
- data/lib/aws/core/xml/frame.rb +8 -8
- data/lib/aws/core/xml/grammar.rb +8 -3
- data/lib/aws/dynamo_db/client.rb +600 -662
- data/lib/aws/ec2/client.rb +2688 -3492
- data/lib/aws/ec2/request.rb +0 -1
- data/lib/aws/elb/client.rb +280 -407
- data/lib/aws/emr/client.rb +7 -7
- data/lib/aws/iam/client.rb +822 -1268
- data/lib/aws/route_53.rb +71 -0
- data/lib/aws/route_53/client.rb +272 -0
- data/lib/aws/route_53/config.rb +18 -0
- data/lib/aws/route_53/errors.rb +22 -0
- data/lib/aws/route_53/request.rb +23 -0
- data/lib/aws/s3/object_version_collection.rb +6 -6
- data/lib/aws/s3/paginated_collection.rb +1 -1
- data/lib/aws/s3/request.rb +10 -5
- data/lib/aws/simple_db/client.rb +184 -234
- data/lib/aws/simple_email_service/client.rb +147 -238
- data/lib/aws/simple_workflow/client.rb +997 -1191
- data/lib/aws/sns/client.rb +176 -264
- data/lib/aws/sqs/client.rb +162 -253
- data/lib/aws/sqs/queue.rb +1 -1
- data/lib/aws/sqs/request.rb +4 -0
- data/lib/aws/sts/client.rb +57 -66
- metadata +95 -71
- data/lib/aws/core/client/query_json.rb +0 -112
- data/lib/aws/core/client/query_xml.rb +0 -122
data/lib/aws/ec2/request.rb
CHANGED
data/lib/aws/elb/client.rb
CHANGED
@@ -19,7 +19,7 @@ module AWS
|
|
19
19
|
|
20
20
|
API_VERSION = '2011-08-15'
|
21
21
|
|
22
|
-
extend Core::
|
22
|
+
extend Core::QueryClient
|
23
23
|
|
24
24
|
# @private
|
25
25
|
CACHEABLE_REQUESTS = Set[]
|
@@ -28,508 +28,381 @@ module AWS
|
|
28
28
|
|
29
29
|
# Calls the ConfigureHealthCheck API operation.
|
30
30
|
# @method configure_health_check(options = {})
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# instance to the Healthy state.
|
64
|
-
#
|
65
|
-
# === Response Structure:
|
66
|
-
#
|
67
|
-
# * +:health_check+ - (Hash)
|
68
|
-
# * +:target+ - (String)
|
69
|
-
# * +:interval+ - (Integer)
|
70
|
-
# * +:timeout+ - (Integer)
|
71
|
-
# * +:unhealthy_threshold+ - (Integer)
|
72
|
-
# * +:healthy_threshold+ - (Integer)
|
73
|
-
#
|
31
|
+
# @param [Hash] options
|
32
|
+
# * +:load_balancer_name+ - *required* - (String) The mnemonic name
|
33
|
+
# associated with the LoadBalancer. This name must be unique within
|
34
|
+
# the client AWS account.
|
35
|
+
# * +:health_check+ - *required* - (Hash) A structure containing the
|
36
|
+
# configuration information for the new healthcheck.
|
37
|
+
# * +:target+ - *required* - (String) Specifies the instance being
|
38
|
+
# checked. The protocol is either TCP or HTTP. The range of valid
|
39
|
+
# ports is one (1) through 65535. TCP is the default, specified as
|
40
|
+
# a TCP: port pair, for example "TCP:5000". In this case a
|
41
|
+
# healthcheck simply attempts to open a TCP connection to the
|
42
|
+
# instance on the specified port. Failure to connect within the
|
43
|
+
# configured timeout is considered unhealthy. For HTTP, the
|
44
|
+
# situation is different. HTTP is specified as a
|
45
|
+
# HTTP:port;/;PathToPing; grouping, for example
|
46
|
+
# "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request
|
47
|
+
# is issued to the instance on the given port and path. Any answer
|
48
|
+
# other than "200 OK" within the timeout period is considered
|
49
|
+
# unhealthy. The total length of the HTTP ping target needs to be
|
50
|
+
# 1024 16-bit Unicode characters or less.
|
51
|
+
# * +:interval+ - *required* - (Integer) Specifies the approximate
|
52
|
+
# interval, in seconds, between health checks of an individual
|
53
|
+
# instance.
|
54
|
+
# * +:timeout+ - *required* - (Integer) Specifies the amount of time,
|
55
|
+
# in seconds, during which no response means a failed health probe.
|
56
|
+
# This value must be less than the Interval value.
|
57
|
+
# * +:unhealthy_threshold+ - *required* - (Integer) Specifies the
|
58
|
+
# number of consecutive health probe failures required before
|
59
|
+
# moving the instance to the Unhealthy state.
|
60
|
+
# * +:healthy_threshold+ - *required* - (Integer) Specifies the
|
61
|
+
# number of consecutive health probe successes required before
|
62
|
+
# moving the instance to the Healthy state.
|
74
63
|
# @return [Core::Response]
|
75
|
-
#
|
64
|
+
# The #data method of the response object returns
|
65
|
+
# a hash with the following structure:
|
66
|
+
# * +:health_check+ - (Hash)
|
67
|
+
# * +:target+ - (String)
|
68
|
+
# * +:interval+ - (Integer)
|
69
|
+
# * +:timeout+ - (Integer)
|
70
|
+
# * +:unhealthy_threshold+ - (Integer)
|
71
|
+
# * +:healthy_threshold+ - (Integer)
|
76
72
|
define_client_method :configure_health_check, 'ConfigureHealthCheck'
|
77
73
|
|
78
74
|
# Calls the CreateAppCookieStickinessPolicy API operation.
|
79
75
|
# @method create_app_cookie_stickiness_policy(options = {})
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
# * +:cookie_name+ - *required* - (String) Name of the application cookie
|
90
|
-
# used for stickiness.
|
91
|
-
#
|
92
|
-
# === Response Structure:
|
93
|
-
#
|
94
|
-
# This method returns no response data.
|
95
|
-
#
|
76
|
+
# @param [Hash] options
|
77
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
78
|
+
# with the LoadBalancer. The name must be unique within the client
|
79
|
+
# AWS account.
|
80
|
+
# * +:policy_name+ - *required* - (String) The name of the policy being
|
81
|
+
# created. The name must be unique within the set of policies for
|
82
|
+
# this Load Balancer.
|
83
|
+
# * +:cookie_name+ - *required* - (String) Name of the application
|
84
|
+
# cookie used for stickiness.
|
96
85
|
# @return [Core::Response]
|
97
|
-
#
|
98
86
|
define_client_method :create_app_cookie_stickiness_policy, 'CreateAppCookieStickinessPolicy'
|
99
87
|
|
100
88
|
# Calls the CreateLBCookieStickinessPolicy API operation.
|
101
89
|
# @method create_lb_cookie_stickiness_policy(options = {})
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# this parameter indicates that the sticky session will last for the
|
114
|
-
# duration of the browser session.
|
115
|
-
#
|
116
|
-
# === Response Structure:
|
117
|
-
#
|
118
|
-
# This method returns no response data.
|
119
|
-
#
|
90
|
+
# @param [Hash] options
|
91
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
92
|
+
# with the LoadBalancer. The name must be unique within the client
|
93
|
+
# AWS account.
|
94
|
+
# * +:policy_name+ - *required* - (String) The name of the policy being
|
95
|
+
# created. The name must be unique within the set of policies for
|
96
|
+
# this Load Balancer.
|
97
|
+
# * +:cookie_expiration_period+ - (Integer) The time period in seconds
|
98
|
+
# after which the cookie should be considered stale. Not specifying
|
99
|
+
# this parameter indicates that the sticky session will last for the
|
100
|
+
# duration of the browser session.
|
120
101
|
# @return [Core::Response]
|
121
|
-
#
|
122
102
|
define_client_method :create_lb_cookie_stickiness_policy, 'CreateLBCookieStickinessPolicy'
|
123
103
|
|
124
104
|
# Calls the CreateLoadBalancer API operation.
|
125
105
|
# @method create_load_balancer(options = {})
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# This list can be modified after the creation of the LoadBalancer.
|
153
|
-
#
|
154
|
-
# === Response Structure:
|
155
|
-
#
|
156
|
-
# * +:dns_name+ - (String)
|
157
|
-
#
|
106
|
+
# @param [Hash] options
|
107
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
108
|
+
# with the LoadBalancer. The name must be unique within your set of
|
109
|
+
# LoadBalancers.
|
110
|
+
# * +:listeners+ - *required* - (Array<Hash>) A list of the following
|
111
|
+
# tuples: LoadBalancerPort, InstancePort, and Protocol.
|
112
|
+
# * +:protocol+ - *required* - (String) Specifies the LoadBalancer
|
113
|
+
# transport protocol to use for routing - TCP or HTTP. This
|
114
|
+
# property cannot be modified for the life of the LoadBalancer.
|
115
|
+
# * +:load_balancer_port+ - *required* - (Integer) Specifies the
|
116
|
+
# external LoadBalancer port number. This property cannot be
|
117
|
+
# modified for the life of the LoadBalancer.
|
118
|
+
# * +:instance_protocol+ - (String)
|
119
|
+
# * +:instance_port+ - *required* - (Integer) Specifies the TCP port
|
120
|
+
# on which the instance server is listening. This property cannot
|
121
|
+
# be modified for the life of the LoadBalancer.
|
122
|
+
# * +:ssl_certificate_id+ - (String) The ID of the SSL certificate
|
123
|
+
# chain to use. For more information on SSL certificates, see
|
124
|
+
# Managing Keys and Certificates in the AWS Identity and Access
|
125
|
+
# Management documentation.
|
126
|
+
# * +:availability_zones+ - *required* - (Array<String>) A list of
|
127
|
+
# Availability Zones. At least one Availability Zone must be
|
128
|
+
# specified. Specified Availability Zones must be in the same EC2
|
129
|
+
# Region as the LoadBalancer. Traffic will be equally distributed
|
130
|
+
# across all zones. This list can be modified after the creation of
|
131
|
+
# the LoadBalancer.
|
158
132
|
# @return [Core::Response]
|
159
|
-
#
|
133
|
+
# The #data method of the response object returns
|
134
|
+
# a hash with the following structure:
|
135
|
+
# * +:dns_name+ - (String)
|
160
136
|
define_client_method :create_load_balancer, 'CreateLoadBalancer'
|
161
137
|
|
162
138
|
# Calls the CreateLoadBalancerListeners API operation.
|
163
139
|
# @method create_load_balancer_listeners(options = {})
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# Management documentation.
|
185
|
-
#
|
186
|
-
# === Response Structure:
|
187
|
-
#
|
188
|
-
# This method returns no response data.
|
189
|
-
#
|
140
|
+
# @param [Hash] options
|
141
|
+
# * +:load_balancer_name+ - *required* - (String) The name of the new
|
142
|
+
# LoadBalancer. The name must be unique within your AWS account.
|
143
|
+
# * +:listeners+ - *required* - (Array<Hash>) A list of
|
144
|
+
# LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId
|
145
|
+
# items.
|
146
|
+
# * +:protocol+ - *required* - (String) Specifies the LoadBalancer
|
147
|
+
# transport protocol to use for routing - TCP or HTTP. This
|
148
|
+
# property cannot be modified for the life of the LoadBalancer.
|
149
|
+
# * +:load_balancer_port+ - *required* - (Integer) Specifies the
|
150
|
+
# external LoadBalancer port number. This property cannot be
|
151
|
+
# modified for the life of the LoadBalancer.
|
152
|
+
# * +:instance_protocol+ - (String)
|
153
|
+
# * +:instance_port+ - *required* - (Integer) Specifies the TCP port
|
154
|
+
# on which the instance server is listening. This property cannot
|
155
|
+
# be modified for the life of the LoadBalancer.
|
156
|
+
# * +:ssl_certificate_id+ - (String) The ID of the SSL certificate
|
157
|
+
# chain to use. For more information on SSL certificates, see
|
158
|
+
# Managing Keys and Certificates in the AWS Identity and Access
|
159
|
+
# Management documentation.
|
190
160
|
# @return [Core::Response]
|
191
|
-
#
|
192
161
|
define_client_method :create_load_balancer_listeners, 'CreateLoadBalancerListeners'
|
193
162
|
|
194
163
|
# Calls the CreateLoadBalancerPolicy API operation.
|
195
164
|
# @method create_load_balancer_policy(options = {})
|
196
|
-
#
|
197
|
-
#
|
198
|
-
#
|
199
|
-
#
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
203
|
-
# * +:attribute_name+ - (String)
|
204
|
-
# * +:attribute_value+ - (String)
|
205
|
-
#
|
206
|
-
# === Response Structure:
|
207
|
-
#
|
208
|
-
# This method returns no response data.
|
209
|
-
#
|
165
|
+
# @param [Hash] options
|
166
|
+
# * +:load_balancer_name+ - *required* - (String)
|
167
|
+
# * +:policy_name+ - *required* - (String)
|
168
|
+
# * +:policy_type_name+ - *required* - (String)
|
169
|
+
# * +:policy_attributes+ - (Array<Hash>)
|
170
|
+
# * +:attribute_name+ - (String)
|
171
|
+
# * +:attribute_value+ - (String)
|
210
172
|
# @return [Core::Response]
|
211
|
-
#
|
212
173
|
define_client_method :create_load_balancer_policy, 'CreateLoadBalancerPolicy'
|
213
174
|
|
214
175
|
# Calls the DeleteLoadBalancer API operation.
|
215
176
|
# @method delete_load_balancer(options = {})
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
# with the LoadBalancer. The name must be unique within the client AWS
|
221
|
-
# account.
|
222
|
-
#
|
223
|
-
# === Response Structure:
|
224
|
-
#
|
225
|
-
# This method returns no response data.
|
226
|
-
#
|
177
|
+
# @param [Hash] options
|
178
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
179
|
+
# with the LoadBalancer. The name must be unique within the client
|
180
|
+
# AWS account.
|
227
181
|
# @return [Core::Response]
|
228
|
-
#
|
229
182
|
define_client_method :delete_load_balancer, 'DeleteLoadBalancer'
|
230
183
|
|
231
184
|
# Calls the DeleteLoadBalancerListeners API operation.
|
232
185
|
# @method delete_load_balancer_listeners(options = {})
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
# * +:load_balancer_ports+ - *required* - (Array<Integer>) The client
|
239
|
-
# port number(s) of the LoadBalancerListener(s) to be removed.
|
240
|
-
#
|
241
|
-
# === Response Structure:
|
242
|
-
#
|
243
|
-
# This method returns no response data.
|
244
|
-
#
|
186
|
+
# @param [Hash] options
|
187
|
+
# * +:load_balancer_name+ - *required* - (String) The mnemonic name
|
188
|
+
# associated with the LoadBalancer.
|
189
|
+
# * +:load_balancer_ports+ - *required* - (Array<Integer>) The client
|
190
|
+
# port number(s) of the LoadBalancerListener(s) to be removed.
|
245
191
|
# @return [Core::Response]
|
246
|
-
#
|
247
192
|
define_client_method :delete_load_balancer_listeners, 'DeleteLoadBalancerListeners'
|
248
193
|
|
249
194
|
# Calls the DeleteLoadBalancerPolicy API operation.
|
250
195
|
# @method delete_load_balancer_policy(options = {})
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
# * +:policy_name+ - *required* - (String) The mnemonic name for the
|
258
|
-
# policy being deleted.
|
259
|
-
#
|
260
|
-
# === Response Structure:
|
261
|
-
#
|
262
|
-
# This method returns no response data.
|
263
|
-
#
|
196
|
+
# @param [Hash] options
|
197
|
+
# * +:load_balancer_name+ - *required* - (String) The mnemonic name
|
198
|
+
# associated with the LoadBalancer. The name must be unique within
|
199
|
+
# your AWS account.
|
200
|
+
# * +:policy_name+ - *required* - (String) The mnemonic name for the
|
201
|
+
# policy being deleted.
|
264
202
|
# @return [Core::Response]
|
265
|
-
#
|
266
203
|
define_client_method :delete_load_balancer_policy, 'DeleteLoadBalancerPolicy'
|
267
204
|
|
268
205
|
# Calls the DeregisterInstancesFromLoadBalancer API operation.
|
269
206
|
# @method deregister_instances_from_load_balancer(options = {})
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
# consisting of all instances to be deregistered.
|
278
|
-
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
279
|
-
#
|
280
|
-
# === Response Structure:
|
281
|
-
#
|
282
|
-
# * +:instances+ - (Array<Hash>)
|
283
|
-
# * +:instance_id+ - (String)
|
284
|
-
#
|
207
|
+
# @param [Hash] options
|
208
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
209
|
+
# with the LoadBalancer. The name must be unique within the client
|
210
|
+
# AWS account.
|
211
|
+
# * +:instances+ - *required* - (Array<Hash>) A list of EC2 instance
|
212
|
+
# IDs consisting of all instances to be deregistered.
|
213
|
+
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
285
214
|
# @return [Core::Response]
|
286
|
-
#
|
215
|
+
# The #data method of the response object returns
|
216
|
+
# a hash with the following structure:
|
217
|
+
# * +:instances+ - (Array<Hash>)
|
218
|
+
# * +:instance_id+ - (String)
|
287
219
|
define_client_method :deregister_instances_from_load_balancer, 'DeregisterInstancesFromLoadBalancer'
|
288
220
|
|
289
221
|
# Calls the DescribeInstanceHealth API operation.
|
290
222
|
# @method describe_instance_health(options = {})
|
291
|
-
#
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
# being queried.
|
299
|
-
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
300
|
-
#
|
301
|
-
# === Response Structure:
|
302
|
-
#
|
303
|
-
# * +:instance_states+ - (Array<Hash>)
|
304
|
-
# * +:instance_id+ - (String)
|
305
|
-
# * +:state+ - (String)
|
306
|
-
# * +:reason_code+ - (String)
|
307
|
-
# * +:description+ - (String)
|
308
|
-
#
|
223
|
+
# @param [Hash] options
|
224
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
225
|
+
# with the LoadBalancer. The name must be unique within the client
|
226
|
+
# AWS account.
|
227
|
+
# * +:instances+ - (Array<Hash>) A list of instance IDs whose states
|
228
|
+
# are being queried.
|
229
|
+
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
309
230
|
# @return [Core::Response]
|
310
|
-
#
|
231
|
+
# The #data method of the response object returns
|
232
|
+
# a hash with the following structure:
|
233
|
+
# * +:instance_states+ - (Array<Hash>)
|
234
|
+
# * +:instance_id+ - (String)
|
235
|
+
# * +:state+ - (String)
|
236
|
+
# * +:reason_code+ - (String)
|
237
|
+
# * +:description+ - (String)
|
311
238
|
define_client_method :describe_instance_health, 'DescribeInstanceHealth'
|
312
239
|
|
313
240
|
# Calls the DescribeLoadBalancerPolicies API operation.
|
314
241
|
# @method describe_load_balancer_policies(options = {})
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
# * +:load_balancer_name+ - (String)
|
319
|
-
# * +:policy_names+ - (Array<String>)
|
320
|
-
#
|
321
|
-
# === Response Structure:
|
322
|
-
#
|
323
|
-
# * +:policy_descriptions+ - (Array<Hash>)
|
324
|
-
# * +:policy_name+ - (String)
|
325
|
-
# * +:policy_type_name+ - (String)
|
326
|
-
# * +:policy_attribute_descriptions+ - (Array<Hash>)
|
327
|
-
# * +:attribute_name+ - (String)
|
328
|
-
# * +:attribute_value+ - (String)
|
329
|
-
#
|
242
|
+
# @param [Hash] options
|
243
|
+
# * +:load_balancer_name+ - (String)
|
244
|
+
# * +:policy_names+ - (Array<String>)
|
330
245
|
# @return [Core::Response]
|
331
|
-
#
|
246
|
+
# The #data method of the response object returns
|
247
|
+
# a hash with the following structure:
|
248
|
+
# * +:policy_descriptions+ - (Array<Hash>)
|
249
|
+
# * +:policy_name+ - (String)
|
250
|
+
# * +:policy_type_name+ - (String)
|
251
|
+
# * +:policy_attribute_descriptions+ - (Array<Hash>)
|
252
|
+
# * +:attribute_name+ - (String)
|
253
|
+
# * +:attribute_value+ - (String)
|
332
254
|
define_client_method :describe_load_balancer_policies, 'DescribeLoadBalancerPolicies'
|
333
255
|
|
334
256
|
# Calls the DescribeLoadBalancerPolicyTypes API operation.
|
335
257
|
# @method describe_load_balancer_policy_types(options = {})
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
# * +:policy_type_names+ - (Array<String>)
|
340
|
-
#
|
341
|
-
# === Response Structure:
|
342
|
-
#
|
343
|
-
# * +:policy_type_descriptions+ - (Array<Hash>)
|
344
|
-
# * +:policy_type_name+ - (String)
|
345
|
-
# * +:description+ - (String)
|
346
|
-
# * +:policy_attribute_type_descriptions+ - (Array<Hash>)
|
347
|
-
# * +:attribute_name+ - (String)
|
348
|
-
# * +:attribute_type+ - (String)
|
349
|
-
# * +:description+ - (String)
|
350
|
-
# * +:default_value+ - (String)
|
351
|
-
# * +:cardinality+ - (String)
|
352
|
-
#
|
258
|
+
# @param [Hash] options
|
259
|
+
# * +:policy_type_names+ - (Array<String>)
|
353
260
|
# @return [Core::Response]
|
354
|
-
#
|
261
|
+
# The #data method of the response object returns
|
262
|
+
# a hash with the following structure:
|
263
|
+
# * +:policy_type_descriptions+ - (Array<Hash>)
|
264
|
+
# * +:policy_type_name+ - (String)
|
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)
|
355
272
|
define_client_method :describe_load_balancer_policy_types, 'DescribeLoadBalancerPolicyTypes'
|
356
273
|
|
357
274
|
# Calls the DescribeLoadBalancers API operation.
|
358
275
|
# @method describe_load_balancers(options = {})
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
# * +:load_balancer_names+ - (Array<String>) A list of names associated
|
363
|
-
# with the LoadBalancers at creation time.
|
364
|
-
#
|
365
|
-
# === Response Structure:
|
366
|
-
#
|
367
|
-
# * +:load_balancer_descriptions+ - (Array<Hash>)
|
368
|
-
# * +:load_balancer_name+ - (String)
|
369
|
-
# * +:dns_name+ - (String)
|
370
|
-
# * +:canonical_hosted_zone_name+ - (String)
|
371
|
-
# * +:canonical_hosted_zone_name_id+ - (String)
|
372
|
-
# * +:listener_descriptions+ - (Array<Hash>)
|
373
|
-
# * +:listener+ - (Hash)
|
374
|
-
# * +:protocol+ - (String)
|
375
|
-
# * +:load_balancer_port+ - (Integer)
|
376
|
-
# * +:instance_protocol+ - (String)
|
377
|
-
# * +:instance_port+ - (Integer)
|
378
|
-
# * +:ssl_certificate_id+ - (String)
|
379
|
-
# * +:policy_names+ - (Array<String>)
|
380
|
-
# * +:policies+ - (Hash)
|
381
|
-
# * +:app_cookie_stickiness_policies+ - (Array<Hash>)
|
382
|
-
# * +:policy_name+ - (String)
|
383
|
-
# * +:cookie_name+ - (String)
|
384
|
-
# * +:lb_cookie_stickiness_policies+ - (Array<Hash>)
|
385
|
-
# * +:policy_name+ - (String)
|
386
|
-
# * +:cookie_expiration_period+ - (Integer)
|
387
|
-
# * +:other_policies+ - (Array<String>)
|
388
|
-
# * +:backend_server_descriptions+ - (Array<Hash>)
|
389
|
-
# * +:instance_port+ - (Integer)
|
390
|
-
# * +:policy_names+ - (Array<String>)
|
391
|
-
# * +:availability_zones+ - (Array<String>)
|
392
|
-
# * +:instances+ - (Array<Hash>)
|
393
|
-
# * +:instance_id+ - (String)
|
394
|
-
# * +:health_check+ - (Hash)
|
395
|
-
# * +:target+ - (String)
|
396
|
-
# * +:interval+ - (Integer)
|
397
|
-
# * +:timeout+ - (Integer)
|
398
|
-
# * +:unhealthy_threshold+ - (Integer)
|
399
|
-
# * +:healthy_threshold+ - (Integer)
|
400
|
-
# * +:source_security_group+ - (Hash)
|
401
|
-
# * +:owner_alias+ - (String)
|
402
|
-
# * +:group_name+ - (String)
|
403
|
-
# * +:created_time+ - (Time)
|
404
|
-
#
|
276
|
+
# @param [Hash] options
|
277
|
+
# * +:load_balancer_names+ - (Array<String>) A list of names associated
|
278
|
+
# with the LoadBalancers at creation time.
|
405
279
|
# @return [Core::Response]
|
406
|
-
#
|
280
|
+
# The #data method of the response object returns
|
281
|
+
# a hash with the following structure:
|
282
|
+
# * +: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
|
+
# * +:listener_descriptions+ - (Array<Hash>)
|
288
|
+
# * +:listener+ - (Hash)
|
289
|
+
# * +:protocol+ - (String)
|
290
|
+
# * +:load_balancer_port+ - (Integer)
|
291
|
+
# * +:instance_protocol+ - (String)
|
292
|
+
# * +:instance_port+ - (Integer)
|
293
|
+
# * +:ssl_certificate_id+ - (String)
|
294
|
+
# * +:policy_names+ - (Array<String>)
|
295
|
+
# * +:policies+ - (Hash)
|
296
|
+
# * +:app_cookie_stickiness_policies+ - (Array<Hash>)
|
297
|
+
# * +:policy_name+ - (String)
|
298
|
+
# * +:cookie_name+ - (String)
|
299
|
+
# * +:lb_cookie_stickiness_policies+ - (Array<Hash>)
|
300
|
+
# * +:policy_name+ - (String)
|
301
|
+
# * +:cookie_expiration_period+ - (Integer)
|
302
|
+
# * +:other_policies+ - (Array<String>)
|
303
|
+
# * +:backend_server_descriptions+ - (Array<Hash>)
|
304
|
+
# * +:instance_port+ - (Integer)
|
305
|
+
# * +:policy_names+ - (Array<String>)
|
306
|
+
# * +:availability_zones+ - (Array<String>)
|
307
|
+
# * +:instances+ - (Array<Hash>)
|
308
|
+
# * +:instance_id+ - (String)
|
309
|
+
# * +:health_check+ - (Hash)
|
310
|
+
# * +:target+ - (String)
|
311
|
+
# * +:interval+ - (Integer)
|
312
|
+
# * +:timeout+ - (Integer)
|
313
|
+
# * +:unhealthy_threshold+ - (Integer)
|
314
|
+
# * +:healthy_threshold+ - (Integer)
|
315
|
+
# * +:source_security_group+ - (Hash)
|
316
|
+
# * +:owner_alias+ - (String)
|
317
|
+
# * +:group_name+ - (String)
|
318
|
+
# * +:created_time+ - (Time)
|
407
319
|
define_client_method :describe_load_balancers, 'DescribeLoadBalancers'
|
408
320
|
|
409
321
|
# Calls the DisableAvailabilityZonesForLoadBalancer API operation.
|
410
322
|
# @method disable_availability_zones_for_load_balancer(options = {})
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
#
|
421
|
-
# LoadBalancer. Specified Availability Zones must be in the same
|
422
|
-
# Region.
|
423
|
-
#
|
424
|
-
# === Response Structure:
|
425
|
-
#
|
426
|
-
# * +:availability_zones+ - (Array<String>)
|
427
|
-
#
|
323
|
+
# @param [Hash] options
|
324
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
325
|
+
# with the LoadBalancer. The name must be unique within the client
|
326
|
+
# AWS account.
|
327
|
+
# * +:availability_zones+ - *required* - (Array<String>) A list of
|
328
|
+
# Availability Zones to be removed from the LoadBalancer. There must
|
329
|
+
# be at least one Availability Zone registered with a LoadBalancer at
|
330
|
+
# all times. The client cannot remove all the Availability Zones from
|
331
|
+
# a LoadBalancer. Specified Availability Zones must be in the same
|
332
|
+
# Region.
|
428
333
|
# @return [Core::Response]
|
429
|
-
#
|
334
|
+
# The #data method of the response object returns
|
335
|
+
# a hash with the following structure:
|
336
|
+
# * +:availability_zones+ - (Array<String>)
|
430
337
|
define_client_method :disable_availability_zones_for_load_balancer, 'DisableAvailabilityZonesForLoadBalancer'
|
431
338
|
|
432
339
|
# Calls the EnableAvailabilityZonesForLoadBalancer API operation.
|
433
340
|
# @method enable_availability_zones_for_load_balancer(options = {})
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
# Availability Zones for the LoadBalancer. Each Availability Zone must
|
442
|
-
# be in the same Region as the LoadBalancer.
|
443
|
-
#
|
444
|
-
# === Response Structure:
|
445
|
-
#
|
446
|
-
# * +:availability_zones+ - (Array<String>)
|
447
|
-
#
|
341
|
+
# @param [Hash] options
|
342
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
343
|
+
# with the LoadBalancer. The name must be unique within the client
|
344
|
+
# AWS account.
|
345
|
+
# * +:availability_zones+ - *required* - (Array<String>) A list of new
|
346
|
+
# Availability Zones for the LoadBalancer. Each Availability Zone
|
347
|
+
# must be in the same Region as the LoadBalancer.
|
448
348
|
# @return [Core::Response]
|
449
|
-
#
|
349
|
+
# The #data method of the response object returns
|
350
|
+
# a hash with the following structure:
|
351
|
+
# * +:availability_zones+ - (Array<String>)
|
450
352
|
define_client_method :enable_availability_zones_for_load_balancer, 'EnableAvailabilityZonesForLoadBalancer'
|
451
353
|
|
452
354
|
# Calls the RegisterInstancesWithLoadBalancer API operation.
|
453
355
|
# @method register_instances_with_load_balancer(options = {})
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
# that should be registered with the LoadBalancer.
|
462
|
-
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
463
|
-
#
|
464
|
-
# === Response Structure:
|
465
|
-
#
|
466
|
-
# * +:instances+ - (Array<Hash>)
|
467
|
-
# * +:instance_id+ - (String)
|
468
|
-
#
|
356
|
+
# @param [Hash] options
|
357
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
358
|
+
# with the LoadBalancer. The name must be unique within the client
|
359
|
+
# AWS account.
|
360
|
+
# * +:instances+ - *required* - (Array<Hash>) A list of instances IDs
|
361
|
+
# that should be registered with the LoadBalancer.
|
362
|
+
# * +:instance_id+ - (String) Provides an EC2 instance ID.
|
469
363
|
# @return [Core::Response]
|
470
|
-
#
|
364
|
+
# The #data method of the response object returns
|
365
|
+
# a hash with the following structure:
|
366
|
+
# * +:instances+ - (Array<Hash>)
|
367
|
+
# * +:instance_id+ - (String)
|
471
368
|
define_client_method :register_instances_with_load_balancer, 'RegisterInstancesWithLoadBalancer'
|
472
369
|
|
473
370
|
# Calls the SetLoadBalancerListenerSSLCertificate API operation.
|
474
371
|
# @method set_load_balancer_listener_ssl_certificate(options = {})
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
# see Managing Server Certificates in the AWS Identity and Access
|
485
|
-
# Management documentation.
|
486
|
-
#
|
487
|
-
# === Response Structure:
|
488
|
-
#
|
489
|
-
# This method returns no response data.
|
490
|
-
#
|
372
|
+
# @param [Hash] options
|
373
|
+
# * +:load_balancer_name+ - *required* - (String) The name of the the
|
374
|
+
# LoadBalancer.
|
375
|
+
# * +:load_balancer_port+ - *required* - (Integer) The port that uses
|
376
|
+
# the specified SSL certificate.
|
377
|
+
# * +:ssl_certificate_id+ - *required* - (String) The ID of the SSL
|
378
|
+
# certificate chain to use. For more information on SSL certificates,
|
379
|
+
# see Managing Server Certificates in the AWS Identity and Access
|
380
|
+
# Management documentation.
|
491
381
|
# @return [Core::Response]
|
492
|
-
#
|
493
382
|
define_client_method :set_load_balancer_listener_ssl_certificate, 'SetLoadBalancerListenerSSLCertificate'
|
494
383
|
|
495
384
|
# Calls the SetLoadBalancerPoliciesForBackendServer API operation.
|
496
385
|
# @method set_load_balancer_policies_for_backend_server(options = {})
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
# * +:instance_port+ - *required* - (Integer)
|
502
|
-
# * +:policy_names+ - *required* - (Array<String>)
|
503
|
-
#
|
504
|
-
# === Response Structure:
|
505
|
-
#
|
506
|
-
# This method returns no response data.
|
507
|
-
#
|
386
|
+
# @param [Hash] options
|
387
|
+
# * +:load_balancer_name+ - *required* - (String)
|
388
|
+
# * +:instance_port+ - *required* - (Integer)
|
389
|
+
# * +:policy_names+ - *required* - (Array<String>)
|
508
390
|
# @return [Core::Response]
|
509
|
-
#
|
510
391
|
define_client_method :set_load_balancer_policies_for_backend_server, 'SetLoadBalancerPoliciesForBackendServer'
|
511
392
|
|
512
393
|
# Calls the SetLoadBalancerPoliciesOfListener API operation.
|
513
394
|
# @method set_load_balancer_policies_of_listener(options = {})
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
#
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
# one policy. If the list is empty, the current policy is removed from
|
525
|
-
# the listener.
|
526
|
-
#
|
527
|
-
# === Response Structure:
|
528
|
-
#
|
529
|
-
# This method returns no response data.
|
530
|
-
#
|
395
|
+
# @param [Hash] options
|
396
|
+
# * +:load_balancer_name+ - *required* - (String) The name associated
|
397
|
+
# with the LoadBalancer. The name must be unique within the client
|
398
|
+
# AWS account.
|
399
|
+
# * +:load_balancer_port+ - *required* - (Integer) The external port of
|
400
|
+
# the LoadBalancer with which this policy has to be associated.
|
401
|
+
# * +:policy_names+ - *required* - (Array<String>) List of policies to
|
402
|
+
# be associated with the listener. Currently this list can have at
|
403
|
+
# most one policy. If the list is empty, the current policy is
|
404
|
+
# removed from the listener.
|
531
405
|
# @return [Core::Response]
|
532
|
-
#
|
533
406
|
define_client_method :set_load_balancer_policies_of_listener, 'SetLoadBalancerPoliciesOfListener'
|
534
407
|
|
535
408
|
## end client methods ##
|