/AWS1/IF_AAA=>CREATEAPPLICATION()¶
About CreateApplication¶
Creates an account access manager instance and its Amazon Web Services account access application in the associated IAM Identity Center instance. This operation is idempotent; calling it multiple times with the same parameters returns the existing application.
Method Signature¶
METHODS /AWS1/IF_AAA~CREATEAPPLICATION
IMPORTING
!IO_IDENTITYSOURCE TYPE REF TO /AWS1/CL_AAAIDENTITYSOURCE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_AAATAGSMAP_W=>TT_TAGSMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_aaacreateappresponse
RAISING
/AWS1/CX_AAAACCESSDENIEDEX
/AWS1/CX_AAAALREADYCREATEDEX
/AWS1/CX_AAACONFLICTEXCEPTION
/AWS1/CX_AAAINTERNALSERVEREX
/AWS1/CX_AAAVLDTNEXCEPTION
/AWS1/CX_AAACLIENTEXC
/AWS1/CX_AAASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_identitysource TYPE REF TO /AWS1/CL_AAAIDENTITYSOURCE /AWS1/CL_AAAIDENTITYSOURCE¶
Specifies the identity source for the application. The identity source defines the IAM Identity Center instance that provides principals for entitlements.
Optional arguments:¶
it_tags TYPE /AWS1/CL_AAATAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
Specifies the tags to assign to the application.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_aaacreateappresponse /AWS1/CL_AAACREATEAPPRESPONSE¶
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->createapplication(
io_identitysource = new /aws1/cl_aaaidentitysource( new /aws1/cl_aaaidentitycenter( |string| ) )
it_tags = VALUE /aws1/cl_aaatagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_aaatagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_aaatagsmap_w( |string| )
)
)
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_applicationarn = lo_result->get_applicationarn( ).
ENDIF.