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 class AuthorizeSecurityGroupIngressRequest : EC2Request
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
AuthorizeSecurityGroupIngressRequest()()()() | Initializes a new instance of the AuthorizeSecurityGroupIngressRequest class | |
CidrIp |
The CIDR range.
Cannot be used when specifying a source security group.
| |
Equals(Object) | (Inherited from Object.) | |
FromPort |
The start of port range for the TCP and UDP protocols, or an ICMP type number.
For the ICMP type number, you can use -1 to specify all ICMP types.
| |
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 |
Id of the standard (EC2) or VPC security group to modify.
The group must belong to your account.
| |
GroupName |
The name of the EC2 security group to modify.
| |
IpPermissions |
Set of IP permissions associated with the security group.
| |
IpProtocol |
The IP protocol name or number.
EC2 security groups can have rules only for TCP, UDP, and ICMP,
whereas VPC security groups can have rules assigned to any protocol number.
| |
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 |
The name of the source security group.
Cannot be used when specifying a CIDR IP address.
| |
SourceSecurityGroupOwnerId |
The ID of the source security group.
Cannot be used when specifying a CIDR IP address.
| |
ToPort |
The end of port range for the TCP and UDP protocols, or an ICMP code number.
For the ICMP code number, you can use -1 to specify all ICMP codes for the given ICMP type.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
UserId |
AWS Access Key ID.
| |
WithCidrIp(String) | Obsolete.
Sets the CIDR range.
| |
WithFromPort(Decimal) | Obsolete.
Sets the start of port range for the TCP and UDP protocols, or an ICMP type number.
| |
WithGroupId(String) | Obsolete.
Sets the Id of the standard (EC2) or VPC security group to modify.
| |
WithGroupName(String) | Obsolete.
Sets the name of the EC2 security group to modify.
| |
WithIpPermissions(array<IpPermissionSpecification>[]()[][]) | Obsolete.
Sets the IP permissions associated with the security group.
| |
WithIpProtocol(String) | Obsolete.
Sets the IP protocol name or number.
| |
WithSourceSecurityGroupName(String) | Obsolete.
Sets the name of the source security group.
| |
WithSourceSecurityGroupOwnerId(String) | Obsolete.
Sets the ID of the source security group.
| |
WithToPort(Decimal) | Obsolete.
Sets the end of port range for the TCP and UDP protocols, or an ICMP code number.
| |
WithUserId(String) | Obsolete.
Sets the AWS Access Key ID.
|
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
Inheritance Hierarchy
Object | ||
EC2Request | ||
AuthorizeSecurityGroupIngressRequest |