#[non_exhaustive]pub struct AdditionalAttribute { /* private fields */ }
Expand description
Information about additional load balancer attributes.
Implementations§
source§impl AdditionalAttribute
impl AdditionalAttribute
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
The name of the attribute.
The following attribute is supported.
-
elb.http.desyncmitigationmode
- Determines how the load balancer handles requests that might pose a security risk to your application. The possible values aremonitor
,defensive
, andstrictest
. The default isdefensive
.
source§impl AdditionalAttribute
impl AdditionalAttribute
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AdditionalAttribute
.
Examples found in repository?
src/xml_deser.rs (line 2680)
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713
pub fn deser_structure_crate_model_additional_attribute(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalAttribute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalAttribute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.elasticloadbalancing#AdditionalAttribute$Key */ => {
let var_92 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_key(var_92);
}
,
s if s.matches("Value") /* Value com.amazonaws.elasticloadbalancing#AdditionalAttribute$Value */ => {
let var_93 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_value(var_93);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AdditionalAttribute
impl Clone for AdditionalAttribute
source§fn clone(&self) -> AdditionalAttribute
fn clone(&self) -> AdditionalAttribute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more