Class: Waterworks::RedshiftDatabase

Inherits:
PipelineObject show all
Defined in:
lib/waterworks/databases/redshift_database.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PipelineObject

#<=>, base_attrs, #collect_attrs!, from_hash, from_json, #set_attrs, #sourceify, #to_fhash, #to_hash, #to_json

Constructor Details

#initialize(id = nil, name = nil) ⇒ RedshiftDatabase

Returns a new instance of RedshiftDatabase.



21
22
23
# File 'lib/waterworks/databases/redshift_database.rb', line 21

def initialize(id = nil, name = nil)
  super(id, name).set_attrs(type: 'RedshiftDatabase')
end

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/waterworks/databases/redshift_database.rb', line 5

def self.safe_fields
  {
    databaseName: :string,
    jdbcProperties: :string,
    parent: :ref,
    region: :string,
    password: :string,
    username: :string,
    clusterId: :string,
    connectionString: :string,
    type: :string,
  }.merge superclass.safe_fields
end