Class: TerraformDSL::AWS::Route53::Zone

Inherits:
TerraformDSL::AWS::Resource show all
Defined in:
lib/terraformdsl/aws.rb

Instance Attribute Summary collapse

Attributes inherited from TerraformDSL::AWS::Resource

#parent

Instance Method Summary collapse

Methods inherited from TerraformDSL::AWS::Resource

#accept, #set_parent

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

#domainObject (readonly)

Returns the value of attribute domain.



508
509
510
# File 'lib/terraformdsl/aws.rb', line 508

def domain
  @domain
end

#nameObject (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