aws_sdk_lightsail/client/
attach_static_ip.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 [`AttachStaticIp`](crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`static_ip_name(impl Into<String>)`](crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder::static_ip_name) / [`set_static_ip_name(Option<String>)`](crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder::set_static_ip_name):<br>required: **true**<br><p>The name of the static IP.</p><br>
7    ///   - [`instance_name(impl Into<String>)`](crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder::set_instance_name):<br>required: **true**<br><p>The instance name to which you want to attach the static IP address.</p><br>
8    /// - On success, responds with [`AttachStaticIpOutput`](crate::operation::attach_static_ip::AttachStaticIpOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::attach_static_ip::AttachStaticIpOutput::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>
10    /// - On failure, responds with [`SdkError<AttachStaticIpError>`](crate::operation::attach_static_ip::AttachStaticIpError)
11    pub fn attach_static_ip(&self) -> crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder {
12        crate::operation::attach_static_ip::builders::AttachStaticIpFluentBuilder::new(self.handle.clone())
13    }
14}