Class: Convection::Model::Template::Resource::ELBV2TargetGroup

Inherits:
Convection::Model::Template::Resource show all
Includes:
Mixin::Taggable
Defined in:
lib/convection/model/template/resource/aws_elbv2_target_group.rb

Overview

AWS::ElasticLoadBalancingV2::TargetGroup

Instance Attribute Summary

Attributes inherited from Convection::Model::Template::Resource

#exist, #parent, #properties, #resource_attributes, #template

Instance Method Summary collapse

Methods included from Mixin::Taggable

#immutable_metadata, #render_tags, #tag, #tags

Methods inherited from Convection::Model::Template::Resource

#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, type, #type, #with_output

Methods included from Mixin::Conditional

#condition, #render_condition

Methods included from DSL::Template::Resource

#_terraform_module_dir_to_flag, #_terraform_module_flag_to_dir, attach_resource, attach_resource_collection, resource_collection_dsl_methods, resource_dsl_methods

Methods included from DSL::Helpers

#camel_case, included, method_name, #screaming_snake_case, #snake_case

Methods included from DSL::IntrinsicFunctions

#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select

Constructor Details

This class inherits a constructor from Convection::Model::Template::Resource

Instance Method Details

#health_check_interval_secondsObject #health_check_interval_seconds(value) ⇒ Object

Overloads:

  • #health_check_interval_secondsObject

    Returns the value of the ‘HealthCheckIntervalSeconds’ CloudFormation property.

  • #health_check_interval_seconds(value) ⇒ Object

    Sets the ‘HealthCheckIntervalSeconds’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthCheckIntervalSeconds’ CloudFormation property to.



14
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 14

property :health_check_interval_seconds, 'HealthCheckIntervalSeconds'

#health_check_pathObject #health_check_path(value) ⇒ Object

Overloads:

  • #health_check_pathObject

    Returns the value of the ‘HealthCheckPath’ CloudFormation property.

  • #health_check_path(value) ⇒ Object

    Sets the ‘HealthCheckPath’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthCheckPath’ CloudFormation property to.



15
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 15

property :health_check_path, 'HealthCheckPath'

#health_check_portObject #health_check_port(value) ⇒ Object

Overloads:

  • #health_check_portObject

    Returns the value of the ‘HealthCheckPort’ CloudFormation property.

  • #health_check_port(value) ⇒ Object

    Sets the ‘HealthCheckPort’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthCheckPort’ CloudFormation property to.



16
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 16

property :health_check_port, 'HealthCheckPort'

#health_check_protocolObject #health_check_protocol(value) ⇒ Object

Overloads:

  • #health_check_protocolObject

    Returns the value of the ‘HealthCheckProtocol’ CloudFormation property.

  • #health_check_protocol(value) ⇒ Object

    Sets the ‘HealthCheckProtocol’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthCheckProtocol’ CloudFormation property to.



17
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 17

property :health_check_protocol, 'HealthCheckProtocol'

#health_check_timeout_secondsObject #health_check_timeout_seconds(value) ⇒ Object

Overloads:

  • #health_check_timeout_secondsObject

    Returns the value of the ‘HealthCheckTimeoutSeconds’ CloudFormation property.

  • #health_check_timeout_seconds(value) ⇒ Object

    Sets the ‘HealthCheckTimeoutSeconds’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthCheckTimeoutSeconds’ CloudFormation property to.



18
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 18

property :health_check_timeout_seconds, 'HealthCheckTimeoutSeconds'

#healthy_threshold_countObject #healthy_threshold_count(value) ⇒ Object

Overloads:

  • #healthy_threshold_countObject

    Returns the value of the ‘HealthyThresholdCount’ CloudFormation property.

  • #healthy_threshold_count(value) ⇒ Object

    Sets the ‘HealthyThresholdCount’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘HealthyThresholdCount’ CloudFormation property to.



19
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 19

property :healthy_threshold_count, 'HealthyThresholdCount'

#matchObject #match(value) ⇒ Object

Overloads:

  • #matchObject

    Returns the value of the ‘Matcher’ CloudFormation property.

  • #match(value) ⇒ Object

    Sets the ‘Matcher’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Matcher’ CloudFormation property to.



20
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 20

property :match, 'Matcher'

#matcher(http_code = nil, &block) ⇒ Object



50
51
52
53
54
55
56
57
58
# 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

#nameObject #name(value) ⇒ Object

Overloads:

  • #nameObject

    Returns the value of the ‘Name’ CloudFormation property.

  • #name(value) ⇒ Object

    Sets the ‘Name’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Name’ CloudFormation property to.



21
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 21

property :name, 'Name'

#portObject #port(value) ⇒ Object

Overloads:

  • #portObject

    Returns the value of the ‘Port’ CloudFormation property.

  • #port(value) ⇒ Object

    Sets the ‘Port’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Port’ CloudFormation property to.



22
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 22

property :port, 'Port'

#protocolObject #protocol(value) ⇒ Object

Overloads:

  • #protocolObject

    Returns the value of the ‘Protocol’ CloudFormation property.

  • #protocol(value) ⇒ Object

    Sets the ‘Protocol’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Protocol’ CloudFormation property to.



23
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 23

property :protocol, 'Protocol'

#render(*args) ⇒ Object



60
61
62
63
64
# 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) ⇒ Object Also known as: target_description

Append a target_description to targets



43
44
45
46
47
# 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

#target_group_attribute(key = nil, value = nil, &block) ⇒ Object

Append an attribute to target_group_attributes



31
32
33
34
35
36
37
38
39
40
# 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

#target_group_attributesObject #target_group_attributes(value) ⇒ Object

Overloads:

  • #target_group_attributesObject

    Returns the value of the ‘TargetGroupAttributes’ CloudFormation property.

  • #target_group_attributes(value) ⇒ Object

    Sets the ‘TargetGroupAttributes’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘TargetGroupAttributes’ CloudFormation property to.



24
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 24

property :target_group_attributes, 'TargetGroupAttributes', :type => :list

#targetsObject #targets(value) ⇒ Object Also known as: target_descriptions

Overloads:

  • #targetsObject

    Returns the value of the ‘Targets’ CloudFormation property.

  • #targets(value) ⇒ Object

    Sets the ‘Targets’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Targets’ CloudFormation property to.



25
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 25

property :targets, 'Targets', :type => :list

#unhealthy_threshold_countObject #unhealthy_threshold_count(value) ⇒ Object

Overloads:

  • #unhealthy_threshold_countObject

    Returns the value of the ‘UnhealthyThresholdCount’ CloudFormation property.

  • #unhealthy_threshold_count(value) ⇒ Object

    Sets the ‘UnhealthyThresholdCount’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘UnhealthyThresholdCount’ CloudFormation property to.



27
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 27

property :unhealthy_threshold_count, 'UnhealthyThresholdCount'

#vpc_idObject #vpc_id(value) ⇒ Object

Overloads:

  • #vpc_idObject

    Returns the value of the ‘VpcId’ CloudFormation property.

  • #vpc_id(value) ⇒ Object

    Sets the ‘VpcId’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘VpcId’ CloudFormation property to.



28
# File 'lib/convection/model/template/resource/aws_elbv2_target_group.rb', line 28

property :vpc_id, 'VpcId'