Sha256: d20bb91a309207721cd5acf52c8182b7f953de175fae452ce9a0626507630458

Contents?: true

Size: 798 Bytes

Versions: 41

Compression:

Stored size: 798 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(config)
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
convection-0.3.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.3.0 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.34.pre.beta.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.33 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.32 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.31 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.30 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.29 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.28 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.27 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.26 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.25 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.24 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.23 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.22 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.21 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.20 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.19 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.18 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.2.17 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb