Class: Convection::Model::Template::Resource::ELBV2LoadBalancer

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

Overview

AWS::ElasticLoadBalancingV2::LoadBalancer

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

#lb_typeObject #lb_type(value) ⇒ Object

Overloads:

  • #lb_typeObject

    Returns the value of the ‘Type’ CloudFormation property.

  • #lb_type(value) ⇒ Object

    Sets the ‘Type’ CloudFormation property.

    Parameters:

    • value

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



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

property :lb_type, 'Type'

#load_balancer_attribute(&block) ⇒ Object

Append a load_balancer_attribute to load_balancer_attributes



25
26
27
28
29
# File 'lib/convection/model/template/resource/aws_elbv2_load_balancer.rb', line 25

def load_balancer_attribute(&block)
  attribute = ResourceProperty::ELBV2LoadBalancerAttribute.new(self)
  attribute.instance_exec(&block) if block
  load_balancer_attributes << attribute
end

#load_balancer_attributesObject #load_balancer_attributes(value) ⇒ Object

Overloads:

  • #load_balancer_attributesObject

    Returns the value of the ‘LoadBalancerAttributes’ CloudFormation property.

  • #load_balancer_attributes(value) ⇒ Object

    Sets the ‘LoadBalancerAttributes’ CloudFormation property.

    Parameters:

    • value

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



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

property :load_balancer_attributes, 'LoadBalancerAttributes', :type => :list

#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.



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

property :name, 'Name'

#render(*args) ⇒ Object



37
38
39
40
41
# File 'lib/convection/model/template/resource/aws_elbv2_load_balancer.rb', line 37

def render(*args)
  super.tap do |resource|
    render_tags(resource)
  end
end

#schemeObject #scheme(value) ⇒ Object

Overloads:

  • #schemeObject

    Returns the value of the ‘Scheme’ CloudFormation property.

  • #scheme(value) ⇒ Object

    Sets the ‘Scheme’ CloudFormation property.

    Parameters:

    • value

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



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

property :scheme, 'Scheme'

#security_groupObject #security_group(value) ⇒ Object Also known as: security_groups

Overloads:

  • #security_groupObject

    Returns the value of the ‘SecurityGroups’ CloudFormation property.

  • #security_group(value) ⇒ Object

    Sets the ‘SecurityGroups’ CloudFormation property.

    Parameters:

    • value

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



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

property :security_group, 'SecurityGroups', :type => :list

#subnetObject #subnet(value) ⇒ Object Also known as: subnets

Overloads:

  • #subnetObject

    Returns the value of the ‘Subnets’ CloudFormation property.

  • #subnet(value) ⇒ Object

    Sets the ‘Subnets’ CloudFormation property.

    Parameters:

    • value

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



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

property :subnet, 'Subnets', :type => :list

#subnet_mapping(&block) ⇒ Object



31
32
33
34
35
# File 'lib/convection/model/template/resource/aws_elbv2_load_balancer.rb', line 31

def subnet_mapping(&block)
  subnet_mapping = ResourceProperty::ELBV2LoadBalancerSubnetMapping.new(self)
  subnet_mapping.instance_exec(&block) if block
  subnet_mappings << subnet_mapping
end

#subnet_mappingsObject #subnet_mappings(value) ⇒ Object

Overloads:

  • #subnet_mappingsObject

    Returns the value of the ‘SubnetMappings’ CloudFormation property.

  • #subnet_mappings(value) ⇒ Object

    Sets the ‘SubnetMappings’ CloudFormation property.

    Parameters:

    • value

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



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

property :subnet_mappings, 'SubnetMappings', :type => :list