aws_sdk_workspaces/client/migrate_workspace.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`MigrateWorkspace`](crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`source_workspace_id(impl Into<String>)`](crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder::source_workspace_id) / [`set_source_workspace_id(Option<String>)`](crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder::set_source_workspace_id):<br>required: **true**<br><p>The identifier of the WorkSpace to migrate from.</p><br>
7 /// - [`bundle_id(impl Into<String>)`](crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder::bundle_id) / [`set_bundle_id(Option<String>)`](crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder::set_bundle_id):<br>required: **true**<br><p>The identifier of the target bundle type to migrate the WorkSpace to.</p><br>
8 /// - On success, responds with [`MigrateWorkspaceOutput`](crate::operation::migrate_workspace::MigrateWorkspaceOutput) with field(s):
9 /// - [`source_workspace_id(Option<String>)`](crate::operation::migrate_workspace::MigrateWorkspaceOutput::source_workspace_id): <p>The original identifier of the WorkSpace that is being migrated.</p>
10 /// - [`target_workspace_id(Option<String>)`](crate::operation::migrate_workspace::MigrateWorkspaceOutput::target_workspace_id): <p>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.</p>
11 /// - On failure, responds with [`SdkError<MigrateWorkspaceError>`](crate::operation::migrate_workspace::MigrateWorkspaceError)
12 pub fn migrate_workspace(&self) -> crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder {
13 crate::operation::migrate_workspace::builders::MigrateWorkspaceFluentBuilder::new(self.handle.clone())
14 }
15}