Sha256: 8ad489920586e4dc9b6c2c9441ee952e3805daa74fcbcb0050768d4e99ae93cb

Contents?: true

Size: 1.54 KB

Versions: 26

Compression:

Stored size: 1.54 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'fog/aws/parsers/rds/authorize_db_security_group_ingress'

        # authorizes a db security group ingress
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?API_AuthorizeDBSecurityGroupIngress.html
        # ==== Parameters
        # * CIDRIP <~String> - The IP range to authorize
        # * DBSecurityGroupName <~String> - The name for the DB Security Group.
        # * EC2SecurityGroupName <~String> - Name of the EC2 Security Group to authorize.
        # * EC2SecurityGroupOwnerId <~String> - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def authorize_db_security_group_ingress(name, opts={})
          unless opts.key?('CIDRIP') || (opts.key?('EC2SecurityGroupName') && opts.key?('EC2SecurityGroupOwnerId'))
            raise ArgumentError, 'Must specify CIDRIP, or both EC2SecurityGroupName and EC2SecurityGroupOwnerId'
          end

          request({
            'Action'  => 'AuthorizeDBSecurityGroupIngress',
            :parser   => Fog::Parsers::AWS::RDS::AuthorizeDBSecurityGroupIngress.new,
            'DBSecurityGroupName' => name
          }.merge(opts))

        end

      end

      class Mock

        def authorize_db_security_group_ingress(name, opts = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-1.1.2 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog_tractical-1.1.4 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog_tractical-1.1.3 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-1.1.1 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-1.1.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
tag-fog-1.0.1 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-1.0.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-0.11.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-0.10.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog4encbs-0.9.0.1 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog4encbs-0.9.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
fog-0.9.0 lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb