/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 AgentCore Runtime to update.
io_agentruntimeartifact
TYPE REF TO /AWS1/CL_BDOAGENTRTIMEARTIFACT
/AWS1/CL_BDOAGENTRTIMEARTIFACT
¶
The updated artifact of the AgentCore Runtime.
iv_rolearn
TYPE /AWS1/BDOROLEARN
/AWS1/BDOROLEARN
¶
The updated IAM role ARN that provides permissions for the AgentCore Runtime.
io_networkconfiguration
TYPE REF TO /AWS1/CL_BDONETWORKCONF
/AWS1/CL_BDONETWORKCONF
¶
The updated network configuration for the AgentCore Runtime.
Optional arguments:¶
iv_description
TYPE /AWS1/BDODESCRIPTION
/AWS1/BDODESCRIPTION
¶
The updated description of the AgentCore 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 AgentCore Runtime environment.
io_authorizerconfiguration
TYPE REF TO /AWS1/CL_BDOAUTHORIZERCONF
/AWS1/CL_BDOAUTHORIZERCONF
¶
The updated authorizer configuration for the AgentCore Runtime.
io_requestheaderconf
TYPE REF TO /AWS1/CL_BDOREQUESTHEADERCONF
/AWS1/CL_BDOREQUESTHEADERCONF
¶
The updated configuration for HTTP request headers that will be passed through to the 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_bdoagentrtimeartifact( 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(
io_networkmodeconfig = new /aws1/cl_bdovpcconfig(
it_securitygroups = VALUE /aws1/cl_bdosecuritygroups_w=>tt_securitygroups(
( new /aws1/cl_bdosecuritygroups_w( |string| ) )
)
it_subnets = VALUE /aws1/cl_bdosubnets_w=>tt_subnets(
( new /aws1/cl_bdosubnets_w( |string| ) )
)
)
iv_networkmode = |string|
)
io_protocolconfiguration = new /aws1/cl_bdoprotocolconf( |string| )
io_requestheaderconf = new /aws1/cl_bdorequestheaderconf(
it_requestheaderallowlist = VALUE /aws1/cl_bdoreqheaderalwlist_w=>tt_requestheaderallowlist(
( new /aws1/cl_bdoreqheaderalwlist_w( |string| ) )
)
)
it_environmentvariables = VALUE /aws1/cl_bdoenvvariablesmap_w=>tt_environmentvariablesmap(
(
VALUE /aws1/cl_bdoenvvariablesmap_w=>ts_envvariablesmap_maprow(
key = |string|
value = new /aws1/cl_bdoenvvariablesmap_w( |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_agentruntimestatus = lo_result->get_status( ).
ENDIF.