aws_sdk_ec2/client/get_enabled_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 [`GetEnabledIpamPolicy`](crate::operation::get_enabled_ipam_policy::builders::GetEnabledIpamPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::get_enabled_ipam_policy::builders::GetEnabledIpamPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_enabled_ipam_policy::builders::GetEnabledIpamPolicyFluentBuilder::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 /// - On success, responds with [`GetEnabledIpamPolicyOutput`](crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyOutput) with field(s):
8 /// - [`ipam_policy_enabled(Option<bool>)`](crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyOutput::ipam_policy_enabled): <p>Indicates whether the IPAM policy is enabled.</p>
9 /// - [`ipam_policy_id(Option<String>)`](crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyOutput::ipam_policy_id): <p>The ID of the enabled IPAM policy.</p>
10 /// - [`managed_by(Option<IpamPolicyManagedBy>)`](crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyOutput::managed_by): <p>The entity that manages the IPAM policy.</p>
11 /// - On failure, responds with [`SdkError<GetEnabledIpamPolicyError>`](crate::operation::get_enabled_ipam_policy::GetEnabledIpamPolicyError)
12 pub fn get_enabled_ipam_policy(&self) -> crate::operation::get_enabled_ipam_policy::builders::GetEnabledIpamPolicyFluentBuilder {
13 crate::operation::get_enabled_ipam_policy::builders::GetEnabledIpamPolicyFluentBuilder::new(self.handle.clone())
14 }
15}