aws-sdk-route53resolver 1.111.0

AWS SDK for Amazon Route 53 Resolver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
// 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,
        })
    }
}