diff --git a/lib/fog/aws/models/rds/server.rb b/lib/fog/aws/models/rds/server.rb index 8d3bd1d2f..1269e3e2e 100644 --- a/lib/fog/aws/models/rds/server.rb +++ b/lib/fog/aws/models/rds/server.rb @@ -31,6 +31,7 @@ module Fog attribute :db_subnet_group_name, :aliases => 'DBSubnetGroupName' attribute :publicly_accessible, :aliases => 'PubliclyAccessible' attribute :vpc_security_groups, :aliases => 'VpcSecurityGroups', :type => :array + attribute :storage_type, :aliases => 'StorageType' attr_accessor :password, :parameter_group_name, :security_group_names, :port @@ -130,6 +131,7 @@ module Fog 'DBSubnetGroupName' => db_subnet_group_name, 'PubliclyAccessible' => publicly_accessible, 'VpcSecurityGroups' => vpc_security_groups, + 'StorageType' => storage_type, } options.delete_if {|key, value| value.nil?} diff --git a/lib/fog/aws/parsers/rds/db_parser.rb b/lib/fog/aws/parsers/rds/db_parser.rb index 01fcac943..1679615c0 100644 --- a/lib/fog/aws/parsers/rds/db_parser.rb +++ b/lib/fog/aws/parsers/rds/db_parser.rb @@ -43,10 +43,10 @@ module Fog when 'LatestRestorableTime', 'InstanceCreateTime' @db_instance[name] = Time.parse value - when 'Engine', 'DBInstanceStatus', 'DBInstanceIdentifier', + when 'Engine', 'DBInstanceStatus', 'DBInstanceIdentifier', 'PreferredBackupWindow', 'PreferredMaintenanceWindow', 'AvailabilityZone', 'MasterUsername', 'DBName', 'LicenseModel', - 'DBSubnetGroupName' + 'DBSubnetGroupName', 'StorageType' @db_instance[name] = value when 'MultiAZ', 'AutoMinorVersionUpgrade', 'PubliclyAccessible' if value == 'false' @@ -71,7 +71,7 @@ module Fog else @db_instance[name] = value.to_i end - when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword', + when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword', 'MultiAZ', 'Iops', 'AllocatedStorage' if @in_pending_modified_values @pending_modified_values[name] = value diff --git a/lib/fog/aws/requests/rds/create_db_instance.rb b/lib/fog/aws/requests/rds/create_db_instance.rb index 3bfd66663..797fbb8b8 100644 --- a/lib/fog/aws/requests/rds/create_db_instance.rb +++ b/lib/fog/aws/requests/rds/create_db_instance.rb @@ -27,6 +27,7 @@ module Fog # @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 # @param VpcSecurityGroups [Array] A list of VPC Security Groups to authorize on this DB instance + # @param StorageType [string] Specifies storage type to be associated with the DB Instance. Valid values: standard | gp2 | io1 # # @return [Excon::Response]: # * body [Hash]: @@ -110,6 +111,7 @@ module Fog "DBSubnetGroupName" => options["DBSubnetGroupName"], "PubliclyAccessible" => options["PubliclyAccessible"], "VpcSecurityGroups" => options["VpcSecurityGroups"], + "StorageType" => options["StorageType"], } self.data[:servers][db_name] = data