aws_sdk_lightsail/client/get_instance_state.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 [`GetInstanceState`](crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`instance_name(impl Into<String>)`](crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder::set_instance_name):<br>required: **true**<br><p>The name of the instance to get state information about.</p><br>
7 /// - On success, responds with [`GetInstanceStateOutput`](crate::operation::get_instance_state::GetInstanceStateOutput) with field(s):
8 /// - [`state(Option<InstanceState>)`](crate::operation::get_instance_state::GetInstanceStateOutput::state): <p>The state of the instance.</p>
9 /// - On failure, responds with [`SdkError<GetInstanceStateError>`](crate::operation::get_instance_state::GetInstanceStateError)
10 pub fn get_instance_state(&self) -> crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder {
11 crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder::new(self.handle.clone())
12 }
13}