class Convection::Model::Template::Resource::ELBV2TargetGroup

AWS::ElasticLoadBalancingV2::TargetGroup

Public Instance Methods

matcher(http_code = nil, &block) click to toggle source
# File lib/convection/model/template/resource/aws_elbv2_target_group.rb, line 50
def matcher(http_code = nil, &block)
  m = ResourceProperty::ELBV2TargetGroupMatcher.new(self)
  if http_code
    m.http_code http_code
  elsif block
    m.instance_exec(&block)
  end
  match m
end
render(*args) click to toggle source
# File lib/convection/model/template/resource/aws_elbv2_target_group.rb, line 60
def render(*args)
  super.tap do |resource|
    render_tags(resource)
  end
end
target(&block) click to toggle source

Append a target_description to targets

# File lib/convection/model/template/resource/aws_elbv2_target_group.rb, line 43
def target(&block)
  target = ResourceProperty::ELBV2TargetGroupTargetDescription.new(self)
  target.instance_exec(&block) if block
  targets << target
end
Also aliased as: target_description
target_description(&block)
Alias for: target
target_group_attribute(key = nil, value = nil, &block) click to toggle source

Append an attribute to target_group_attributes

# File lib/convection/model/template/resource/aws_elbv2_target_group.rb, line 31
def target_group_attribute(key = nil, value = nil, &block)
  attribute = ResourceProperty::ELBV2TargetGroupAttribute.new(self)
  if key && value
    attribute.key key
    attribute.value value
  elsif block
    attribute.instance_exec(&block)
  end
  target_group_attributes << attribute
end