/AWS1/CL_CTT=>UPDATEENABLEDCONTROL()
¶
About UpdateEnabledControl¶
Updates the configuration of an already enabled control.
If the enabled control shows an EnablementStatus
of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.
If the enabled control shows an EnablementStatus
of FAILED, Amazon Web Services Control Tower updates the control to match any valid parameters that you supply.
If the DriftSummary
status for the control shows as DRIFTED
, you cannot call this API. Instead, you can update the control by calling the ResetEnabledControl
API. Alternatively, you can call DisableControl
and then call EnableControl
again. Also, you can run an extending governance operation to repair drift. For usage examples, see the Controls Reference Guide .
Method Signature¶
IMPORTING¶
Required arguments:¶
it_parameters
TYPE /AWS1/CL_CTTENABLEDCTLPARAM=>TT_ENABLEDCONTROLPARAMETERS
TT_ENABLEDCONTROLPARAMETERS
¶
A key/value pair, where
Key
is of typeString
andValue
is of typeDocument
.
iv_enabledcontrolidentifier
TYPE /AWS1/CTTARN
/AWS1/CTTARN
¶
The ARN of the enabled control that will be updated.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_cttupdenabledctlout
/AWS1/CL_CTTUPDENABLEDCTLOUT
¶
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_ctt~updateenabledcontrol(
it_parameters = VALUE /aws1/cl_cttenabledctlparam=>tt_enabledcontrolparameters(
(
new /aws1/cl_cttenabledctlparam(
io_value = /AWS1/CL_RT_DOCUMENT=>FROM_JSON_STR( |\{"foo":"this is a JSON object..."\}| )
iv_key = |string|
)
)
)
iv_enabledcontrolidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_operationidentifier = lo_result->get_operationidentifier( ).
ENDIF.