AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::RailsProvisioner::DBCluster::ParameterGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-rails-provisioner/db_cluster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(engine, options = {}) ⇒ ParameterGroup

Returns a new instance of ParameterGroup.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :family (String)
  • :description (String)
  • :parameters (Hash)


190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 190

def initialize(engine, options = {})
  # client
  @profile = options[:profile]

  @engine = engine
  @family = options[:family] || _default_family
  @description = options[:description] || 'created by AWS RailsProvisioner'
  @cfn = !!options[:parameters]
  unless @cfn
    suffix = @engine.downcase.gsub(/_/, '-')
    @name = "aws-rails-provisioner-default-#{suffix}"
    _create_default_pg(options[:stub_client])
  else
    @parameters = Aws::RailsProvisioner::Utils.to_pairs(options[:parameters])
  end
end

Instance Attribute Details

#cfnBoolean (readonly)

Returns:

  • (Boolean)


208
209
210
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 208

def cfn
  @cfn
end

#descriptionString (readonly)

Returns:

  • (String)


217
218
219
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 217

def description
  @description
end

#familyString (readonly)

Returns:

  • (String)


214
215
216
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 214

def family
  @family
end

#nameString (readonly)

Returns:

  • (String)


211
212
213
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 211

def name
  @name
end

#parametersArray (readonly)

Returns:

  • (Array)


220
221
222
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 220

def parameters
  @parameters
end