AWS SDK for .NET Documentation
RevokeSecurityGroupIngress Method (request)
AmazonAmazon.EC2AmazonEC2ClientRevokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest) Did this page help you?   Yes   No    Tell us about it...
Revokes permissions from a security group.
Declaration Syntax
C#
public RevokeSecurityGroupIngressResponse RevokeSecurityGroupIngress(
	RevokeSecurityGroupIngressRequest request
)
Parameters
request (RevokeSecurityGroupIngressRequest)
Revoke Security Group Ingress request
Return Value
Revoke Security Group Ingress Response from the service
Remarks
The permissions used to revoke must be specified using the same values used to grant the permissions. Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). Permission changes are quickly propagated to instances within the security group. However, depending on the number of instances in the group, a small delay is might occur.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)