aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetInstanceState`](crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`GetInstanceStateOutput`](crate::operation::get_instance_state::GetInstanceStateOutput) with field(s):
    ///   - [`state(Option<InstanceState>)`](crate::operation::get_instance_state::GetInstanceStateOutput::state): <p>The state of the instance.</p>
    /// - On failure, responds with [`SdkError<GetInstanceStateError>`](crate::operation::get_instance_state::GetInstanceStateError)
    pub fn get_instance_state(&self) -> crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder {
        crate::operation::get_instance_state::builders::GetInstanceStateFluentBuilder::new(self.handle.clone())
    }
}