/AWS1/IF_BDO=>CREATEAGENTRUNTIME()
¶
About CreateAgentRuntime¶
Creates an Amazon Secure Agent.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_agentruntimename
TYPE /AWS1/BDOAGENTRUNTIMENAME
/AWS1/BDOAGENTRUNTIMENAME
¶
The name of the secure agent.
io_agentruntimeartifact
TYPE REF TO /AWS1/CL_BDOAGENTARTIFACT
/AWS1/CL_BDOAGENTARTIFACT
¶
The artifact of the agent.
iv_rolearn
TYPE /AWS1/BDOROLEARN
/AWS1/BDOROLEARN
¶
The IAM role ARN that provides permissions for the agent runtime.
io_networkconfiguration
TYPE REF TO /AWS1/CL_BDONETWORKCONF
/AWS1/CL_BDONETWORKCONF
¶
The network configuration for the agent runtime.
Optional arguments:¶
iv_description
TYPE /AWS1/BDODESCRIPTION
/AWS1/BDODESCRIPTION
¶
The 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
¶
Environment variables to set in the agent runtime environment.
io_authorizerconfiguration
TYPE REF TO /AWS1/CL_BDOAUTHORIZERCONF
/AWS1/CL_BDOAUTHORIZERCONF
¶
The authorizer configuration for the agent runtime.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdocreagentrtimersp
/AWS1/CL_BDOCREAGENTRTIMERSP
¶
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~createagentruntime(
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_agentruntimename = |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( ).
lo_workloadidentitydetails = lo_result->get_workloadidentitydetails( ).
IF lo_workloadidentitydetails IS NOT INITIAL.
lv_workloadidentityarn = lo_workloadidentitydetails->get_workloadidentityarn( ).
ENDIF.
lv_agentruntimeid = lo_result->get_agentruntimeid( ).
lv_agentruntimeversion = lo_result->get_agentruntimeversion( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_agentstatus = lo_result->get_status( ).
ENDIF.