/AWS1/IF_ACU=>GETACCOUNTCUSTOMIZATIONS()¶
About GetAccountCustomizations¶
Returns the current account customization settings, including account color, visible services, and visible Regions. Settings that you have not configured return their default values: visible Regions and visible services return `null`, and account color returns `none`.
The visibleServices and visibleRegions settings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.
Method Signature¶
METHODS /AWS1/IF_ACU~GETACCOUNTCUSTOMIZATIONS
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_acugetacctcstmznout
RAISING
/AWS1/CX_ACUACCESSDENIEDEX
/AWS1/CX_ACUINTERNALSERVEREX
/AWS1/CX_ACUTHROTTLINGEX
/AWS1/CX_ACUVLDTNEXCEPTION
/AWS1/CX_ACUCLIENTEXC
/AWS1/CX_ACUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_acugetacctcstmznout /AWS1/CL_ACUGETACCTCSTMZNOUT¶
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->getaccountcustomizations( ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_accountcolor = lo_result->get_accountcolor( ).
LOOP AT lo_result->get_visibleservices( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_service = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_visibleregions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_region = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
Get account customizations¶
Retrieves all account customization settings
DATA(lo_result) = lo_client->getaccountcustomizations( ).