|
Did this page help you?Yes No Tell us about it... |
||||||
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.AuthorizeSecurityGroupEgressRequest
public class AuthorizeSecurityGroupEgressRequest
Container for the parameters to the AuthorizeSecurityGroupEgress operation
.
This action applies only to security groups in a VPC; it's not supported for 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 adds one or more egress rules to a VPC security group. Specifically, this permits instances in a security group to send traffic to either one or more destination CIDR IP address ranges, or to one or more destination security groups in the same VPC.
Each rule consists of the protocol (e.g., TCP), plus either a CIDR range, or a source group. For the TCP and UDP protocols, you must also specify the
destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1
as a wildcard for the
ICMP type or code.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Important: For VPC security groups: You can have up to 50 rules total per group (covering both ingress and egress).
AmazonEC2.authorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest)
,
Serialized FormConstructor Summary | |
---|---|
AuthorizeSecurityGroupEgressRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCidrIp()
Deprecated. |
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. |
AuthorizeSecurityGroupEgressRequest |
withCidrIp(String cidrIp)
Deprecated. |
AuthorizeSecurityGroupEgressRequest |
withFromPort(Integer fromPort)
Deprecated. |
AuthorizeSecurityGroupEgressRequest |
withGroupId(String groupId)
ID of the VPC security group to modify. |
AuthorizeSecurityGroupEgressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to authorize on the specified security group. |
AuthorizeSecurityGroupEgressRequest |
withIpPermissions(IpPermission... ipPermissions)
List of IP permissions to authorize on the specified security group. |
AuthorizeSecurityGroupEgressRequest |
withIpProtocol(String ipProtocol)
Deprecated. |
AuthorizeSecurityGroupEgressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated. |
AuthorizeSecurityGroupEgressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated. |
AuthorizeSecurityGroupEgressRequest |
withToPort(Integer toPort)
Deprecated. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuthorizeSecurityGroupEgressRequest()
Method Detail |
---|
public String getGroupId()
public void setGroupId(String groupId)
groupId
- ID of the VPC security group to modify.public AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |