Struct aws_sdk_elasticache::model::UpdateAction
source · #[non_exhaustive]pub struct UpdateAction { /* private fields */ }
Expand description
The status of the service update for a specific replication group
Implementations§
source§impl UpdateAction
impl UpdateAction
sourcepub fn replication_group_id(&self) -> Option<&str>
pub fn replication_group_id(&self) -> Option<&str>
The ID of the replication group
sourcepub fn cache_cluster_id(&self) -> Option<&str>
pub fn cache_cluster_id(&self) -> Option<&str>
The ID of the cache cluster
sourcepub fn service_update_name(&self) -> Option<&str>
pub fn service_update_name(&self) -> Option<&str>
The unique ID of the service update
sourcepub fn service_update_release_date(&self) -> Option<&DateTime>
pub fn service_update_release_date(&self) -> Option<&DateTime>
The date the update is first available
sourcepub fn service_update_severity(&self) -> Option<&ServiceUpdateSeverity>
pub fn service_update_severity(&self) -> Option<&ServiceUpdateSeverity>
The severity of the service update
sourcepub fn service_update_status(&self) -> Option<&ServiceUpdateStatus>
pub fn service_update_status(&self) -> Option<&ServiceUpdateStatus>
The status of the service update
sourcepub fn service_update_recommended_apply_by_date(&self) -> Option<&DateTime>
pub fn service_update_recommended_apply_by_date(&self) -> Option<&DateTime>
The recommended date to apply the service update to ensure compliance. For information on compliance, see Self-Service Security Updates for Compliance.
sourcepub fn service_update_type(&self) -> Option<&ServiceUpdateType>
pub fn service_update_type(&self) -> Option<&ServiceUpdateType>
Reflects the nature of the service update
sourcepub fn update_action_available_date(&self) -> Option<&DateTime>
pub fn update_action_available_date(&self) -> Option<&DateTime>
The date that the service update is available to a replication group
sourcepub fn update_action_status(&self) -> Option<&UpdateActionStatus>
pub fn update_action_status(&self) -> Option<&UpdateActionStatus>
The status of the update action
sourcepub fn nodes_updated(&self) -> Option<&str>
pub fn nodes_updated(&self) -> Option<&str>
The progress of the service update on the replication group
sourcepub fn update_action_status_modified_date(&self) -> Option<&DateTime>
pub fn update_action_status_modified_date(&self) -> Option<&DateTime>
The date when the UpdateActionStatus was last modified
sourcepub fn sla_met(&self) -> Option<&SlaMet>
pub fn sla_met(&self) -> Option<&SlaMet>
If yes, all nodes in the replication group have been updated by the recommended apply-by date. If no, at least one node in the replication group have not been updated by the recommended apply-by date. If N/A, the replication group was created after the recommended apply-by date.
sourcepub fn node_group_update_status(&self) -> Option<&[NodeGroupUpdateStatus]>
pub fn node_group_update_status(&self) -> Option<&[NodeGroupUpdateStatus]>
The status of the service update on the node group
sourcepub fn cache_node_update_status(&self) -> Option<&[CacheNodeUpdateStatus]>
pub fn cache_node_update_status(&self) -> Option<&[CacheNodeUpdateStatus]>
The status of the service update on the cache node
sourcepub fn estimated_update_time(&self) -> Option<&str>
pub fn estimated_update_time(&self) -> Option<&str>
The estimated length of time for the update to complete
source§impl UpdateAction
impl UpdateAction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateAction
.
Examples found in repository?
10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317
pub fn deser_structure_crate_model_update_action(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::UpdateAction, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::UpdateAction::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ReplicationGroupId") /* ReplicationGroupId com.amazonaws.elasticache#UpdateAction$ReplicationGroupId */ => {
let var_408 =
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_replication_group_id(var_408);
}
,
s if s.matches("CacheClusterId") /* CacheClusterId com.amazonaws.elasticache#UpdateAction$CacheClusterId */ => {
let var_409 =
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_cache_cluster_id(var_409);
}
,
s if s.matches("ServiceUpdateName") /* ServiceUpdateName com.amazonaws.elasticache#UpdateAction$ServiceUpdateName */ => {
let var_410 =
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_service_update_name(var_410);
}
,
s if s.matches("ServiceUpdateReleaseDate") /* ServiceUpdateReleaseDate com.amazonaws.elasticache#UpdateAction$ServiceUpdateReleaseDate */ => {
let var_411 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.elasticache#TStamp`)"))
?
)
;
builder = builder.set_service_update_release_date(var_411);
}
,
s if s.matches("ServiceUpdateSeverity") /* ServiceUpdateSeverity com.amazonaws.elasticache#UpdateAction$ServiceUpdateSeverity */ => {
let var_412 =
Some(
Result::<crate::model::ServiceUpdateSeverity, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ServiceUpdateSeverity::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_service_update_severity(var_412);
}
,
s if s.matches("ServiceUpdateStatus") /* ServiceUpdateStatus com.amazonaws.elasticache#UpdateAction$ServiceUpdateStatus */ => {
let var_413 =
Some(
Result::<crate::model::ServiceUpdateStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ServiceUpdateStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_service_update_status(var_413);
}
,
s if s.matches("ServiceUpdateRecommendedApplyByDate") /* ServiceUpdateRecommendedApplyByDate com.amazonaws.elasticache#UpdateAction$ServiceUpdateRecommendedApplyByDate */ => {
let var_414 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.elasticache#TStamp`)"))
?
)
;
builder = builder.set_service_update_recommended_apply_by_date(var_414);
}
,
s if s.matches("ServiceUpdateType") /* ServiceUpdateType com.amazonaws.elasticache#UpdateAction$ServiceUpdateType */ => {
let var_415 =
Some(
Result::<crate::model::ServiceUpdateType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ServiceUpdateType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_service_update_type(var_415);
}
,
s if s.matches("UpdateActionAvailableDate") /* UpdateActionAvailableDate com.amazonaws.elasticache#UpdateAction$UpdateActionAvailableDate */ => {
let var_416 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.elasticache#TStamp`)"))
?
)
;
builder = builder.set_update_action_available_date(var_416);
}
,
s if s.matches("UpdateActionStatus") /* UpdateActionStatus com.amazonaws.elasticache#UpdateAction$UpdateActionStatus */ => {
let var_417 =
Some(
Result::<crate::model::UpdateActionStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::UpdateActionStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_update_action_status(var_417);
}
,
s if s.matches("NodesUpdated") /* NodesUpdated com.amazonaws.elasticache#UpdateAction$NodesUpdated */ => {
let var_418 =
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_nodes_updated(var_418);
}
,
s if s.matches("UpdateActionStatusModifiedDate") /* UpdateActionStatusModifiedDate com.amazonaws.elasticache#UpdateAction$UpdateActionStatusModifiedDate */ => {
let var_419 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.elasticache#TStamp`)"))
?
)
;
builder = builder.set_update_action_status_modified_date(var_419);
}
,
s if s.matches("SlaMet") /* SlaMet com.amazonaws.elasticache#UpdateAction$SlaMet */ => {
let var_420 =
Some(
Result::<crate::model::SlaMet, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::SlaMet::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_sla_met(var_420);
}
,
s if s.matches("NodeGroupUpdateStatus") /* NodeGroupUpdateStatus com.amazonaws.elasticache#UpdateAction$NodeGroupUpdateStatus */ => {
let var_421 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_node_group_update_status_list(&mut tag)
?
)
;
builder = builder.set_node_group_update_status(var_421);
}
,
s if s.matches("CacheNodeUpdateStatus") /* CacheNodeUpdateStatus com.amazonaws.elasticache#UpdateAction$CacheNodeUpdateStatus */ => {
let var_422 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_cache_node_update_status_list(&mut tag)
?
)
;
builder = builder.set_cache_node_update_status(var_422);
}
,
s if s.matches("EstimatedUpdateTime") /* EstimatedUpdateTime com.amazonaws.elasticache#UpdateAction$EstimatedUpdateTime */ => {
let var_423 =
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_estimated_update_time(var_423);
}
,
s if s.matches("Engine") /* Engine com.amazonaws.elasticache#UpdateAction$Engine */ => {
let var_424 =
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_424);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for UpdateAction
impl Clone for UpdateAction
source§fn clone(&self) -> UpdateAction
fn clone(&self) -> UpdateAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more