pub(crate) fn de_e_tag_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("ETag");
::aws_smithy_http::header::one_or_none(headers)
}
pub(crate) fn de_subscription_payload(
body: &[u8],
) -> std::result::Result<
::std::option::Option<crate::types::Subscription>,
crate::operation::associate_resources_to_subscription::AssociateResourcesToSubscriptionError,
> {
(!body.is_empty())
.then(|| {
crate::protocol_serde::shape_subscription::de_subscription_payload(body)
.map_err(crate::operation::associate_resources_to_subscription::AssociateResourcesToSubscriptionError::unhandled)
})
.transpose()
}