Sha256: 3ad9799e4bcf9f8ac79153e85fba3cd1745886081cd3f55714ac4e030657f82b

Contents?: true

Size: 714 Bytes

Versions: 3

Compression:

Stored size: 714 Bytes

Contents

module Fog
  module AWS
    class EC2

      # Associate an elastic IP address with an instance
      #
      # ==== Parameters
      # * instance_id<~String> - Id of instance to associate address with
      # * public_ip<~String> - Public ip to assign to instance
      #
      # ==== Returns
      # * response<~Fog::AWS::Response>:
      #   * body<~Hash>:
      #     * 'requestId'<~String> - Id of request
      #     * 'return'<~Boolean> - success?
      def associate_address(instance_id, public_ip)
        request({
          'Action' => 'AssociateAddress',
          'InstanceId' => instance_id,
          'PublicIp' => public_ip
        }, Fog::Parsers::AWS::EC2::Basic.new)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geemus-fog-0.0.0 lib/fog/aws/requests/ec2/associate_address.rb
geemus-fog-0.0.1 lib/fog/aws/requests/ec2/associate_address.rb
geemus-fog-0.0.3 lib/fog/aws/requests/ec2/associate_address.rb