/AWS1/IF_BDO=>CREATECODEINTERPRETER()
¶
About CreateCodeInterpreter¶
Creates a custom code interpreter.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_name
TYPE /AWS1/BDOSANDBOXNAME
/AWS1/BDOSANDBOXNAME
¶
The name of the code interpreter. The name must be unique within your account.
io_networkconfiguration
TYPE REF TO /AWS1/CL_BDOCODEINTNETWORKCONF
/AWS1/CL_BDOCODEINTNETWORKCONF
¶
The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.
Optional arguments:¶
iv_description
TYPE /AWS1/BDODESCRIPTION
/AWS1/BDODESCRIPTION
¶
The description of the code interpreter.
iv_executionrolearn
TYPE /AWS1/BDOROLEARN
/AWS1/BDOROLEARN
¶
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.
iv_clienttoken
TYPE /AWS1/BDOCLIENTTOKEN
/AWS1/BDOCLIENTTOKEN
¶
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdocrecodeinterptrrsp
/AWS1/CL_BDOCRECODEINTERPTRRSP
¶
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_bdo~createcodeinterpreter(
io_networkconfiguration = new /aws1/cl_bdocodeintnetworkconf( |string| )
iv_clienttoken = |string|
iv_description = |string|
iv_executionrolearn = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_codeinterpreterid = lo_result->get_codeinterpreterid( ).
lv_codeinterpreterarn = lo_result->get_codeinterpreterarn( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_codeinterpreterstatus = lo_result->get_status( ).
ENDIF.