AWSEC2ModifyInstanceAttributeRequest Class Reference

Inherits from AWSRequest : AWSModel : AWSMTLModel
Declared in AWSEC2Model.h
AWSEC2Model.m

Overview

Contains the parameters for ModifyInstanceAttribute.

Required parameters: [InstanceId]

  attribute

The name of the attribute.

@property (nonatomic, assign) AWSEC2InstanceAttributeName attribute

Declared In

AWSEC2Model.h

  blockDeviceMappings

Modifies the DeleteOnTermination attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified for DeleteOnTermination, the default is true and the volume is deleted when the instance is terminated.

To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.

@property (nonatomic, strong) NSArray<AWSEC2InstanceBlockDeviceMappingSpecification*> *blockDeviceMappings

Declared In

AWSEC2Model.h

  disableApiTermination

If the value is true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.

@property (nonatomic, strong) AWSEC2AttributeBooleanValue *disableApiTermination

Declared In

AWSEC2Model.h

  dryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

@property (nonatomic, strong) NSNumber *dryRun

Declared In

AWSEC2Model.h

  ebsOptimized

Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

@property (nonatomic, strong) AWSEC2AttributeBooleanValue *ebsOptimized

Declared In

AWSEC2Model.h

  groups

[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.

@property (nonatomic, strong) NSArray<NSString*> *groups

Declared In

AWSEC2Model.h

  instanceId

The ID of the instance.

@property (nonatomic, strong) NSString *instanceId

Declared In

AWSEC2Model.h

  instanceInitiatedShutdownBehavior

Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

@property (nonatomic, strong) AWSEC2AttributeValue *instanceInitiatedShutdownBehavior

Declared In

AWSEC2Model.h

  instanceType

Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.

@property (nonatomic, strong) AWSEC2AttributeValue *instanceType

Declared In

AWSEC2Model.h

  kernel

Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

@property (nonatomic, strong) AWSEC2AttributeValue *kernel

Declared In

AWSEC2Model.h

  ramdisk

Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

@property (nonatomic, strong) AWSEC2AttributeValue *ramdisk

Declared In

AWSEC2Model.h

  sourceDestCheck

Specifies whether source/destination checking is enabled. A value of true means that checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

@property (nonatomic, strong) AWSEC2AttributeBooleanValue *sourceDestCheck

Declared In

AWSEC2Model.h

  sriovNetSupport

Set to simple to enable enhanced networking for the instance.

There is no way to disable enhanced networking at this time.

This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.

@property (nonatomic, strong) AWSEC2AttributeValue *sriovNetSupport

Declared In

AWSEC2Model.h

  userData

Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.

@property (nonatomic, strong) AWSEC2BlobAttributeValue *userData

Declared In

AWSEC2Model.h

  value

A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute.

@property (nonatomic, strong) NSString *value

Declared In

AWSEC2Model.h