Class: TerraformDSL::AWS::Route53::Zone
- Inherits:
-
TerraformDSL::AWS::Resource
- Object
- TerraformDSL::AWS::Resource
- TerraformDSL::AWS::Route53::Zone
- Defined in:
- lib/terraformdsl/aws.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from TerraformDSL::AWS::Resource
Instance Method Summary collapse
- #attr(attr) ⇒ Object
-
#initialize(name, domain) ⇒ Zone
constructor
A new instance of Zone.
- #Record(*a, &b) ⇒ Object
Methods inherited from TerraformDSL::AWS::Resource
Constructor Details
#initialize(name, domain) ⇒ Zone
Returns a new instance of Zone.
504 505 506 507 |
# File 'lib/terraformdsl/aws.rb', line 504 def initialize(name, domain) @name = name @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
508 509 510 |
# File 'lib/terraformdsl/aws.rb', line 508 def domain @domain end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
508 509 510 |
# File 'lib/terraformdsl/aws.rb', line 508 def name @name end |
Instance Method Details
#attr(attr) ⇒ Object
510 |
# File 'lib/terraformdsl/aws.rb', line 510 def attr(attr); "${aws_route53_zone.#{@name}.#{attr}}"; end |
#Record(*a, &b) ⇒ Object
512 |
# File 'lib/terraformdsl/aws.rb', line 512 def Record(*a, &b); add_resource(Record.new(*a), &b); end |