Sha256: 5d876a4e027556fc69c3066b126c5964585ab1243966b22497f1f764a20b2f94

Contents?: true

Size: 909 Bytes

Versions: 30

Compression:

Stored size: 909 Bytes

Contents

# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

AWS::Core::Configuration.module_eval do

  add_service 'EC2', 'ec2', 'ec2'

  add_option :ec2_signature_version do |config, value|
    if config.ec2_region.match(/^cn-/)
      :v4
    elsif value
      value
    elsif config.ec2 && config.ec2[:signature_version]
      config.ec2[:signature_version]
    else
      :v2
    end
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
aws-sdk-1.51.0 lib/aws/ec2/config.rb
aws-sdk-1.50.0 lib/aws/ec2/config.rb
aws-sdk-1.49.0 lib/aws/ec2/config.rb
aws-sdk-1.48.1 lib/aws/ec2/config.rb
aws-sdk-1.48.0 lib/aws/ec2/config.rb
aws-sdk-1.47.0 lib/aws/ec2/config.rb
aws-sdk-1.46.0 lib/aws/ec2/config.rb
aws-sdk-1.45.0 lib/aws/ec2/config.rb
aws-sdk-1.44.0 lib/aws/ec2/config.rb
aws-sdk-1.43.3 lib/aws/ec2/config.rb
aws-sdk-1.43.2 lib/aws/ec2/config.rb
aws-sdk-1.43.1 lib/aws/ec2/config.rb
aws-sdk-1.43.0 lib/aws/ec2/config.rb
aws-sdk-1.42.0 lib/aws/ec2/config.rb
aws-sdk-1.41.0 lib/aws/ec2/config.rb
aws-sdk-1.40.3 lib/aws/ec2/config.rb
aws-sdk-1.40.2 lib/aws/ec2/config.rb
aws-sdk-1.40.1 lib/aws/ec2/config.rb
aws-sdk-1.40.0 lib/aws/ec2/config.rb
aws-sdk-1.39.0 lib/aws/ec2/config.rb