Class: Fog::AWS::ElasticBeanstalk::Real

Inherits:
Object
  • Object
show all
Includes:
CredentialFetcher::ConnectionMethods
Defined in:
lib/fog/aws/beanstalk.rb,
lib/fog/aws/requests/beanstalk/describe_events.rb,
lib/fog/aws/requests/beanstalk/create_application.rb,
lib/fog/aws/requests/beanstalk/create_environment.rb,
lib/fog/aws/requests/beanstalk/delete_application.rb,
lib/fog/aws/requests/beanstalk/restart_app_server.rb,
lib/fog/aws/requests/beanstalk/update_application.rb,
lib/fog/aws/requests/beanstalk/update_environment.rb,
lib/fog/aws/requests/beanstalk/rebuild_environment.rb,
lib/fog/aws/requests/beanstalk/describe_applications.rb,
lib/fog/aws/requests/beanstalk/describe_environments.rb,
lib/fog/aws/requests/beanstalk/terminate_environment.rb,
lib/fog/aws/requests/beanstalk/check_dns_availability.rb,
lib/fog/aws/requests/beanstalk/create_storage_location.rb,
lib/fog/aws/requests/beanstalk/swap_environment_cnames.rb,
lib/fog/aws/requests/beanstalk/request_environment_info.rb,
lib/fog/aws/requests/beanstalk/retrieve_environment_info.rb,
lib/fog/aws/requests/beanstalk/create_application_version.rb,
lib/fog/aws/requests/beanstalk/delete_application_version.rb,
lib/fog/aws/requests/beanstalk/update_application_version.rb,
lib/fog/aws/requests/beanstalk/create_configuration_template.rb,
lib/fog/aws/requests/beanstalk/delete_configuration_template.rb,
lib/fog/aws/requests/beanstalk/describe_application_versions.rb,
lib/fog/aws/requests/beanstalk/update_configuration_template.rb,
lib/fog/aws/requests/beanstalk/describe_configuration_options.rb,
lib/fog/aws/requests/beanstalk/describe_environment_resources.rb,
lib/fog/aws/requests/beanstalk/list_available_solution_stacks.rb,
lib/fog/aws/requests/beanstalk/describe_configuration_settings.rb,
lib/fog/aws/requests/beanstalk/validate_configuration_settings.rb,
lib/fog/aws/requests/beanstalk/delete_environment_configuration.rb

Instance Method Summary collapse

Methods included from CredentialFetcher::ConnectionMethods

#refresh_credentials_if_expired

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/fog/aws/beanstalk.rb', line 66

def initialize(options={})

  @use_iam_profile = options[:use_iam_profile]

  @connection_options = options[:connection_options] || {}
  options[:region] ||= 'us-east-1'
  @host = options[:host] || "elasticbeanstalk.#{options[:region]}.amazonaws.com"
  @path       = options[:path]        || '/'
  @persistent = options[:persistent]  || false
  @port       = options[:port]        || 443
  @scheme     = options[:scheme]      || 'https'
  @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
  @instrumentor       = options[:instrumentor]
  @instrumentor_name  = options[:instrumentor_name] || 'fog.aws.beanstalk'

  @region = options[:region]
  setup_credentials(options)
end

Instance Method Details

#check_dns_availability(options) ⇒ Object

Checks if the specified CNAME is available.

Options

  • CNAMEPrefix<~String>: The prefix used when this CNAME is reserved

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CheckDNSAvailability.html



17
18
19
20
21
22
# File 'lib/fog/aws/requests/beanstalk/check_dns_availability.rb', line 17

def check_dns_availability(options)
  request({
              'Operation'    => 'CheckDNSAvailability',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CheckDNSAvailability.new
          }.merge(options))
end

#create_application(options = {}) ⇒ Object

Creates an application that has one configuration template named default and no application versions.

Options

  • ApplicationName<~String>: The name of the application.

  • Description<~String>: Describes the application.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateApplication.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/create_application.rb', line 19

def create_application(options={})
  request({
              'Operation'    => 'CreateApplication',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CreateApplication.new
          }.merge(options))
end

#create_application_version(options = {}) ⇒ Object

Creates an application version for the specified application.

Options

  • ApplicationName<~String>: The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

  • AutoCreateApplication<~Boolean>: If true, create the application if it doesn’t exist.

  • Description<~String>: Describes this version.

  • SourceBundle<~Hash>: The Amazon S3 bucket and key that identify the location of the source bundle

    for this version.  Use keys 'S3Bucket' and 'S3Key' to describe location.
    
  • VersionLabel<~String>: A label identifying this version.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateApplicationVersion.html



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/fog/aws/requests/beanstalk/create_application_version.rb', line 24

def create_application_version(options={})
  if source_bundle = options.delete('SourceBundle')
    # flatten hash
    options.merge!({
                       'SourceBundle.S3Bucket' => source_bundle['S3Bucket'],
                       'SourceBundle.S3Key' => source_bundle['S3Key']
                   })
  end
  request({
              'Operation'    => 'CreateApplicationVersion',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CreateApplicationVersion.new
          }.merge(options))
end

#create_configuration_template(options = {}) ⇒ Object

Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.

Options

  • ApplicationName<~String>: The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

  • Description<~String>: Describes this configuration.

  • EnvironmentId<~String>: The ID of the environment used with this configuration template.

  • OptionSettings<~Hash>: If specified, AWS Elastic Beanstalk sets the specified configuration option

    to the requested value. The new value overrides the value obtained from the solution stack or the
    source configuration template.
    
  • SolutionStackName<~String>: The name of the solution stack used by this configuration. The solution

    stack specifies the operating system, architecture, and application server for a configuration template.
    It determines the set of configuration options as well as the possible and default values.
    
  • SourceConfiguration<~String>: If specified, AWS Elastic Beanstalk uses the configuration values from the

    specified configuration template to create a new configuration.
    
  • TemplateName<~String>: The name of the configuration template.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateConfigurationTemplate.html



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/fog/aws/requests/beanstalk/create_configuration_template.rb', line 31

def create_configuration_template(options={})
  if option_settings = options.delete('OptionSettings')
    options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
  end
  if option_settings = options.delete('SourceConfiguration')
    options.merge!(AWS.serialize_keys('SourceConfiguration', option_settings))
  end
  request({
              'Operation'    => 'CreateConfigurationTemplate',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CreateConfigurationTemplate.new
          }.merge(options))
end

#create_environment(options = {}) ⇒ Object

Launches an environment for the specified application using the specified configuration.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions

    to include only those that are associated with this application.
    
  • CNAMEPrefix<~String>: If specified, the environment attempts to use this value as the prefix for the CNAME.

    If not specified, the environment uses the environment name.
    
  • Description<~String>: Describes this environment.

  • EnvironmentName<~String>: A unique name for the deployment environment. Used in the application URL.

  • OptionSettings<~Array>: If specified, AWS Elastic Beanstalk sets the specified configuration options to

    the requested value in the configuration set for the new environment. These override the values obtained
    from the solution stack or the configuration template.
    
  • OptionsToRemove<~Array>: A list of custom user-defined configuration options to remove from the

    configuration set for this new environment.
    
  • SolutionStackName<~String>: This is an alternative to specifying a configuration name. If specified,

    AWS Elastic Beanstalk sets the configuration values to the default values associated with the
    specified solution stack.
    
  • TemplateName<~String>: The name of the configuration template to use in deployment. If no configuration

    template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.
    
  • VersionLabel<~String>: The name of the application version to deploy.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateEnvironment.html



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/fog/aws/requests/beanstalk/create_environment.rb', line 34

def create_environment(options={})
  if option_settings = options.delete('OptionSettings')
    options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
  end
  if options_to_remove = options.delete('OptionsToRemove')
    options.merge!(AWS.indexed_param('OptionsToRemove.member.%d', [*options_to_remove]))
  end
  request({
              'Operation'    => 'CreateEnvironment',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CreateEnvironment.new
          }.merge(options))
end

#create_storage_locationObject

Creates the Amazon S3 storage location for the account.

Options

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateStorageLocation.html



17
18
19
20
21
22
# File 'lib/fog/aws/requests/beanstalk/create_storage_location.rb', line 17

def create_storage_location()
  request({
              'Operation'    => 'CreateStorageLocation',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::CreateStorageLocation.new
          })
end

#delete_application(application_name) ⇒ Object

Deletes the specified application along with all associated versions and configurations.

Options

  • application_name<~String>: The name of the application to delete.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DeleteApplication.html



18
19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/delete_application.rb', line 18

def delete_application(application_name)
  options = { 'ApplicationName' => application_name }
  request({
              'Operation'    => 'DeleteApplication',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#delete_application_version(application_name, version_label, delete_source_bundle = nil) ⇒ Object

Deletes the specified version from the specified application.

Options

  • application_name<~String>: The name of the application to delete releases from.

  • version_label<~String>: The label of the version to delete.

  • delete_source_bundle<~Boolean>: Indicates whether to delete the associated source bundle from Amazon S3.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DeleteApplication.html



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/fog/aws/requests/beanstalk/delete_application_version.rb', line 20

def delete_application_version(application_name, version_label, delete_source_bundle = nil)
  options = {
      'ApplicationName' => application_name,
      'VersionLabel' => version_label
  }
  options['DeleteSourceBundle'] = delete_source_bundle unless delete_source_bundle.nil?

  request({
              'Operation'    => 'DeleteApplicationVersion',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#delete_configuration_template(application_name, template_name) ⇒ Object

Deletes the specified configuration template.

Options

  • application_name<~String>: The name of the application to delete the configuration template from.

  • template_name<~String>: The name of the configuration template to delete.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DeleteConfigurationTemplate.html



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/fog/aws/requests/beanstalk/delete_configuration_template.rb', line 19

def delete_configuration_template(application_name, template_name)
  options = {
      'ApplicationName' => application_name,
      'TemplateName' => template_name
  }

  request({
              'Operation'    => 'DeleteConfigurationTemplate',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#delete_environment_configuration(application_name, environment_name) ⇒ Object

Deletes the draft configuration associated with the running environment.

Options

  • application_name<~String>: The name of the application the environment is associated with.

  • environment_name<~String>: The name of the environment to delete the draft configuration from.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DeleteConfigurationTemplate.html



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/fog/aws/requests/beanstalk/delete_environment_configuration.rb', line 19

def delete_environment_configuration(application_name, environment_name)
  options = {
      'ApplicationName' => application_name,
      'EnvironmentName' => environment_name
  }

  request({
              'Operation'    => 'DeleteEnvironmentConfiguration',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#describe_application_versions(options = {}) ⇒ Object

Returns descriptions for existing application versions.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to

    only include ones that are associated with the specified application.
    
  • VersionLabels<~Array>: If specified, restricts the returned descriptions to only include ones that have

    the specified version labels.
    

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeApplicationVersions.html



21
22
23
24
25
26
27
28
29
# File 'lib/fog/aws/requests/beanstalk/describe_application_versions.rb', line 21

def describe_application_versions(options={})
  if version_labels = options.delete('VersionLabels')
    options.merge!(AWS.indexed_param('VersionLabels.member.%d', [*version_labels]))
  end
  request({
              'Operation'    => 'DescribeApplicationVersions',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeApplicationVersions.new
          }.merge(options))
end

#describe_applications(application_names = []) ⇒ Object

Returns the descriptions of existing applications.

Options

  • application_names<~Array>: If specified, AWS Elastic Beanstalk restricts the returned descriptions

    to only include those with the specified names.
    

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeApplications.html



18
19
20
21
22
23
24
25
# File 'lib/fog/aws/requests/beanstalk/describe_applications.rb', line 18

def describe_applications(application_names=[])
  options = {}
  options.merge!(AWS.indexed_param('ApplicationNames.member.%d', [*application_names]))
  request({
              'Operation'    => 'DescribeApplications',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeApplications.new
          }.merge(options))
end

#describe_configuration_options(options = {}) ⇒ Object

Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.

Options

  • ApplicationName<~String>: The name of the application associated with the configuration template or environment. Only needed if you want to describe the configuration options associated with either the configuration template or environment.

  • EnvironmentName<~String>: The name of the environment whose configuration options you want to describe.

  • Options<~Array>: If specified, restricts the descriptions to only the specified options.

  • SolutionStackName<~String>: The name of the solution stack whose configuration options you want to describe.

  • TemplateName<~String>: The name of the configuration template whose configuration options you want to describe.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeConfigurationOptions.html



27
28
29
30
31
32
33
34
35
# File 'lib/fog/aws/requests/beanstalk/describe_configuration_options.rb', line 27

def describe_configuration_options(options={})
  if option_filters = options.delete('Options')
    options.merge!(AWS.indexed_param('Options.member.%d', [*option_filters]))
  end
  request({
              'Operation'    => 'DescribeConfigurationOptions',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeConfigurationOptions.new
          }.merge(options))
end

#describe_configuration_settings(options = {}) ⇒ Object

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

Options

  • ApplicationName<~String>: The application for the environment or configuration template.

  • EnvironmentName<~String>: The name of the environment to describe.

  • TemplateName<~String>: The name of the configuration template to describe.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeConfigurationSettings.html



21
22
23
24
25
26
# File 'lib/fog/aws/requests/beanstalk/describe_configuration_settings.rb', line 21

def describe_configuration_settings(options={})
  request({
              'Operation'    => 'DescribeConfigurationSettings',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeConfigurationSettings.new
          }.merge(options))
end

#describe_environment_resources(options = {}) ⇒ Object

Returns AWS resources for this environment.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeEnvironmentResources.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/describe_environment_resources.rb', line 19

def describe_environment_resources(options={})
  request({
              'Operation'    => 'DescribeEnvironmentResources',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeEnvironmentResources.new
          }.merge(options))
end

#describe_environments(options = {}) ⇒ Object

Returns descriptions for existing environments.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

  • EnvironmentIds

  • EnvironmentNames

  • IncludeDeleted

  • IncludedDeletedBackTo

  • VersionLabel<~String>:

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/fog/aws/requests/beanstalk/describe_environments.rb', line 24

def describe_environments(options={})
  if environment_ids = options.delete('EnvironmentIds')
    options.merge!(AWS.indexed_param('EnvironmentIds.member.%d', [*environment_ids]))
  end
  if environment_names = options.delete('EnvironmentNames')
    options.merge!(AWS.indexed_param('EnvironmentNames.member.%d', [*environment_names]))
  end
  request({
              'Operation'    => 'DescribeEnvironments',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeEnvironments.new
          }.merge(options))
end

#describe_events(options = {}) ⇒ Object

Returns list of event descriptions matching criteria up to the last 6 weeks.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/describe_events.rb', line 19

def describe_events(options={})
  request({
              'Operation'    => 'DescribeEvents',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::DescribeEvents.new
          }.merge(options))
end

#list_available_solution_stacksObject

Checks if the specified CNAME is available.

Options

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CheckDNSAvailability.html



17
18
19
20
21
22
# File 'lib/fog/aws/requests/beanstalk/list_available_solution_stacks.rb', line 17

def list_available_solution_stacks()
  request({
              'Operation'    => 'ListAvailableSolutionStacks',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::ListAvailableSolutionStacks.new
          })
end

#rebuild_environment(options = {}) ⇒ Object

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_RebuildEnvironment.html



20
21
22
23
24
25
# File 'lib/fog/aws/requests/beanstalk/rebuild_environment.rb', line 20

def rebuild_environment(options={})
  request({
              'Operation'    => 'RebuildEnvironment',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#reloadObject



85
86
87
# File 'lib/fog/aws/beanstalk.rb', line 85

def reload
  @connection.reset
end

#request_environment_info(options = {}) ⇒ Object

Returns AWS resources for this environment.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_RequestEnvironmentInfo.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/request_environment_info.rb', line 19

def request_environment_info(options={})
  request({
              'Operation'    => 'RequestEnvironmentInfo',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#restart_app_server(options = {}) ⇒ Object

Returns AWS resources for this environment.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_RestartAppServer.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/restart_app_server.rb', line 19

def restart_app_server(options={})
  request({
              'Operation'    => 'RestartAppServer',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#retrieve_environment_info(options = {}) ⇒ Object

Returns AWS resources for this environment.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_RetrieveEnvironmentInfo.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/retrieve_environment_info.rb', line 19

def retrieve_environment_info(options={})
  request({
              'Operation'    => 'RetrieveEnvironmentInfo',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::RetrieveEnvironmentInfo.new
          }.merge(options))
end

#solution_stacksObject

Returns an array of available solutions stack details



90
91
92
# File 'lib/fog/aws/beanstalk.rb', line 90

def solution_stacks
  list_available_solution_stacks.body['ListAvailableSolutionStacksResult']['SolutionStackDetails']
end

#swap_environment_cnames(options = {}) ⇒ Object

Swaps the CNAMEs of two environments.

Options

  • EnvironmentId

  • EnvironmentName

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_SwapEnvironmentCNAMEs.html



19
20
21
22
23
24
# File 'lib/fog/aws/requests/beanstalk/swap_environment_cnames.rb', line 19

def swap_environment_cnames(options={})
  request({
              'Operation'    => 'SwapEnvironmentCNAMEs',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::Empty.new
          }.merge(options))
end

#terminate_environment(options = {}) ⇒ Object

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

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_TerminateEnvironment.html



21
22
23
24
25
26
# File 'lib/fog/aws/requests/beanstalk/terminate_environment.rb', line 21

def terminate_environment(options={})
  request({
              'Operation'    => 'TerminateEnvironment',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::TerminateEnvironment.new
          }.merge(options))
end

#update_application(options) ⇒ Object

Updates the specified application to have the specified properties.

Options

  • ApplicationName<~String>: The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.

  • Description<~String>: A new description for the application.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_UpdateApplication.html



20
21
22
23
24
25
# File 'lib/fog/aws/requests/beanstalk/update_application.rb', line 20

def update_application(options)
  request({
              'Operation'    => 'UpdateApplication',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateApplication.new
          }.merge(options))
end

#update_application_version(options) ⇒ Object

Updates the specified application version to have the specified properties.

Options

  • ApplicationName<~String>: The name of the application associated with this version.

  • VersionLabel<~String>: The name of the version to update.

  • Description<~String>: A new description for this release.

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_UpdateApplicationVersion.html



20
21
22
23
24
25
# File 'lib/fog/aws/requests/beanstalk/update_application_version.rb', line 20

def update_application_version(options)
  request({
              'Operation'    => 'UpdateApplicationVersion',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateApplicationVersion.new
          }.merge(options))
end

#update_configuration_template(options = {}) ⇒ Object

Updates the specified configuration template to have the specified properties or configuration option values.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

  • VersionLabel<~String>:

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateConfigurationTemplate.html



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/fog/aws/requests/beanstalk/update_configuration_template.rb', line 20

def update_configuration_template(options={})
  if option_settings = options.delete('OptionSettings')
    options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
  end
  if options_to_remove = options.delete('OptionsToRemove')
    options.merge!(AWS.indexed_param('OptionsToRemove.member.%d', [*options_to_remove]))
  end
  request({
              'Operation'    => 'UpdateConfigurationTemplate',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateConfigurationTemplate.new
          }.merge(options))
end

#update_environment(options = {}) ⇒ Object

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

  • EnvironmentIds

  • EnvironmentNames

  • IncludeDeleted

  • IncludedDeletedBackTo

  • VersionLabel<~String>:

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateEnvironment.html



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/fog/aws/requests/beanstalk/update_environment.rb', line 26

def update_environment(options={})
  if option_settings = options.delete('OptionSettings')
    options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
  end
  if options_to_remove = options.delete('OptionsToRemove')
    options.merge!(AWS.indexed_param('OptionsToRemove.member.%d', [*options_to_remove]))
  end
  request({
              'Operation'    => 'UpdateEnvironment',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateEnvironment.new
          }.merge(options))
end

#validate_configuration_settings(options = {}) ⇒ Object

Updates the specified configuration template to have the specified properties or configuration option values.

Options

  • ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

  • VersionLabel<~String>:

Returns

  • response<~Excon::Response>:

See Also

docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateConfigurationTemplate.html



20
21
22
23
24
25
26
27
28
# File 'lib/fog/aws/requests/beanstalk/validate_configuration_settings.rb', line 20

def validate_configuration_settings(options={})
  if option_settings = options.delete('OptionSettings')
    options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
  end
  request({
              'Operation'    => 'ValidateConfigurationSettings',
              :parser     => Fog::Parsers::AWS::ElasticBeanstalk::ValidateConfigurationSettings.new
          }.merge(options))
end