aws-sdk-machinelearning 1.97.0

AWS SDK for Amazon Machine Learning
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn type_erase_result<O, E>(
    result: ::std::result::Result<O, E>,
) -> ::std::result::Result<
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
>
where
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
{
    result
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
        .map_err(::std::convert::Into::into)
}

pub fn parse_http_error_metadata(
    _response_status: u16,
    response_headers: &::aws_smithy_runtime_api::http::Headers,
    response_body: &[u8],
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    crate::json_errors::parse_error_metadata(response_body, response_headers)
}

pub(crate) mod shape_add_tags;

pub(crate) mod shape_create_batch_prediction;

pub(crate) mod shape_create_data_source_from_rds;

pub(crate) mod shape_create_data_source_from_redshift;

pub(crate) mod shape_create_data_source_from_s3;

pub(crate) mod shape_create_evaluation;

pub(crate) mod shape_create_ml_model;

pub(crate) mod shape_create_realtime_endpoint;

pub(crate) mod shape_delete_batch_prediction;

pub(crate) mod shape_delete_data_source;

pub(crate) mod shape_delete_evaluation;

pub(crate) mod shape_delete_ml_model;

pub(crate) mod shape_delete_realtime_endpoint;

pub(crate) mod shape_delete_tags;

pub(crate) mod shape_describe_batch_predictions;

pub(crate) mod shape_describe_data_sources;

pub(crate) mod shape_describe_evaluations;

pub(crate) mod shape_describe_ml_models;

pub(crate) mod shape_describe_tags;

pub(crate) mod shape_get_batch_prediction;

pub(crate) mod shape_get_data_source;

pub(crate) mod shape_get_evaluation;

pub(crate) mod shape_get_ml_model;

pub(crate) mod shape_predict;

pub(crate) mod shape_update_batch_prediction;

pub(crate) mod shape_update_data_source;

pub(crate) mod shape_update_evaluation;

pub(crate) mod shape_update_ml_model;

pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
    if data.is_empty() {
        b"{}"
    } else {
        data
    }
}

pub(crate) mod shape_add_tags_input;

pub(crate) mod shape_create_batch_prediction_input;

pub(crate) mod shape_create_data_source_from_rds_input;

pub(crate) mod shape_create_data_source_from_redshift_input;

pub(crate) mod shape_create_data_source_from_s3_input;

pub(crate) mod shape_create_evaluation_input;

pub(crate) mod shape_create_ml_model_input;

pub(crate) mod shape_create_realtime_endpoint_input;

pub(crate) mod shape_delete_batch_prediction_input;

pub(crate) mod shape_delete_data_source_input;

pub(crate) mod shape_delete_evaluation_input;

pub(crate) mod shape_delete_ml_model_input;

pub(crate) mod shape_delete_realtime_endpoint_input;

pub(crate) mod shape_delete_tags_input;

pub(crate) mod shape_describe_batch_predictions_input;

pub(crate) mod shape_describe_data_sources_input;

pub(crate) mod shape_describe_evaluations_input;

pub(crate) mod shape_describe_ml_models_input;

pub(crate) mod shape_describe_tags_input;

pub(crate) mod shape_get_batch_prediction_input;

pub(crate) mod shape_get_data_source_input;

pub(crate) mod shape_get_evaluation_input;

pub(crate) mod shape_get_ml_model_input;

pub(crate) mod shape_idempotent_parameter_mismatch_exception;

pub(crate) mod shape_internal_server_exception;

pub(crate) mod shape_invalid_input_exception;

pub(crate) mod shape_invalid_tag_exception;

pub(crate) mod shape_limit_exceeded_exception;

pub(crate) mod shape_predict_input;

pub(crate) mod shape_predictor_not_mounted_exception;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_tag_limit_exceeded_exception;

pub(crate) mod shape_update_batch_prediction_input;

pub(crate) mod shape_update_data_source_input;

pub(crate) mod shape_update_evaluation_input;

pub(crate) mod shape_update_ml_model_input;

pub(crate) mod shape_batch_predictions;

pub(crate) mod shape_data_sources;

pub(crate) mod shape_evaluations;

pub(crate) mod shape_ml_models;

pub(crate) mod shape_performance_metrics;

pub(crate) mod shape_prediction;

pub(crate) mod shape_rds_data_spec;

pub(crate) mod shape_rds_metadata;

pub(crate) mod shape_realtime_endpoint_info;

pub(crate) mod shape_redshift_data_spec;

pub(crate) mod shape_redshift_metadata;

pub(crate) mod shape_s3_data_spec;

pub(crate) mod shape_tag;

pub(crate) mod shape_tag_list;

pub(crate) mod shape_training_parameters;

pub(crate) mod shape_batch_prediction;

pub(crate) mod shape_data_source;

pub(crate) mod shape_details_map;

pub(crate) mod shape_evaluation;

pub(crate) mod shape_ml_model;

pub(crate) mod shape_performance_metrics_properties;

pub(crate) mod shape_rds_database;

pub(crate) mod shape_rds_database_credentials;

pub(crate) mod shape_redshift_database;

pub(crate) mod shape_redshift_database_credentials;

pub(crate) mod shape_score_value_per_label_map;