/AWS1/CL_EC2=>MODIFYINSTANCECPUOPTIONS()
¶
About ModifyInstanceCpuOptions¶
By default, all vCPUs for the instance type are active when you launch an instance. When you configure the number of active vCPUs for the instance, it can help you save on licensing costs and optimize performance. The base cost of the instance remains unchanged.
The number of active vCPUs equals the number of threads per CPU core multiplied by the number
of cores. The instance must be in a Stopped
state before you make changes.
Some instance type options do not support this capability. For more information, see Supported CPU options in the Amazon EC2 User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_INSTANCEID
TYPE /AWS1/EC2INSTANCEID
/AWS1/EC2INSTANCEID
¶
The ID of the instance to update.
IV_CORECOUNT
TYPE /AWS1/EC2INTEGER
/AWS1/EC2INTEGER
¶
The number of CPU cores to activate for the specified instance.
IV_THREADSPERCORE
TYPE /AWS1/EC2INTEGER
/AWS1/EC2INTEGER
¶
The number of threads to run for each CPU core.
Optional arguments:¶
IV_DRYRUN
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.