aws-sdk-computeoptimizer 1.5.0

AWS SDK for AWS Compute Optimizer
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],
) -> 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_delete_recommendation_preferences;

pub(crate) mod shape_describe_recommendation_export_jobs;

pub(crate) mod shape_export_auto_scaling_group_recommendations;

pub(crate) mod shape_export_ebs_volume_recommendations;

pub(crate) mod shape_export_ec2_instance_recommendations;

pub(crate) mod shape_export_ecs_service_recommendations;

pub(crate) mod shape_export_lambda_function_recommendations;

pub(crate) mod shape_export_license_recommendations;

pub(crate) mod shape_get_auto_scaling_group_recommendations;

pub(crate) mod shape_get_ebs_volume_recommendations;

pub(crate) mod shape_get_ec2_instance_recommendations;

pub(crate) mod shape_get_ec2_recommendation_projected_metrics;

pub(crate) mod shape_get_ecs_service_recommendation_projected_metrics;

pub(crate) mod shape_get_ecs_service_recommendations;

pub(crate) mod shape_get_effective_recommendation_preferences;

pub(crate) mod shape_get_enrollment_status;

pub(crate) mod shape_get_enrollment_statuses_for_organization;

pub(crate) mod shape_get_lambda_function_recommendations;

pub(crate) mod shape_get_license_recommendations;

pub(crate) mod shape_get_recommendation_preferences;

pub(crate) mod shape_get_recommendation_summaries;

pub(crate) mod shape_put_recommendation_preferences;

pub(crate) mod shape_update_enrollment_status;

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

pub(crate) mod shape_access_denied_exception;

pub(crate) mod shape_delete_recommendation_preferences_input;

pub(crate) mod shape_describe_recommendation_export_jobs_input;

pub(crate) mod shape_export_auto_scaling_group_recommendations_input;

pub(crate) mod shape_export_ebs_volume_recommendations_input;

pub(crate) mod shape_export_ec2_instance_recommendations_input;

pub(crate) mod shape_export_ecs_service_recommendations_input;

pub(crate) mod shape_export_lambda_function_recommendations_input;

pub(crate) mod shape_export_license_recommendations_input;

pub(crate) mod shape_get_auto_scaling_group_recommendations_input;

pub(crate) mod shape_get_ebs_volume_recommendations_input;

pub(crate) mod shape_get_ec2_instance_recommendations_input;

pub(crate) mod shape_get_ec2_recommendation_projected_metrics_input;

pub(crate) mod shape_get_ecs_service_recommendation_projected_metrics_input;

pub(crate) mod shape_get_ecs_service_recommendations_input;

pub(crate) mod shape_get_effective_recommendation_preferences_input;

pub(crate) mod shape_get_enrollment_statuses_for_organization_input;

pub(crate) mod shape_get_lambda_function_recommendations_input;

pub(crate) mod shape_get_license_recommendations_input;

pub(crate) mod shape_get_recommendation_preferences_input;

pub(crate) mod shape_get_recommendation_summaries_input;

pub(crate) mod shape_internal_server_exception;

pub(crate) mod shape_invalid_parameter_value_exception;

pub(crate) mod shape_limit_exceeded_exception;

pub(crate) mod shape_missing_authentication_token;

pub(crate) mod shape_opt_in_required_exception;

pub(crate) mod shape_put_recommendation_preferences_input;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_service_unavailable_exception;

pub(crate) mod shape_throttling_exception;

pub(crate) mod shape_update_enrollment_status_input;

pub(crate) mod shape_account_enrollment_statuses;

pub(crate) mod shape_auto_scaling_group_recommendations;

pub(crate) mod shape_ebs_filter;

pub(crate) mod shape_ecs_service_recommendation_filter;

pub(crate) mod shape_ecs_service_recommendations;

pub(crate) mod shape_ecs_service_recommended_option_projected_metrics;

pub(crate) mod shape_effective_preferred_resources;

pub(crate) mod shape_enrollment_filter;

pub(crate) mod shape_external_metrics_preference;

pub(crate) mod shape_filter;

pub(crate) mod shape_get_recommendation_errors;

pub(crate) mod shape_instance_recommendations;

pub(crate) mod shape_job_filter;

pub(crate) mod shape_lambda_function_recommendation_filter;

pub(crate) mod shape_lambda_function_recommendations;

pub(crate) mod shape_license_recommendation_filter;

pub(crate) mod shape_license_recommendations;

pub(crate) mod shape_preferred_resource;

pub(crate) mod shape_recommendation_export_jobs;

pub(crate) mod shape_recommendation_preferences;

pub(crate) mod shape_recommendation_preferences_details;

pub(crate) mod shape_recommendation_summaries;

pub(crate) mod shape_recommended_option_projected_metrics;

pub(crate) mod shape_s3_destination;

pub(crate) mod shape_s3_destination_config;

pub(crate) mod shape_scope;

pub(crate) mod shape_utilization_preference;

pub(crate) mod shape_utilization_preferences;

pub(crate) mod shape_volume_recommendations;

pub(crate) mod shape_account_enrollment_status;

pub(crate) mod shape_auto_scaling_group_recommendation;

pub(crate) mod shape_customizable_metric_parameters;

pub(crate) mod shape_ecs_service_recommendation;

pub(crate) mod shape_ecs_service_recommended_option_projected_metric;

pub(crate) mod shape_effective_preferred_resource;

pub(crate) mod shape_get_recommendation_error;

pub(crate) mod shape_instance_recommendation;

pub(crate) mod shape_lambda_function_recommendation;

pub(crate) mod shape_license_recommendation;

pub(crate) mod shape_recommendation_export_job;

pub(crate) mod shape_recommendation_preferences_detail;

pub(crate) mod shape_recommendation_summary;

pub(crate) mod shape_recommended_option_projected_metric;

pub(crate) mod shape_volume_recommendation;

pub(crate) mod shape_auto_scaling_group_configuration;

pub(crate) mod shape_auto_scaling_group_recommendation_options;

pub(crate) mod shape_current_performance_risk_ratings;

pub(crate) mod shape_ebs_effective_recommendation_preferences;

pub(crate) mod shape_ebs_utilization_metrics;

pub(crate) mod shape_ecs_effective_recommendation_preferences;

pub(crate) mod shape_ecs_service_projected_metrics;

pub(crate) mod shape_ecs_service_recommendation_finding_reason_codes;

pub(crate) mod shape_ecs_service_recommendation_options;

pub(crate) mod shape_ecs_service_utilization_metrics;

pub(crate) mod shape_effective_recommendation_preferences;

pub(crate) mod shape_export_destination;

pub(crate) mod shape_external_metric_status;

pub(crate) mod shape_gpu_info;

pub(crate) mod shape_inferred_workload_savings;

pub(crate) mod shape_inferred_workload_types;

pub(crate) mod shape_instance_recommendation_finding_reason_codes;

pub(crate) mod shape_lambda_effective_recommendation_preferences;

pub(crate) mod shape_lambda_function_memory_recommendation_options;

pub(crate) mod shape_lambda_function_recommendation_finding_reason_codes;

pub(crate) mod shape_lambda_function_utilization_metrics;

pub(crate) mod shape_license_configuration;

pub(crate) mod shape_license_finding_reason_codes;

pub(crate) mod shape_license_recommendation_options;

pub(crate) mod shape_preferred_resource_values;

pub(crate) mod shape_projected_metrics;

pub(crate) mod shape_recommendation_options;

pub(crate) mod shape_recommendation_sources;

pub(crate) mod shape_savings_opportunity;

pub(crate) mod shape_service_configuration;

pub(crate) mod shape_summaries;

pub(crate) mod shape_tags;

pub(crate) mod shape_utilization_metrics;

pub(crate) mod shape_volume_configuration;

pub(crate) mod shape_volume_recommendation_options;

pub(crate) mod shape_auto_scaling_group_recommendation_option;

pub(crate) mod shape_container_configurations;

pub(crate) mod shape_cpu_vendor_architectures;

pub(crate) mod shape_ebs_savings_estimation_mode;

pub(crate) mod shape_ebs_utilization_metric;

pub(crate) mod shape_ecs_savings_estimation_mode;

pub(crate) mod shape_ecs_service_projected_metric;

pub(crate) mod shape_ecs_service_recommendation_option;

pub(crate) mod shape_ecs_service_utilization_metric;

pub(crate) mod shape_estimated_monthly_savings;

pub(crate) mod shape_gpus;

pub(crate) mod shape_inferred_workload_saving;

pub(crate) mod shape_instance_recommendation_option;

pub(crate) mod shape_instance_savings_estimation_mode;

pub(crate) mod shape_lambda_function_memory_recommendation_option;

pub(crate) mod shape_lambda_function_utilization_metric;

pub(crate) mod shape_lambda_savings_estimation_mode;

pub(crate) mod shape_license_recommendation_option;

pub(crate) mod shape_metrics_source;

pub(crate) mod shape_projected_metric;

pub(crate) mod shape_recommendation_source;

pub(crate) mod shape_summary;

pub(crate) mod shape_tag;

pub(crate) mod shape_utilization_metric;

pub(crate) mod shape_volume_recommendation_option;

pub(crate) mod shape_auto_scaling_group_savings_opportunity_after_discounts;

pub(crate) mod shape_container_configuration;

pub(crate) mod shape_container_recommendations;

pub(crate) mod shape_ebs_savings_opportunity_after_discounts;

pub(crate) mod shape_ecs_savings_opportunity_after_discounts;

pub(crate) mod shape_ecs_service_projected_utilization_metrics;

pub(crate) mod shape_gpu;

pub(crate) mod shape_instance_savings_opportunity_after_discounts;

pub(crate) mod shape_lambda_function_memory_projected_metrics;

pub(crate) mod shape_lambda_savings_opportunity_after_discounts;

pub(crate) mod shape_metric_source;

pub(crate) mod shape_metric_values;

pub(crate) mod shape_platform_differences;

pub(crate) mod shape_projected_utilization_metrics;

pub(crate) mod shape_reason_code_summaries;

pub(crate) mod shape_timestamps;

pub(crate) mod shape_auto_scaling_group_estimated_monthly_savings;

pub(crate) mod shape_container_recommendation;

pub(crate) mod shape_ebs_estimated_monthly_savings;

pub(crate) mod shape_ecs_estimated_monthly_savings;

pub(crate) mod shape_ecs_service_projected_utilization_metric;

pub(crate) mod shape_instance_estimated_monthly_savings;

pub(crate) mod shape_lambda_estimated_monthly_savings;

pub(crate) mod shape_lambda_function_memory_projected_metric;

pub(crate) mod shape_memory_size_configuration;

pub(crate) mod shape_reason_code_summary;