1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateWorkspaces`](crate::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workspaces(WorkspaceRequest)`](crate::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder::workspaces) / [`set_workspaces(Option<Vec::<WorkspaceRequest>>)`](crate::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder::set_workspaces):<br>required: **true**<br><p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p><br>
    /// - On success, responds with [`CreateWorkspacesOutput`](crate::operation::create_workspaces::CreateWorkspacesOutput) with field(s):
    ///   - [`failed_requests(Option<Vec::<FailedCreateWorkspaceRequest>>)`](crate::operation::create_workspaces::CreateWorkspacesOutput::failed_requests): <p>Information about the WorkSpaces that could not be created.</p>
    ///   - [`pending_requests(Option<Vec::<Workspace>>)`](crate::operation::create_workspaces::CreateWorkspacesOutput::pending_requests): <p>Information about the WorkSpaces that were created.</p>  <p>Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call <code>DescribeWorkspaces</code> before the WorkSpace is created, the information returned can be incomplete.</p>
    /// - On failure, responds with [`SdkError<CreateWorkspacesError>`](crate::operation::create_workspaces::CreateWorkspacesError)
    pub fn create_workspaces(&self) -> crate::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder {
        crate::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder::new(self.handle.clone())
    }
}