mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1928 from adamjt/publicly_accessible_rds
Add PubliclyAccessible option to RDS.
This commit is contained in:
commit
dd10f93006
5 changed files with 9 additions and 3 deletions
|
@ -30,6 +30,7 @@ module Fog
|
|||
attribute :backup_retention_period, :aliases => 'BackupRetentionPeriod', :type => :integer
|
||||
attribute :license_model, :aliases => 'LicenseModel'
|
||||
attribute :db_subnet_group_name, :aliases => 'DBSubnetGroupName'
|
||||
attribute :publicly_accessible, :aliases => 'PubliclyAccessible'
|
||||
|
||||
attr_accessor :password, :parameter_group_name, :security_group_names, :port
|
||||
|
||||
|
@ -120,7 +121,8 @@ module Fog
|
|||
'PreferredBackupWindow' => preferred_backup_window,
|
||||
'MultiAZ' => multi_az,
|
||||
'LicenseModel' => license_model,
|
||||
'DBSubnetGroupName' => db_subnet_group_name
|
||||
'DBSubnetGroupName' => db_subnet_group_name,
|
||||
'PubliclyAccessible' => publicly_accessible
|
||||
}
|
||||
|
||||
options.delete_if {|key, value| value.nil?}
|
||||
|
|
|
@ -18,6 +18,7 @@ module Fog
|
|||
attribute :allocated_storage, :aliases => 'AllocatedStorage', :type => :integer
|
||||
attribute :availability_zone, :aliases => 'AvailabilityZone'
|
||||
attribute :type, :aliases => 'SnapshotType'
|
||||
attribute :publicly_accessible, :aliases => 'PubliclyAccessible'
|
||||
|
||||
def ready?
|
||||
state == 'available'
|
||||
|
|
|
@ -47,7 +47,7 @@ module Fog
|
|||
'DBInstanceStatus', 'DBInstanceIdentifier', 'EngineVersion',
|
||||
'PreferredBackupWindow', 'PreferredMaintenanceWindow',
|
||||
'AvailabilityZone', 'MasterUsername', 'DBName', 'LicenseModel',
|
||||
'DBSubnetGroupName'
|
||||
'DBSubnetGroupName', 'PubliclyAccessible'
|
||||
@db_instance[name] = value
|
||||
when 'MultiAZ', 'AutoMinorVersionUpgrade'
|
||||
if value == 'false'
|
||||
|
|
|
@ -25,6 +25,7 @@ module Fog
|
|||
# @param PreferredBackupWindow [String] The daily time range during which automated backups are created if automated backups are enabled
|
||||
# @param PreferredMaintenanceWindow [String] The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage
|
||||
# @param DBSubnetGroupName [String] The name, if any, of the VPC subnet for this RDS instance
|
||||
# @param PubliclyAcccesible [Boolean] Whether an RDS instance inside of the VPC subnet should have a public-facing endpoint
|
||||
#
|
||||
# @return [Excon::Response]:
|
||||
# * body [Hash]:
|
||||
|
@ -103,7 +104,8 @@ module Fog
|
|||
# "ReadReplicaSourceDBInstanceIdentifier" => nil,
|
||||
# "LatestRestorableTime" => nil,
|
||||
"AvailabilityZone" => options["AvailabilityZone"],
|
||||
"DBSubnetGroupName" => options["DBSubnetGroupName"]
|
||||
"DBSubnetGroupName" => options["DBSubnetGroupName"],
|
||||
"PubliclyAccessible" => options["PubliclyAccessible"]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@ class AWS
|
|||
'DBSecurityGroupName' => String
|
||||
}],
|
||||
'DBSubnetGroupName' => Fog::Nullable::String,
|
||||
'PubliclyAccessible' => Fog::Boolean,
|
||||
'Endpoint' => {
|
||||
'Address' => Fog::Nullable::String,
|
||||
'Port' => Fog::Nullable::Integer
|
||||
|
|
Loading…
Reference in a new issue