/AWS1/IF_WSP=>DEREGISTERWORKSPACEDIRECTORY()¶
About DeregisterWorkspaceDirectory¶
Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory.
Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.
To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.
Method Signature¶
METHODS /AWS1/IF_WSP~DEREGISTERWORKSPACEDIRECTORY
IMPORTING
!IV_DIRECTORYID TYPE /AWS1/WSPDIRECTORYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wspderegworkspacedi01
RAISING
/AWS1/CX_WSPACCESSDENIEDEX
/AWS1/CX_WSPINVPARAMVALUESEX
/AWS1/CX_WSPINVRESOURCESTATEEX
/AWS1/CX_WSPOPNOTSUPPORTEDEX
/AWS1/CX_WSPRESOURCENOTFOUNDEX
/AWS1/CX_WSPCLIENTEXC
/AWS1/CX_WSPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_directoryid TYPE /AWS1/WSPDIRECTORYID /AWS1/WSPDIRECTORYID¶
The identifier of the directory. If any WorkSpaces are registered to this directory, you must remove them before you deregister the directory, or you will receive an OperationNotSupportedException error.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wspderegworkspacedi01 /AWS1/CL_WSPDEREGWORKSPACEDI01¶
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->deregisterworkspacedirectory( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.