Class: Aws::RailsProvisioner::DBCluster::BackUp

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(options = {}) ⇒ BackUp

Returns a new instance of BackUp.

Parameters:

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

Options Hash (options):

  • :retention_days (required, Integer)

    days to retain the backup

  • :preferred_window (String)

    A daily time range in 24-hours UTC format in which backups preferably execute



167
168
169
170
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 167

def initialize(options = {})
  @retention_days = options[:retention_days]
  @preferred_window = options[:preferred_window]
end

Instance Attribute Details

#preferred_windowString (readonly)

Returns:

  • (String)


176
177
178
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 176

def preferred_window
  @preferred_window
end

#retention_daysInteger (readonly)

Returns:

  • (Integer)


173
174
175
# File 'lib/aws-rails-provisioner/db_cluster.rb', line 173

def retention_days
  @retention_days
end