aws_sdk_cloudfront/client/create_anycast_ip_list.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 [`CreateAnycastIpList`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::set_name):<br>required: **true**<br><p>Name of the Anycast static IP list.</p><br>
7 /// - [`ip_count(i32)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::ip_count) / [`set_ip_count(Option<i32>)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::set_ip_count):<br>required: **true**<br><p>The number of static IP addresses that are allocated to the Anycast static IP list. Valid values: 21 or 3.</p><br>
8 /// - [`tags(Tags)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::tags) / [`set_tags(Option<Tags>)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::set_tags):<br>required: **false**<br><p>A complex type that contains zero or more <code>Tag</code> elements.</p><br>
9 /// - [`ip_address_type(IpAddressType)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::ip_address_type) / [`set_ip_address_type(Option<IpAddressType>)`](crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::set_ip_address_type):<br>required: **false**<br><p>The IP address type for the Anycast static IP list. You can specify one of the following options:</p> <ul> <li> <p><code>ipv4</code> - Allocate a list of only IPv4 addresses</p></li> <li> <p><code>ipv6</code> - Allocate a list of only IPv4 addresses</p></li> <li> <p><code>dualstack</code> - Allocate a list of both IPv4 and IPv6 addresses</p></li> </ul><br>
10 /// - On success, responds with [`CreateAnycastIpListOutput`](crate::operation::create_anycast_ip_list::CreateAnycastIpListOutput) with field(s):
11 /// - [`anycast_ip_list(Option<AnycastIpList>)`](crate::operation::create_anycast_ip_list::CreateAnycastIpListOutput::anycast_ip_list): <p>A response structure that includes the version identifier (ETag) and the created <code>AnycastIpList</code> structure.</p>
12 /// - [`e_tag(Option<String>)`](crate::operation::create_anycast_ip_list::CreateAnycastIpListOutput::e_tag): <p>The version identifier for the current version of the Anycast static IP list.</p>
13 /// - On failure, responds with [`SdkError<CreateAnycastIpListError>`](crate::operation::create_anycast_ip_list::CreateAnycastIpListError)
14 pub fn create_anycast_ip_list(&self) -> crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder {
15 crate::operation::create_anycast_ip_list::builders::CreateAnycastIpListFluentBuilder::new(self.handle.clone())
16 }
17}