EC2InstanceAttribute Class Reference
| Inherits from | NSObject |
| Declared in | EC2InstanceAttribute.h |
Tasks
-
– initDefault constructor for a new object. Callers should use the property methods to initialize this object after creating it.
-
instanceIdThe ID of the associated instance.
property -
instanceTypeThe instance type (e.g.,
propertym1.small,c1.medium,m2.2xlarge, and so on). -
kernelIdThe kernel ID of the associated instance.
property -
ramdiskIdThe ramdisk ID of the associated instance.
property -
userDataMIME, Base64-encoded user data.
property -
disableApiTerminationWhether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.
property -
instanceInitiatedShutdownBehaviorWhether this instance’s Amazon EBS volumes are deleted when the instance is shut down.
property -
rootDeviceNameThe root device name (e.g.,
property/dev/sda1). -
blockDeviceMappingsHow block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.
property -
productCodesThe value of the ProductCodes property for this object.
property -
ebsOptimizedBoolean value
property -
– addBlockDeviceMapping:Adds a single object to blockDeviceMappings. This function will alloc and init blockDeviceMappings if not already done.
-
– addProductCode:Adds a single object to productCodes. This function will alloc and init productCodes if not already done.
-
– descriptionReturns a string representation of this object; useful for testing and debugging.
Properties
blockDeviceMappings
How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.
@property (nonatomic, retain) NSMutableArray *blockDeviceMappingsDiscussion
How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.
Declared In
EC2InstanceAttribute.hdisableApiTermination
Whether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.
@property (nonatomic) bool disableApiTerminationDiscussion
Whether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.
Declared In
EC2InstanceAttribute.hebsOptimized
Boolean value
@property (nonatomic) bool ebsOptimizedDiscussion
Boolean value
Declared In
EC2InstanceAttribute.hinstanceId
The ID of the associated instance.
@property (nonatomic, retain) NSString *instanceIdDiscussion
The ID of the associated instance.
Declared In
EC2InstanceAttribute.hinstanceInitiatedShutdownBehavior
Whether this instance’s Amazon EBS volumes are deleted when the instance is shut down.
@property (nonatomic, retain) NSString *instanceInitiatedShutdownBehaviorDiscussion
Whether this instance’s Amazon EBS volumes are deleted when the instance is shut down.
Declared In
EC2InstanceAttribute.hinstanceType
The instance type (e.g., m1.small,
c1.medium, m2.2xlarge, and so on).
@property (nonatomic, retain) NSString *instanceTypeDiscussion
The instance type (e.g., m1.small,
c1.medium, m2.2xlarge, and so on).
Declared In
EC2InstanceAttribute.hkernelId
The kernel ID of the associated instance.
@property (nonatomic, retain) NSString *kernelIdDiscussion
The kernel ID of the associated instance.
Declared In
EC2InstanceAttribute.hproductCodes
The value of the ProductCodes property for this object.
@property (nonatomic, retain) NSMutableArray *productCodesDiscussion
The value of the ProductCodes property for this object.
Declared In
EC2InstanceAttribute.hramdiskId
The ramdisk ID of the associated instance.
@property (nonatomic, retain) NSString *ramdiskIdDiscussion
The ramdisk ID of the associated instance.
Declared In
EC2InstanceAttribute.hInstance Methods
addBlockDeviceMapping:
Adds a single object to blockDeviceMappings. This function will alloc and init blockDeviceMappings if not already done.
- (void)addBlockDeviceMapping:(EC2InstanceBlockDeviceMapping *)blockDeviceMappingObjectDiscussion
Adds a single object to blockDeviceMappings. This function will alloc and init blockDeviceMappings if not already done.
Declared In
EC2InstanceAttribute.haddProductCode:
Adds a single object to productCodes. This function will alloc and init productCodes if not already done.
- (void)addProductCode:(EC2ProductCode *)productCodeObjectDiscussion
Adds a single object to productCodes. This function will alloc and init productCodes if not already done.
Declared In
EC2InstanceAttribute.hdescription
Returns a string representation of this object; useful for testing and debugging.
- (NSString *)descriptionReturn Value
A string representation of this object.
Discussion
Returns a string representation of this object; useful for testing and debugging.
Declared In
EC2InstanceAttribute.hinit
Default constructor for a new object. Callers should use the property methods to initialize this object after creating it.
- (id)initDiscussion
Default constructor for a new object. Callers should use the property methods to initialize this object after creating it.
Declared In
EC2InstanceAttribute.h