Struct aws_sdk_elasticache::model::ServiceUpdate
source · #[non_exhaustive]pub struct ServiceUpdate { /* private fields */ }
Expand description
An update that you can apply to your Redis clusters.
Implementations§
source§impl ServiceUpdate
impl ServiceUpdate
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 when the service update is initially available
sourcepub fn service_update_end_date(&self) -> Option<&DateTime>
pub fn service_update_end_date(&self) -> Option<&DateTime>
The date after which the service update is no longer 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_recommended_apply_by_date(&self) -> Option<&DateTime>
pub fn service_update_recommended_apply_by_date(&self) -> Option<&DateTime>
The recommendend date to apply the service update in order to ensure compliance. For information on compliance, see Self-Service Security Updates for Compliance.
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_description(&self) -> Option<&str>
pub fn service_update_description(&self) -> Option<&str>
Provides details of the service update
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 engine(&self) -> Option<&str>
pub fn engine(&self) -> Option<&str>
The Elasticache engine to which the update applies. Either Redis or Memcached
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The Elasticache engine version to which the update applies. Either Redis or Memcached engine version
sourcepub fn auto_update_after_recommended_apply_by_date(&self) -> Option<bool>
pub fn auto_update_after_recommended_apply_by_date(&self) -> Option<bool>
Indicates whether the service update will be automatically applied once the recommended apply-by date has expired.
sourcepub fn estimated_update_time(&self) -> Option<&str>
pub fn estimated_update_time(&self) -> Option<&str>
The estimated length of time the service update will take
source§impl ServiceUpdate
impl ServiceUpdate
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceUpdate
.
Examples found in repository?
9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080
pub fn deser_structure_crate_model_service_update(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServiceUpdate, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ServiceUpdate::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ServiceUpdateName") /* ServiceUpdateName com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateName */ => {
let var_396 =
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_396);
}
,
s if s.matches("ServiceUpdateReleaseDate") /* ServiceUpdateReleaseDate com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateReleaseDate */ => {
let var_397 =
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_397);
}
,
s if s.matches("ServiceUpdateEndDate") /* ServiceUpdateEndDate com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateEndDate */ => {
let var_398 =
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_end_date(var_398);
}
,
s if s.matches("ServiceUpdateSeverity") /* ServiceUpdateSeverity com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateSeverity */ => {
let var_399 =
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_399);
}
,
s if s.matches("ServiceUpdateRecommendedApplyByDate") /* ServiceUpdateRecommendedApplyByDate com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateRecommendedApplyByDate */ => {
let var_400 =
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_400);
}
,
s if s.matches("ServiceUpdateStatus") /* ServiceUpdateStatus com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateStatus */ => {
let var_401 =
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_401);
}
,
s if s.matches("ServiceUpdateDescription") /* ServiceUpdateDescription com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateDescription */ => {
let var_402 =
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_description(var_402);
}
,
s if s.matches("ServiceUpdateType") /* ServiceUpdateType com.amazonaws.elasticache#ServiceUpdate$ServiceUpdateType */ => {
let var_403 =
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_403);
}
,
s if s.matches("Engine") /* Engine com.amazonaws.elasticache#ServiceUpdate$Engine */ => {
let var_404 =
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_404);
}
,
s if s.matches("EngineVersion") /* EngineVersion com.amazonaws.elasticache#ServiceUpdate$EngineVersion */ => {
let var_405 =
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_version(var_405);
}
,
s if s.matches("AutoUpdateAfterRecommendedApplyByDate") /* AutoUpdateAfterRecommendedApplyByDate com.amazonaws.elasticache#ServiceUpdate$AutoUpdateAfterRecommendedApplyByDate */ => {
let var_406 =
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#BooleanOptional`)"))
}
?
)
;
builder = builder.set_auto_update_after_recommended_apply_by_date(var_406);
}
,
s if s.matches("EstimatedUpdateTime") /* EstimatedUpdateTime com.amazonaws.elasticache#ServiceUpdate$EstimatedUpdateTime */ => {
let var_407 =
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_407);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ServiceUpdate
impl Clone for ServiceUpdate
source§fn clone(&self) -> ServiceUpdate
fn clone(&self) -> ServiceUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more