Parent

Class/Module Index [+]

Quicksearch

Fog::AWS::ElasticBeanstalk::Template

Public Class Methods

new(attributes={}) click to toggle source
# File lib/fog/aws/models/beanstalk/template.rb, line 20
def initialize(attributes={})
  super
end

Public Instance Methods

destroy() click to toggle source
# File lib/fog/aws/models/beanstalk/template.rb, line 34
def destroy
  requires :name, :application_name
  service.delete_configuration_template(application_name, name)
  true
end
modify(new_attributes) click to toggle source
# File lib/fog/aws/models/beanstalk/template.rb, line 59
def modify(new_attributes)
  requires :name, :application_name

  options = {
      'ApplicationName' => application_name,
      'Description' => new_attributes[:description],
      'OptionSettings' => new_attributes[:option_settings],
      'TemplateName' => name
  }
  options.delete_if {|key, value| value.nil?}

  data = service.update_configuration_template(options).body['UpdateConfigurationTemplateResult']
  merge_attributes(data)
  true
end
options() click to toggle source

Returns an array of options that may be set on this template

# File lib/fog/aws/models/beanstalk/template.rb, line 25
def options
  requires :name, :application_name
  data = service.describe_configuration_options({
      'ApplicationName' => application_name,
      'TemplateName' => name
                                            })
  data.body['DescribeConfigurationOptionsResult']['Options']
end
save() click to toggle source
# File lib/fog/aws/models/beanstalk/template.rb, line 40
def save
  requires :name, :application_name

  options = {
      'ApplicationName' => application_name,
      'Description' => description,
      'EnvironmentId' => environment_id,
      'OptionSettings' => option_settings,
      'SolutionStackName' => solution_stack_name,
      'SourceConfiguration' => source_configuration,
      'TemplateName' => name
  }
  options.delete_if {|key, value| value.nil?}

  data = service.create_configuration_template(options).body['CreateConfigurationTemplateResult']
  merge_attributes(data)
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.