Skip to content

/AWS1/IF_BDO=>CREATEBROWSER()

About CreateBrowser

Creates a custom browser.

Method Signature

IMPORTING

Required arguments:

iv_name TYPE /AWS1/BDOSANDBOXNAME /AWS1/BDOSANDBOXNAME

The name of the browser. The name must be unique within your account.

io_networkconfiguration TYPE REF TO /AWS1/CL_BDOBROWSERNETWORKCONF /AWS1/CL_BDOBROWSERNETWORKCONF

The network configuration for the browser. This configuration specifies the network mode for the browser.

Optional arguments:

iv_description TYPE /AWS1/BDODESCRIPTION /AWS1/BDODESCRIPTION

The description of the browser.

iv_executionrolearn TYPE /AWS1/BDOROLEARN /AWS1/BDOROLEARN

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the browser to access Amazon Web Services services.

io_recording TYPE REF TO /AWS1/CL_BDORECORDINGCONFIG /AWS1/CL_BDORECORDINGCONFIG

The recording configuration for the browser. When enabled, browser sessions are recorded and stored in the specified Amazon S3 location.

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_bdocreatebrowserrsp /AWS1/CL_BDOCREATEBROWSERRSP

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~createbrowser(
  io_networkconfiguration = new /aws1/cl_bdobrowsernetworkconf( |string| )
  io_recording = new /aws1/cl_bdorecordingconfig(
    io_s3location = new /aws1/cl_bdos3location(
      iv_bucket = |string|
      iv_prefix = |string|
    )
    iv_enabled = ABAP_TRUE
  )
  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_browserid = lo_result->get_browserid( ).
  lv_browserarn = lo_result->get_browserarn( ).
  lv_datetimestamp = lo_result->get_createdat( ).
  lv_browserstatus = lo_result->get_status( ).
ENDIF.