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-1.0.7 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.6 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.5 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.4 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.3 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.2 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.10 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.9 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.8 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.7 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.6 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.4 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-1.0.0.pre.beta.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.4.3 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.4.2 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.4.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.4.0 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.3.3.pre.beta.1 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
convection-0.3.2 lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb