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_delete_scaling_policy;
pub(crate) mod shape_delete_scheduled_action;
pub(crate) mod shape_deregister_scalable_target;
pub(crate) mod shape_describe_scalable_targets;
pub(crate) mod shape_describe_scaling_activities;
pub(crate) mod shape_describe_scaling_policies;
pub(crate) mod shape_describe_scheduled_actions;
pub(crate) mod shape_get_predictive_scaling_forecast;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_put_scaling_policy;
pub(crate) mod shape_put_scheduled_action;
pub(crate) mod shape_register_scalable_target;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
pub(crate) mod shape_concurrent_update_exception;
pub(crate) mod shape_delete_scaling_policy_input;
pub(crate) mod shape_delete_scheduled_action_input;
pub(crate) mod shape_deregister_scalable_target_input;
pub(crate) mod shape_describe_scalable_targets_input;
pub(crate) mod shape_describe_scaling_activities_input;
pub(crate) mod shape_describe_scaling_policies_input;
pub(crate) mod shape_describe_scheduled_actions_input;
pub(crate) mod shape_failed_resource_access_exception;
pub(crate) mod shape_get_predictive_scaling_forecast_input;
pub(crate) mod shape_internal_service_exception;
pub(crate) mod shape_invalid_next_token_exception;
pub(crate) mod shape_limit_exceeded_exception;
pub(crate) mod shape_list_tags_for_resource_input;
pub(crate) mod shape_object_not_found_exception;
pub(crate) mod shape_put_scaling_policy_input;
pub(crate) mod shape_put_scheduled_action_input;
pub(crate) mod shape_register_scalable_target_input;
pub(crate) mod shape_resource_not_found_exception;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_too_many_tags_exception;
pub(crate) mod shape_untag_resource_input;
pub(crate) mod shape_validation_exception;
pub(crate) mod shape_alarms;
pub(crate) mod shape_capacity_forecast;
pub(crate) mod shape_load_forecasts;
pub(crate) mod shape_predictive_scaling_policy_configuration;
pub(crate) mod shape_scalable_target_action;
pub(crate) mod shape_scalable_targets;
pub(crate) mod shape_scaling_activities;
pub(crate) mod shape_scaling_policies;
pub(crate) mod shape_scheduled_actions;
pub(crate) mod shape_step_scaling_policy_configuration;
pub(crate) mod shape_suspended_state;
pub(crate) mod shape_tag_map;
pub(crate) mod shape_target_tracking_scaling_policy_configuration;
pub(crate) mod shape_alarm;
pub(crate) mod shape_customized_metric_specification;
pub(crate) mod shape_load_forecast;
pub(crate) mod shape_predefined_metric_specification;
pub(crate) mod shape_predictive_scaling_forecast_timestamps;
pub(crate) mod shape_predictive_scaling_forecast_values;
pub(crate) mod shape_predictive_scaling_metric_specification;
pub(crate) mod shape_scalable_target;
pub(crate) mod shape_scaling_activity;
pub(crate) mod shape_scaling_policy;
pub(crate) mod shape_scheduled_action;
pub(crate) mod shape_step_adjustment;
pub(crate) mod shape_metric_dimension;
pub(crate) mod shape_not_scaled_reasons;
pub(crate) mod shape_predictive_scaling_customized_metric_specification;
pub(crate) mod shape_predictive_scaling_predefined_load_metric_specification;
pub(crate) mod shape_predictive_scaling_predefined_metric_pair_specification;
pub(crate) mod shape_predictive_scaling_predefined_scaling_metric_specification;
pub(crate) mod shape_target_tracking_metric_data_query;
pub(crate) mod shape_not_scaled_reason;
pub(crate) mod shape_predictive_scaling_metric_data_query;
pub(crate) mod shape_predictive_scaling_metric_specifications;
pub(crate) mod shape_step_adjustments;
pub(crate) mod shape_target_tracking_metric_stat;
pub(crate) mod shape_metric_dimensions;
pub(crate) mod shape_predictive_scaling_metric_data_queries;
pub(crate) mod shape_predictive_scaling_metric_stat;
pub(crate) mod shape_target_tracking_metric;
pub(crate) mod shape_target_tracking_metric_data_queries;
pub(crate) mod shape_predictive_scaling_metric;
pub(crate) mod shape_target_tracking_metric_dimension;
pub(crate) mod shape_predictive_scaling_metric_dimension;
pub(crate) mod shape_predictive_scaling_metric_dimensions;
pub(crate) mod shape_target_tracking_metric_dimensions;