Struct aws_sdk_elasticache::model::User
source · #[non_exhaustive]pub struct User { /* private fields */ }
Implementations§
source§impl User
impl User
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
Indicates the user status. Can be "active", "modifying" or "deleting".
sourcepub fn minimum_engine_version(&self) -> Option<&str>
pub fn minimum_engine_version(&self) -> Option<&str>
The minimum engine version required, which is Redis 6.0
sourcepub fn access_string(&self) -> Option<&str>
pub fn access_string(&self) -> Option<&str>
Access permissions string used for this user.
sourcepub fn user_group_ids(&self) -> Option<&[String]>
pub fn user_group_ids(&self) -> Option<&[String]>
Returns a list of the user group IDs the user belongs to.
sourcepub fn authentication(&self) -> Option<&Authentication>
pub fn authentication(&self) -> Option<&Authentication>
Denotes whether the user requires a password to authenticate.
source§impl User
impl User
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture User
.
Examples found in repository?
src/xml_deser.rs (line 10431)
10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549
pub fn deser_structure_crate_model_user(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::User, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::User::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("UserId") /* UserId com.amazonaws.elasticache#User$UserId */ => {
let var_433 =
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_user_id(var_433);
}
,
s if s.matches("UserName") /* UserName com.amazonaws.elasticache#User$UserName */ => {
let var_434 =
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_user_name(var_434);
}
,
s if s.matches("Status") /* Status com.amazonaws.elasticache#User$Status */ => {
let var_435 =
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_status(var_435);
}
,
s if s.matches("Engine") /* Engine com.amazonaws.elasticache#User$Engine */ => {
let var_436 =
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_engine(var_436);
}
,
s if s.matches("MinimumEngineVersion") /* MinimumEngineVersion com.amazonaws.elasticache#User$MinimumEngineVersion */ => {
let var_437 =
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_437);
}
,
s if s.matches("AccessString") /* AccessString com.amazonaws.elasticache#User$AccessString */ => {
let var_438 =
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_access_string(var_438);
}
,
s if s.matches("UserGroupIds") /* UserGroupIds com.amazonaws.elasticache#User$UserGroupIds */ => {
let var_439 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_user_group_id_list(&mut tag)
?
)
;
builder = builder.set_user_group_ids(var_439);
}
,
s if s.matches("Authentication") /* Authentication com.amazonaws.elasticache#User$Authentication */ => {
let var_440 =
Some(
crate::xml_deser::deser_structure_crate_model_authentication(&mut tag)
?
)
;
builder = builder.set_authentication(var_440);
}
,
s if s.matches("ARN") /* ARN com.amazonaws.elasticache#User$ARN */ => {
let var_441 =
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_arn(var_441);
}
,
_ => {}
}
}
Ok(builder.build())
}