Sha256: c3d896678fd9a02d71688532a0a5677033f3a77e4056a345bcdcbedfb1237369

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module AWS
    class EC2

      # Add permissions to a security group
      #
      # ==== Parameters
      # * options<~Hash>:
      #   * 'GroupName'<~String> - Name of group
      #   * 'SourceSecurityGroupName'<~String> - Name of security group to authorize
      #   * 'SourceSecurityGroupOwnerId'<~String> - Name of owner to authorize
      #   or
      #   * 'CidrIp' - CIDR range
      #   * 'FromPort' - Start of port range (or -1 for ICMP wildcard)
      #   * 'GroupName' - Name of group to modify
      #   * 'IpProtocol' - Ip protocol, must be in ['tcp', 'udp', 'icmp']
      #   * 'ToPort' - End of port range (or -1 for ICMP wildcard)
      #
      # === Returns
      # * response<~Fog::AWS::Response>:
      #   * body<~Hash>:
      #     * 'requestId'<~String> - Id of request
      #     * 'return'<~Boolean> - success?
      def authorize_security_group_ingress(options = {})
        request({
          'Action' => 'AuthorizeSecurityGroupIngress'
        }.merge!(options), Fog::Parsers::AWS::EC2::Basic.new)
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
geemus-fog-0.0.0 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
geemus-fog-0.0.1 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
geemus-fog-0.0.3 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.9 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.8 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.7 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.6 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.5 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.4 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb
fog-0.0.3 lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb