Amazon.DirectoryService.AmazonDirectoryServiceClient.RestoreFromSnapshot C# (CSharp) Method

RestoreFromSnapshot() public method

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.

/// A client exception has occurred. /// /// The specified entity could not be found. /// /// One or more parameters are not valid. /// /// An exception has occurred in AWS Directory Service. ///
public RestoreFromSnapshot ( Amazon.DirectoryService.Model.RestoreFromSnapshotRequest request ) : RestoreFromSnapshotResponse
request Amazon.DirectoryService.Model.RestoreFromSnapshotRequest Container for the necessary parameters to execute the RestoreFromSnapshot service method.
return RestoreFromSnapshotResponse
        public RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request)
        {
            var marshaller = new RestoreFromSnapshotRequestMarshaller();
            var unmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance;

            return Invoke<RestoreFromSnapshotRequest,RestoreFromSnapshotResponse>(request, marshaller, unmarshaller);
        }
AmazonDirectoryServiceClient