AmazonEC2Client.AuthorizeSecurityGroupIngress Method (AuthorizeSecurityGroupIngressRequest)

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

The AuthorizeSecurityGroupIngress operation adds permissions to a security group.

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.

Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public virtual AuthorizeSecurityGroupIngressResponse AuthorizeSecurityGroupIngress(
         AuthorizeSecurityGroupIngressRequest request
)

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5