Sha256: 2619d7ccc65f56a05280250ccad56006e68fc9c2a10575b383cb50bf198339a8

Contents?: true

Size: 1.69 KB

Versions: 98

Compression:

Stored size: 1.69 KB

Contents

module Fog
  module AWS
    class ElasticBeanstalk
      class Real
        require 'fog/aws/parsers/beanstalk/create_application_version'

        # 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
        # http://docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateApplicationVersion.html
        #
        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
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.29.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.28.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.27.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.26.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.25.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.24.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.23.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.22.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.21.1 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.21.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.20.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.19.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.18.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.17.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.16.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.15.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.14.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.13.0 lib/fog/aws/requests/beanstalk/create_application_version.rb
fog-aws-3.12.0 lib/fog/aws/requests/beanstalk/create_application_version.rb