Sha256: f21a1578303642ae466ee626932d1c77698f4061b9419e49715c52686323b273

Contents?: true

Size: 795 Bytes

Versions: 44

Compression:

Stored size: 795 Bytes

Contents

require_relative '../resource_property'

module Convection
  module Model
    class Template
      class ResourceProperty
        # Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html
        # EC2 Block Device Mapping Property Type}
        class EC2BlockDeviceMapping < ResourceProperty
          property :device_name, 'DeviceName'
          alias device device_name
          property :ebs, 'Ebs'
          property :no_device, 'NoDevice'
          property :virtual_name, 'VirtualName'

          def ebs(&block)
            ebs = ResourceProperty::EC2BlockStoreBlockDevice.new(self)
            ebs.instance_exec(&block) if block
            properties['Ebs'].set(ebs)
          end
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.3.0 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.29 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.27 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.26 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.25 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.24 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.23 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.22 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.21 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.20 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.19 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.18 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.17 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.16 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.15 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.14 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-2.2.13 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb