aws-sdk 1.6.9 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/README.rdoc +1 -1
  2. data/lib/aws.rb +8 -0
  3. data/lib/aws/api_config/CloudSearch-2011-02-01.yml +681 -0
  4. data/lib/aws/api_config/DynamoDB-2011-12-05.yml +4 -0
  5. data/lib/aws/api_config/EMR-2009-03-31.yml +18 -0
  6. data/lib/aws/api_config/ElastiCache-2012-03-09.yml +777 -0
  7. data/lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml +823 -0
  8. data/lib/aws/api_config/RDS-2012-07-31.yml +1621 -0
  9. data/lib/aws/cloud_search.rb +31 -0
  10. data/lib/aws/cloud_search/client.rb +558 -0
  11. data/lib/aws/cloud_search/config.rb +18 -0
  12. data/lib/aws/cloud_search/errors.rb +22 -0
  13. data/lib/aws/cloud_search/request.rb +23 -0
  14. data/lib/aws/cloud_watch/alarm.rb +1 -1
  15. data/lib/aws/cloud_watch/metric.rb +3 -3
  16. data/lib/aws/core.rb +18 -3
  17. data/lib/aws/core/configuration.rb +11 -0
  18. data/lib/aws/core/inflection.rb +1 -0
  19. data/lib/aws/core/service_interface.rb +1 -1
  20. data/lib/aws/dynamo_db/batch_get.rb +19 -12
  21. data/lib/aws/dynamo_db/client.rb +27 -1
  22. data/lib/aws/dynamo_db/config.rb +2 -0
  23. data/lib/aws/dynamo_db/item_collection.rb +2 -2
  24. data/lib/aws/dynamo_db/table.rb +8 -2
  25. data/lib/aws/ec2/reserved_instances.rb +3 -0
  26. data/lib/aws/ec2/reserved_instances_offering.rb +3 -1
  27. data/lib/aws/elastic_beanstalk.rb +48 -0
  28. data/lib/aws/elastic_beanstalk/client.rb +867 -0
  29. data/lib/aws/elastic_beanstalk/config.rb +18 -0
  30. data/lib/aws/elastic_beanstalk/errors.rb +22 -0
  31. data/lib/aws/elastic_beanstalk/request.rb +23 -0
  32. data/lib/aws/elasticache.rb +48 -0
  33. data/lib/aws/elasticache/client.rb +758 -0
  34. data/lib/aws/elasticache/config.rb +18 -0
  35. data/lib/aws/elasticache/errors.rb +22 -0
  36. data/lib/aws/elasticache/request.rb +23 -0
  37. data/lib/aws/emr/client.rb +30 -6
  38. data/lib/aws/emr/job_flow.rb +10 -0
  39. data/lib/aws/rds.rb +69 -0
  40. data/lib/aws/rds/client.rb +1592 -0
  41. data/lib/aws/rds/config.rb +18 -0
  42. data/lib/aws/rds/db_instance.rb +201 -0
  43. data/lib/aws/rds/db_instance_collection.rb +75 -0
  44. data/lib/aws/rds/db_snapshot.rb +163 -0
  45. data/lib/aws/rds/db_snapshot_collection.rb +89 -0
  46. data/lib/aws/rds/errors.rb +22 -0
  47. data/lib/aws/rds/request.rb +23 -0
  48. data/lib/aws/s3/bucket_tag_collection.rb +1 -1
  49. data/lib/aws/s3/client.rb +4 -2
  50. data/lib/aws/s3/errors.rb +0 -1
  51. data/lib/aws/s3/object_collection.rb +40 -22
  52. data/lib/aws/s3/object_version.rb +7 -2
  53. data/lib/aws/s3/request.rb +1 -1
  54. data/lib/aws/s3/s3_object.rb +35 -11
  55. data/lib/aws/version.rb +1 -1
  56. metadata +33 -2
@@ -0,0 +1,48 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ require 'aws/core'
15
+ require 'aws/elb/config'
16
+
17
+ module AWS
18
+
19
+ # Provides an expressive, object-oriented interface to AWS Elastic Beantalk.
20
+ #
21
+ # == Credentials
22
+ #
23
+ # You can setup default credentials for all AWS services via
24
+ # AWS.config:
25
+ #
26
+ # AWS.config(
27
+ # :access_key_id => 'YOUR_ACCESS_KEY_ID',
28
+ # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
29
+ #
30
+ # Or you can set them directly on the ElasticBeanstalk interface:
31
+ #
32
+ # beanstalk = AWS::ElasticBeanstalk.new(
33
+ # :access_key_id => 'YOUR_ACCESS_KEY_ID',
34
+ # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
35
+ #
36
+ class ElasticBeanstalk
37
+
38
+ AWS.register_autoloads(self, 'aws/elastic_beanstalk') do
39
+ autoload :Client, 'client'
40
+ autoload :Errors, 'errors'
41
+ autoload :Request, 'request'
42
+ end
43
+
44
+ include Core::ServiceInterface
45
+
46
+ end
47
+
48
+ end
@@ -0,0 +1,867 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class ElasticBeanstalk
16
+
17
+ # Client class for AWS Elastic Beanstalk.
18
+ class Client < Core::QueryClient
19
+
20
+ define_client_methods('2010-12-01')
21
+
22
+ # @private
23
+ CACHEABLE_REQUESTS = Set[]
24
+
25
+ ## client methods ##
26
+
27
+ # @!method check_dns_availability(options = {})
28
+ # Calls the CheckDNSAvailability API operation.
29
+ # @param [Hash] options
30
+ # * +:cname_prefix+ - *required* - (String) The prefix used when this
31
+ # CNAME is reserved.
32
+ # @return [Core::Response]
33
+ # The #data method of the response object returns
34
+ # a hash with the following structure:
35
+ # * +:available+ - (Boolean)
36
+ # * +:fully_qualified_cname+ - (String)
37
+
38
+ # @!method create_application(options = {})
39
+ # Calls the CreateApplication API operation.
40
+ # @param [Hash] options
41
+ # * +:application_name+ - *required* - (String) The name of the
42
+ # application. Constraint: This name must be unique within your
43
+ # account. If the specified name already exists, the action returns
44
+ # an InvalidParameterValue error.
45
+ # * +:description+ - (String) Describes the application.
46
+ # @return [Core::Response]
47
+ # The #data method of the response object returns
48
+ # a hash with the following structure:
49
+ # * +:application+ - (Hash)
50
+ # * +:application_name+ - (String)
51
+ # * +:description+ - (String)
52
+ # * +:date_created+ - (Time)
53
+ # * +:date_updated+ - (Time)
54
+ # * +:versions+ - (Array<String>)
55
+ # * +:configuration_templates+ - (Array<String>)
56
+
57
+ # @!method create_application_version(options = {})
58
+ # Calls the CreateApplicationVersion API operation.
59
+ # @param [Hash] options
60
+ # * +:application_name+ - *required* - (String) The name of the
61
+ # application. If no application is found with this name, and
62
+ # AutoCreateApplication is +false+ , returns an InvalidParameterValue
63
+ # error.
64
+ # * +:version_label+ - *required* - (String) A label identifying this
65
+ # version. Constraint: Must be unique per application. If an
66
+ # application version already exists with this label for the
67
+ # specified application, AWS Elastic Beanstalk returns an
68
+ # InvalidParameterValue error.
69
+ # * +:description+ - (String) Describes this version.
70
+ # * +:source_bundle+ - (Hash) The Amazon S3 bucket and key that
71
+ # identify the location of the source bundle for this version. If
72
+ # data found at the Amazon S3 location exceeds the maximum allowed
73
+ # source bundle size, AWS Elastic Beanstalk returns an
74
+ # InvalidParameterValue error. Default: If not specified, AWS Elastic
75
+ # Beanstalk uses a sample application. If only partially specified
76
+ # (for example, a bucket is provided but not the key) or if no data
77
+ # is found at the Amazon S3 location, AWS Elastic Beanstalk returns
78
+ # an InvalidParameterCombination error.
79
+ # * +:s3_bucket+ - (String) The Amazon S3 bucket where the data is
80
+ # located.
81
+ # * +:s3_key+ - (String) The Amazon S3 key where the data is located.
82
+ # * +:auto_create_application+ - (Boolean) Determines how the system
83
+ # behaves if the specified application for this version does not
84
+ # already exist: +true+ : Automatically creates the specified
85
+ # application for this version if it does not already exist. +false+
86
+ # : Returns an InvalidParameterValue if the specified application for
87
+ # this version does not already exist. +true+ : Automatically creates
88
+ # the specified application for this release if it does not already
89
+ # exist. +false+ : Throws an InvalidParameterValue if the specified
90
+ # application for this release does not already exist. Default:
91
+ # +false+ Valid Values: +true+ | +false+
92
+ # @return [Core::Response]
93
+ # The #data method of the response object returns
94
+ # a hash with the following structure:
95
+ # * +:application_version+ - (Hash)
96
+ # * +:application_name+ - (String)
97
+ # * +:description+ - (String)
98
+ # * +:version_label+ - (String)
99
+ # * +:source_bundle+ - (Hash)
100
+ # * +:s3_bucket+ - (String)
101
+ # * +:s3_key+ - (String)
102
+ # * +:date_created+ - (Time)
103
+ # * +:date_updated+ - (Time)
104
+
105
+ # @!method create_configuration_template(options = {})
106
+ # Calls the CreateConfigurationTemplate API operation.
107
+ # @param [Hash] options
108
+ # * +:application_name+ - *required* - (String) The name of the
109
+ # application to associate with this configuration template. If no
110
+ # application is found with this name, AWS Elastic Beanstalk returns
111
+ # an InvalidParameterValue error.
112
+ # * +:template_name+ - *required* - (String) The name of the
113
+ # configuration template. Constraint: This name must be unique per
114
+ # application. Default: If a configuration template already exists
115
+ # with this name, AWS Elastic Beanstalk returns an
116
+ # InvalidParameterValue error.
117
+ # * +:solution_stack_name+ - (String) The name of the solution stack
118
+ # used by this configuration. The solution stack specifies the
119
+ # operating system, architecture, and application server for a
120
+ # configuration template. It determines the set of configuration
121
+ # options as well as the possible and default values. Use
122
+ # ListAvailableSolutionStacks to obtain a list of available solution
123
+ # stacks. Default: If the SolutionStackName is not specified and the
124
+ # source configuration parameter is blank, AWS Elastic Beanstalk uses
125
+ # the default solution stack. If not specified and the source
126
+ # configuration parameter is specified, AWS Elastic Beanstalk uses
127
+ # the same solution stack as the source configuration template.
128
+ # * +:source_configuration+ - (Hash) If specified, AWS Elastic
129
+ # Beanstalk uses the configuration values from the specified
130
+ # configuration template to create a new configuration. Values
131
+ # specified in the OptionSettings parameter of this call overrides
132
+ # any values obtained from the SourceConfiguration. If no
133
+ # configuration template is found, returns an InvalidParameterValue
134
+ # error. Constraint: If both the solution stack name parameter and
135
+ # the source configuration parameters are specified, the solution
136
+ # stack of the source configuration template must match the specified
137
+ # solution stack name or else AWS Elastic Beanstalk returns an
138
+ # InvalidParameterCombination error.
139
+ # * +:application_name+ - (String) The name of the application
140
+ # associated with the configuration.
141
+ # * +:template_name+ - (String) The name of the configuration
142
+ # template.
143
+ # * +:environment_id+ - (String) The ID of the environment used with
144
+ # this configuration template.
145
+ # * +:description+ - (String) Describes this configuration.
146
+ # * +:option_settings+ - (Array<Hash>) If specified, AWS Elastic
147
+ # Beanstalk sets the specified configuration option to the requested
148
+ # value. The new value overrides the value obtained from the solution
149
+ # stack or the source configuration template.
150
+ # * +:namespace+ - (String) A unique namespace identifying the
151
+ # option's associated AWS resource.
152
+ # * +:option_name+ - (String) The name of the configuration option.
153
+ # * +:value+ - (String) The current value for the configuration
154
+ # option.
155
+ # @return [Core::Response]
156
+ # The #data method of the response object returns
157
+ # a hash with the following structure:
158
+ # * +:solution_stack_name+ - (String)
159
+ # * +:application_name+ - (String)
160
+ # * +:template_name+ - (String)
161
+ # * +:description+ - (String)
162
+ # * +:environment_name+ - (String)
163
+ # * +:deployment_status+ - (String)
164
+ # * +:date_created+ - (Time)
165
+ # * +:date_updated+ - (Time)
166
+ # * +:option_settings+ - (Array<Hash>)
167
+ # * +:namespace+ - (String)
168
+ # * +:option_name+ - (String)
169
+ # * +:value+ - (String)
170
+
171
+ # @!method create_environment(options = {})
172
+ # Calls the CreateEnvironment API operation.
173
+ # @param [Hash] options
174
+ # * +:application_name+ - *required* - (String) The name of the
175
+ # application that contains the version to be deployed. If no
176
+ # application is found with this name, CreateEnvironment returns an
177
+ # InvalidParameterValue error.
178
+ # * +:version_label+ - (String) The name of the application version to
179
+ # deploy. If the specified application has no associated application
180
+ # versions, AWS Elastic Beanstalk UpdateEnvironment returns an
181
+ # InvalidParameterValue error. Default: If not specified, AWS Elastic
182
+ # Beanstalk attempts to launch the most recently created application
183
+ # version.
184
+ # * +:environment_name+ - *required* - (String) A unique name for the
185
+ # deployment environment. Used in the application URL. Constraint:
186
+ # Must be from 4 to 23 characters in length. The name can contain
187
+ # only letters, numbers, and hyphens. It cannot start or end with a
188
+ # hyphen. This name must be unique in your account. If the specified
189
+ # name already exists, AWS Elastic Beanstalk returns an
190
+ # InvalidParameterValue error. Default: If the CNAME parameter is not
191
+ # specified, the environment name becomes part of the CNAME, and
192
+ # therefore part of the visible URL for your application.
193
+ # * +:template_name+ - (String) The name of the configuration template
194
+ # to use in deployment. If no configuration template is found with
195
+ # this name, AWS Elastic Beanstalk returns an InvalidParameterValue
196
+ # error. Condition: You must specify either this parameter or a
197
+ # SolutionStackName, but not both. If you specify both, AWS Elastic
198
+ # Beanstalk returns an InvalidParameterCombination error. If you do
199
+ # not specify either, AWS Elastic Beanstalk returns a
200
+ # MissingRequiredParameter error.
201
+ # * +:solution_stack_name+ - (String) This is an alternative to
202
+ # specifying a configuration name. If specified, AWS Elastic
203
+ # Beanstalk sets the configuration values to the default values
204
+ # associated with the specified solution stack. Condition: You must
205
+ # specify either this or a TemplateName, but not both. If you specify
206
+ # both, AWS Elastic Beanstalk returns an InvalidParameterCombination
207
+ # error. If you do not specify either, AWS Elastic Beanstalk returns
208
+ # a MissingRequiredParameter error.
209
+ # * +:cname_prefix+ - (String) If specified, the environment attempts
210
+ # to use this value as the prefix for the CNAME. If not specified,
211
+ # the environment uses the environment name.
212
+ # * +:description+ - (String) Describes this environment.
213
+ # * +:option_settings+ - (Array<Hash>) If specified, AWS Elastic
214
+ # Beanstalk sets the specified configuration options to the requested
215
+ # value in the configuration set for the new environment. These
216
+ # override the values obtained from the solution stack or the
217
+ # configuration template.
218
+ # * +:namespace+ - (String) A unique namespace identifying the
219
+ # option's associated AWS resource.
220
+ # * +:option_name+ - (String) The name of the configuration option.
221
+ # * +:value+ - (String) The current value for the configuration
222
+ # option.
223
+ # * +:options_to_remove+ - (Array<Hash>) A list of custom user-defined
224
+ # configuration options to remove from the configuration set for this
225
+ # new environment.
226
+ # * +:namespace+ - (String) A unique namespace identifying the
227
+ # option's associated AWS resource.
228
+ # * +:option_name+ - (String) The name of the configuration option.
229
+ # @return [Core::Response]
230
+ # The #data method of the response object returns
231
+ # a hash with the following structure:
232
+ # * +:environment_name+ - (String)
233
+ # * +:environment_id+ - (String)
234
+ # * +:application_name+ - (String)
235
+ # * +:version_label+ - (String)
236
+ # * +:solution_stack_name+ - (String)
237
+ # * +:template_name+ - (String)
238
+ # * +:description+ - (String)
239
+ # * +:endpoint_url+ - (String)
240
+ # * +:cname+ - (String)
241
+ # * +:date_created+ - (Time)
242
+ # * +:date_updated+ - (Time)
243
+ # * +:status+ - (String)
244
+ # * +:health+ - (String)
245
+ # * +:resources+ - (Hash)
246
+ # * +:load_balancer+ - (Hash)
247
+ # * +:load_balancer_name+ - (String)
248
+ # * +:domain+ - (String)
249
+ # * +:listeners+ - (Array<Hash>)
250
+ # * +:protocol+ - (String)
251
+ # * +:port+ - (Integer)
252
+
253
+ # @!method create_storage_location(options = {})
254
+ # Calls the CreateStorageLocation API operation.
255
+ # @param [Hash] options
256
+ # @return [Core::Response]
257
+ # The #data method of the response object returns
258
+ # a hash with the following structure:
259
+ # * +:s3_bucket+ - (String)
260
+
261
+ # @!method delete_application(options = {})
262
+ # Calls the DeleteApplication API operation.
263
+ # @param [Hash] options
264
+ # * +:application_name+ - *required* - (String) The name of the
265
+ # application to delete.
266
+ # @return [Core::Response]
267
+
268
+ # @!method delete_application_version(options = {})
269
+ # Calls the DeleteApplicationVersion API operation.
270
+ # @param [Hash] options
271
+ # * +:application_name+ - *required* - (String) The name of the
272
+ # application to delete releases from.
273
+ # * +:version_label+ - *required* - (String) The label of the version
274
+ # to delete.
275
+ # * +:delete_source_bundle+ - (Boolean) Indicates whether to delete the
276
+ # associated source bundle from Amazon S3: +true+ : An attempt is
277
+ # made to delete the associated Amazon S3 source bundle specified at
278
+ # time of creation. +false+ : No action is taken on the Amazon S3
279
+ # source bundle specified at time of creation. Valid Values: +true+ |
280
+ # +false+
281
+ # @return [Core::Response]
282
+
283
+ # @!method delete_configuration_template(options = {})
284
+ # Calls the DeleteConfigurationTemplate API operation.
285
+ # @param [Hash] options
286
+ # * +:application_name+ - *required* - (String) The name of the
287
+ # application to delete the configuration template from.
288
+ # * +:template_name+ - *required* - (String) The name of the
289
+ # configuration template to delete.
290
+ # @return [Core::Response]
291
+
292
+ # @!method delete_environment_configuration(options = {})
293
+ # Calls the DeleteEnvironmentConfiguration API operation.
294
+ # @param [Hash] options
295
+ # * +:application_name+ - *required* - (String) The name of the
296
+ # application the environment is associated with.
297
+ # * +:environment_name+ - *required* - (String) The name of the
298
+ # environment to delete the draft configuration from.
299
+ # @return [Core::Response]
300
+
301
+ # @!method describe_application_versions(options = {})
302
+ # Calls the DescribeApplicationVersions API operation.
303
+ # @param [Hash] options
304
+ # * +:application_name+ - (String) If specified, AWS Elastic Beanstalk
305
+ # restricts the returned descriptions to only include ones that are
306
+ # associated with the specified application.
307
+ # * +:version_labels+ - (Array<String>) If specified, restricts the
308
+ # returned descriptions to only include ones that have the specified
309
+ # version labels.
310
+ # @return [Core::Response]
311
+ # The #data method of the response object returns
312
+ # a hash with the following structure:
313
+ # * +:application_versions+ - (Array<Hash>)
314
+ # * +:application_name+ - (String)
315
+ # * +:description+ - (String)
316
+ # * +:version_label+ - (String)
317
+ # * +:source_bundle+ - (Hash)
318
+ # * +:s3_bucket+ - (String)
319
+ # * +:s3_key+ - (String)
320
+ # * +:date_created+ - (Time)
321
+ # * +:date_updated+ - (Time)
322
+
323
+ # @!method describe_applications(options = {})
324
+ # Calls the DescribeApplications API operation.
325
+ # @param [Hash] options
326
+ # * +:application_names+ - (Array<String>) If specified, AWS Elastic
327
+ # Beanstalk restricts the returned descriptions to only include those
328
+ # with the specified names.
329
+ # @return [Core::Response]
330
+ # The #data method of the response object returns
331
+ # a hash with the following structure:
332
+ # * +:applications+ - (Array<Hash>)
333
+ # * +:application_name+ - (String)
334
+ # * +:description+ - (String)
335
+ # * +:date_created+ - (Time)
336
+ # * +:date_updated+ - (Time)
337
+ # * +:versions+ - (Array<String>)
338
+ # * +:configuration_templates+ - (Array<String>)
339
+
340
+ # @!method describe_configuration_options(options = {})
341
+ # Calls the DescribeConfigurationOptions API operation.
342
+ # @param [Hash] options
343
+ # * +:application_name+ - (String) The name of the application
344
+ # associated with the configuration template or environment. Only
345
+ # needed if you want to describe the configuration options associated
346
+ # with either the configuration template or environment.
347
+ # * +:template_name+ - (String) The name of the configuration template
348
+ # whose configuration options you want to describe.
349
+ # * +:environment_name+ - (String) The name of the environment whose
350
+ # configuration options you want to describe.
351
+ # * +:solution_stack_name+ - (String) The name of the solution stack
352
+ # whose configuration options you want to describe.
353
+ # * +:options+ - (Array<Hash>) If specified, restricts the descriptions
354
+ # to only the specified options.
355
+ # * +:namespace+ - (String) A unique namespace identifying the
356
+ # option's associated AWS resource.
357
+ # * +:option_name+ - (String) The name of the configuration option.
358
+ # @return [Core::Response]
359
+ # The #data method of the response object returns
360
+ # a hash with the following structure:
361
+ # * +:solution_stack_name+ - (String)
362
+ # * +:options+ - (Array<Hash>)
363
+ # * +:namespace+ - (String)
364
+ # * +:name+ - (String)
365
+ # * +:default_value+ - (String)
366
+ # * +:change_severity+ - (String)
367
+ # * +:user_defined+ - (Boolean)
368
+ # * +:value_type+ - (String)
369
+ # * +:value_options+ - (Array<String>)
370
+ # * +:min_value+ - (Integer)
371
+ # * +:max_value+ - (Integer)
372
+ # * +:max_length+ - (Integer)
373
+ # * +:regex+ - (Hash)
374
+ # * +:pattern+ - (String)
375
+ # * +:label+ - (String)
376
+
377
+ # @!method describe_configuration_settings(options = {})
378
+ # Calls the DescribeConfigurationSettings API operation.
379
+ # @param [Hash] options
380
+ # * +:application_name+ - *required* - (String) The application for the
381
+ # environment or configuration template.
382
+ # * +:template_name+ - (String) The name of the configuration template
383
+ # to describe. Conditional: You must specify either this parameter or
384
+ # an EnvironmentName, but not both. If you specify both, AWS Elastic
385
+ # Beanstalk returns an InvalidParameterCombination error. If you do
386
+ # not specify either, AWS Elastic Beanstalk returns a
387
+ # MissingRequiredParameter error.
388
+ # * +:environment_name+ - (String) The name of the environment to
389
+ # describe. Condition: You must specify either this or a
390
+ # TemplateName, but not both. If you specify both, AWS Elastic
391
+ # Beanstalk returns an InvalidParameterCombination error. If you do
392
+ # not specify either, AWS Elastic Beanstalk returns
393
+ # MissingRequiredParameter error.
394
+ # @return [Core::Response]
395
+ # The #data method of the response object returns
396
+ # a hash with the following structure:
397
+ # * +:configuration_settings+ - (Array<Hash>)
398
+ # * +:solution_stack_name+ - (String)
399
+ # * +:application_name+ - (String)
400
+ # * +:template_name+ - (String)
401
+ # * +:description+ - (String)
402
+ # * +:environment_name+ - (String)
403
+ # * +:deployment_status+ - (String)
404
+ # * +:date_created+ - (Time)
405
+ # * +:date_updated+ - (Time)
406
+ # * +:option_settings+ - (Array<Hash>)
407
+ # * +:namespace+ - (String)
408
+ # * +:option_name+ - (String)
409
+ # * +:value+ - (String)
410
+
411
+ # @!method describe_environment_resources(options = {})
412
+ # Calls the DescribeEnvironmentResources API operation.
413
+ # @param [Hash] options
414
+ # * +:environment_id+ - (String) The ID of the environment to retrieve
415
+ # AWS resource usage data. Condition: You must specify either this or
416
+ # an EnvironmentName, or both. If you do not specify either, AWS
417
+ # Elastic Beanstalk returns MissingRequiredParameter error.
418
+ # * +:environment_name+ - (String) The name of the environment to
419
+ # retrieve AWS resource usage data. Condition: You must specify
420
+ # either this or an EnvironmentId, or both. If you do not specify
421
+ # either, AWS Elastic Beanstalk returns MissingRequiredParameter
422
+ # error.
423
+ # @return [Core::Response]
424
+ # The #data method of the response object returns
425
+ # a hash with the following structure:
426
+ # * +:environment_resources+ - (Hash)
427
+ # * +:environment_name+ - (String)
428
+ # * +:auto_scaling_groups+ - (Array<Hash>)
429
+ # * +:name+ - (String)
430
+ # * +:instances+ - (Array<Hash>)
431
+ # * +:id+ - (String)
432
+ # * +:launch_configurations+ - (Array<Hash>)
433
+ # * +:name+ - (String)
434
+ # * +:load_balancers+ - (Array<Hash>)
435
+ # * +:name+ - (String)
436
+ # * +:triggers+ - (Array<Hash>)
437
+ # * +:name+ - (String)
438
+
439
+ # @!method describe_environments(options = {})
440
+ # Calls the DescribeEnvironments API operation.
441
+ # @param [Hash] options
442
+ # * +:application_name+ - (String) If specified, AWS Elastic Beanstalk
443
+ # restricts the returned descriptions to include only those that are
444
+ # associated with this application.
445
+ # * +:version_label+ - (String) If specified, AWS Elastic Beanstalk
446
+ # restricts the returned descriptions to include only those that are
447
+ # associated with this application version.
448
+ # * +:environment_ids+ - (Array<String>) If specified, AWS Elastic
449
+ # Beanstalk restricts the returned descriptions to include only those
450
+ # that have the specified IDs.
451
+ # * +:environment_names+ - (Array<String>) If specified, AWS Elastic
452
+ # Beanstalk restricts the returned descriptions to include only those
453
+ # that have the specified names.
454
+ # * +:include_deleted+ - (Boolean) Indicates whether to include deleted
455
+ # environments: +true+ : Environments that have been deleted after
456
+ # IncludedDeletedBackTo are displayed. +false+ : Do not include
457
+ # deleted environments.
458
+ # * +:included_deleted_back_to+ - (String<ISO8601 datetime>) If
459
+ # specified when IncludeDeleted is set to +true+ , then environments
460
+ # deleted after this date are displayed.
461
+ # @return [Core::Response]
462
+ # The #data method of the response object returns
463
+ # a hash with the following structure:
464
+ # * +:environments+ - (Array<Hash>)
465
+ # * +:environment_name+ - (String)
466
+ # * +:environment_id+ - (String)
467
+ # * +:application_name+ - (String)
468
+ # * +:version_label+ - (String)
469
+ # * +:solution_stack_name+ - (String)
470
+ # * +:template_name+ - (String)
471
+ # * +:description+ - (String)
472
+ # * +:endpoint_url+ - (String)
473
+ # * +:cname+ - (String)
474
+ # * +:date_created+ - (Time)
475
+ # * +:date_updated+ - (Time)
476
+ # * +:status+ - (String)
477
+ # * +:health+ - (String)
478
+ # * +:resources+ - (Hash)
479
+ # * +:load_balancer+ - (Hash)
480
+ # * +:load_balancer_name+ - (String)
481
+ # * +:domain+ - (String)
482
+ # * +:listeners+ - (Array<Hash>)
483
+ # * +:protocol+ - (String)
484
+ # * +:port+ - (Integer)
485
+
486
+ # @!method describe_events(options = {})
487
+ # Calls the DescribeEvents API operation.
488
+ # @param [Hash] options
489
+ # * +:application_name+ - (String) If specified, AWS Elastic Beanstalk
490
+ # restricts the returned descriptions to include only those
491
+ # associated with this application.
492
+ # * +:version_label+ - (String) If specified, AWS Elastic Beanstalk
493
+ # restricts the returned descriptions to those associated with this
494
+ # application version.
495
+ # * +:template_name+ - (String) If specified, AWS Elastic Beanstalk
496
+ # restricts the returned descriptions to those that are associated
497
+ # with this environment configuration.
498
+ # * +:environment_id+ - (String) If specified, AWS Elastic Beanstalk
499
+ # restricts the returned descriptions to those associated with this
500
+ # environment.
501
+ # * +:environment_name+ - (String) If specified, AWS Elastic Beanstalk
502
+ # restricts the returned descriptions to those associated with this
503
+ # environment.
504
+ # * +:request_id+ - (String) If specified, AWS Elastic Beanstalk
505
+ # restricts the described events to include only those associated
506
+ # with this request ID.
507
+ # * +:severity+ - (String) If specified, limits the events returned
508
+ # from this call to include only those with the specified severity or
509
+ # higher.
510
+ # * +:start_time+ - (String<ISO8601 datetime>) If specified, AWS
511
+ # Elastic Beanstalk restricts the returned descriptions to those that
512
+ # occur on or after this time.
513
+ # * +:end_time+ - (String<ISO8601 datetime>) If specified, AWS Elastic
514
+ # Beanstalk restricts the returned descriptions to those that occur
515
+ # up to, but not including, the EndTime.
516
+ # * +:max_records+ - (Integer) Specifies the maximum number of events
517
+ # that can be returned, beginning with the most recent event.
518
+ # * +:next_token+ - (String) Pagination token. If specified, the events
519
+ # return the next batch of results.
520
+ # @return [Core::Response]
521
+ # The #data method of the response object returns
522
+ # a hash with the following structure:
523
+ # * +:events+ - (Array<Hash>)
524
+ # * +:event_date+ - (Time)
525
+ # * +:message+ - (String)
526
+ # * +:application_name+ - (String)
527
+ # * +:version_label+ - (String)
528
+ # * +:template_name+ - (String)
529
+ # * +:environment_name+ - (String)
530
+ # * +:request_id+ - (String)
531
+ # * +:severity+ - (String)
532
+ # * +:next_token+ - (String)
533
+
534
+ # @!method list_available_solution_stacks(options = {})
535
+ # Calls the ListAvailableSolutionStacks API operation.
536
+ # @param [Hash] options
537
+ # @return [Core::Response]
538
+ # The #data method of the response object returns
539
+ # a hash with the following structure:
540
+ # * +:solution_stacks+ - (Array<String>)
541
+ # * +:solution_stack_details+ - (Array<Hash>)
542
+ # * +:solution_stack_name+ - (String)
543
+ # * +:permitted_file_types+ - (Array<String>)
544
+
545
+ # @!method rebuild_environment(options = {})
546
+ # Calls the RebuildEnvironment API operation.
547
+ # @param [Hash] options
548
+ # * +:environment_id+ - (String) The ID of the environment to rebuild.
549
+ # Condition: You must specify either this or an EnvironmentName, or
550
+ # both. If you do not specify either, AWS Elastic Beanstalk returns
551
+ # MissingRequiredParameter error.
552
+ # * +:environment_name+ - (String) The name of the environment to
553
+ # rebuild. Condition: You must specify either this or an
554
+ # EnvironmentId, or both. If you do not specify either, AWS Elastic
555
+ # Beanstalk returns MissingRequiredParameter error.
556
+ # @return [Core::Response]
557
+
558
+ # @!method request_environment_info(options = {})
559
+ # Calls the RequestEnvironmentInfo API operation.
560
+ # @param [Hash] options
561
+ # * +:environment_id+ - (String) The ID of the environment of the
562
+ # requested data. If no such environment is found,
563
+ # RequestEnvironmentInfo returns an InvalidParameterValue error.
564
+ # Condition: You must specify either this or an EnvironmentName, or
565
+ # both. If you do not specify either, AWS Elastic Beanstalk returns
566
+ # MissingRequiredParameter error.
567
+ # * +:environment_name+ - (String) The name of the environment of the
568
+ # requested data. If no such environment is found,
569
+ # RequestEnvironmentInfo returns an InvalidParameterValue error.
570
+ # Condition: You must specify either this or an EnvironmentId, or
571
+ # both. If you do not specify either, AWS Elastic Beanstalk returns
572
+ # MissingRequiredParameter error.
573
+ # * +:info_type+ - *required* - (String) The type of information to
574
+ # request.
575
+ # @return [Core::Response]
576
+
577
+ # @!method restart_app_server(options = {})
578
+ # Calls the RestartAppServer API operation.
579
+ # @param [Hash] options
580
+ # * +:environment_id+ - (String) The ID of the environment to restart
581
+ # the server for. Condition: You must specify either this or an
582
+ # EnvironmentName, or both. If you do not specify either, AWS Elastic
583
+ # Beanstalk returns MissingRequiredParameter error.
584
+ # * +:environment_name+ - (String) The name of the environment to
585
+ # restart the server for. Condition: You must specify either this or
586
+ # an EnvironmentId, or both. If you do not specify either, AWS
587
+ # Elastic Beanstalk returns MissingRequiredParameter error.
588
+ # @return [Core::Response]
589
+
590
+ # @!method retrieve_environment_info(options = {})
591
+ # Calls the RetrieveEnvironmentInfo API operation.
592
+ # @param [Hash] options
593
+ # * +:environment_id+ - (String) The ID of the data's environment. If
594
+ # no such environment is found, returns an InvalidParameterValue
595
+ # error. Condition: You must specify either this or an
596
+ # EnvironmentName, or both. If you do not specify either, AWS Elastic
597
+ # Beanstalk returns MissingRequiredParameter error.
598
+ # * +:environment_name+ - (String) The name of the data's environment.
599
+ # If no such environment is found, returns an InvalidParameterValue
600
+ # error. Condition: You must specify either this or an EnvironmentId,
601
+ # or both. If you do not specify either, AWS Elastic Beanstalk
602
+ # returns MissingRequiredParameter error.
603
+ # * +:info_type+ - *required* - (String) The type of information to
604
+ # retrieve.
605
+ # @return [Core::Response]
606
+ # The #data method of the response object returns
607
+ # a hash with the following structure:
608
+ # * +:environment_info+ - (Array<Hash>)
609
+ # * +:info_type+ - (String)
610
+ # * +:ec_2_instance_id+ - (String)
611
+ # * +:sample_timestamp+ - (Time)
612
+ # * +:message+ - (String)
613
+
614
+ # @!method swap_environment_cnam_es(options = {})
615
+ # Calls the SwapEnvironmentCNAMEs API operation.
616
+ # @param [Hash] options
617
+ # * +:source_environment_id+ - (String) The ID of the source
618
+ # environment. Condition: You must specify at least the
619
+ # SourceEnvironmentID or the SourceEnvironmentName. You may also
620
+ # specify both. If you specify the SourceEnvironmentId, you must
621
+ # specify the DestinationEnvironmentId.
622
+ # * +:source_environment_name+ - (String) The name of the source
623
+ # environment. Condition: You must specify at least the
624
+ # SourceEnvironmentID or the SourceEnvironmentName. You may also
625
+ # specify both. If you specify the SourceEnvironmentName, you must
626
+ # specify the DestinationEnvironmentName.
627
+ # * +:destination_environment_id+ - (String) The ID of the destination
628
+ # environment. Condition: You must specify at least the
629
+ # DestinationEnvironmentID or the DestinationEnvironmentName. You may
630
+ # also specify both. You must specify the SourceEnvironmentId with
631
+ # the DestinationEnvironmentId.
632
+ # * +:destination_environment_name+ - (String) The name of the
633
+ # destination environment. Condition: You must specify at least the
634
+ # DestinationEnvironmentID or the DestinationEnvironmentName. You may
635
+ # also specify both. You must specify the SourceEnvironmentName with
636
+ # the DestinationEnvironmentName.
637
+ # @return [Core::Response]
638
+
639
+ # @!method terminate_environment(options = {})
640
+ # Calls the TerminateEnvironment API operation.
641
+ # @param [Hash] options
642
+ # * +:environment_id+ - (String) The ID of the environment to
643
+ # terminate. Condition: You must specify either this or an
644
+ # EnvironmentName, or both. If you do not specify either, AWS Elastic
645
+ # Beanstalk returns MissingRequiredParameter error.
646
+ # * +:environment_name+ - (String) The name of the environment to
647
+ # terminate. Condition: You must specify either this or an
648
+ # EnvironmentId, or both. If you do not specify either, AWS Elastic
649
+ # Beanstalk returns MissingRequiredParameter error.
650
+ # * +:terminate_resources+ - (Boolean) Indicates whether the associated
651
+ # AWS resources should shut down when the environment is terminated:
652
+ # +true+ : (default) The user AWS resources (for example, the Auto
653
+ # Scaling group, LoadBalancer, etc.) are terminated along with the
654
+ # environment. +false+ : The environment is removed from the AWS
655
+ # Elastic Beanstalk but the AWS resources continue to operate. +true+
656
+ # : The specified environment as well as the associated AWS
657
+ # resources, such as Auto Scaling group and LoadBalancer, are
658
+ # terminated. +false+ : AWS Elastic Beanstalk resource management is
659
+ # removed from the environment, but the AWS resources continue to
660
+ # operate. For more information, see the AWS Elastic Beanstalk User
661
+ # Guide. Default: +true+ Valid Values: +true+ | +false+
662
+ # @return [Core::Response]
663
+ # The #data method of the response object returns
664
+ # a hash with the following structure:
665
+ # * +:environment_name+ - (String)
666
+ # * +:environment_id+ - (String)
667
+ # * +:application_name+ - (String)
668
+ # * +:version_label+ - (String)
669
+ # * +:solution_stack_name+ - (String)
670
+ # * +:template_name+ - (String)
671
+ # * +:description+ - (String)
672
+ # * +:endpoint_url+ - (String)
673
+ # * +:cname+ - (String)
674
+ # * +:date_created+ - (Time)
675
+ # * +:date_updated+ - (Time)
676
+ # * +:status+ - (String)
677
+ # * +:health+ - (String)
678
+ # * +:resources+ - (Hash)
679
+ # * +:load_balancer+ - (Hash)
680
+ # * +:load_balancer_name+ - (String)
681
+ # * +:domain+ - (String)
682
+ # * +:listeners+ - (Array<Hash>)
683
+ # * +:protocol+ - (String)
684
+ # * +:port+ - (Integer)
685
+
686
+ # @!method update_application(options = {})
687
+ # Calls the UpdateApplication API operation.
688
+ # @param [Hash] options
689
+ # * +:application_name+ - *required* - (String) The name of the
690
+ # application to update. If no such application is found,
691
+ # UpdateApplication returns an InvalidParameterValue error.
692
+ # * +:description+ - (String) A new description for the application.
693
+ # Default: If not specified, AWS Elastic Beanstalk does not update
694
+ # the description.
695
+ # @return [Core::Response]
696
+ # The #data method of the response object returns
697
+ # a hash with the following structure:
698
+ # * +:application+ - (Hash)
699
+ # * +:application_name+ - (String)
700
+ # * +:description+ - (String)
701
+ # * +:date_created+ - (Time)
702
+ # * +:date_updated+ - (Time)
703
+ # * +:versions+ - (Array<String>)
704
+ # * +:configuration_templates+ - (Array<String>)
705
+
706
+ # @!method update_application_version(options = {})
707
+ # Calls the UpdateApplicationVersion API operation.
708
+ # @param [Hash] options
709
+ # * +:application_name+ - *required* - (String) The name of the
710
+ # application associated with this version. If no application is
711
+ # found with this name, UpdateApplication returns an
712
+ # InvalidParameterValue error.
713
+ # * +:version_label+ - *required* - (String) The name of the version to
714
+ # update. If no application version is found with this label,
715
+ # UpdateApplication returns an InvalidParameterValue error.
716
+ # * +:description+ - (String) A new description for this release.
717
+ # @return [Core::Response]
718
+ # The #data method of the response object returns
719
+ # a hash with the following structure:
720
+ # * +:application_version+ - (Hash)
721
+ # * +:application_name+ - (String)
722
+ # * +:description+ - (String)
723
+ # * +:version_label+ - (String)
724
+ # * +:source_bundle+ - (Hash)
725
+ # * +:s3_bucket+ - (String)
726
+ # * +:s3_key+ - (String)
727
+ # * +:date_created+ - (Time)
728
+ # * +:date_updated+ - (Time)
729
+
730
+ # @!method update_configuration_template(options = {})
731
+ # Calls the UpdateConfigurationTemplate API operation.
732
+ # @param [Hash] options
733
+ # * +:application_name+ - *required* - (String) The name of the
734
+ # application associated with the configuration template to update.
735
+ # If no application is found with this name,
736
+ # UpdateConfigurationTemplate returns an InvalidParameterValue error.
737
+ # * +:template_name+ - *required* - (String) The name of the
738
+ # configuration template to update. If no configuration template is
739
+ # found with this name, UpdateConfigurationTemplate returns an
740
+ # InvalidParameterValue error.
741
+ # * +:description+ - (String) A new description for the configuration.
742
+ # * +:option_settings+ - (Array<Hash>) A list of configuration option
743
+ # settings to update with the new specified option value.
744
+ # * +:namespace+ - (String) A unique namespace identifying the
745
+ # option's associated AWS resource.
746
+ # * +:option_name+ - (String) The name of the configuration option.
747
+ # * +:value+ - (String) The current value for the configuration
748
+ # option.
749
+ # * +:options_to_remove+ - (Array<Hash>) A list of configuration
750
+ # options to remove from the configuration set. Constraint: You can
751
+ # remove only UserDefined configuration options.
752
+ # * +:namespace+ - (String) A unique namespace identifying the
753
+ # option's associated AWS resource.
754
+ # * +:option_name+ - (String) The name of the configuration option.
755
+ # @return [Core::Response]
756
+ # The #data method of the response object returns
757
+ # a hash with the following structure:
758
+ # * +:solution_stack_name+ - (String)
759
+ # * +:application_name+ - (String)
760
+ # * +:template_name+ - (String)
761
+ # * +:description+ - (String)
762
+ # * +:environment_name+ - (String)
763
+ # * +:deployment_status+ - (String)
764
+ # * +:date_created+ - (Time)
765
+ # * +:date_updated+ - (Time)
766
+ # * +:option_settings+ - (Array<Hash>)
767
+ # * +:namespace+ - (String)
768
+ # * +:option_name+ - (String)
769
+ # * +:value+ - (String)
770
+
771
+ # @!method update_environment(options = {})
772
+ # Calls the UpdateEnvironment API operation.
773
+ # @param [Hash] options
774
+ # * +:environment_id+ - (String) The ID of the environment to update.
775
+ # If no environment with this ID exists, AWS Elastic Beanstalk
776
+ # returns an InvalidParameterValue error. Condition: You must specify
777
+ # either this or an EnvironmentName, or both. If you do not specify
778
+ # either, AWS Elastic Beanstalk returns MissingRequiredParameter
779
+ # error.
780
+ # * +:environment_name+ - (String) The name of the environment to
781
+ # update. If no environment with this name exists, AWS Elastic
782
+ # Beanstalk returns an InvalidParameterValue error. Condition: You
783
+ # must specify either this or an EnvironmentId, or both. If you do
784
+ # not specify either, AWS Elastic Beanstalk returns
785
+ # MissingRequiredParameter error.
786
+ # * +:version_label+ - (String) If this parameter is specified, AWS
787
+ # Elastic Beanstalk deploys the named application version to the
788
+ # environment. If no such application version is found, returns an
789
+ # InvalidParameterValue error.
790
+ # * +:template_name+ - (String) If this parameter is specified, AWS
791
+ # Elastic Beanstalk deploys this configuration template to the
792
+ # environment. If no such configuration template is found, AWS
793
+ # Elastic Beanstalk returns an InvalidParameterValue error.
794
+ # * +:description+ - (String) If this parameter is specified, AWS
795
+ # Elastic Beanstalk updates the description of this environment.
796
+ # * +:option_settings+ - (Array<Hash>) If specified, AWS Elastic
797
+ # Beanstalk updates the configuration set associated with the running
798
+ # environment and sets the specified configuration options to the
799
+ # requested value.
800
+ # * +:namespace+ - (String) A unique namespace identifying the
801
+ # option's associated AWS resource.
802
+ # * +:option_name+ - (String) The name of the configuration option.
803
+ # * +:value+ - (String) The current value for the configuration
804
+ # option.
805
+ # * +:options_to_remove+ - (Array<Hash>) A list of custom user-defined
806
+ # configuration options to remove from the configuration set for this
807
+ # environment.
808
+ # * +:namespace+ - (String) A unique namespace identifying the
809
+ # option's associated AWS resource.
810
+ # * +:option_name+ - (String) The name of the configuration option.
811
+ # @return [Core::Response]
812
+ # The #data method of the response object returns
813
+ # a hash with the following structure:
814
+ # * +:environment_name+ - (String)
815
+ # * +:environment_id+ - (String)
816
+ # * +:application_name+ - (String)
817
+ # * +:version_label+ - (String)
818
+ # * +:solution_stack_name+ - (String)
819
+ # * +:template_name+ - (String)
820
+ # * +:description+ - (String)
821
+ # * +:endpoint_url+ - (String)
822
+ # * +:cname+ - (String)
823
+ # * +:date_created+ - (Time)
824
+ # * +:date_updated+ - (Time)
825
+ # * +:status+ - (String)
826
+ # * +:health+ - (String)
827
+ # * +:resources+ - (Hash)
828
+ # * +:load_balancer+ - (Hash)
829
+ # * +:load_balancer_name+ - (String)
830
+ # * +:domain+ - (String)
831
+ # * +:listeners+ - (Array<Hash>)
832
+ # * +:protocol+ - (String)
833
+ # * +:port+ - (Integer)
834
+
835
+ # @!method validate_configuration_settings(options = {})
836
+ # Calls the ValidateConfigurationSettings API operation.
837
+ # @param [Hash] options
838
+ # * +:application_name+ - *required* - (String) The name of the
839
+ # application that the configuration template or environment belongs
840
+ # to.
841
+ # * +:template_name+ - (String) The name of the configuration template
842
+ # to validate the settings against. Condition: You cannot specify
843
+ # both this and an environment name.
844
+ # * +:environment_name+ - (String) The name of the environment to
845
+ # validate the settings against. Condition: You cannot specify both
846
+ # this and a configuration template name.
847
+ # * +:option_settings+ - *required* - (Array<Hash>) A list of the
848
+ # options and desired values to evaluate.
849
+ # * +:namespace+ - (String) A unique namespace identifying the
850
+ # option's associated AWS resource.
851
+ # * +:option_name+ - (String) The name of the configuration option.
852
+ # * +:value+ - (String) The current value for the configuration
853
+ # option.
854
+ # @return [Core::Response]
855
+ # The #data method of the response object returns
856
+ # a hash with the following structure:
857
+ # * +:messages+ - (Array<Hash>)
858
+ # * +:message+ - (String)
859
+ # * +:severity+ - (String)
860
+ # * +:namespace+ - (String)
861
+ # * +:option_name+ - (String)
862
+
863
+ ## end client methods ##
864
+
865
+ end
866
+ end
867
+ end