Skip to content

/AWS1/CL_SGMPRCSGINSTANCEPREF

A candidate instance type preference in a processing InstancePreferences list.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_instancetype TYPE /AWS1/SGMPROCESSINGINSTTYPE /AWS1/SGMPROCESSINGINSTTYPE

The ML compute instance type. An instance type can appear only once in an InstancePreferences list.

Optional arguments:

iv_instancecount TYPE /AWS1/SGMPROCESSINGINSTCOUNT /AWS1/SGMPROCESSINGINSTCOUNT

The number of instances to launch if this instance type is selected. Specify the instance count for the processing job in one of the following two ways:

  1. Per preference – Set InstanceCount on every preference in the InstancePreferences list and don't set ProcessingClusterConfig$InstanceCount. Use this when each instance type needs a different number of instances to deliver equivalent compute.

  2. One count for the job – Set ProcessingClusterConfig$InstanceCount and omit it from every preference. Amazon SageMaker applies this to all instance types in the list.

For example, in a list of five preferences, either all five specify InstanceCount or none of them do. Amazon SageMaker rejects requests that set InstanceCount on only some preferences, that set it both per preference and in ProcessingClusterConfig, or that omit it in both places.


Queryable Attributes

InstanceType

The ML compute instance type. An instance type can appear only once in an InstancePreferences list.

Accessible with the following methods

Method Description
GET_INSTANCETYPE() Getter for INSTANCETYPE, with configurable default
ASK_INSTANCETYPE() Getter for INSTANCETYPE w/ exceptions if field has no value
HAS_INSTANCETYPE() Determine if INSTANCETYPE has a value

InstanceCount

The number of instances to launch if this instance type is selected. Specify the instance count for the processing job in one of the following two ways:

  1. Per preference – Set InstanceCount on every preference in the InstancePreferences list and don't set ProcessingClusterConfig$InstanceCount. Use this when each instance type needs a different number of instances to deliver equivalent compute.

  2. One count for the job – Set ProcessingClusterConfig$InstanceCount and omit it from every preference. Amazon SageMaker applies this to all instance types in the list.

For example, in a list of five preferences, either all five specify InstanceCount or none of them do. Amazon SageMaker rejects requests that set InstanceCount on only some preferences, that set it both per preference and in ProcessingClusterConfig, or that omit it in both places.

Accessible with the following methods

Method Description
GET_INSTANCECOUNT() Getter for INSTANCECOUNT, with configurable default
ASK_INSTANCECOUNT() Getter for INSTANCECOUNT w/ exceptions if field has no value
HAS_INSTANCECOUNT() Determine if INSTANCECOUNT has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_PROCESSINGINSTANCEPREFLIST

TYPES TT_PROCESSINGINSTANCEPREFLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_SGMPRCSGINSTANCEPREF WITH DEFAULT KEY
.