Skip to content

/AWS1/IF_BDO=>UPDATEAGENTRUNTIME()

About UpdateAgentRuntime

Updates an existing Amazon Secure Agent.

Method Signature

IMPORTING

Required arguments:

iv_agentruntimeid TYPE /AWS1/BDOAGENTRUNTIMEID /AWS1/BDOAGENTRUNTIMEID

The unique identifier of the agent runtime to update.

io_agentruntimeartifact TYPE REF TO /AWS1/CL_BDOAGENTARTIFACT /AWS1/CL_BDOAGENTARTIFACT

The updated artifact of the agent runtime.

iv_rolearn TYPE /AWS1/BDOROLEARN /AWS1/BDOROLEARN

The updated IAM role ARN that provides permissions for the agent runtime.

io_networkconfiguration TYPE REF TO /AWS1/CL_BDONETWORKCONF /AWS1/CL_BDONETWORKCONF

The updated network configuration for the agent runtime.

Optional arguments:

iv_description TYPE /AWS1/BDODESCRIPTION /AWS1/BDODESCRIPTION

The updated description of the agent runtime.

io_protocolconfiguration TYPE REF TO /AWS1/CL_BDOPROTOCOLCONF /AWS1/CL_BDOPROTOCOLCONF

protocolConfiguration

iv_clienttoken TYPE /AWS1/BDOCLIENTTOKEN /AWS1/BDOCLIENTTOKEN

A unique, case-sensitive identifier to ensure idempotency of the request.

it_environmentvariables TYPE /AWS1/CL_BDOENVVARIABLESMAP_W=>TT_ENVIRONMENTVARIABLESMAP TT_ENVIRONMENTVARIABLESMAP

Updated environment variables to set in the agent runtime environment.

io_authorizerconfiguration TYPE REF TO /AWS1/CL_BDOAUTHORIZERCONF /AWS1/CL_BDOAUTHORIZERCONF

The updated authorizer configuration for the agent runtime.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdoupdagentrtimersp /AWS1/CL_BDOUPDAGENTRTIMERSP

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~updateagentruntime(
  io_agentruntimeartifact = new /aws1/cl_bdoagentartifact( new /aws1/cl_bdocontainerconf( |string| ) )
  io_authorizerconfiguration = new /aws1/cl_bdoauthorizerconf(
    io_customjwtauthorizer = new /aws1/cl_bdocustomjwtauthrconf(
      it_allowedaudience = VALUE /aws1/cl_bdoalwedaudiencelst_w=>tt_allowedaudiencelist(
        ( new /aws1/cl_bdoalwedaudiencelst_w( |string| ) )
      )
      it_allowedclients = VALUE /aws1/cl_bdoallowedclislist_w=>tt_allowedclientslist(
        ( new /aws1/cl_bdoallowedclislist_w( |string| ) )
      )
      iv_discoveryurl = |string|
    )
  )
  io_networkconfiguration = new /aws1/cl_bdonetworkconf( |string| )
  io_protocolconfiguration = new /aws1/cl_bdoprotocolconf( |string| )
  it_environmentvariables = VALUE /aws1/cl_bdoenvvariablesmap_w=>tt_environmentvariablesmap(
    (
      VALUE /aws1/cl_bdoenvvariablesmap_w=>ts_envvariablesmap_maprow(
        value = new /aws1/cl_bdoenvvariablesmap_w( |string| )
        key = |string|
      )
    )
  )
  iv_agentruntimeid = |string|
  iv_clienttoken = |string|
  iv_description = |string|
  iv_rolearn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_agentruntimearn = lo_result->get_agentruntimearn( ).
  lv_agentruntimeid = lo_result->get_agentruntimeid( ).
  lo_workloadidentitydetails = lo_result->get_workloadidentitydetails( ).
  IF lo_workloadidentitydetails IS NOT INITIAL.
    lv_workloadidentityarn = lo_workloadidentitydetails->get_workloadidentityarn( ).
  ENDIF.
  lv_agentruntimeversion = lo_result->get_agentruntimeversion( ).
  lv_datetimestamp = lo_result->get_createdat( ).
  lv_datetimestamp = lo_result->get_lastupdatedat( ).
  lv_agentstatus = lo_result->get_status( ).
ENDIF.