|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.rds.model.AuthorizeDBSecurityGroupIngressRequest
public class AuthorizeDBSecurityGroupIngressRequest
Container for the parameters to the AuthorizeDBSecurityGroupIngress operation
.
Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range or (EC2SecurityGroupName AND EC2SecurityGroupOwnerId).
NOTE: You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another.
For an overview of CIDR ranges, go to the Wikipedia Tutorial .
AmazonRDS.authorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest)
Constructor Summary | |
---|---|
AuthorizeDBSecurityGroupIngressRequest()
Default constructor for a new AuthorizeDBSecurityGroupIngressRequest object. |
|
AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName)
Constructs a new AuthorizeDBSecurityGroupIngressRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCIDRIP()
The IP range to authorize. |
String |
getDBSecurityGroupName()
The name of the DB Security Group to authorize. |
String |
getEC2SecurityGroupName()
Name of the EC2 Security Group to authorize. |
String |
getEC2SecurityGroupOwnerId()
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. |
int |
hashCode()
|
void |
setCIDRIP(String cIDRIP)
The IP range to authorize. |
void |
setDBSecurityGroupName(String dBSecurityGroupName)
The name of the DB Security Group to authorize. |
void |
setEC2SecurityGroupName(String eC2SecurityGroupName)
Name of the EC2 Security Group to authorize. |
void |
setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
AuthorizeDBSecurityGroupIngressRequest |
withCIDRIP(String cIDRIP)
The IP range to authorize. |
AuthorizeDBSecurityGroupIngressRequest |
withDBSecurityGroupName(String dBSecurityGroupName)
The name of the DB Security Group to authorize. |
AuthorizeDBSecurityGroupIngressRequest |
withEC2SecurityGroupName(String eC2SecurityGroupName)
Name of the EC2 Security Group to authorize. |
AuthorizeDBSecurityGroupIngressRequest |
withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. |
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 AuthorizeDBSecurityGroupIngressRequest()
public AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName)
dBSecurityGroupName
- The name of the DB Security Group to
authorize.Method Detail |
---|
public String getDBSecurityGroupName()
public void setDBSecurityGroupName(String dBSecurityGroupName)
dBSecurityGroupName
- The name of the DB Security Group to authorize.public AuthorizeDBSecurityGroupIngressRequest withDBSecurityGroupName(String dBSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroupName
- The name of the DB Security Group to authorize.
public String getCIDRIP()
public void setCIDRIP(String cIDRIP)
cIDRIP
- The IP range to authorize.public AuthorizeDBSecurityGroupIngressRequest withCIDRIP(String cIDRIP)
Returns a reference to this object so that method calls can be chained together.
cIDRIP
- The IP range to authorize.
public String getEC2SecurityGroupName()
public void setEC2SecurityGroupName(String eC2SecurityGroupName)
eC2SecurityGroupName
- Name of the EC2 Security Group to authorize.public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroupName
- Name of the EC2 Security Group to authorize.
public String getEC2SecurityGroupOwnerId()
public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
eC2SecurityGroupOwnerId
- AWS Account Number of the owner of the security group specified in the
EC2SecurityGroupName parameter. The AWS Access Key ID is not an
acceptable value.public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroupOwnerId
- AWS Account Number of the owner of the security group specified in the
EC2SecurityGroupName parameter. The AWS Access Key ID is not an
acceptable value.
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 |