AWSAutoScalingBlockDeviceMapping
Objective-C
@interface AWSAutoScalingBlockDeviceMapping
Swift
class AWSAutoScalingBlockDeviceMapping
Describes a block device mapping.
Required parameters: [DeviceName]
-
The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
). For more information, see Device Naming on Linux Instances in the Amazon EC2 User Guide for Linux Instances.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable deviceName;
Swift
var deviceName: String? { get set }
-
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either
VirtualName
orEbs
, but not both.Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingEbs *_Nullable ebs;
Swift
var ebs: AWSAutoScalingEbs? { get set }
-
Setting this value to
true
suppresses the specified device included in the block device mapping of the AMI.If
NoDevice
istrue
for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.If you specify
NoDevice
, you cannot specifyEbs
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable noDevice;
Swift
var noDevice: NSNumber? { get set }
-
The name of the virtual device (for example,
ephemeral0
).You can specify either
VirtualName
orEbs
, but not both.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable virtualName;
Swift
var virtualName: String? { get set }