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_archive_metric;
pub(crate) mod shape_archive_plan;
pub(crate) mod shape_cancel_subscription;
pub(crate) mod shape_create_app;
pub(crate) mod shape_create_app_payment_registration;
pub(crate) mod shape_create_billing_portal_session;
pub(crate) mod shape_create_metric;
pub(crate) mod shape_create_one_time_checkout_session;
pub(crate) mod shape_create_one_time_price;
pub(crate) mod shape_create_plan;
pub(crate) mod shape_create_subscription_checkout_session;
pub(crate) mod shape_delete_app;
pub(crate) mod shape_delete_one_time_price;
pub(crate) mod shape_delete_third_party_cost;
pub(crate) mod shape_get_app;
pub(crate) mod shape_get_app_infra_cost_summary;
pub(crate) mod shape_get_app_payment_registration;
pub(crate) mod shape_get_app_revenue_summary;
pub(crate) mod shape_get_app_subscription_summary;
pub(crate) mod shape_get_app_usage_summary;
pub(crate) mod shape_get_entitlement_decision;
pub(crate) mod shape_get_metric;
pub(crate) mod shape_get_metric_usage;
pub(crate) mod shape_get_one_time_price;
pub(crate) mod shape_get_plan;
pub(crate) mod shape_get_plan_recommendation;
pub(crate) mod shape_get_subscription;
pub(crate) mod shape_get_subscription_history;
pub(crate) mod shape_get_third_party_cost;
pub(crate) mod shape_list_apps;
pub(crate) mod shape_list_metrics;
pub(crate) mod shape_list_one_time_prices;
pub(crate) mod shape_list_plans;
pub(crate) mod shape_list_subscriptions;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_list_third_party_costs;
pub(crate) mod shape_publish_draft;
pub(crate) mod shape_put_aws_service_event;
pub(crate) mod shape_put_custom_charges;
pub(crate) mod shape_put_event;
pub(crate) mod shape_put_third_party_cost;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) mod shape_update_app;
pub(crate) mod shape_update_app_payment_registration;
pub(crate) mod shape_update_metric;
pub(crate) mod shape_update_one_time_price;
pub(crate) mod shape_update_plan;
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_cancel_subscription_input;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_create_app_input;
pub(crate) mod shape_create_app_payment_registration_input;
pub(crate) mod shape_create_billing_portal_session_input;
pub(crate) mod shape_create_metric_input;
pub(crate) mod shape_create_one_time_checkout_session_input;
pub(crate) mod shape_create_one_time_price_input;
pub(crate) mod shape_create_plan_input;
pub(crate) mod shape_create_subscription_checkout_session_input;
pub(crate) mod shape_get_app_infra_cost_summary_input;
pub(crate) mod shape_get_app_revenue_summary_input;
pub(crate) mod shape_get_app_subscription_summary_input;
pub(crate) mod shape_get_app_usage_summary_input;
pub(crate) mod shape_get_entitlement_decision_input;
pub(crate) mod shape_get_plan_recommendation_input;
pub(crate) mod shape_idempotency_conflict_exception;
pub(crate) mod shape_internal_server_exception;
pub(crate) mod shape_invalid_configuration_exception;
pub(crate) mod shape_put_aws_service_event_input;
pub(crate) mod shape_put_custom_charges_input;
pub(crate) mod shape_put_event_input;
pub(crate) mod shape_put_third_party_cost_input;
pub(crate) mod shape_resource_not_found_exception;
pub(crate) mod shape_revision_conflict_exception;
pub(crate) mod shape_service_quota_exceeded_exception;
pub(crate) mod shape_service_unavailable_exception;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_throttling_exception;
pub(crate) mod shape_update_app_input;
pub(crate) mod shape_update_app_payment_registration_input;
pub(crate) mod shape_update_metric_input;
pub(crate) mod shape_update_one_time_price_input;
pub(crate) mod shape_update_plan_input;
pub(crate) mod shape_validation_exception;
pub(crate) mod shape_alternative_inputs;
pub(crate) mod shape_alternatives_outcome;
pub(crate) mod shape_app;
pub(crate) mod shape_app_list;
pub(crate) mod shape_app_payment_registration;
pub(crate) mod shape_billable_action;
pub(crate) mod shape_checkout_item;
pub(crate) mod shape_checkout_outcome;
pub(crate) mod shape_cost_group_list;
pub(crate) mod shape_cost_inputs;
pub(crate) mod shape_cost_outcome;
pub(crate) mod shape_cost_tracking_configuration;
pub(crate) mod shape_custom_charge;
pub(crate) mod shape_developer_address;
pub(crate) mod shape_entitlement_metrics_list;
pub(crate) mod shape_entitlement_reason;
pub(crate) mod shape_feature_scores;
pub(crate) mod shape_market_inputs;
pub(crate) mod shape_metric;
pub(crate) mod shape_metric_definition;
pub(crate) mod shape_metric_list;
pub(crate) mod shape_metric_usage_list;
pub(crate) mod shape_one_time_price;
pub(crate) mod shape_one_time_price_definition;
pub(crate) mod shape_one_time_price_list;
pub(crate) mod shape_pending_change;
pub(crate) mod shape_plan;
pub(crate) mod shape_plan_definition;
pub(crate) mod shape_plan_list;
pub(crate) mod shape_plan_options;
pub(crate) mod shape_plan_options_outcome;
pub(crate) mod shape_price;
pub(crate) mod shape_price_range;
pub(crate) mod shape_pricing_analysis;
pub(crate) mod shape_recommended_credit_pack_list;
pub(crate) mod shape_recommended_plan_list;
pub(crate) mod shape_request_context;
pub(crate) mod shape_revenue_group_list;
pub(crate) mod shape_subscription;
pub(crate) mod shape_subscription_group_list;
pub(crate) mod shape_subscription_record_list;
pub(crate) mod shape_subscription_summary_list;
pub(crate) mod shape_tag_map;
pub(crate) mod shape_tax_registration;
pub(crate) mod shape_third_party_cost_item;
pub(crate) mod shape_third_party_cost_item_list;
pub(crate) mod shape_unit_price_list;
pub(crate) mod shape_usage_group_list;
pub(crate) mod shape_validation_exception_field_list;
pub(crate) mod shape_app_quota_config;
pub(crate) mod shape_break_even_range;
pub(crate) mod shape_checkout_drop_off;
pub(crate) mod shape_checkout_redirect;
pub(crate) mod shape_comparable;
pub(crate) mod shape_comparable_name_list;
pub(crate) mod shape_cost_cover_list;
pub(crate) mod shape_cost_group;
pub(crate) mod shape_customer_type;
pub(crate) mod shape_dropped_comparable_list;
pub(crate) mod shape_entitlement_metric_status;
pub(crate) mod shape_evaluated_plan_price_list;
pub(crate) mod shape_free_tier_outcome;
pub(crate) mod shape_max_tier_outcome;
pub(crate) mod shape_measured_conversion;
pub(crate) mod shape_metric_filter;
pub(crate) mod shape_metric_usage;
pub(crate) mod shape_model_comparison_list;
pub(crate) mod shape_outside_option;
pub(crate) mod shape_payment_failure_policy;
pub(crate) mod shape_plan_price;
pub(crate) mod shape_plan_selection_redirect;
pub(crate) mod shape_pricing_model_caveat_list;
pub(crate) mod shape_published_price;
pub(crate) mod shape_recommended_credit_pack;
pub(crate) mod shape_recommended_plan;
pub(crate) mod shape_revenue_group;
pub(crate) mod shape_subscription_change;
pub(crate) mod shape_subscription_group;
pub(crate) mod shape_subscription_summary;
pub(crate) mod shape_tax_registration_list;
pub(crate) mod shape_unit_price;
pub(crate) mod shape_usage_group;
pub(crate) mod shape_validation_exception_field;
pub(crate) mod shape_app_quota;
pub(crate) mod shape_app_quota_map;
pub(crate) mod shape_app_tiered_quota;
pub(crate) mod shape_break_even_point;
pub(crate) mod shape_cost_cover;
pub(crate) mod shape_dropped_comparable;
pub(crate) mod shape_evaluated_plan_price;
pub(crate) mod shape_group_by_field_list;
pub(crate) mod shape_metric_filter_list;
pub(crate) mod shape_model_comparison;
pub(crate) mod shape_recommended_plan_code_list;
pub(crate) mod shape_recommended_quota_list;
pub(crate) mod shape_recommended_quota;
pub(crate) mod shape_tiered_overage;
pub(crate) mod shape_tiered_price;
pub(crate) mod shape_filter_value_list;
pub(crate) mod shape_tier_band;
pub(crate) mod shape_tier_band_list;