Class: TerraformDSL::AWS::RDS::Instance
- Inherits:
-
TerraformDSL::AWS::Resource
- Object
- TerraformDSL::AWS::Resource
- TerraformDSL::AWS::RDS::Instance
- Defined in:
- lib/terraformdsl/aws.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#backup ⇒ Object
Returns the value of attribute backup.
-
#database ⇒ Object
Returns the value of attribute database.
-
#encryption ⇒ Object
Returns the value of attribute encryption.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#machine_type ⇒ Object
readonly
Returns the value of attribute machine_type.
-
#maintenance ⇒ Object
Returns the value of attribute maintenance.
-
#master_instance ⇒ Object
readonly
Returns the value of attribute master_instance.
-
#monitoring ⇒ Object
Returns the value of attribute monitoring.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#network ⇒ Object
Returns the value of attribute network.
-
#storage ⇒ Object
Returns the value of attribute storage.
Attributes inherited from TerraformDSL::AWS::Resource
Instance Method Summary collapse
- #attr(attr) ⇒ Object
-
#initialize(name, machine_type) ⇒ Instance
constructor
A new instance of Instance.
Methods inherited from TerraformDSL::AWS::Resource
Constructor Details
#initialize(name, machine_type) ⇒ Instance
Returns a new instance of Instance.
385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/terraformdsl/aws.rb', line 385 def initialize(name, machine_type) @name = name @machine_type = machine_type @master_instance = nil @database = {} @network = {} @flags = {} @storage = {} @encryption = {} @backup = {} @monitoring = {} @maintenance = {} end |
Instance Attribute Details
#backup ⇒ Object
Returns the value of attribute backup.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def backup @backup end |
#database ⇒ Object
Returns the value of attribute database.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def database @database end |
#encryption ⇒ Object
Returns the value of attribute encryption.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def encryption @encryption end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def flags @flags end |
#machine_type ⇒ Object (readonly)
Returns the value of attribute machine_type.
398 399 400 |
# File 'lib/terraformdsl/aws.rb', line 398 def machine_type @machine_type end |
#maintenance ⇒ Object
Returns the value of attribute maintenance.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def maintenance @maintenance end |
#master_instance ⇒ Object (readonly)
Returns the value of attribute master_instance.
398 399 400 |
# File 'lib/terraformdsl/aws.rb', line 398 def master_instance @master_instance end |
#monitoring ⇒ Object
Returns the value of attribute monitoring.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def monitoring @monitoring end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
398 399 400 |
# File 'lib/terraformdsl/aws.rb', line 398 def name @name end |
#network ⇒ Object
Returns the value of attribute network.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def network @network end |
#storage ⇒ Object
Returns the value of attribute storage.
399 400 401 |
# File 'lib/terraformdsl/aws.rb', line 399 def storage @storage end |
Instance Method Details
#attr(attr) ⇒ Object
438 |
# File 'lib/terraformdsl/aws.rb', line 438 def attr(attr); "${aws_db_instance.#{@name}.#{attr}}"; end |