Skip to content

/AWS1/CL_SHB=>UPDATESECURITYCONTROL()

About UpdateSecurityControl

Updates the properties of a security control.

Method Signature

IMPORTING

Required arguments:

iv_securitycontrolid TYPE /AWS1/SHBNONEMPTYSTRING /AWS1/SHBNONEMPTYSTRING

The Amazon Resource Name (ARN) or ID of the control to update.

it_parameters TYPE /AWS1/CL_SHBPARAMETERCONF=>TT_PARAMETERS TT_PARAMETERS

An object that specifies which security control parameters to update.

Optional arguments:

iv_lastupdatereason TYPE /AWS1/SHBALPHANUMERICNONEMPT00 /AWS1/SHBALPHANUMERICNONEMPT00

The most recent reason for updating the properties of the security control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.

RETURNING

oo_output TYPE REF TO /aws1/cl_shbupdatesecctlrsp /AWS1/CL_SHBUPDATESECCTLRSP

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->/aws1/if_shb~updatesecuritycontrol(
  it_parameters = VALUE /aws1/cl_shbparameterconf=>tt_parameters(
    (
      VALUE /aws1/cl_shbparameterconf=>ts_parameters_maprow(
        value = new /aws1/cl_shbparameterconf(
          io_value = new /aws1/cl_shbparametervalue(
            it_enumlist = VALUE /aws1/cl_shbstringlist_w=>tt_stringlist(
              ( new /aws1/cl_shbstringlist_w( |string| ) )
            )
            it_integerlist = VALUE /aws1/cl_shbintegerlist_w=>tt_integerlist(
              ( new /aws1/cl_shbintegerlist_w( 123 ) )
            )
            it_stringlist = VALUE /aws1/cl_shbstringlist_w=>tt_stringlist(
              ( new /aws1/cl_shbstringlist_w( |string| ) )
            )
            iv_boolean = ABAP_TRUE
            iv_double = '0.1'
            iv_enum = |string|
            iv_integer = 123
            iv_string = |string|
          )
          iv_valuetype = |string|
        )
        key = |string|
      )
    )
  )
  iv_lastupdatereason = |string|
  iv_securitycontrolid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.

To update security control properties

The following example updates the specified security control. Specifically, this example updates control parameters.

DATA(lo_result) = lo_client->/aws1/if_shb~updatesecuritycontrol(
  it_parameters = VALUE /aws1/cl_shbparameterconf=>tt_parameters(
    (
      VALUE /aws1/cl_shbparameterconf=>ts_parameters_maprow(
        value = new /aws1/cl_shbparameterconf(
          io_value = new /aws1/cl_shbparametervalue( iv_integer = 15 )
          iv_valuetype = |CUSTOM|
        )
        key = |maxCredentialUsageAge|
      )
    )
  )
  iv_lastupdatereason = |Comply with internal requirements|
  iv_securitycontrolid = |ACM.1|
).