aws_sdk_ec2/client/
delete_ipam_policy.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 [`DeleteIpamPolicy`](crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder::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_policy_id(impl Into<String>)`](crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder::ipam_policy_id) / [`set_ipam_policy_id(Option<String>)`](crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder::set_ipam_policy_id):<br>required: **true**<br><p>The ID of the IPAM policy to delete.</p><br>
8    /// - On success, responds with [`DeleteIpamPolicyOutput`](crate::operation::delete_ipam_policy::DeleteIpamPolicyOutput) with field(s):
9    ///   - [`ipam_policy(Option<IpamPolicy>)`](crate::operation::delete_ipam_policy::DeleteIpamPolicyOutput::ipam_policy): <p>Information about the deleted IPAM policy.</p> <p>An IPAM policy is a set of rules that define how public IPv4 addresses from IPAM pools are allocated to Amazon Web Services resources. Each rule maps an Amazon Web Services service to IPAM pools that the service will use to get IP addresses. A single policy can have multiple rules and be applied to multiple Amazon Web Services Regions. If the IPAM pool run out of addresses then the services fallback to Amazon-provided IP addresses. A policy can be applied to an individual Amazon Web Services account or an entity within Amazon Web Services Organizations.</p>
10    /// - On failure, responds with [`SdkError<DeleteIpamPolicyError>`](crate::operation::delete_ipam_policy::DeleteIpamPolicyError)
11    pub fn delete_ipam_policy(&self) -> crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder {
12        crate::operation::delete_ipam_policy::builders::DeleteIpamPolicyFluentBuilder::new(self.handle.clone())
13    }
14}