2014-12-30 17:25:09 -05:00
|
|
|
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.
|
2015-01-02 12:34:40 -05:00
|
|
|
# * TerminateResources<~Boolean>: Indicates whether the associated AWS resources should shut down when the
|
2014-12-30 17:25:09 -05:00
|
|
|
# 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
|