/AWS1/CL_BDC=>GETCODEINTERPRETERSESSION()
¶
About GetCodeInterpreterSession¶
Retrieves detailed information about a specific code interpreter session in Amazon Bedrock. This operation returns the session's configuration, current status, and metadata.
To get a code interpreter session, you must specify both the code interpreter identifier and the session ID. The response includes information about the session's timeout settings and current status.
The following operations are related to GetCodeInterpreterSession
:
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_codeinterpreteridentifier
TYPE /AWS1/BDCSTRING
/AWS1/BDCSTRING
¶
The unique identifier of the code interpreter associated with the session.
iv_sessionid
TYPE /AWS1/BDCCODEINTERPTRSESSIONID
/AWS1/BDCCODEINTERPTRSESSIONID
¶
The unique identifier of the code interpreter session to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdcgetcodeintsessrsp
/AWS1/CL_BDCGETCODEINTSESSRSP
¶
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_bdc~getcodeinterpretersession(
iv_codeinterpreteridentifier = |string|
iv_sessionid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_codeinterptridentifier( ).
lv_codeinterpretersessioni = lo_result->get_sessionid( ).
lv_name = lo_result->get_name( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_codeinterpretersessiont = lo_result->get_sessiontimeoutseconds( ).
lv_codeinterpretersessions = lo_result->get_status( ).
ENDIF.