// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateResolverEndpointInput {
/// <p>The ID of the Resolver endpoint that you want to update.</p>
pub resolver_endpoint_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the Resolver endpoint that you want to update.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.</p>
/// <p>Updating to <code>IPV6</code> type isn't currently supported.</p>
pub resolver_endpoint_type: ::std::option::Option<crate::types::ResolverEndpointType>,
/// <p>Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.</p>
pub update_ip_addresses: ::std::option::Option<::std::vec::Vec<crate::types::UpdateIpAddress>>,
/// <p>The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.</p>
/// <p>For a default inbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 and DoH-FIPS in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>DoH-FIPS alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul>
/// <p>For a delegation inbound endpoint you can use Do53 only.</p>
/// <p>For an outbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul><important>
/// <p>You can't change the protocol of an inbound endpoint directly from only Do53 to only DoH, or DoH-FIPS. This is to prevent a sudden disruption to incoming traffic that relies on Do53. To change the protocol from Do53 to DoH, or DoH-FIPS, you must first enable both Do53 and DoH, or Do53 and DoH-FIPS, to make sure that all incoming traffic has transferred to using the DoH protocol, or DoH-FIPS, and then remove the Do53.</p>
/// </important>
pub protocols: ::std::option::Option<::std::vec::Vec<crate::types::Protocol>>,
/// <p>Updates whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub rni_enhanced_metrics_enabled: ::std::option::Option<bool>,
/// <p>Updates whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. This setting is not supported for inbound Resolver endpoints.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub target_name_server_metrics_enabled: ::std::option::Option<bool>,
/// <p>Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to <code>true</code>, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the <code>64:ff9b::/96</code> prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation.</p>
pub dns64_enabled: ::std::option::Option<bool>,
/// <p>Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to <code>true</code>, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway.</p><important>
/// <p>When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/userguide/security-group-connection-tracking.html">Amazon EC2 security group connection tracking</a> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-resolver-endpoint-scaling.html">Resolver endpoint scaling</a>.</p>
/// </important>
pub ipv6_internet_access_enabled: ::std::option::Option<bool>,
}
impl UpdateResolverEndpointInput {
/// <p>The ID of the Resolver endpoint that you want to update.</p>
pub fn resolver_endpoint_id(&self) -> ::std::option::Option<&str> {
self.resolver_endpoint_id.as_deref()
}
/// <p>The name of the Resolver endpoint that you want to update.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.</p>
/// <p>Updating to <code>IPV6</code> type isn't currently supported.</p>
pub fn resolver_endpoint_type(&self) -> ::std::option::Option<&crate::types::ResolverEndpointType> {
self.resolver_endpoint_type.as_ref()
}
/// <p>Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.update_ip_addresses.is_none()`.
pub fn update_ip_addresses(&self) -> &[crate::types::UpdateIpAddress] {
self.update_ip_addresses.as_deref().unwrap_or_default()
}
/// <p>The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.</p>
/// <p>For a default inbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 and DoH-FIPS in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>DoH-FIPS alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul>
/// <p>For a delegation inbound endpoint you can use Do53 only.</p>
/// <p>For an outbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul><important>
/// <p>You can't change the protocol of an inbound endpoint directly from only Do53 to only DoH, or DoH-FIPS. This is to prevent a sudden disruption to incoming traffic that relies on Do53. To change the protocol from Do53 to DoH, or DoH-FIPS, you must first enable both Do53 and DoH, or Do53 and DoH-FIPS, to make sure that all incoming traffic has transferred to using the DoH protocol, or DoH-FIPS, and then remove the Do53.</p>
/// </important>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.protocols.is_none()`.
pub fn protocols(&self) -> &[crate::types::Protocol] {
self.protocols.as_deref().unwrap_or_default()
}
/// <p>Updates whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn rni_enhanced_metrics_enabled(&self) -> ::std::option::Option<bool> {
self.rni_enhanced_metrics_enabled
}
/// <p>Updates whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. This setting is not supported for inbound Resolver endpoints.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn target_name_server_metrics_enabled(&self) -> ::std::option::Option<bool> {
self.target_name_server_metrics_enabled
}
/// <p>Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to <code>true</code>, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the <code>64:ff9b::/96</code> prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation.</p>
pub fn dns64_enabled(&self) -> ::std::option::Option<bool> {
self.dns64_enabled
}
/// <p>Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to <code>true</code>, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway.</p><important>
/// <p>When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/userguide/security-group-connection-tracking.html">Amazon EC2 security group connection tracking</a> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-resolver-endpoint-scaling.html">Resolver endpoint scaling</a>.</p>
/// </important>
pub fn ipv6_internet_access_enabled(&self) -> ::std::option::Option<bool> {
self.ipv6_internet_access_enabled
}
}
impl UpdateResolverEndpointInput {
/// Creates a new builder-style object to manufacture [`UpdateResolverEndpointInput`](crate::operation::update_resolver_endpoint::UpdateResolverEndpointInput).
pub fn builder() -> crate::operation::update_resolver_endpoint::builders::UpdateResolverEndpointInputBuilder {
crate::operation::update_resolver_endpoint::builders::UpdateResolverEndpointInputBuilder::default()
}
}
/// A builder for [`UpdateResolverEndpointInput`](crate::operation::update_resolver_endpoint::UpdateResolverEndpointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateResolverEndpointInputBuilder {
pub(crate) resolver_endpoint_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) resolver_endpoint_type: ::std::option::Option<crate::types::ResolverEndpointType>,
pub(crate) update_ip_addresses: ::std::option::Option<::std::vec::Vec<crate::types::UpdateIpAddress>>,
pub(crate) protocols: ::std::option::Option<::std::vec::Vec<crate::types::Protocol>>,
pub(crate) rni_enhanced_metrics_enabled: ::std::option::Option<bool>,
pub(crate) target_name_server_metrics_enabled: ::std::option::Option<bool>,
pub(crate) dns64_enabled: ::std::option::Option<bool>,
pub(crate) ipv6_internet_access_enabled: ::std::option::Option<bool>,
}
impl UpdateResolverEndpointInputBuilder {
/// <p>The ID of the Resolver endpoint that you want to update.</p>
/// This field is required.
pub fn resolver_endpoint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resolver_endpoint_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Resolver endpoint that you want to update.</p>
pub fn set_resolver_endpoint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resolver_endpoint_id = input;
self
}
/// <p>The ID of the Resolver endpoint that you want to update.</p>
pub fn get_resolver_endpoint_id(&self) -> &::std::option::Option<::std::string::String> {
&self.resolver_endpoint_id
}
/// <p>The name of the Resolver endpoint that you want to update.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the Resolver endpoint that you want to update.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the Resolver endpoint that you want to update.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.</p>
/// <p>Updating to <code>IPV6</code> type isn't currently supported.</p>
pub fn resolver_endpoint_type(mut self, input: crate::types::ResolverEndpointType) -> Self {
self.resolver_endpoint_type = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.</p>
/// <p>Updating to <code>IPV6</code> type isn't currently supported.</p>
pub fn set_resolver_endpoint_type(mut self, input: ::std::option::Option<crate::types::ResolverEndpointType>) -> Self {
self.resolver_endpoint_type = input;
self
}
/// <p>Specifies the endpoint type for what type of IP address the endpoint uses to forward DNS queries.</p>
/// <p>Updating to <code>IPV6</code> type isn't currently supported.</p>
pub fn get_resolver_endpoint_type(&self) -> &::std::option::Option<crate::types::ResolverEndpointType> {
&self.resolver_endpoint_type
}
/// Appends an item to `update_ip_addresses`.
///
/// To override the contents of this collection use [`set_update_ip_addresses`](Self::set_update_ip_addresses).
///
/// <p>Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.</p>
pub fn update_ip_addresses(mut self, input: crate::types::UpdateIpAddress) -> Self {
let mut v = self.update_ip_addresses.unwrap_or_default();
v.push(input);
self.update_ip_addresses = ::std::option::Option::Some(v);
self
}
/// <p>Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.</p>
pub fn set_update_ip_addresses(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UpdateIpAddress>>) -> Self {
self.update_ip_addresses = input;
self
}
/// <p>Specifies the IPv6 address when you update the Resolver endpoint from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet.</p>
pub fn get_update_ip_addresses(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UpdateIpAddress>> {
&self.update_ip_addresses
}
/// Appends an item to `protocols`.
///
/// To override the contents of this collection use [`set_protocols`](Self::set_protocols).
///
/// <p>The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.</p>
/// <p>For a default inbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 and DoH-FIPS in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>DoH-FIPS alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul>
/// <p>For a delegation inbound endpoint you can use Do53 only.</p>
/// <p>For an outbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul><important>
/// <p>You can't change the protocol of an inbound endpoint directly from only Do53 to only DoH, or DoH-FIPS. This is to prevent a sudden disruption to incoming traffic that relies on Do53. To change the protocol from Do53 to DoH, or DoH-FIPS, you must first enable both Do53 and DoH, or Do53 and DoH-FIPS, to make sure that all incoming traffic has transferred to using the DoH protocol, or DoH-FIPS, and then remove the Do53.</p>
/// </important>
pub fn protocols(mut self, input: crate::types::Protocol) -> Self {
let mut v = self.protocols.unwrap_or_default();
v.push(input);
self.protocols = ::std::option::Option::Some(v);
self
}
/// <p>The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.</p>
/// <p>For a default inbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 and DoH-FIPS in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>DoH-FIPS alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul>
/// <p>For a delegation inbound endpoint you can use Do53 only.</p>
/// <p>For an outbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul><important>
/// <p>You can't change the protocol of an inbound endpoint directly from only Do53 to only DoH, or DoH-FIPS. This is to prevent a sudden disruption to incoming traffic that relies on Do53. To change the protocol from Do53 to DoH, or DoH-FIPS, you must first enable both Do53 and DoH, or Do53 and DoH-FIPS, to make sure that all incoming traffic has transferred to using the DoH protocol, or DoH-FIPS, and then remove the Do53.</p>
/// </important>
pub fn set_protocols(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Protocol>>) -> Self {
self.protocols = input;
self
}
/// <p>The protocols you want to use for the endpoint. DoH-FIPS is applicable for default inbound endpoints only.</p>
/// <p>For a default inbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 and DoH-FIPS in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>DoH-FIPS alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul>
/// <p>For a delegation inbound endpoint you can use Do53 only.</p>
/// <p>For an outbound endpoint you can apply the protocols as follows:</p>
/// <ul>
/// <li>
/// <p>Do53 and DoH in combination.</p></li>
/// <li>
/// <p>Do53 alone.</p></li>
/// <li>
/// <p>DoH alone.</p></li>
/// <li>
/// <p>None, which is treated as Do53.</p></li>
/// </ul><important>
/// <p>You can't change the protocol of an inbound endpoint directly from only Do53 to only DoH, or DoH-FIPS. This is to prevent a sudden disruption to incoming traffic that relies on Do53. To change the protocol from Do53 to DoH, or DoH-FIPS, you must first enable both Do53 and DoH, or Do53 and DoH-FIPS, to make sure that all incoming traffic has transferred to using the DoH protocol, or DoH-FIPS, and then remove the Do53.</p>
/// </important>
pub fn get_protocols(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Protocol>> {
&self.protocols
}
/// <p>Updates whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn rni_enhanced_metrics_enabled(mut self, input: bool) -> Self {
self.rni_enhanced_metrics_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Updates whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn set_rni_enhanced_metrics_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.rni_enhanced_metrics_enabled = input;
self
}
/// <p>Updates whether RNI enhanced metrics are enabled for the Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each RNI associated with this endpoint. When set to false, metrics are not published.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint RNI enhanced metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn get_rni_enhanced_metrics_enabled(&self) -> &::std::option::Option<bool> {
&self.rni_enhanced_metrics_enabled
}
/// <p>Updates whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. This setting is not supported for inbound Resolver endpoints.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn target_name_server_metrics_enabled(mut self, input: bool) -> Self {
self.target_name_server_metrics_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Updates whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. This setting is not supported for inbound Resolver endpoints.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn set_target_name_server_metrics_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.target_name_server_metrics_enabled = input;
self
}
/// <p>Updates whether target name server metrics are enabled for the outbound Resolver endpoints. When set to true, one-minute granular metrics are published in CloudWatch for each target name server associated with this endpoint. When set to false, metrics are not published. This setting is not supported for inbound Resolver endpoints.</p><note>
/// <p>Standard CloudWatch pricing and charges are applied for using the Route 53 Resolver endpoint target name server metrics. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/monitoring-resolver-with-cloudwatch.html">Detailed metrics</a>.</p>
/// </note>
pub fn get_target_name_server_metrics_enabled(&self) -> &::std::option::Option<bool> {
&self.target_name_server_metrics_enabled
}
/// <p>Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to <code>true</code>, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the <code>64:ff9b::/96</code> prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation.</p>
pub fn dns64_enabled(mut self, input: bool) -> Self {
self.dns64_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to <code>true</code>, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the <code>64:ff9b::/96</code> prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation.</p>
pub fn set_dns64_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.dns64_enabled = input;
self
}
/// <p>Specifies whether DNS64 is enabled for the inbound Resolver endpoint. When set to <code>true</code>, Route 53 Resolver synthesizes AAAA (IPv6) records for IPv4-only services by prepending the <code>64:ff9b::/96</code> prefix to the IPv4 address. This enables IPv6-only clients that send queries through the inbound endpoint to reach IPv4-only services. DNS64 works with NAT64 to provide complete IPv6-to-IPv4 translation.</p>
pub fn get_dns64_enabled(&self) -> &::std::option::Option<bool> {
&self.dns64_enabled
}
/// <p>Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to <code>true</code>, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway.</p><important>
/// <p>When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/userguide/security-group-connection-tracking.html">Amazon EC2 security group connection tracking</a> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-resolver-endpoint-scaling.html">Resolver endpoint scaling</a>.</p>
/// </important>
pub fn ipv6_internet_access_enabled(mut self, input: bool) -> Self {
self.ipv6_internet_access_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to <code>true</code>, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway.</p><important>
/// <p>When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/userguide/security-group-connection-tracking.html">Amazon EC2 security group connection tracking</a> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-resolver-endpoint-scaling.html">Resolver endpoint scaling</a>.</p>
/// </important>
pub fn set_ipv6_internet_access_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.ipv6_internet_access_enabled = input;
self
}
/// <p>Specifies whether IPv6 internet access is enabled for the outbound Resolver endpoint. When set to <code>true</code>, the endpoint elastic network interfaces (ENIs) can forward DNS queries to public IPv6 targets through an internet gateway.</p><important>
/// <p>When you enable IPv6 internet access, use network controls like security groups, NACLs, or egress-only internet gateways to protect the endpoint ENIs from unsolicited ingress traffic. Be aware that some network controls can affect DNS query throughput due to connection tracking. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/userguide/security-group-connection-tracking.html">Amazon EC2 security group connection tracking</a> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-resolver-endpoint-scaling.html">Resolver endpoint scaling</a>.</p>
/// </important>
pub fn get_ipv6_internet_access_enabled(&self) -> &::std::option::Option<bool> {
&self.ipv6_internet_access_enabled
}
/// Consumes the builder and constructs a [`UpdateResolverEndpointInput`](crate::operation::update_resolver_endpoint::UpdateResolverEndpointInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_resolver_endpoint::UpdateResolverEndpointInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_resolver_endpoint::UpdateResolverEndpointInput {
resolver_endpoint_id: self.resolver_endpoint_id,
name: self.name,
resolver_endpoint_type: self.resolver_endpoint_type,
update_ip_addresses: self.update_ip_addresses,
protocols: self.protocols,
rni_enhanced_metrics_enabled: self.rni_enhanced_metrics_enabled,
target_name_server_metrics_enabled: self.target_name_server_metrics_enabled,
dns64_enabled: self.dns64_enabled,
ipv6_internet_access_enabled: self.ipv6_internet_access_enabled,
})
}
}