Skip to content

/AWS1/CL_EC2LAUNCHTMPLCPUOPT00

The CPU options for the instance. Both the core count and threads per core must be specified in the request.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_CORECOUNT TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The number of CPU cores for the instance.

IV_THREADSPERCORE TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.

IV_AMDSEVSNP TYPE /AWS1/EC2AMDSEVSNPSPEC /AWS1/EC2AMDSEVSNPSPEC

Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.


Queryable Attributes

CoreCount

The number of CPU cores for the instance.

Accessible with the following methods

Method Description
GET_CORECOUNT() Getter for CORECOUNT, with configurable default
ASK_CORECOUNT() Getter for CORECOUNT w/ exceptions if field has no value
HAS_CORECOUNT() Determine if CORECOUNT has a value

ThreadsPerCore

The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.

Accessible with the following methods

Method Description
GET_THREADSPERCORE() Getter for THREADSPERCORE, with configurable default
ASK_THREADSPERCORE() Getter for THREADSPERCORE w/ exceptions if field has no valu
HAS_THREADSPERCORE() Determine if THREADSPERCORE has a value

AmdSevSnp

Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.

Accessible with the following methods

Method Description
GET_AMDSEVSNP() Getter for AMDSEVSNP, with configurable default
ASK_AMDSEVSNP() Getter for AMDSEVSNP w/ exceptions if field has no value
HAS_AMDSEVSNP() Determine if AMDSEVSNP has a value