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. 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

Namespace: Amazon.EC2.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class AuthorizeSecurityGroupIngressRequest
Public Class AuthorizeSecurityGroupIngressRequest
public ref class AuthorizeSecurityGroupIngressRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AuthorizeSecurityGroupIngressRequest()()()()
Initializes a new instance of the AuthorizeSecurityGroupIngressRequest class
CidrIp
Gets and sets the CidrIp property. CIDR range.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FromPort
Gets and sets the FromPort property. Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GroupId
Gets and sets the GroupId property. Id of the standard (EC2) or VPC security group to modify. Conditional The group must belong to your account.
GroupName
Gets and sets the GroupName property. Name of the group to modify. The name must be valid and belong to the account
IpPermissions
Gets and sets the IpPermissions property. Set of IP permissions associated with the security group.
IpProtocol
Gets and sets the IpProtocol property. IP protocol.
IsSetCidrIp()()()()
Checks if CidrIp property is set
IsSetFromPort()()()()
Checks if FromPort property is set
IsSetGroupId()()()()
Checks if GroupId property is set
IsSetGroupName()()()()
Checks if GroupName property is set
IsSetIpPermissions()()()()
Checks if IpPermissions property is set
IsSetIpProtocol()()()()
Checks if IpProtocol property is set
IsSetSourceSecurityGroupName()()()()
Checks if SourceSecurityGroupName property is set
IsSetSourceSecurityGroupOwnerId()()()()
Checks if SourceSecurityGroupOwnerId property is set
IsSetToPort()()()()
Checks if ToPort property is set
IsSetUserId()()()()
Checks if UserId property is set
SourceSecurityGroupName
Gets and sets the SourceSecurityGroupName property. Name of the security group. Cannot be used when specifying a CIDR IP address.
SourceSecurityGroupOwnerId
Gets and sets the SourceSecurityGroupOwnerId property. AWS User ID of an account. Cannot be used when specifying a CIDR IP address.
ToPort
Gets and sets the ToPort property. End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UserId
Gets and sets the UserId property. AWS Access Key ID.
WithCidrIp(String)
Sets the CidrIp property
WithFromPort(Decimal)
Sets the FromPort property
WithGroupId(String)
Sets the GroupId property
WithGroupName(String)
Sets the GroupName property
WithIpPermissions(array<IpPermissionSpecification>[]()[][])
Sets the IpPermissions property
WithIpProtocol(String)
Sets the IpProtocol property
WithSourceSecurityGroupName(String)
Sets the SourceSecurityGroupName property
WithSourceSecurityGroupOwnerId(String)
Sets the SourceSecurityGroupOwnerId property
WithToPort(Decimal)
Sets the ToPort property
WithUserId(String)
Sets the UserId property

Inheritance Hierarchy

System..::..Object
  Amazon.EC2.Model..::..AuthorizeSecurityGroupIngressRequest

See Also