Struct aws_sdk_elasticache::model::Parameter
source · #[non_exhaustive]pub struct Parameter { /* private fields */ }
Expand description
Describes an individual setting that controls some aspect of ElastiCache behavior.
Implementations§
source§impl Parameter
impl Parameter
sourcepub fn parameter_name(&self) -> Option<&str>
pub fn parameter_name(&self) -> Option<&str>
The name of the parameter.
sourcepub fn parameter_value(&self) -> Option<&str>
pub fn parameter_value(&self) -> Option<&str>
The value of the parameter.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the parameter.
sourcepub fn allowed_values(&self) -> Option<&str>
pub fn allowed_values(&self) -> Option<&str>
The valid range of values for the parameter.
sourcepub fn is_modifiable(&self) -> bool
pub fn is_modifiable(&self) -> bool
Indicates whether (true
) or not (false
) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
sourcepub fn minimum_engine_version(&self) -> Option<&str>
pub fn minimum_engine_version(&self) -> Option<&str>
The earliest cache engine version to which the parameter can apply.
sourcepub fn change_type(&self) -> Option<&ChangeType>
pub fn change_type(&self) -> Option<&ChangeType>
Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.
source§impl Parameter
impl Parameter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Parameter
.
Examples found in repository?
src/xml_deser.rs (line 9459)
9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586
pub fn deser_structure_crate_model_parameter(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Parameter, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Parameter::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ParameterName") /* ParameterName com.amazonaws.elasticache#Parameter$ParameterName */ => {
let var_366 =
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_parameter_name(var_366);
}
,
s if s.matches("ParameterValue") /* ParameterValue com.amazonaws.elasticache#Parameter$ParameterValue */ => {
let var_367 =
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_parameter_value(var_367);
}
,
s if s.matches("Description") /* Description com.amazonaws.elasticache#Parameter$Description */ => {
let var_368 =
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_description(var_368);
}
,
s if s.matches("Source") /* Source com.amazonaws.elasticache#Parameter$Source */ => {
let var_369 =
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_source(var_369);
}
,
s if s.matches("DataType") /* DataType com.amazonaws.elasticache#Parameter$DataType */ => {
let var_370 =
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_data_type(var_370);
}
,
s if s.matches("AllowedValues") /* AllowedValues com.amazonaws.elasticache#Parameter$AllowedValues */ => {
let var_371 =
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_allowed_values(var_371);
}
,
s if s.matches("IsModifiable") /* IsModifiable com.amazonaws.elasticache#Parameter$IsModifiable */ => {
let var_372 =
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.elasticache#Boolean`)"))
}
?
)
;
builder = builder.set_is_modifiable(var_372);
}
,
s if s.matches("MinimumEngineVersion") /* MinimumEngineVersion com.amazonaws.elasticache#Parameter$MinimumEngineVersion */ => {
let var_373 =
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_minimum_engine_version(var_373);
}
,
s if s.matches("ChangeType") /* ChangeType com.amazonaws.elasticache#Parameter$ChangeType */ => {
let var_374 =
Some(
Result::<crate::model::ChangeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ChangeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_change_type(var_374);
}
,
_ => {}
}
}
Ok(builder.build())
}