Smaws_Client_DirectoryService.RestoreFromSnapshot
Restores a directory using an existing directory snapshot.
When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.
This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories
operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active
, the restore operation is complete.
val request :
Smaws_Lib.Context.t ->
Types.restore_from_snapshot_request ->
(Types.restore_from_snapshot_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `ClientException of Types.client_exception
| `EntityDoesNotExistException of Types.entity_does_not_exist_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServiceException of Types.service_exception ])
Stdlib.result