aws_sdk_ec2/client/modify_ipam_policy_allocation_rules.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 [`ModifyIpamPolicyAllocationRules`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::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::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::ipam_policy_id) / [`set_ipam_policy_id(Option<String>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::set_ipam_policy_id):<br>required: **true**<br><p>The ID of the IPAM policy whose allocation rules you want to modify.</p><br>
8 /// - [`locale(impl Into<String>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::locale) / [`set_locale(Option<String>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::set_locale):<br>required: **true**<br><p>The locale for which to modify the allocation rules.</p><br>
9 /// - [`resource_type(IpamPolicyResourceType)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::resource_type) / [`set_resource_type(Option<IpamPolicyResourceType>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::set_resource_type):<br>required: **true**<br><p>The resource type for which to modify the allocation rules.</p> <p>The Amazon Web Services service or resource type that can use IP addresses through IPAM policies. Supported services and resource types include:</p> <ul> <li> <p>Elastic IP addresses</p></li> </ul><br>
10 /// - [`allocation_rules(IpamPolicyAllocationRuleRequest)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::allocation_rules) / [`set_allocation_rules(Option<Vec::<IpamPolicyAllocationRuleRequest>>)`](crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::set_allocation_rules):<br>required: **false**<br><p>The new allocation rules to apply to the IPAM policy.</p> <p>Allocation rules are optional configurations within an IPAM policy that map Amazon Web Services resource types to specific IPAM pools. If no rules are defined, the resource types default to using Amazon-provided IP addresses.</p><br>
11 /// - On success, responds with [`ModifyIpamPolicyAllocationRulesOutput`](crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesOutput) with field(s):
12 /// - [`ipam_policy_document(Option<IpamPolicyDocument>)`](crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesOutput::ipam_policy_document): <p>The modified IPAM policy containing the updated allocation rules.</p>
13 /// - On failure, responds with [`SdkError<ModifyIpamPolicyAllocationRulesError>`](crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesError)
14 pub fn modify_ipam_policy_allocation_rules(
15 &self,
16 ) -> crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder {
17 crate::operation::modify_ipam_policy_allocation_rules::builders::ModifyIpamPolicyAllocationRulesFluentBuilder::new(self.handle.clone())
18 }
19}