org.jclouds.ec2.options

Class RegisterImageBackedByEbsOptions

    • Constructor Detail

      • RegisterImageBackedByEbsOptions

        public RegisterImageBackedByEbsOptions()
    • Method Detail

      • addEphemeralBlockDeviceFromSnapshot

        public RegisterImageBackedByEbsOptions addEphemeralBlockDeviceFromSnapshot(String deviceName,
                                                                          @Nullable
                                                                          String virtualName,
                                                                          String snapshotId)
        adds a block device to the image from an ebs snapshot. This device is deleted on instance termination.
        Parameters:
        name - The device name (e.g., /dev/sdh).
        virtualName - The virtual device name. (nullable)
        snapshotId - The ID of the snapshot.
      • addNewEphemeralBlockDevice

        public RegisterImageBackedByEbsOptions addNewEphemeralBlockDevice(String deviceName,
                                                                 @Nullable
                                                                 String virtualName,
                                                                 int volumeSize)
        adds a new block device to the image. This device is deleted on instance termination.
        Parameters:
        name - The device name (e.g., /dev/sdh).
        virtualName - The virtual device name.
        volumeSize - The size of the volume, in GiBs.
      • addBlockDeviceFromSnapshot

        public RegisterImageBackedByEbsOptions addBlockDeviceFromSnapshot(String deviceName,
                                                                 @Nullable
                                                                 String virtualName,
                                                                 String snapshotId)
        adds a block device to the image from an ebs snapshot. This device is retained on instance termination.
        Parameters:
        name - The device name (e.g., /dev/sdh).
        virtualName - The virtual device name. (nullable)
        snapshotId - The ID of the snapshot.
      • addNewBlockDevice

        public RegisterImageBackedByEbsOptions addNewBlockDevice(String deviceName,
                                                        @Nullable
                                                        String virtualName,
                                                        int volumeSize)
        adds a new block device to the image. This device is retained on instance termination.
        Parameters:
        name - The device name (e.g., /dev/sdh).
        virtualName - The virtual device name.
        volumeSize - The size of the volume, in GiBs..
      • withRamdisk

        public RegisterImageBackedByEbsOptions withRamdisk(String ramDiskId)
        The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, refer to the Resource Center and search for the kernel ID.
        Overrides:
        withRamdisk in class RegisterImageOptions

Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.