class TerraformDSL::AWS::RDS::SubnetGroup

Attributes

name[R]
subnets[R]

Public Class Methods

new(name, subnets=[]) click to toggle source
# File lib/terraformdsl/aws.rb, line 335
def initialize(name, subnets=[])
  subnets.all? {|x| x.is_a?(Subnet) }  or
    raise TypeError.new("RDS::SubnetGroup(#{name.inspect}): 2nd argument should be an array of Subnet, but got: #{subnets.inspect}")
  @name = name
  @subnets = subnets
end

Public Instance Methods

attr(attr) click to toggle source
# File lib/terraformdsl/aws.rb, line 343
def attr(attr); "${aws_db_subnet_group.#{@name}.#{attr}}"; end