Class: Convection::Model::Template::Resource::EC2Subnet

Inherits:
Convection::Model::Template::Resource show all
Extended by:
Mixin::CIDRBlock
Includes:
DSL::Template::Resource::EC2Subnet, Mixin::Taggable
Defined in:
lib/convection/model/template/resource/aws_ec2_subnet.rb

Overview

AWS::EC2::Subnet

Instance Attribute Summary

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

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

Instance Method Summary collapse

Methods included from Mixin::CIDRBlock

cidr_property

Methods included from Mixin::Taggable

#immutable_metadata, #render_tags, #tag, #tags

Methods included from DSL::Template::Resource::EC2Subnet

#acl, #route_table

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

attach_resource

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_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select

Constructor Details

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

Instance Method Details

#availability_zoneObject #availability_zone(value) ⇒ Object

Overloads:

  • #availability_zoneObject

    Returns the value of the 'AvailabilityZone' CloudFormation property.

  • #availability_zone(value) ⇒ Object

    Sets the 'AvailabilityZone' CloudFormation property.

    Parameters:

    • value

      the value to set the 'AvailabilityZone' CloudFormation property to.



46
# File 'lib/convection/model/template/resource/aws_ec2_subnet.rb', line 46

property :availability_zone, 'AvailabilityZone'

#public_ipsObject #public_ips(value) ⇒ Object

Overloads:

  • #public_ipsObject

    Returns the value of the 'MapPublicIpOnLaunch' CloudFormation property.

  • #public_ips(value) ⇒ Object

    Sets the 'MapPublicIpOnLaunch' CloudFormation property.

    Parameters:

    • value

      the value to set the 'MapPublicIpOnLaunch' CloudFormation property to.



48
# File 'lib/convection/model/template/resource/aws_ec2_subnet.rb', line 48

property :public_ips, 'MapPublicIpOnLaunch'

#render(*args) ⇒ Object



51
52
53
54
55
# File 'lib/convection/model/template/resource/aws_ec2_subnet.rb', line 51

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

#vpcObject #vpc(value) ⇒ Object

Overloads:

  • #vpcObject

    Returns the value of the 'VpcId' CloudFormation property.

  • #vpc(value) ⇒ Object

    Sets the 'VpcId' CloudFormation property.

    Parameters:

    • value

      the value to set the 'VpcId' CloudFormation property to.



47
# File 'lib/convection/model/template/resource/aws_ec2_subnet.rb', line 47

property :vpc, 'VpcId'