public class RevokeSecurityGroupEgressRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
RevokeSecurityGroupEgress operation
.
This action applies only to security groups in a VPC. It doesn't work with EC2 security groups. For information about Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide.
The action removes one or more egress rules from a VPC security group. The values that you specify in the revoke request (e.g., ports, etc.) must match the existing rule's values in order for the rule to be revoked.
Each rule consists of the protocol, and the CIDR range or destination security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Constructor and Description |
---|
RevokeSecurityGroupEgressRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCidrIp()
Deprecated.
|
Request<RevokeSecurityGroupEgressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getFromPort()
Deprecated.
|
String |
getGroupId()
ID of the VPC security group to modify.
|
List<IpPermission> |
getIpPermissions()
List of IP permissions to authorize on the specified security group.
|
String |
getIpProtocol()
Deprecated.
|
String |
getSourceSecurityGroupName()
Deprecated.
|
String |
getSourceSecurityGroupOwnerId()
Deprecated.
|
Integer |
getToPort()
Deprecated.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
Deprecated.
|
void |
setFromPort(Integer fromPort)
Deprecated.
|
void |
setGroupId(String groupId)
ID of the VPC security group to modify.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to authorize on the specified security group.
|
void |
setIpProtocol(String ipProtocol)
Deprecated.
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated.
|
void |
setToPort(Integer toPort)
Deprecated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RevokeSecurityGroupEgressRequest |
withCidrIp(String cidrIp)
Deprecated.
|
RevokeSecurityGroupEgressRequest |
withFromPort(Integer fromPort)
Deprecated.
|
RevokeSecurityGroupEgressRequest |
withGroupId(String groupId)
ID of the VPC security group to modify.
|
RevokeSecurityGroupEgressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to authorize on the specified security group.
|
RevokeSecurityGroupEgressRequest |
withIpPermissions(IpPermission... ipPermissions)
List of IP permissions to authorize on the specified security group.
|
RevokeSecurityGroupEgressRequest |
withIpProtocol(String ipProtocol)
Deprecated.
|
RevokeSecurityGroupEgressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated.
|
RevokeSecurityGroupEgressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated.
|
RevokeSecurityGroupEgressRequest |
withToPort(Integer toPort)
Deprecated.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getGroupId()
public void setGroupId(String groupId)
groupId
- ID of the VPC security group to modify.public RevokeSecurityGroupEgressRequest withGroupId(String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- ID of the VPC security group to modify.public String getSourceSecurityGroupName()
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
sourceSecurityGroupName
- Deprecated.public RevokeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName
- Deprecated.public String getSourceSecurityGroupOwnerId()
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
sourceSecurityGroupOwnerId
- Deprecated.public RevokeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId
- Deprecated.public String getIpProtocol()
public void setIpProtocol(String ipProtocol)
ipProtocol
- Deprecated.public RevokeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- Deprecated.public Integer getFromPort()
public void setFromPort(Integer fromPort)
fromPort
- Deprecated.public RevokeSecurityGroupEgressRequest withFromPort(Integer fromPort)
Returns a reference to this object so that method calls can be chained together.
fromPort
- Deprecated.public Integer getToPort()
public void setToPort(Integer toPort)
toPort
- Deprecated.public RevokeSecurityGroupEgressRequest withToPort(Integer toPort)
Returns a reference to this object so that method calls can be chained together.
toPort
- Deprecated.public String getCidrIp()
public void setCidrIp(String cidrIp)
cidrIp
- Deprecated.public RevokeSecurityGroupEgressRequest withCidrIp(String cidrIp)
Returns a reference to this object so that method calls can be chained together.
cidrIp
- Deprecated.public List<IpPermission> getIpPermissions()
public void setIpPermissions(Collection<IpPermission> ipPermissions)
ipPermissions
- List of IP permissions to authorize on the specified security group.
Specifying permissions through IP permissions is the preferred way of
authorizing permissions since it offers more flexibility and control.public RevokeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- List of IP permissions to authorize on the specified security group.
Specifying permissions through IP permissions is the preferred way of
authorizing permissions since it offers more flexibility and control.public RevokeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- List of IP permissions to authorize on the specified security group.
Specifying permissions through IP permissions is the preferred way of
authorizing permissions since it offers more flexibility and control.public Request<RevokeSecurityGroupEgressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.