public class AuthorizeDBSecurityGroupIngressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AuthorizeDBSecurityGroupIngress operation
.
Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC 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, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).
NOTE: You cannot authorize ingress from an EC2 security group in one region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.
For an overview of CIDR ranges, go to the Wikipedia Tutorial .
NOOP
Constructor and Description |
---|
AuthorizeDBSecurityGroupIngressRequest()
Default constructor for a new AuthorizeDBSecurityGroupIngressRequest object.
|
AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName)
Constructs a new AuthorizeDBSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
AuthorizeDBSecurityGroupIngressRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCIDRIP()
The IP range to authorize.
|
String |
getDBSecurityGroupName()
The name of the DB security group to add authorization to.
|
String |
getEC2SecurityGroupId()
Id of the EC2 security group to authorize.
|
String |
getEC2SecurityGroupName()
Name of the EC2 security group to authorize.
|
String |
getEC2SecurityGroupOwnerId()
AWS account number of the owner of the EC2 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 add authorization to.
|
void |
setEC2SecurityGroupId(String eC2SecurityGroupId)
Id of the EC2 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 EC2 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 add authorization to.
|
AuthorizeDBSecurityGroupIngressRequest |
withEC2SecurityGroupId(String eC2SecurityGroupId)
Id of the EC2 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 EC2 security group specified in
the
EC2SecurityGroupName parameter. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AuthorizeDBSecurityGroupIngressRequest()
public AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName)
dBSecurityGroupName
- The name of the DB security group to add
authorization to.public String getDBSecurityGroupName()
public void setDBSecurityGroupName(String dBSecurityGroupName)
dBSecurityGroupName
- The name of the DB security group to add authorization to.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 add authorization to.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()
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public void setEC2SecurityGroupName(String eC2SecurityGroupName)
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.eC2SecurityGroupName
- Name of the EC2 security group to authorize. For VPC DB security
groups, EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroupName
- Name of the EC2 security group to authorize. For VPC DB security
groups, EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public String getEC2SecurityGroupId()
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public void setEC2SecurityGroupId(String eC2SecurityGroupId)
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.eC2SecurityGroupId
- Id of the EC2 security group to authorize. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupId(String eC2SecurityGroupId)
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroupId
- Id of the EC2 security group to authorize. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public String getEC2SecurityGroupOwnerId()
EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.eC2SecurityGroupOwnerId
- AWS account number of the owner of the EC2 security group specified in
the EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroupOwnerId
- AWS account number of the owner of the EC2 security group specified in
the EC2SecurityGroupName
parameter. The AWS Access Key ID
is not an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,
EC2SecurityGroupOwnerId
and either
EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.public String toString()
toString
in class Object
Object.toString()
public AuthorizeDBSecurityGroupIngressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.