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 [`GetInstancePortStates`](crate::operation::get_instance_port_states::builders::GetInstancePortStatesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_name(impl Into<String>)`](crate::operation::get_instance_port_states::builders::GetInstancePortStatesFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::get_instance_port_states::builders::GetInstancePortStatesFluentBuilder::set_instance_name):<br>required: **true**<br><p>The name of the instance for which to return firewall port states.</p><br>
    /// - On success, responds with [`GetInstancePortStatesOutput`](crate::operation::get_instance_port_states::GetInstancePortStatesOutput) with field(s):
    ///   - [`port_states(Option<Vec::<InstancePortState>>)`](crate::operation::get_instance_port_states::GetInstancePortStatesOutput::port_states): <p>An array of objects that describe the firewall port states for the specified instance.</p>
    /// - On failure, responds with [`SdkError<GetInstancePortStatesError>`](crate::operation::get_instance_port_states::GetInstancePortStatesError)
    pub fn get_instance_port_states(&self) -> crate::operation::get_instance_port_states::builders::GetInstancePortStatesFluentBuilder {
        crate::operation::get_instance_port_states::builders::GetInstancePortStatesFluentBuilder::new(self.handle.clone())
    }
}