Inherits from NSObject
Declared in EC2InstanceAttribute.h

Overview

Instance Attribute

Tasks

  • – init

    Default constructor for a new object. Callers should use the property methods to initialize this object after creating it.

  •   instanceId

    The ID of the associated instance.

    property
  •   instanceType

    The instance type (e.g., m1.small, c1.medium, m2.2xlarge, and so on).

    property
  •   kernelId

    The kernel ID of the associated instance.

    property
  •   ramdiskId

    The ramdisk ID of the associated instance.

    property
  •   userData

    MIME, Base64-encoded user data.

    property
  •   disableApiTermination

    Whether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.

    property
  •   instanceInitiatedShutdownBehavior

    Whether this instance’s Amazon EBS volumes are deleted when the instance is shut down.

    property
  •   rootDeviceName

    The root device name (e.g., /dev/sda1).

    property
  •   blockDeviceMappings

    How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

    property
  •   productCodes

    The value of the ProductCodes property for this object.

    property
  •   ebsOptimized

    Boolean 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.

  • – description

    Returns 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 *blockDeviceMappings

Discussion

How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

Declared In

EC2InstanceAttribute.h

disableApiTermination

Whether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.

@property (nonatomic) bool disableApiTermination

Discussion

Whether this instance can be terminated. You must modify this attribute before you can terminate any “locked” instances.

Declared In

EC2InstanceAttribute.h

ebsOptimized

Boolean value

@property (nonatomic) bool ebsOptimized

Discussion

Boolean value

Declared In

EC2InstanceAttribute.h

instanceId

The ID of the associated instance.

@property (nonatomic, retain) NSString *instanceId

Discussion

The ID of the associated instance.

Declared In

EC2InstanceAttribute.h

instanceInitiatedShutdownBehavior

Whether this instance’s Amazon EBS volumes are deleted when the instance is shut down.

@property (nonatomic, retain) NSString *instanceInitiatedShutdownBehavior

Discussion

Whether this instance’s Amazon EBS volumes are deleted when the instance is shut down.

Declared In

EC2InstanceAttribute.h

instanceType

The instance type (e.g., m1.small, c1.medium, m2.2xlarge, and so on).

@property (nonatomic, retain) NSString *instanceType

Discussion

The instance type (e.g., m1.small, c1.medium, m2.2xlarge, and so on).

Declared In

EC2InstanceAttribute.h

kernelId

The kernel ID of the associated instance.

@property (nonatomic, retain) NSString *kernelId

Discussion

The kernel ID of the associated instance.

Declared In

EC2InstanceAttribute.h

productCodes

The value of the ProductCodes property for this object.

@property (nonatomic, retain) NSMutableArray *productCodes

Discussion

The value of the ProductCodes property for this object.

Declared In

EC2InstanceAttribute.h

ramdiskId

The ramdisk ID of the associated instance.

@property (nonatomic, retain) NSString *ramdiskId

Discussion

The ramdisk ID of the associated instance.

Declared In

EC2InstanceAttribute.h

rootDeviceName

The root device name (e.g., /dev/sda1).

@property (nonatomic, retain) NSString *rootDeviceName

Discussion

The root device name (e.g., /dev/sda1).

Declared In

EC2InstanceAttribute.h

userData

MIME, Base64-encoded user data.

@property (nonatomic, retain) NSString *userData

Discussion

MIME, Base64-encoded user data.

Declared In

EC2InstanceAttribute.h

Instance Methods

addBlockDeviceMapping:

Adds a single object to blockDeviceMappings. This function will alloc and init blockDeviceMappings if not already done.

- (void)addBlockDeviceMapping:(EC2InstanceBlockDeviceMapping *)blockDeviceMappingObject

Discussion

Adds a single object to blockDeviceMappings. This function will alloc and init blockDeviceMappings if not already done.

Declared In

EC2InstanceAttribute.h

addProductCode:

Adds a single object to productCodes. This function will alloc and init productCodes if not already done.

- (void)addProductCode:(EC2ProductCode *)productCodeObject

Discussion

Adds a single object to productCodes. This function will alloc and init productCodes if not already done.

Declared In

EC2InstanceAttribute.h

description

Returns a string representation of this object; useful for testing and debugging.

- (NSString *)description

Return Value

A string representation of this object.

Discussion

Returns a string representation of this object; useful for testing and debugging.

Declared In

EC2InstanceAttribute.h

init

Default constructor for a new object. Callers should use the property methods to initialize this object after creating it.

- (id)init

Discussion

Default constructor for a new object. Callers should use the property methods to initialize this object after creating it.

Declared In

EC2InstanceAttribute.h