Class: TerraformDSL::AWS::Route53::PrivateZone

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, 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

#domainObject (readonly)

Returns the value of attribute domain.



524
525
526
# File 'lib/terraformdsl/aws.rb', line 524

def domain
  @domain
end

#nameObject (readonly)

Returns the value of attribute name.



524
525
526
# File 'lib/terraformdsl/aws.rb', line 524

def name
  @name
end

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