|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.RevokeSecurityGroupIngressRequest
public class RevokeSecurityGroupIngressRequest
A request to revoke permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.
Permissions are specified by 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).
Permission changes are quickly propagated to instances within the security group. However, depending on the number of instances in the group, a small delay might occur.
Constructor Summary | |
---|---|
RevokeSecurityGroupIngressRequest()
|
Method Summary | |
---|---|
String |
getCidrIp()
CIDR range. |
Integer |
getFromPort()
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
String |
getGroupName()
The name of the security group from which to remove permissions. |
String |
getIpProtocol()
IP protocol. |
String |
getSourceSecurityGroupName()
Name of the source security group. |
String |
getSourceSecurityGroupOwnerId()
AWS user ID of an account. |
Integer |
getToPort()
End of port range for the TCP and UDP protocols, or an ICMP code. |
void |
setCidrIp(String cidrIp)
CIDR range. |
void |
setFromPort(Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
void |
setGroupName(String groupName)
The name of the security group from which to remove permissions. |
void |
setIpProtocol(String ipProtocol)
IP protocol. |
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
Name of the source security group. |
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
AWS user ID of an account. |
void |
setToPort(Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code. |
String |
toString()
|
RevokeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
CIDR range. |
RevokeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
Start of port range for the TCP and UDP protocols, or an ICMP type number. |
RevokeSecurityGroupIngressRequest |
withGroupName(String groupName)
The name of the security group from which to remove permissions. |
RevokeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
IP protocol. |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
Name of the source security group. |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
AWS user ID of an account. |
RevokeSecurityGroupIngressRequest |
withToPort(Integer toPort)
End of port range for the TCP and UDP protocols, or an ICMP code. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RevokeSecurityGroupIngressRequest()
Method Detail |
---|
public String getGroupName()
public void setGroupName(String groupName)
groupName
- The name of the security group from which to remove permissions.public RevokeSecurityGroupIngressRequest withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the security group from which to remove permissions.
public String getSourceSecurityGroupName()
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
sourceSecurityGroupName
- Name of the source security group. Cannot be used when specifying a
CIDR IP address.public RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName
- Name of the source security group. Cannot be used when specifying a
CIDR IP address.
public String getSourceSecurityGroupOwnerId()
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
sourceSecurityGroupOwnerId
- AWS user ID of an account. Cannot be used when specifying a CIDR IP
address.public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId
- AWS user ID of an account. Cannot be used when specifying a CIDR IP
address.
public String getIpProtocol()
Valid values: tcp, udp, icmp
Valid values: tcp, udp, icmp
public void setIpProtocol(String ipProtocol)
Valid values: tcp, udp, icmp
ipProtocol
- IP protocol. Valid values: tcp, udp, icmp
public RevokeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
Valid values: tcp, udp, icmp
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- IP protocol. Valid values: tcp, udp, icmp
public Integer getFromPort()
public void setFromPort(Integer fromPort)
fromPort
- 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).public RevokeSecurityGroupIngressRequest withFromPort(Integer fromPort)
Returns a reference to this object so that method calls can be chained together.
fromPort
- 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).
public Integer getToPort()
public void setToPort(Integer toPort)
toPort
- 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).public RevokeSecurityGroupIngressRequest withToPort(Integer toPort)
Returns a reference to this object so that method calls can be chained together.
toPort
- 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).
public String getCidrIp()
public void setCidrIp(String cidrIp)
cidrIp
- CIDR range.public RevokeSecurityGroupIngressRequest withCidrIp(String cidrIp)
Returns a reference to this object so that method calls can be chained together.
cidrIp
- CIDR range.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |