/AWS1/IF_LXB=>GETBOTCHANNELASSOCIATION()¶
About GetBotChannelAssociation¶
Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the
lex:GetBotChannelAssociation action.
Method Signature¶
METHODS /AWS1/IF_LXB~GETBOTCHANNELASSOCIATION
IMPORTING
!IV_NAME TYPE /AWS1/LXBBOTCHANNELNAME OPTIONAL
!IV_BOTNAME TYPE /AWS1/LXBBOTNAME OPTIONAL
!IV_BOTALIAS TYPE /AWS1/LXBALIASNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lxbgetbotchannelass01
RAISING
/AWS1/CX_LXBBADREQUESTEX
/AWS1/CX_LXBINTERNALFAILUREEX
/AWS1/CX_LXBLIMITEXCEEDEDEX
/AWS1/CX_LXBNOTFOUNDEXCEPTION
/AWS1/CX_LXBCLIENTEXC
/AWS1/CX_LXBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/LXBBOTCHANNELNAME /AWS1/LXBBOTCHANNELNAME¶
The name of the association between the bot and the channel. The name is case sensitive.
iv_botname TYPE /AWS1/LXBBOTNAME /AWS1/LXBBOTNAME¶
The name of the Amazon Lex bot.
iv_botalias TYPE /AWS1/LXBALIASNAME /AWS1/LXBALIASNAME¶
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lxbgetbotchannelass01 /AWS1/CL_LXBGETBOTCHANNELASS01¶
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->getbotchannelassociation(
iv_botalias = |string|
iv_botname = |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_botchannelname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_aliasname = lo_result->get_botalias( ).
lv_botname = lo_result->get_botname( ).
lv_timestamp = lo_result->get_createddate( ).
lv_channeltype = lo_result->get_type( ).
LOOP AT lo_result->get_botconfiguration( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_channelstatus = lo_result->get_status( ).
lv_string = lo_result->get_failurereason( ).
ENDIF.