#[non_exhaustive]
pub struct LaunchTemplatePrivateDnsNameOptions { /* private fields */ }
Expand description

Describes the options for instance hostnames.

Implementations§

The type of hostname to assign to an instance.

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

Creates a new builder-style object to manufacture LaunchTemplatePrivateDnsNameOptions.

Examples found in repository?
src/xml_deser.rs (line 53482)
53477
53478
53479
53480
53481
53482
53483
53484
53485
53486
53487
53488
53489
53490
53491
53492
53493
53494
53495
53496
53497
53498
53499
53500
53501
53502
53503
53504
53505
53506
53507
53508
53509
53510
53511
53512
53513
53514
53515
53516
53517
53518
53519
53520
53521
53522
53523
53524
53525
53526
53527
53528
53529
53530
53531
53532
53533
pub fn deser_structure_crate_model_launch_template_private_dns_name_options(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LaunchTemplatePrivateDnsNameOptions, aws_smithy_xml::decode::XmlDecodeError>
{
    #[allow(unused_mut)]
    let mut builder = crate::model::LaunchTemplatePrivateDnsNameOptions::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("hostnameType") /* HostnameType com.amazonaws.ec2#LaunchTemplatePrivateDnsNameOptions$HostnameType */ =>  {
                let var_2560 =
                    Some(
                        Result::<crate::model::HostnameType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::HostnameType::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_hostname_type(var_2560);
            }
            ,
            s if s.matches("enableResourceNameDnsARecord") /* EnableResourceNameDnsARecord com.amazonaws.ec2#LaunchTemplatePrivateDnsNameOptions$EnableResourceNameDnsARecord */ =>  {
                let var_2561 =
                    Some(
                         {
                            <bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                            .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
                        }
                        ?
                    )
                ;
                builder = builder.set_enable_resource_name_dns_a_record(var_2561);
            }
            ,
            s if s.matches("enableResourceNameDnsAAAARecord") /* EnableResourceNameDnsAAAARecord com.amazonaws.ec2#LaunchTemplatePrivateDnsNameOptions$EnableResourceNameDnsAAAARecord */ =>  {
                let var_2562 =
                    Some(
                         {
                            <bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                            .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
                        }
                        ?
                    )
                ;
                builder = builder.set_enable_resource_name_dns_aaaa_record(var_2562);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more