aws_sdk_ec2/client/
release_hosts.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 [`ReleaseHosts`](crate::operation::release_hosts::builders::ReleaseHostsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`host_ids(impl Into<String>)`](crate::operation::release_hosts::builders::ReleaseHostsFluentBuilder::host_ids) / [`set_host_ids(Option<Vec::<String>>)`](crate::operation::release_hosts::builders::ReleaseHostsFluentBuilder::set_host_ids):<br>required: **true**<br><p>The IDs of the Dedicated Hosts to release.</p><br>
7    /// - On success, responds with [`ReleaseHostsOutput`](crate::operation::release_hosts::ReleaseHostsOutput) with field(s):
8    ///   - [`successful(Option<Vec::<String>>)`](crate::operation::release_hosts::ReleaseHostsOutput::successful): <p>The IDs of the Dedicated Hosts that were successfully released.</p>
9    ///   - [`unsuccessful(Option<Vec::<UnsuccessfulItem>>)`](crate::operation::release_hosts::ReleaseHostsOutput::unsuccessful): <p>The IDs of the Dedicated Hosts that could not be released, including an error message.</p>
10    /// - On failure, responds with [`SdkError<ReleaseHostsError>`](crate::operation::release_hosts::ReleaseHostsError)
11    pub fn release_hosts(&self) -> crate::operation::release_hosts::builders::ReleaseHostsFluentBuilder {
12        crate::operation::release_hosts::builders::ReleaseHostsFluentBuilder::new(self.handle.clone())
13    }
14}