Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.
The migration process recreates the WorkSpace by using a new root volume
from the target bundle image and the user volume from the last available
snapshot of the original WorkSpace. During migration, the original
D:\Users\%USERNAME%
user profile folder is renamed to
D:\Users\%USERNAME%MMddyyTHHmmss%.NotMigrated
. A new
D:\Users\%USERNAME%\
folder is generated by the new OS. Certain
files in the old user profile are moved to the new user profile.
For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace.
Synopsis
- data MigrateWorkspace = MigrateWorkspace' {}
- newMigrateWorkspace :: Text -> Text -> MigrateWorkspace
- migrateWorkspace_sourceWorkspaceId :: Lens' MigrateWorkspace Text
- migrateWorkspace_bundleId :: Lens' MigrateWorkspace Text
- data MigrateWorkspaceResponse = MigrateWorkspaceResponse' {}
- newMigrateWorkspaceResponse :: Int -> MigrateWorkspaceResponse
- migrateWorkspaceResponse_sourceWorkspaceId :: Lens' MigrateWorkspaceResponse (Maybe Text)
- migrateWorkspaceResponse_targetWorkspaceId :: Lens' MigrateWorkspaceResponse (Maybe Text)
- migrateWorkspaceResponse_httpStatus :: Lens' MigrateWorkspaceResponse Int
Creating a Request
data MigrateWorkspace Source #
See: newMigrateWorkspace
smart constructor.
MigrateWorkspace' | |
|
Instances
:: Text | |
-> Text | |
-> MigrateWorkspace |
Create a value of MigrateWorkspace
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sourceWorkspaceId:MigrateWorkspace'
, migrateWorkspace_sourceWorkspaceId
- The identifier of the WorkSpace to migrate from.
$sel:bundleId:MigrateWorkspace'
, migrateWorkspace_bundleId
- The identifier of the target bundle type to migrate the WorkSpace to.
Request Lenses
migrateWorkspace_sourceWorkspaceId :: Lens' MigrateWorkspace Text Source #
The identifier of the WorkSpace to migrate from.
migrateWorkspace_bundleId :: Lens' MigrateWorkspace Text Source #
The identifier of the target bundle type to migrate the WorkSpace to.
Destructuring the Response
data MigrateWorkspaceResponse Source #
See: newMigrateWorkspaceResponse
smart constructor.
MigrateWorkspaceResponse' | |
|
Instances
newMigrateWorkspaceResponse Source #
Create a value of MigrateWorkspaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sourceWorkspaceId:MigrateWorkspace'
, migrateWorkspaceResponse_sourceWorkspaceId
- The original identifier of the WorkSpace that is being migrated.
$sel:targetWorkspaceId:MigrateWorkspaceResponse'
, migrateWorkspaceResponse_targetWorkspaceId
- The new identifier of the WorkSpace that is being migrated. If the
migration does not succeed, the target WorkSpace ID will not be used,
and the WorkSpace will still have the original WorkSpace ID.
$sel:httpStatus:MigrateWorkspaceResponse'
, migrateWorkspaceResponse_httpStatus
- The response's http status code.
Response Lenses
migrateWorkspaceResponse_sourceWorkspaceId :: Lens' MigrateWorkspaceResponse (Maybe Text) Source #
The original identifier of the WorkSpace that is being migrated.
migrateWorkspaceResponse_targetWorkspaceId :: Lens' MigrateWorkspaceResponse (Maybe Text) Source #
The new identifier of the WorkSpace that is being migrated. If the migration does not succeed, the target WorkSpace ID will not be used, and the WorkSpace will still have the original WorkSpace ID.
migrateWorkspaceResponse_httpStatus :: Lens' MigrateWorkspaceResponse Int Source #
The response's http status code.