/AWS1/IF_CTT=>DISABLECONTROL()¶
About DisableControl¶
This API call turns off a control. It starts an asynchronous operation that deletes Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify. For usage examples, see the Controls Reference Guide .
Method Signature¶
METHODS /AWS1/IF_CTT~DISABLECONTROL
IMPORTING
!IV_CONTROLIDENTIFIER TYPE /AWS1/CTTCONTROLIDENTIFIER OPTIONAL
!IV_TARGETIDENTIFIER TYPE /AWS1/CTTTARGETIDENTIFIER OPTIONAL
!IV_ENABLEDCONTROLIDENTIFIER TYPE /AWS1/CTTARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cttdsbcontroloutput
RAISING
/AWS1/CX_CTTACCESSDENIEDEX
/AWS1/CX_CTTCONFLICTEXCEPTION
/AWS1/CX_CTTINTERNALSERVEREX
/AWS1/CX_CTTRESOURCENOTFOUNDEX
/AWS1/CX_CTTSERVICEQUOTAEXCDEX
/AWS1/CX_CTTTHROTTLINGEX
/AWS1/CX_CTTVALIDATIONEX
/AWS1/CX_CTTCLIENTEXC
/AWS1/CX_CTTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_controlidentifier TYPE /AWS1/CTTCONTROLIDENTIFIER /AWS1/CTTCONTROLIDENTIFIER¶
The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the
controlIdentifier, see the overview page.
iv_targetidentifier TYPE /AWS1/CTTTARGETIDENTIFIER /AWS1/CTTTARGETIDENTIFIER¶
The ARN of the organizational unit. For information on how to find the
targetIdentifier, see the overview page.
iv_enabledcontrolidentifier TYPE /AWS1/CTTARN /AWS1/CTTARN¶
The ARN of the enabled control to be disabled, which uniquely identifies the control instance on the target organizational unit.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cttdsbcontroloutput /AWS1/CL_CTTDSBCONTROLOUTPUT¶
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->disablecontrol(
iv_controlidentifier = |string|
iv_enabledcontrolidentifier = |string|
iv_targetidentifier = |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.