Skip to content

/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, Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating an Auto Scaling group 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 is UnauthorizedOperation.

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