aws_sdk_ec2/client/enable_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 [`EnableIpamPolicy`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::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::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::ipam_policy_id) / [`set_ipam_policy_id(Option<String>)`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::set_ipam_policy_id):<br>required: **true**<br><p>The ID of the IPAM policy to enable.</p><br>
8 /// - [`organization_target_id(impl Into<String>)`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::organization_target_id) / [`set_organization_target_id(Option<String>)`](crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::set_organization_target_id):<br>required: **false**<br><p>The ID of the Amazon Web Services Organizations target for which to enable 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 apply to 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 [`EnableIpamPolicyOutput`](crate::operation::enable_ipam_policy::EnableIpamPolicyOutput) with field(s):
10 /// - [`ipam_policy_id(Option<String>)`](crate::operation::enable_ipam_policy::EnableIpamPolicyOutput::ipam_policy_id): <p>The ID of the IPAM policy that was enabled.</p>
11 /// - On failure, responds with [`SdkError<EnableIpamPolicyError>`](crate::operation::enable_ipam_policy::EnableIpamPolicyError)
12 pub fn enable_ipam_policy(&self) -> crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder {
13 crate::operation::enable_ipam_policy::builders::EnableIpamPolicyFluentBuilder::new(self.handle.clone())
14 }
15}