/AWS1/IF_BDK=>GETPROVMODELTHROUGHPUT()¶
About GetProvisionedModelThroughput¶
Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
Method Signature¶
METHODS /AWS1/IF_BDK~GETPROVMODELTHROUGHPUT
IMPORTING
!IV_PROVISIONEDMODELID TYPE /AWS1/BDKPROVISIONEDMODELID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkgetprovmdeltputrsp
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_provisionedmodelid TYPE /AWS1/BDKPROVISIONEDMODELID /AWS1/BDKPROVISIONEDMODELID¶
The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdkgetprovmdeltputrsp /AWS1/CL_BDKGETPROVMDELTPUTRSP¶
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->getprovmodelthroughput( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_positiveinteger = lo_result->get_modelunits( ).
lv_positiveinteger = lo_result->get_desiredmodelunits( ).
lv_provisionedmodelname = lo_result->get_provisionedmodelname( ).
lv_provisionedmodelarn = lo_result->get_provisionedmodelarn( ).
lv_modelarn = lo_result->get_modelarn( ).
lv_modelarn = lo_result->get_desiredmodelarn( ).
lv_foundationmodelarn = lo_result->get_foundationmodelarn( ).
lv_provisionedmodelstatus = lo_result->get_status( ).
lv_timestamp = lo_result->get_creationtime( ).
lv_timestamp = lo_result->get_lastmodifiedtime( ).
lv_errormessage = lo_result->get_failuremessage( ).
lv_commitmentduration = lo_result->get_commitmentduration( ).
lv_timestamp = lo_result->get_commitmentexpirationtime( ).
ENDIF.