org.jclouds.rds.domain
Class SecurityGroup

java.lang.Object
  extended by org.jclouds.rds.domain.SecurityGroup

public class SecurityGroup
extends Object

Amazon RDS allows you to control access to your DB Instances using DB Security Groups. A DB Security Group acts like a firewall controlling network access to your DB Instance. By default, network access is turned off to your DB Instances. If you want your applications to access your DB Instance you can allow access from specific EC2 security groups or IP ranges. Once ingress is configured, the same rules apply to all DB Instances associated with that DBSecurityGroup.

Important

Please ensure you authorize only specific IP ranges or EC2 security groups. We highly discourage authorizing broad IP ranges (for example, 0.0.0.0/0). Note that you cannot use Amazon RDS DB Security Groups to restrict access to your Amazon EC2 instances. Similarly, you cannot apply an Amazon EC2 security group to your Amazon RDS DB Instance.

Author:
Adrian Cole
See Also:
doc

Nested Class Summary
static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>>
           
 
Field Summary
protected  String description
           
protected  Set<EC2SecurityGroup> ec2SecurityGroups
           
protected  Set<IPRange> ipRanges
           
protected  String name
           
protected  String ownerId
           
protected  com.google.common.base.Optional<String> vpcId
           
 
Constructor Summary
protected SecurityGroup(String name, String description, Iterable<EC2SecurityGroup> ec2SecurityGroups, Iterable<IPRange> ipRanges, String ownerId, com.google.common.base.Optional<String> vpcId)
           
 
Method Summary
static SecurityGroup.Builder<?> builder()
           
 boolean equals(Object obj)
          
 String getDescription()
          Provides the description of the DB Security Group.
 Set<EC2SecurityGroup> getEC2SecurityGroups()
          Contains a list of EC2SecurityGroup elements.
 Set<IPRange> getIPRanges()
          Contains a list of IPRange elements.
 String getName()
          Specifies the name of the DB Security Group.
 String getOwnerId()
          Provides the AWS ID of the owner of a specific DB Security Group..
 com.google.common.base.Optional<String> getVpcId()
          Provides the VpcId of the DB Security Group.
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
           
 SecurityGroup.Builder<?> toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

description

protected final String description

ec2SecurityGroups

protected final Set<EC2SecurityGroup> ec2SecurityGroups

ipRanges

protected final Set<IPRange> ipRanges

ownerId

protected final String ownerId

vpcId

protected final com.google.common.base.Optional<String> vpcId
Constructor Detail

SecurityGroup

protected SecurityGroup(String name,
                        String description,
                        Iterable<EC2SecurityGroup> ec2SecurityGroups,
                        Iterable<IPRange> ipRanges,
                        String ownerId,
                        com.google.common.base.Optional<String> vpcId)
Method Detail

builder

public static SecurityGroup.Builder<?> builder()

toBuilder

public SecurityGroup.Builder<?> toBuilder()

getName

public String getName()
Specifies the name of the DB Security Group.


getDescription

public String getDescription()
Provides the description of the DB Security Group.


getEC2SecurityGroups

public Set<EC2SecurityGroup> getEC2SecurityGroups()
Contains a list of EC2SecurityGroup elements.


getIPRanges

public Set<IPRange> getIPRanges()
Contains a list of IPRange elements.


getOwnerId

public String getOwnerId()
Provides the AWS ID of the owner of a specific DB Security Group..


getVpcId

public com.google.common.base.Optional<String> getVpcId()
Provides the VpcId of the DB Security Group.


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2012 jclouds. All Rights Reserved.