aws_sdk_workspaces/client/
stop_workspaces.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 [`StopWorkspaces`](crate::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stop_workspace_requests(StopRequest)`](crate::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder::stop_workspace_requests) / [`set_stop_workspace_requests(Option<Vec::<StopRequest>>)`](crate::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder::set_stop_workspace_requests):<br>required: **true**<br><p>The WorkSpaces to stop. You can specify up to 25 WorkSpaces.</p><br>
7    /// - On success, responds with [`StopWorkspacesOutput`](crate::operation::stop_workspaces::StopWorkspacesOutput) with field(s):
8    ///   - [`failed_requests(Option<Vec::<FailedWorkspaceChangeRequest>>)`](crate::operation::stop_workspaces::StopWorkspacesOutput::failed_requests): <p>Information about the WorkSpaces that could not be stopped.</p>
9    /// - On failure, responds with [`SdkError<StopWorkspacesError>`](crate::operation::stop_workspaces::StopWorkspacesError)
10    pub fn stop_workspaces(&self) -> crate::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder {
11        crate::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder::new(self.handle.clone())
12    }
13}