Struct aws_sdk_elasticache::model::UserGroup
source · #[non_exhaustive]pub struct UserGroup { /* private fields */ }
Implementations§
source§impl UserGroup
impl UserGroup
sourcepub fn user_group_id(&self) -> Option<&str>
pub fn user_group_id(&self) -> Option<&str>
The ID of the user group.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
Indicates user group status. Can be "creating", "active", "modifying", "deleting".
sourcepub fn user_ids(&self) -> Option<&[String]>
pub fn user_ids(&self) -> Option<&[String]>
The list of user IDs that belong to the user group.
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 pending_changes(&self) -> Option<&UserGroupPendingChanges>
pub fn pending_changes(&self) -> Option<&UserGroupPendingChanges>
A list of updates being applied to the user group.
sourcepub fn replication_groups(&self) -> Option<&[String]>
pub fn replication_groups(&self) -> Option<&[String]>
A list of replication groups that the user group can access.
source§impl UserGroup
impl UserGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UserGroup
.
Examples found in repository?
src/xml_deser.rs (line 10323)
10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425
pub fn deser_structure_crate_model_user_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::UserGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::UserGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("UserGroupId") /* UserGroupId com.amazonaws.elasticache#UserGroup$UserGroupId */ => {
let var_425 =
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_group_id(var_425);
}
,
s if s.matches("Status") /* Status com.amazonaws.elasticache#UserGroup$Status */ => {
let var_426 =
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_426);
}
,
s if s.matches("Engine") /* Engine com.amazonaws.elasticache#UserGroup$Engine */ => {
let var_427 =
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_427);
}
,
s if s.matches("UserIds") /* UserIds com.amazonaws.elasticache#UserGroup$UserIds */ => {
let var_428 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_user_id_list(&mut tag)
?
)
;
builder = builder.set_user_ids(var_428);
}
,
s if s.matches("MinimumEngineVersion") /* MinimumEngineVersion com.amazonaws.elasticache#UserGroup$MinimumEngineVersion */ => {
let var_429 =
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_429);
}
,
s if s.matches("PendingChanges") /* PendingChanges com.amazonaws.elasticache#UserGroup$PendingChanges */ => {
let var_430 =
Some(
crate::xml_deser::deser_structure_crate_model_user_group_pending_changes(&mut tag)
?
)
;
builder = builder.set_pending_changes(var_430);
}
,
s if s.matches("ReplicationGroups") /* ReplicationGroups com.amazonaws.elasticache#UserGroup$ReplicationGroups */ => {
let var_431 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_ug_replication_group_id_list(&mut tag)
?
)
;
builder = builder.set_replication_groups(var_431);
}
,
s if s.matches("ARN") /* ARN com.amazonaws.elasticache#UserGroup$ARN */ => {
let var_432 =
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_432);
}
,
_ => {}
}
}
Ok(builder.build())
}