aws_sdk_elasticbeanstalk/client/
restart_app_server.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 [`RestartAppServer`](crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`environment_id(impl Into<String>)`](crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder::set_environment_id):<br>required: **false**<br><p>The ID of the environment to restart the server for.</p> <p>Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error.</p><br>
7    ///   - [`environment_name(impl Into<String>)`](crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder::set_environment_name):<br>required: **false**<br><p>The name of the environment to restart the server for.</p> <p>Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error.</p><br>
8    /// - On success, responds with [`RestartAppServerOutput`](crate::operation::restart_app_server::RestartAppServerOutput)
9    /// - On failure, responds with [`SdkError<RestartAppServerError>`](crate::operation::restart_app_server::RestartAppServerError)
10    pub fn restart_app_server(&self) -> crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder {
11        crate::operation::restart_app_server::builders::RestartAppServerFluentBuilder::new(self.handle.clone())
12    }
13}