AWS SDK for .NET Documentation
AuthorizeSecurityGroupIngress Method (request)
AmazonAmazon.EC2AmazonEC2ClientAuthorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest) Did this page help you?   Yes   No    Tell us about it...
Adds one or more ingress rules to a security group. This action applies to both EC2 security groups and VPC security groups.
Declaration Syntax
C#
public AuthorizeSecurityGroupIngressResponse AuthorizeSecurityGroupIngress(
	AuthorizeSecurityGroupIngressRequest request
)
Parameters
request (AuthorizeSecurityGroupIngressRequest)
Authorize Security Group Ingress request
Return Value
Authorize Security Group Ingress Response from the service
Remarks
Permissions are specified by the 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). When authorizing ICMP, -1 can be used as a wildcard in the type and code fields. Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur. When authorizing a user/group pair permission, GroupName, SourceSecurityGroupName and SourceSecurityGroupOwnerId must be specified. When authorizing a CIDR IP permission, GroupName, IpProtocol, FromPort, ToPort and CidrIp must be specified
Exceptions

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