Struct aws_sdk_ec2::operation::modify_private_dns_name_options::ModifyPrivateDnsNameOptionsInput
source · #[non_exhaustive]pub struct ModifyPrivateDnsNameOptionsInput {
pub dry_run: Option<bool>,
pub instance_id: Option<String>,
pub private_dns_hostname_type: Option<HostnameType>,
pub enable_resource_name_dns_a_record: Option<bool>,
pub enable_resource_name_dns_aaaa_record: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dry_run: Option<bool>
Checks 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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
instance_id: Option<String>
The ID of the instance.
private_dns_hostname_type: Option<HostnameType>
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
enable_resource_name_dns_a_record: Option<bool>
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
enable_resource_name_dns_aaaa_record: Option<bool>
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
Implementations§
source§impl ModifyPrivateDnsNameOptionsInput
impl ModifyPrivateDnsNameOptionsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks 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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn private_dns_hostname_type(&self) -> Option<&HostnameType>
pub fn private_dns_hostname_type(&self) -> Option<&HostnameType>
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
sourcepub fn enable_resource_name_dns_a_record(&self) -> Option<bool>
pub fn enable_resource_name_dns_a_record(&self) -> Option<bool>
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
sourcepub fn enable_resource_name_dns_aaaa_record(&self) -> Option<bool>
pub fn enable_resource_name_dns_aaaa_record(&self) -> Option<bool>
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
source§impl ModifyPrivateDnsNameOptionsInput
impl ModifyPrivateDnsNameOptionsInput
sourcepub fn builder() -> ModifyPrivateDnsNameOptionsInputBuilder
pub fn builder() -> ModifyPrivateDnsNameOptionsInputBuilder
Creates a new builder-style object to manufacture ModifyPrivateDnsNameOptionsInput
.
Trait Implementations§
source§impl Clone for ModifyPrivateDnsNameOptionsInput
impl Clone for ModifyPrivateDnsNameOptionsInput
source§fn clone(&self) -> ModifyPrivateDnsNameOptionsInput
fn clone(&self) -> ModifyPrivateDnsNameOptionsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ModifyPrivateDnsNameOptionsInput
impl PartialEq for ModifyPrivateDnsNameOptionsInput
source§fn eq(&self, other: &ModifyPrivateDnsNameOptionsInput) -> bool
fn eq(&self, other: &ModifyPrivateDnsNameOptionsInput) -> bool
self
and other
values to be equal, and is used
by ==
.