mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
32 lines
1 KiB
Ruby
32 lines
1 KiB
Ruby
module Fog
|
|
module AWS
|
|
class EC2
|
|
|
|
# Remove permissions from 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 revoke_security_group_ingress(options = {})
|
|
request({
|
|
'Action' => 'RevokeSecurityGroupIngress'
|
|
}.merge!(options), Fog::Parsers::AWS::EC2::Basic.new)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|