fog--fog/lib/fog/aws/requests/ec2/revoke_security_group_ingre...

33 lines
1.0 KiB
Ruby
Raw Normal View History

module Fog
module AWS
class EC2
# Remove permissions from a security group
#
# ==== Parameters
2009-07-19 22:16:26 +00:00
# * options<~Hash>:
2009-08-01 08:15:44 +00:00
# * 'GroupName'<~String> - Name of group
# * 'SourceSecurityGroupName'<~String> - Name of security group to authorize
# * 'SourceSecurityGroupOwnerId'<~String> - Name of owner to authorize
2009-07-19 22:16:26 +00:00
# or
2009-08-01 08:15:44 +00:00
# * '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
2009-07-19 22:16:26 +00:00
# * response<~Fog::AWS::Response>:
# * body<~Hash>:
2009-08-01 08:15:44 +00:00
# * 'requestId'<~String> - Id of request
# * 'return'<~Boolean> - success?
2009-07-19 22:16:26 +00:00
def revoke_security_group_ingress(options = {})
request({
2009-08-01 08:15:44 +00:00
'Action' => 'RevokeSecurityGroupIngress'
}.merge!(options), Fog::Parsers::AWS::EC2::Basic.new)
end
end
end
end