pub fn deser_payload_invoke_endpoint_invoke_endpoint_output_body(
body: &[u8],
) -> std::result::Result<
std::option::Option<aws_smithy_types::Blob>,
crate::error::InvokeEndpointError,
> {
(!body.is_empty())
.then(|| Ok(aws_smithy_types::Blob::new(body)))
.transpose()
}
pub fn deser_header_invoke_endpoint_invoke_endpoint_output_content_type(
header_map: &http::HeaderMap,
) -> std::result::Result<
std::option::Option<std::string::String>,
aws_smithy_http::header::ParseError,
> {
let headers = header_map.get_all("Content-Type").iter();
aws_smithy_http::header::one_or_none(headers)
}
pub fn deser_header_invoke_endpoint_invoke_endpoint_output_custom_attributes(
header_map: &http::HeaderMap,
) -> std::result::Result<
std::option::Option<std::string::String>,
aws_smithy_http::header::ParseError,
> {
let headers = header_map
.get_all("X-Amzn-SageMaker-Custom-Attributes")
.iter();
aws_smithy_http::header::one_or_none(headers)
}
pub fn deser_header_invoke_endpoint_invoke_endpoint_output_invoked_production_variant(
header_map: &http::HeaderMap,
) -> std::result::Result<
std::option::Option<std::string::String>,
aws_smithy_http::header::ParseError,
> {
let headers = header_map
.get_all("x-Amzn-Invoked-Production-Variant")
.iter();
aws_smithy_http::header::one_or_none(headers)
}
pub fn deser_header_invoke_endpoint_async_invoke_endpoint_async_output_output_location(
header_map: &http::HeaderMap,
) -> std::result::Result<
std::option::Option<std::string::String>,
aws_smithy_http::header::ParseError,
> {
let headers = header_map.get_all("X-Amzn-SageMaker-OutputLocation").iter();
aws_smithy_http::header::one_or_none(headers)
}