AWSAutoScalingBlockDeviceMapping

Objective-C

@interface AWSAutoScalingBlockDeviceMapping

Swift

class AWSAutoScalingBlockDeviceMapping

Describes a block device mapping.

Required parameters: [DeviceName]

  • The device name assigned to the volume (for example, /dev/sdh or xvdh). For more information, see Device naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.

    To define a block device mapping, set the device name and exactly one of the following properties: Ebs, NoDevice, or VirtualName.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable deviceName;

    Swift

    var deviceName: String? { get set }
  • ebs

    Information to attach an EBS volume to an instance at launch.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSAutoScalingEbs *_Nullable ebs;

    Swift

    var ebs: AWSAutoScalingEbs? { get set }
  • Setting this value to true prevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.

    If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable noDevice;

    Swift

    var noDevice: NSNumber? { get set }
  • The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeralX where X is a number starting from zero (0), for example, ephemeral0.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable virtualName;

    Swift

    var virtualName: String? { get set }