Sha256: 9cafc17f9e19b44150d2d9e1f4140ac81019401c721fdf4c7b19fb42a0f226c0

Contents?: true

Size: 895 Bytes

Versions: 3

Compression:

Stored size: 895 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::EC2::Instance
        ##
        class EC2Instance < Resource
          include Model::Mixin::Taggable

          type 'AWS::EC2::Instance'
          property :availability_zone, 'AvailabilityZone'
          property :image_id, 'ImageId'
          property :instance_type, 'InstanceType'
          property :instance_profile, 'IamInstanceProfile'
          property :key_name, 'KeyName'
          property :subnet, 'SubnetId'
          property :user_data, 'UserData'
          property :security_group, 'SecurityGroupIds', :type => :list
          property :src_dst_checks, 'SourceDestCheck'

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convection-0.2.3 lib/convection/model/template/resource/aws_ec2_instance.rb
convection-0.2.2 lib/convection/model/template/resource/aws_ec2_instance.rb
convection-0.2.1 lib/convection/model/template/resource/aws_ec2_instance.rb