Class: TerraformDSL::AWS::Route53::PrivateZone
- Inherits:
-
TerraformDSL::AWS::Resource
- Object
- TerraformDSL::AWS::Resource
- TerraformDSL::AWS::Route53::PrivateZone
- 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.
-
#vpc ⇒ Object
readonly
Returns the value of attribute vpc.
Attributes inherited from TerraformDSL::AWS::Resource
Instance Method Summary collapse
- #attr(attr) ⇒ Object
-
#initialize(name, domain, vpc) ⇒ PrivateZone
constructor
A new instance of PrivateZone.
- #Record(*a, &b) ⇒ Object
Methods inherited from TerraformDSL::AWS::Resource
Constructor Details
#initialize(name, domain, vpc) ⇒ PrivateZone
Returns a new instance of PrivateZone.
519 520 521 522 523 |
# File 'lib/terraformdsl/aws.rb', line 519 def initialize(name, domain, vpc) @name = name @domain = domain @vpc = vpc end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
524 525 526 |
# File 'lib/terraformdsl/aws.rb', line 524 def domain @domain end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
524 525 526 |
# File 'lib/terraformdsl/aws.rb', line 524 def name @name end |
#vpc ⇒ Object (readonly)
Returns the value of attribute vpc.
524 525 526 |
# File 'lib/terraformdsl/aws.rb', line 524 def vpc @vpc end |
Instance Method Details
#attr(attr) ⇒ Object
526 |
# File 'lib/terraformdsl/aws.rb', line 526 def attr(attr); "${aws_route53_zone.#{@name}.#{attr}}"; end |
#Record(*a, &b) ⇒ Object
528 |
# File 'lib/terraformdsl/aws.rb', line 528 def Record(*a, &b); add_resource(Record.new(*a), &b); end |