ModifyInstanceAttribute
GET /?Action=ModifyInstanceAttribute
Description
Modifies a specific attribute of an instance.
You can modify only one attribute at a time. You can modify the sourceDestCheck
attribute only if the instance is in a Virtual Private Cloud (VPC).
You must stop the instance before modifying the following attributes:
-
InstanceType
-
UserData
-
EbsOptimized
Body parameter
Required: false
Name: ModifyInstanceAttributeRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
BlockDeviceMapping.N |
The block device mapping of the instance. This parameter modifies the |
false |
|||
DisableApiTermination |
If |
false |
|||
EbsOptimized |
If |
false |
|||
GroupId.N |
A list of security groups IDs associated with the instance. |
false |
string |
||
InstanceId |
The ID of the instance. |
true |
string |
||
InstanceInitiatedShutdownBehavior |
The instance behavior when you stop it. By default or if set to |
false |
|||
InstanceType |
The type of instance. For more information, see Instance Types. |
false |
|||
SourceDestCheck |
(VPC only) |
false |
|||
UserData |
The Base64-encoded MIME user data. |
false |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
ModifyInstanceAttributeResult |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
requestId |
The ID of the request. |
false |
string |
||
return |
If |
false |
boolean |