// RestoreFromSnapshotRequest returns a request value for making API operation for
// AWS Directory Service.
//
// 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.
//
//    // Example sending a request using the RestoreFromSnapshotRequest method.
//    req := client.RestoreFromSnapshotRequest(params)
//    resp, err := req.Send()
//    if err == nil {
//        fmt.Println(resp)
//    }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot
RestoreFromSnapshotRequest returns a request value for making API operation for
AWS Directory Service.

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.

Example sending a request using the RestoreFromSnapshotRequest method.
req := client.RestoreFromSnapshotRequest(params)
resp, err := req.Send()
if err == nil {
fmt.Println(resp)
}


// RestoreFromSnapshotRequest returns a request value for making API operation for // AWS Directory Service . // // 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 . // // // Example sending a request using the RestoreFromSnapshotRequest method . // req : = client . RestoreFromSnapshotRequest ( params ) // resp err : = req . Send () // if err == nil { // fmt . Println ( resp ) // } // // Please also see https : // docs . aws . amazon . com / goto / WebAPI / ds - 2015 - 04 - 16 / RestoreFromSnapshot
func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) RestoreFromSnapshotRequest {
	op := &aws.Operation{
		Name:       opRestoreFromSnapshot,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &RestoreFromSnapshotInput{}
	}
	output := &RestoreFromSnapshotOutput{}
	req := c.newRequest(op, input, output)
	output.responseMetadata = aws.Response{Request: req}
	return RestoreFromSnapshotRequest{Request: req, Input: input, Copy: c.RestoreFromSnapshotRequest}
}
func ( c * DirectoryService ) RestoreFromSnapshotRequest ( input * RestoreFromSnapshotInput ) RestoreFromSnapshotRequest { op := & aws . Operation { Name : opRestoreFromSnapshot , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & RestoreFromSnapshotInput { } } output := & RestoreFromSnapshotOutput { } req := c . newRequest ( op , input , output ) output . responseMetadata = aws . Response { Request : req } return RestoreFromSnapshotRequest { Request : req , Input : input , Copy : c . RestoreFromSnapshotRequest } }
RestoreFromSnapshotRequest returns a request value for making API operation for
AWS Directory Service.
RestoreFromSnapshotRequest returns a request value for making API operation for AWS Directory Service .