/AWS1/CL_EC2=>GETINSTTYPESFRMINSTREQUIRE00()
¶
About GetInstanceTypesFromInstanceRequirements¶
Returns a list of instance types with the specified instance attributes. You can use the response to preview the instance types without launching instances. Note that the response does not consider capacity.
When you specify multiple parameters, you get instance types that satisfy all of the specified parameters. If you specify multiple values for a parameter, you get instance types that satisfy any of the specified values.
For more information, see Preview instance types with specified attributes, Specify attributes for instance type selection for EC2 Fleet or Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating mixed instance groups using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
it_architecturetypes
TYPE /AWS1/CL_EC2ARCHITECTURETYPE01=>TT_ARCHITECTURETYPESET
TT_ARCHITECTURETYPESET
¶
The processor architecture type.
it_virtualizationtypes
TYPE /AWS1/CL_EC2VIRTUALIZATIONTY01=>TT_VIRTUALIZATIONTYPESET
TT_VIRTUALIZATIONTYPESET
¶
The virtualization type.
io_instancerequirements
TYPE REF TO /AWS1/CL_EC2INSTREQUIREMENTS00
/AWS1/CL_EC2INSTREQUIREMENTS00
¶
The attributes required for the instance types.
Optional arguments:¶
iv_dryrun
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
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 isUnauthorizedOperation
.
iv_maxresults
TYPE /AWS1/EC2INTEGER
/AWS1/EC2INTEGER
¶
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
iv_nexttoken
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ec2getinsttypesfrmi01
/AWS1/CL_EC2GETINSTTYPESFRMI01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_ec2~getinsttypesfrminstrequire00(
io_instancerequirements = new /aws1/cl_ec2instrequirements00(
io_acceleratorcount = new /aws1/cl_ec2acceleratorcntreq(
iv_max = 123
iv_min = 123
)
io_acceleratortotalmemorymib = new /aws1/cl_ec2acceleratortotal00(
iv_max = 123
iv_min = 123
)
io_baselineebsbandwidthmbps = new /aws1/cl_ec2baselineebsbandw00(
iv_max = 123
iv_min = 123
)
io_baselineperformancefact00 = new /aws1/cl_ec2baselineperforma00(
io_cpu = new /aws1/cl_ec2cpuperformancefa00(
it_references = VALUE /aws1/cl_ec2performancefacto00=>tt_performancefactorreferenc00(
( new /aws1/cl_ec2performancefacto00( |string| ) )
)
)
)
io_memorygibpervcpu = new /aws1/cl_ec2memorygibpervcpu00(
iv_max = '0.1'
iv_min = '0.1'
)
io_memorymib = new /aws1/cl_ec2memorymibrequest(
iv_max = 123
iv_min = 123
)
io_networkbandwidthgbps = new /aws1/cl_ec2networkbandwidth00(
iv_max = '0.1'
iv_min = '0.1'
)
io_networkinterfacecount = new /aws1/cl_ec2networkinterface00(
iv_max = 123
iv_min = 123
)
io_totallocalstoragegb = new /aws1/cl_ec2totallocalstrggb00(
iv_max = '0.1'
iv_min = '0.1'
)
io_vcpucount = new /aws1/cl_ec2vcpucountrangereq(
iv_max = 123
iv_min = 123
)
it_acceleratormanufacturers = VALUE /aws1/cl_ec2acceleratormanuf00=>tt_acceleratormanufacturerset(
( new /aws1/cl_ec2acceleratormanuf00( |string| ) )
)
it_acceleratornames = VALUE /aws1/cl_ec2acceleratornames00=>tt_acceleratornameset(
( new /aws1/cl_ec2acceleratornames00( |string| ) )
)
it_acceleratortypes = VALUE /aws1/cl_ec2acceleratortypes00=>tt_acceleratortypeset(
( new /aws1/cl_ec2acceleratortypes00( |string| ) )
)
it_allowedinstancetypes = VALUE /aws1/cl_ec2alwedinsttypeset_w=>tt_allowedinstancetypeset(
( new /aws1/cl_ec2alwedinsttypeset_w( |string| ) )
)
it_cpumanufacturers = VALUE /aws1/cl_ec2cpumanufacturers00=>tt_cpumanufacturerset(
( new /aws1/cl_ec2cpumanufacturers00( |string| ) )
)
it_excludedinstancetypes = VALUE /aws1/cl_ec2excludedinsttype00=>tt_excludedinstancetypeset(
( new /aws1/cl_ec2excludedinsttype00( |string| ) )
)
it_instancegenerations = VALUE /aws1/cl_ec2instgenerationse00=>tt_instancegenerationset(
( new /aws1/cl_ec2instgenerationse00( |string| ) )
)
it_localstoragetypes = VALUE /aws1/cl_ec2localstrgtypeset_w=>tt_localstoragetypeset(
( new /aws1/cl_ec2localstrgtypeset_w( |string| ) )
)
iv_baremetal = |string|
iv_burstableperformance = |string|
iv_localstorage = |string|
iv_maxspotpriceaspercentag00 = 123
iv_ondemmaxpricepercentage00 = 123
iv_requirehibernatesupport = ABAP_TRUE
iv_spotmaxpricepercentageo00 = 123
)
it_architecturetypes = VALUE /aws1/cl_ec2architecturetype01=>tt_architecturetypeset(
( new /aws1/cl_ec2architecturetype01( |string| ) )
)
it_virtualizationtypes = VALUE /aws1/cl_ec2virtualizationty01=>tt_virtualizationtypeset(
( new /aws1/cl_ec2virtualizationty01( |string| ) )
)
iv_dryrun = ABAP_TRUE
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
LOOP AT lo_result->get_instancetypes( ) into lo_row.
lv_string = lo_row_1->get_instancetype( ).
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).