AWS SDK for .NET Documentation
RevokeSecurityGroupEgress Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2 ► RevokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest)
Did this page help you? Yes No Tell us about it...
Removes one or more egress rules from a VPC security group.
Declaration Syntax

C#

    RevokeSecurityGroupEgressResponse RevokeSecurityGroupEgress(
    	RevokeSecurityGroupEgressRequest request
    )

Parameters

request (RevokeSecurityGroupEgressRequest)
  Revoke Security Group Egress request

Return Value
Revoke Security Group Egress Response from the service
Remarks
This action applies only to security groups in a VPC. It doesn't work with standard (EC2) security groups. For information about Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide. The values that you specify in the revoke request (e.g., ports, etc.) must match the existing rule's values in order for the rule to be revoked. Each rule consists of the protocol, and the CIDR range or destination security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

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