aws_sdk_ec2/client/
modify_ipam.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 [`ModifyIpam`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::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_id(impl Into<String>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::ipam_id) / [`set_ipam_id(Option<String>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_ipam_id):<br>required: **true**<br><p>The ID of the IPAM you want to modify.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_description):<br>required: **false**<br><p>The description of the IPAM you want to modify.</p><br>
9    ///   - [`add_operating_regions(AddIpamOperatingRegion)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::add_operating_regions) / [`set_add_operating_regions(Option<Vec::<AddIpamOperatingRegion>>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_add_operating_regions):<br>required: **false**<br><p>Choose the operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.</p> <p>For more information about operating Regions, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html">Create an IPAM</a> in the <i>Amazon VPC IPAM User Guide</i>.</p><br>
10    ///   - [`remove_operating_regions(RemoveIpamOperatingRegion)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::remove_operating_regions) / [`set_remove_operating_regions(Option<Vec::<RemoveIpamOperatingRegion>>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_remove_operating_regions):<br>required: **false**<br><p>The operating Regions to remove.</p><br>
11    ///   - [`tier(IpamTier)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::tier) / [`set_tier(Option<IpamTier>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_tier):<br>required: **false**<br><p>IPAM is offered in a Free Tier and an Advanced Tier. For more information about the features available in each tier and the costs associated with the tiers, see <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing &gt; IPAM tab</a>.</p><br>
12    ///   - [`enable_private_gua(bool)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::enable_private_gua) / [`set_enable_private_gua(Option<bool>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_enable_private_gua):<br>required: **false**<br><p>Enable this option to use your own GUA ranges as private IPv6 addresses. This option is disabled by default.</p><br>
13    ///   - [`metered_account(IpamMeteredAccount)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::metered_account) / [`set_metered_account(Option<IpamMeteredAccount>)`](crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::set_metered_account):<br>required: **false**<br><p>A metered account is an Amazon Web Services account that is charged for active IP addresses managed in IPAM. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/ipam/ipam-enable-cost-distro.html">Enable cost distribution</a> in the <i>Amazon VPC IPAM User Guide</i>.</p> <p>Possible values:</p> <ul>  <li>   <p><code>ipam-owner</code> (default): The Amazon Web Services account which owns the IPAM is charged for all active IP addresses managed in IPAM.</p></li>  <li>   <p><code>resource-owner</code>: The Amazon Web Services account that owns the IP address is charged for the active IP address.</p></li> </ul><br>
14    /// - On success, responds with [`ModifyIpamOutput`](crate::operation::modify_ipam::ModifyIpamOutput) with field(s):
15    ///   - [`ipam(Option<Ipam>)`](crate::operation::modify_ipam::ModifyIpamOutput::ipam): <p>The results of the modification.</p>
16    /// - On failure, responds with [`SdkError<ModifyIpamError>`](crate::operation::modify_ipam::ModifyIpamError)
17    pub fn modify_ipam(&self) -> crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder {
18        crate::operation::modify_ipam::builders::ModifyIpamFluentBuilder::new(self.handle.clone())
19    }
20}