aws_sdk_lightsail/client/
allocate_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 [`AllocateStaticIp`](crate::operation::allocate_static_ip::builders::AllocateStaticIpFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`static_ip_name(impl Into<String>)`](crate::operation::allocate_static_ip::builders::AllocateStaticIpFluentBuilder::static_ip_name) / [`set_static_ip_name(Option<String>)`](crate::operation::allocate_static_ip::builders::AllocateStaticIpFluentBuilder::set_static_ip_name):<br>required: **true**<br><p>The name of the static IP address.</p><br>
7    /// - On success, responds with [`AllocateStaticIpOutput`](crate::operation::allocate_static_ip::AllocateStaticIpOutput) with field(s):
8    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::allocate_static_ip::AllocateStaticIpOutput::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<AllocateStaticIpError>`](crate::operation::allocate_static_ip::AllocateStaticIpError)
10    pub fn allocate_static_ip(&self) -> crate::operation::allocate_static_ip::builders::AllocateStaticIpFluentBuilder {
11        crate::operation::allocate_static_ip::builders::AllocateStaticIpFluentBuilder::new(self.handle.clone())
12    }
13}