Skip to content

/AWS1/IF_ACU=>UPDATEACCOUNTCUSTOMIZATIONS()

About UpdateAccountCustomizations

Updates one or more account customization settings. You can update account color, visible services, and visible Regions in a single request. Only the settings that you include in the request body are modified. Omitted settings remain unchanged. To reset a setting to its default behavior, set the value to null for visible Regions and visible services, or none for account color. This operation is idempotent.

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~UPDATEACCOUNTCUSTOMIZATIONS
  IMPORTING
    !IV_ACCOUNTCOLOR TYPE /AWS1/ACUACCOUNTCOLOR OPTIONAL
    !IT_VISIBLESERVICES TYPE /AWS1/CL_ACUSERVICELIST_W=>TT_SERVICELIST OPTIONAL
    !IT_VISIBLEREGIONS TYPE /AWS1/CL_ACUREGIONSLIST_W=>TT_REGIONSLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_acuupdacctcstmznout
  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.

IMPORTING

Optional arguments:

iv_accountcolor TYPE /AWS1/ACUACCOUNTCOLOR /AWS1/ACUACCOUNTCOLOR

The account color preference to set. Set to none to reset to the default (no color).

it_visibleservices TYPE /AWS1/CL_ACUSERVICELIST_W=>TT_SERVICELIST TT_SERVICELIST

The list of Amazon Web Services service identifiers to make visible in the Amazon Web Services Management Console. Set to null to reset to the default, which makes all services visible. For valid service identifiers, call ListServices.

it_visibleregions TYPE /AWS1/CL_ACUREGIONSLIST_W=>TT_REGIONSLIST TT_REGIONSLIST

The list of Amazon Web Services Region codes to make visible in the Amazon Web Services Management Console. Set to null to reset to the default, which makes all Regions visible. For a list of valid Region codes, see Amazon Web Services Regions.

RETURNING

oo_output TYPE REF TO /aws1/cl_acuupdacctcstmznout /AWS1/CL_ACUUPDACCTCSTMZNOUT

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->updateaccountcustomizations(
  it_visibleregions = VALUE /aws1/cl_acuregionslist_w=>tt_regionslist(
    ( new /aws1/cl_acuregionslist_w( |string| ) )
  )
  it_visibleservices = VALUE /aws1/cl_acuservicelist_w=>tt_servicelist(
    ( new /aws1/cl_acuservicelist_w( |string| ) )
  )
  iv_accountcolor = |string|
).

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.

Update account customizations

Updates account customization settings with new values

DATA(lo_result) = lo_client->updateaccountcustomizations(
  it_visibleservices = VALUE /aws1/cl_acuservicelist_w=>tt_servicelist(
    ( new /aws1/cl_acuservicelist_w( |s3| ) )
    ( new /aws1/cl_acuservicelist_w( |ec2| ) )
    ( new /aws1/cl_acuservicelist_w( |lambda| ) )
  )
  iv_accountcolor = |green|
).