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

#load_balancer_attribute(&block) ⇒ Object

Append a load_balancer_attribute to load_balancer_attributes



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

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



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

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