aws_sdk_ec2/client/release_ipam_pool_allocation.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 [`ReleaseIpamPoolAllocation`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::set_dry_run):<br>required: **false**<br><p>A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7 /// - [`ipam_pool_id(impl Into<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::ipam_pool_id) / [`set_ipam_pool_id(Option<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::set_ipam_pool_id):<br>required: **true**<br><p>The ID of the IPAM pool which contains the allocation you want to release.</p><br>
8 /// - [`cidr(impl Into<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::cidr) / [`set_cidr(Option<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::set_cidr):<br>required: **true**<br><p>The CIDR of the allocation you want to release.</p><br>
9 /// - [`ipam_pool_allocation_id(impl Into<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::ipam_pool_allocation_id) / [`set_ipam_pool_allocation_id(Option<String>)`](crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::set_ipam_pool_allocation_id):<br>required: **true**<br><p>The ID of the allocation.</p><br>
10 /// - On success, responds with [`ReleaseIpamPoolAllocationOutput`](crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationOutput) with field(s):
11 /// - [`success(Option<bool>)`](crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationOutput::success): <p>Indicates if the release was successful.</p>
12 /// - On failure, responds with [`SdkError<ReleaseIpamPoolAllocationError>`](crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError)
13 pub fn release_ipam_pool_allocation(&self) -> crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder {
14 crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationFluentBuilder::new(self.handle.clone())
15 }
16}