aws_sdk_ec2/client/create_ipam_prefix_list_resolver.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 [`CreateIpamPrefixListResolver`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::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::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::ipam_id) / [`set_ipam_id(Option<String>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_ipam_id):<br>required: **true**<br><p>The ID of the IPAM that will serve as the source of the IP address database for CIDR selection. The IPAM must be in the Advanced tier to use this feature.</p><br>
8 /// - [`description(impl Into<String>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_description):<br>required: **false**<br><p>A description for the IPAM prefix list resolver to help you identify its purpose and configuration.</p><br>
9 /// - [`address_family(AddressFamily)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::address_family) / [`set_address_family(Option<AddressFamily>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_address_family):<br>required: **true**<br><p>The address family for the IPAM prefix list resolver. Valid values are <code>ipv4</code> and <code>ipv6</code>. You must create separate resolvers for IPv4 and IPv6 CIDRs as they cannot be mixed in the same resolver.</p><br>
10 /// - [`rules(IpamPrefixListResolverRuleRequest)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::rules) / [`set_rules(Option<Vec::<IpamPrefixListResolverRuleRequest>>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_rules):<br>required: **false**<br><p>The CIDR selection rules for the resolver.</p> <p>CIDR selection rules define the business logic for selecting CIDRs from IPAM. If a CIDR matches any of the rules, it will be included. If a rule has multiple conditions, the CIDR has to match every condition of that rule. You can create a prefix list resolver without any CIDR selection rules, but it will generate empty versions (containing no CIDRs) until you add rules.</p><br>
11 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to apply to the IPAM prefix list resolver during creation. Tags help you organize and manage your Amazon Web Services resources.</p><br>
12 /// - [`client_token(impl Into<String>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p><br>
13 /// - On success, responds with [`CreateIpamPrefixListResolverOutput`](crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverOutput) with field(s):
14 /// - [`ipam_prefix_list_resolver(Option<IpamPrefixListResolver>)`](crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverOutput::ipam_prefix_list_resolver): <p>Information about the IPAM prefix list resolver that was created.</p>
15 /// - On failure, responds with [`SdkError<CreateIpamPrefixListResolverError>`](crate::operation::create_ipam_prefix_list_resolver::CreateIpamPrefixListResolverError)
16 pub fn create_ipam_prefix_list_resolver(
17 &self,
18 ) -> crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder {
19 crate::operation::create_ipam_prefix_list_resolver::builders::CreateIpamPrefixListResolverFluentBuilder::new(self.handle.clone())
20 }
21}