/AWS1/IF_AFC=>CONNECTAPPAUTHORIZATION()¶
About ConnectAppAuthorization¶
Establishes a connection between Amazon Web Services AppFabric and an application, which allows AppFabric to call the APIs of the application.
Method Signature¶
METHODS /AWS1/IF_AFC~CONNECTAPPAUTHORIZATION
IMPORTING
!IV_APPBUNDLEIDENTIFIER TYPE /AWS1/AFCIDENTIFIER OPTIONAL
!IV_APPAUTHIDENTIFIER TYPE /AWS1/AFCIDENTIFIER OPTIONAL
!IO_AUTHREQUEST TYPE REF TO /AWS1/CL_AFCAUTHREQUEST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_afcconnectappauthrsp
RAISING
/AWS1/CX_AFCACCESSDENIEDEX
/AWS1/CX_AFCINTERNALSERVEREX
/AWS1/CX_AFCRESOURCENOTFOUNDEX
/AWS1/CX_AFCTHROTTLINGEX
/AWS1/CX_AFCVALIDATIONEX
/AWS1/CX_AFCCLIENTEXC
/AWS1/CX_AFCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_appbundleidentifier TYPE /AWS1/AFCIDENTIFIER /AWS1/AFCIDENTIFIER¶
The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle that contains the app authorization to use for the request.
iv_appauthidentifier TYPE /AWS1/AFCIDENTIFIER /AWS1/AFCIDENTIFIER¶
The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
Optional arguments:¶
io_authrequest TYPE REF TO /AWS1/CL_AFCAUTHREQUEST /AWS1/CL_AFCAUTHREQUEST¶
Contains OAuth2 authorization information.
This is required if the app authorization for the request is configured with an OAuth2 (
oauth2) authorization type.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_afcconnectappauthrsp /AWS1/CL_AFCCONNECTAPPAUTHRSP¶
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->connectappauthorization(
io_authrequest = new /aws1/cl_afcauthrequest(
iv_code = |string|
iv_redirecturi = |string|
)
iv_appauthidentifier = |string|
iv_appbundleidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_appauthorizationsummary = lo_result->get_appauthorizationsummary( ).
IF lo_appauthorizationsummary IS NOT INITIAL.
lv_arn = lo_appauthorizationsummary->get_appauthorizationarn( ).
lv_arn = lo_appauthorizationsummary->get_appbundlearn( ).
lv_string255 = lo_appauthorizationsummary->get_app( ).
lo_tenant = lo_appauthorizationsummary->get_tenant( ).
IF lo_tenant IS NOT INITIAL.
lv_tenantidentifier = lo_tenant->get_tenantidentifier( ).
lv_string2048 = lo_tenant->get_tenantdisplayname( ).
ENDIF.
lv_appauthorizationstatus = lo_appauthorizationsummary->get_status( ).
lv_datetime = lo_appauthorizationsummary->get_updatedat( ).
ENDIF.
ENDIF.