aws_sdk_ec2/client/delete_ipam_pool.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 [`DeleteIpamPool`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::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::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::ipam_pool_id) / [`set_ipam_pool_id(Option<String>)`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::set_ipam_pool_id):<br>required: **true**<br><p>The ID of the pool to delete.</p><br>
8 /// - [`cascade(bool)`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::cascade) / [`set_cascade(Option<bool>)`](crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::set_cascade):<br>required: **false**<br><p>Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.</p><important> <p>You can only use this option to delete pools in the private scope or pools in the public scope with a source resource. A source resource is a resource used to provision CIDRs to a resource planning pool.</p> </important><br>
9 /// - On success, responds with [`DeleteIpamPoolOutput`](crate::operation::delete_ipam_pool::DeleteIpamPoolOutput) with field(s):
10 /// - [`ipam_pool(Option<IpamPool>)`](crate::operation::delete_ipam_pool::DeleteIpamPoolOutput::ipam_pool): <p>Information about the results of the deletion.</p>
11 /// - On failure, responds with [`SdkError<DeleteIpamPoolError>`](crate::operation::delete_ipam_pool::DeleteIpamPoolError)
12 pub fn delete_ipam_pool(&self) -> crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder {
13 crate::operation::delete_ipam_pool::builders::DeleteIpamPoolFluentBuilder::new(self.handle.clone())
14 }
15}