mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
d48d376e9c
* take the liberty of correcting Aws naming
30 lines
1 KiB
Ruby
30 lines
1 KiB
Ruby
module Fog
|
|
module AWS
|
|
class ElasticBeanstalk
|
|
class Real
|
|
require 'fog/aws/parsers/beanstalk/terminate_environment'
|
|
|
|
# Terminates the specified environment.
|
|
#
|
|
# ==== Options
|
|
# * EnvironmentId<~String>: The ID of the environment to terminate.
|
|
# * EnvironmentName<~String>: The name of the environment to terminate.
|
|
# * TerminateResources<~Boolean>: Indicates whether the associated Aws resources should shut down when the
|
|
# environment is terminated
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
#
|
|
# ==== See Also
|
|
# http://docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_TerminateEnvironment.html
|
|
#
|
|
def terminate_environment(options={})
|
|
request({
|
|
'Operation' => 'TerminateEnvironment',
|
|
:parser => Fog::Parsers::AWS::ElasticBeanstalk::TerminateEnvironment.new
|
|
}.merge(options))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|