aws_sdk_ec2/client/disable_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 [`DisableIpamPolicy`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::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::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::ipam_policy_id) / [`set_ipam_policy_id(Option<String>)`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::set_ipam_policy_id):<br>required: **true**<br><p>The ID of the IPAM policy to disable.</p><br>
8 /// - [`organization_target_id(impl Into<String>)`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::organization_target_id) / [`set_organization_target_id(Option<String>)`](crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::set_organization_target_id):<br>required: **false**<br><p>The ID of the Amazon Web Services Organizations target for which to disable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will be disabled for the current account.</p> <p>A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied.</p><br>
9 /// - On success, responds with [`DisableIpamPolicyOutput`](crate::operation::disable_ipam_policy::DisableIpamPolicyOutput) with field(s):
10 /// - [`r#return(Option<bool>)`](crate::operation::disable_ipam_policy::DisableIpamPolicyOutput::return): <p>Returns true if the IPAM policy was successfully disabled.</p>
11 /// - On failure, responds with [`SdkError<DisableIpamPolicyError>`](crate::operation::disable_ipam_policy::DisableIpamPolicyError)
12 pub fn disable_ipam_policy(&self) -> crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder {
13 crate::operation::disable_ipam_policy::builders::DisableIpamPolicyFluentBuilder::new(self.handle.clone())
14 }
15}