/AWS1/IF_FND=>GETPROGRAMMATICACCESSCREDS()¶
About GetProgrammaticAccessCredentials¶
Request programmatic credentials to use with FinSpace SDK. For more information, see Step 2. Access credentials programmatically using IAM access key id and secret access key.
Method Signature¶
METHODS /AWS1/IF_FND~GETPROGRAMMATICACCESSCREDS
IMPORTING
!IV_DURATIONINMINUTES TYPE /AWS1/FNDSESSIONDURATION OPTIONAL
!IV_ENVIRONMENTID TYPE /AWS1/FNDIDTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fndgetprogrammatica01
RAISING
/AWS1/CX_FNDACCESSDENIEDEX
/AWS1/CX_FNDINTERNALSERVEREX
/AWS1/CX_FNDTHROTTLINGEX
/AWS1/CX_FNDVALIDATIONEX
/AWS1/CX_FNDCLIENTEXC
/AWS1/CX_FNDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_environmentid TYPE /AWS1/FNDIDTYPE /AWS1/FNDIDTYPE¶
The FinSpace environment identifier.
Optional arguments:¶
iv_durationinminutes TYPE /AWS1/FNDSESSIONDURATION /AWS1/FNDSESSIONDURATION¶
The time duration in which the credentials remain valid.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fndgetprogrammatica01 /AWS1/CL_FNDGETPROGRAMMATICA01¶
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->getprogrammaticaccesscreds(
iv_durationinminutes = 123
iv_environmentid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_credentials = lo_result->get_credentials( ).
IF lo_credentials IS NOT INITIAL.
lv_stringvaluelength1to255 = lo_credentials->get_accesskeyid( ).
lv_stringvaluemaxlength100 = lo_credentials->get_secretaccesskey( ).
lv_stringvaluemaxlength100 = lo_credentials->get_sessiontoken( ).
ENDIF.
lv_sessionduration = lo_result->get_durationinminutes( ).
ENDIF.