AWS SDK for .NET Documentation
AuthorizeSecurityGroupEgress Method (request)
AmazonAmazon.EC2AmazonEC2AuthorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest) Did this page help you?   Yes   No    Tell us about it...
Adds one or more egress rules to a VPC security group.
Declaration Syntax
request (AuthorizeSecurityGroupEgressRequest)
Authorize Security Group Egress request
Return Value
Authorize Security Group Egress Response from the service

This call permits instances in a security group to send traffic to one or more destination CIDR IP address ranges, or to one or more destination security groups in the same VPC.

This action applies only to security groups in a VPC; it's not supported for standard (EC2) security groups.

Each rule consists of the protocol (e.g., TCP), plus either a CIDR range, or a source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code.You can use -1 as a wildcard for the ICMP type or code.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.


Assembly: AWSSDK (Module: AWSSDK) Version: (