Smaws_Client_WorkSpaces.DeregisterWorkspaceDirectoryDeregisters 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `InvalidResourceStateException of Types.invalid_resource_state_exception
| `OperationNotSupportedException of Types.operation_not_supported_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.deregister_workspace_directory_request ->
(Types.deregister_workspace_directory_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `InvalidResourceStateException of Types.invalid_resource_state_exception
| `OperationNotSupportedException of
Types.operation_not_supported_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.deregister_workspace_directory_request ->
(Types.deregister_workspace_directory_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `InvalidResourceStateException of Types.invalid_resource_state_exception
| `OperationNotSupportedException of
Types.operation_not_supported_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result