aws_sdk_lightsail/client/
reboot_instance.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 [`RebootInstance`](crate::operation::reboot_instance::builders::RebootInstanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_name(impl Into<String>)`](crate::operation::reboot_instance::builders::RebootInstanceFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::reboot_instance::builders::RebootInstanceFluentBuilder::set_instance_name):<br>required: **true**<br><p>The name of the instance to reboot.</p><br>
7    /// - On success, responds with [`RebootInstanceOutput`](crate::operation::reboot_instance::RebootInstanceOutput) with field(s):
8    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::reboot_instance::RebootInstanceOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
9    /// - On failure, responds with [`SdkError<RebootInstanceError>`](crate::operation::reboot_instance::RebootInstanceError)
10    pub fn reboot_instance(&self) -> crate::operation::reboot_instance::builders::RebootInstanceFluentBuilder {
11        crate::operation::reboot_instance::builders::RebootInstanceFluentBuilder::new(self.handle.clone())
12    }
13}