|
|||||||
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
Container for the parameters to the RevokeSecurityGroupIngress operation
.
The RevokeSecurityGroupIngress operation revokes 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.
AmazonEC2.revokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest)
Constructor Summary | |
---|---|
RevokeSecurityGroupIngressRequest()
Default constructor for a new RevokeSecurityGroupIngressRequest object. |
|
RevokeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object. |
Method Summary | |
---|---|
String |
getCidrIp()
Deprecated - use the list of IP permissions to specify this information instead. |
Integer |
getFromPort()
Deprecated - use the list of IP permissions to specify this information instead. |
String |
getGroupName()
The name of the security group from which to remove permissions. |
List<IpPermission> |
getIpPermissions()
List of IP permissions to revoke on the specified security group. |
String |
getIpProtocol()
Deprecated - use the list of IP permissions to specify this information instead. |
String |
getSourceSecurityGroupName()
Deprecated - use the list of IP permissions to specify this information instead. |
String |
getSourceSecurityGroupOwnerId()
Deprecated - use the list of IP permissions to specify this information instead. |
Integer |
getToPort()
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setCidrIp(String cidrIp)
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setFromPort(Integer fromPort)
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setGroupName(String groupName)
The name of the security group from which to remove permissions. |
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to revoke on the specified security group. |
void |
setIpProtocol(String ipProtocol)
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated - use the list of IP permissions to specify this information instead. |
void |
setToPort(Integer toPort)
Deprecated - use the list of IP permissions to specify this information instead. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RevokeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
Deprecated - use the list of IP permissions to specify this information instead. |
RevokeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
Deprecated - use the list of IP permissions to specify this information instead. |
RevokeSecurityGroupIngressRequest |
withGroupName(String groupName)
The name of the security group from which to remove permissions. |
RevokeSecurityGroupIngressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to revoke on the specified security group. |
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
List of IP permissions to revoke on the specified security group. |
RevokeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
Deprecated - use the list of IP permissions to specify this information instead. |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated - use the list of IP permissions to specify this information instead. |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated - use the list of IP permissions to specify this information instead. |
RevokeSecurityGroupIngressRequest |
withToPort(Integer toPort)
Deprecated - use the list of IP permissions to specify this information instead. |
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()
public RevokeSecurityGroupIngressRequest(String groupName, List<IpPermission> ipPermissions)
groupName
- The name of the security group from which to remove
permissions.ipPermissions
- List of IP permissions to revoke on the specified
security group. For an IP permission to be removed, it must exactly
match one of the IP permissions you specify in this list. Specifying
permissions through IP permissions is the preferred way of revoking
permissions since it offers more flexibility and control.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()
Name of the source security group. Cannot be used when specifying a CIDR IP address.
Name of the source security group. Cannot be used when specifying a CIDR IP address.
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
Name of the source security group. Cannot be used when specifying a CIDR IP address.
sourceSecurityGroupName
- Deprecated - use the list of IP permissions to specify this
information instead. Name of the source security group. Cannot be used when specifying a CIDR IP address.
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
Name of the source security group. Cannot be used when specifying a CIDR IP address.
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName
- Deprecated - use the list of IP permissions to specify this
information instead. Name of the source security group. Cannot be used when specifying a CIDR IP address.
public String getSourceSecurityGroupOwnerId()
AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
sourceSecurityGroupOwnerId
- Deprecated - use the list of IP permissions to specify this
information instead. AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId
- Deprecated - use the list of IP permissions to specify this
information instead. AWS user ID of an account. Cannot be used when specifying a CIDR IP address.
public String getIpProtocol()
IP protocol.
Valid values: tcp, udp, icmp
IP protocol.
Valid values: tcp, udp, icmp
public void setIpProtocol(String ipProtocol)
IP protocol.
Valid values: tcp, udp, icmp
ipProtocol
- Deprecated - use the list of IP permissions to specify this
information instead. IP protocol.
Valid values: tcp, udp, icmp
public RevokeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
IP protocol.
Valid values: tcp, udp, icmp
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- Deprecated - use the list of IP permissions to specify this
information instead. IP protocol.
Valid values: tcp, udp, icmp
public Integer getFromPort()
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).
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 void setFromPort(Integer 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).
fromPort
- Deprecated - use the list of IP permissions to specify this
information instead. 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)
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).
Returns a reference to this object so that method calls can be chained together.
fromPort
- Deprecated - use the list of IP permissions to specify this
information instead. 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()
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).
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 void setToPort(Integer 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).
toPort
- Deprecated - use the list of IP permissions to specify this
information instead. 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)
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).
Returns a reference to this object so that method calls can be chained together.
toPort
- Deprecated - use the list of IP permissions to specify this
information instead. 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()
CIDR range.
CIDR range.
public void setCidrIp(String cidrIp)
CIDR range.
cidrIp
- Deprecated - use the list of IP permissions to specify this
information instead. CIDR range.
public RevokeSecurityGroupIngressRequest withCidrIp(String cidrIp)
CIDR range.
Returns a reference to this object so that method calls can be chained together.
cidrIp
- Deprecated - use the list of IP permissions to specify this
information instead. CIDR range.
public List<IpPermission> getIpPermissions()
public void setIpPermissions(Collection<IpPermission> ipPermissions)
ipPermissions
- List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.public RevokeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.
public RevokeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |