#[non_exhaustive]pub struct ModifyPrivateDnsNameOptionsInput { /* private fields */ }
Implementations§
source§impl ModifyPrivateDnsNameOptionsInput
impl ModifyPrivateDnsNameOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyPrivateDnsNameOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyPrivateDnsNameOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyPrivateDnsNameOptions
>
Examples found in repository?
66964 66965 66966 66967 66968 66969 66970 66971 66972 66973 66974 66975 66976 66977 66978 66979 66980 66981 66982 66983 66984 66985 66986 66987 66988 66989 66990 66991 66992 66993 66994 66995 66996 66997 66998 66999 67000 67001 67002 67003 67004 67005 67006
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyPrivateDnsNameOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyPrivateDnsNameOptionsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifyPrivateDnsNameOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyPrivateDnsNameOptionsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyPrivateDnsNameOptionsInput
.
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.
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 more