aws_sdk_ec2/client/
modify_public_ip_dns_name_options.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 [`ModifyPublicIpDnsNameOptions`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_interface_id(impl Into<String>)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::network_interface_id) / [`set_network_interface_id(Option<String>)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::set_network_interface_id):<br>required: **true**<br><p>A network interface ID.</p><br>
7    ///   - [`hostname_type(PublicIpDnsOption)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::hostname_type) / [`set_hostname_type(Option<PublicIpDnsOption>)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::set_hostname_type):<br>required: **true**<br><p>The public hostname type. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html">EC2 instance hostnames, DNS names, and domains</a> in the <i>Amazon EC2 User Guide</i>.</p> <ul>  <li>   <p><code>public-dual-stack-dns-name</code>: A dual-stack public hostname for a network interface. Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.</p></li>  <li>   <p><code>public-ipv4-dns-name</code>: An IPv4-enabled public hostname for a network interface. Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.</p></li>  <li>   <p><code>public-ipv6-dns-name</code>: An IPv6-enabled public hostname for a network interface. Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.</p></li> </ul><br>
8    ///   - [`dry_run(bool)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the operation, 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>
9    /// - On success, responds with [`ModifyPublicIpDnsNameOptionsOutput`](crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsOutput) with field(s):
10    ///   - [`successful(Option<bool>)`](crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsOutput::successful): <p>Whether or not the request was successful.</p>
11    /// - On failure, responds with [`SdkError<ModifyPublicIpDnsNameOptionsError>`](crate::operation::modify_public_ip_dns_name_options::ModifyPublicIpDnsNameOptionsError)
12    pub fn modify_public_ip_dns_name_options(
13        &self,
14    ) -> crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder {
15        crate::operation::modify_public_ip_dns_name_options::builders::ModifyPublicIpDnsNameOptionsFluentBuilder::new(self.handle.clone())
16    }
17}