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_count_closed_workflow_executions;
pub(crate) mod shape_count_open_workflow_executions;
pub(crate) mod shape_count_pending_activity_tasks;
pub(crate) mod shape_count_pending_decision_tasks;
pub(crate) mod shape_deprecate_activity_type;
pub(crate) mod shape_deprecate_domain;
pub(crate) mod shape_deprecate_workflow_type;
pub(crate) mod shape_describe_activity_type;
pub(crate) mod shape_describe_domain;
pub(crate) mod shape_describe_workflow_execution;
pub(crate) mod shape_describe_workflow_type;
pub(crate) mod shape_get_workflow_execution_history;
pub(crate) mod shape_list_activity_types;
pub(crate) mod shape_list_closed_workflow_executions;
pub(crate) mod shape_list_domains;
pub(crate) mod shape_list_open_workflow_executions;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_list_workflow_types;
pub(crate) mod shape_poll_for_activity_task;
pub(crate) mod shape_poll_for_decision_task;
pub(crate) mod shape_record_activity_task_heartbeat;
pub(crate) mod shape_register_activity_type;
pub(crate) mod shape_register_domain;
pub(crate) mod shape_register_workflow_type;
pub(crate) mod shape_request_cancel_workflow_execution;
pub(crate) mod shape_respond_activity_task_canceled;
pub(crate) mod shape_respond_activity_task_completed;
pub(crate) mod shape_respond_activity_task_failed;
pub(crate) mod shape_respond_decision_task_completed;
pub(crate) mod shape_signal_workflow_execution;
pub(crate) mod shape_start_workflow_execution;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_terminate_workflow_execution;
pub(crate) mod shape_undeprecate_activity_type;
pub(crate) mod shape_undeprecate_domain;
pub(crate) mod shape_undeprecate_workflow_type;
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_count_closed_workflow_executions_input;
pub(crate) mod shape_count_open_workflow_executions_input;
pub(crate) mod shape_count_pending_activity_tasks_input;
pub(crate) mod shape_count_pending_decision_tasks_input;
pub(crate) mod shape_default_undefined_fault;
pub(crate) mod shape_deprecate_activity_type_input;
pub(crate) mod shape_deprecate_domain_input;
pub(crate) mod shape_deprecate_workflow_type_input;
pub(crate) mod shape_describe_activity_type_input;
pub(crate) mod shape_describe_domain_input;
pub(crate) mod shape_describe_workflow_execution_input;
pub(crate) mod shape_describe_workflow_type_input;
pub(crate) mod shape_domain_already_exists_fault;
pub(crate) mod shape_domain_deprecated_fault;
pub(crate) mod shape_get_workflow_execution_history_input;
pub(crate) mod shape_limit_exceeded_fault;
pub(crate) mod shape_list_activity_types_input;
pub(crate) mod shape_list_closed_workflow_executions_input;
pub(crate) mod shape_list_domains_input;
pub(crate) mod shape_list_open_workflow_executions_input;
pub(crate) mod shape_list_tags_for_resource_input;
pub(crate) mod shape_list_workflow_types_input;
pub(crate) mod shape_operation_not_permitted_fault;
pub(crate) mod shape_poll_for_activity_task_input;
pub(crate) mod shape_poll_for_decision_task_input;
pub(crate) mod shape_record_activity_task_heartbeat_input;
pub(crate) mod shape_register_activity_type_input;
pub(crate) mod shape_register_domain_input;
pub(crate) mod shape_register_workflow_type_input;
pub(crate) mod shape_request_cancel_workflow_execution_input;
pub(crate) mod shape_respond_activity_task_canceled_input;
pub(crate) mod shape_respond_activity_task_completed_input;
pub(crate) mod shape_respond_activity_task_failed_input;
pub(crate) mod shape_respond_decision_task_completed_input;
pub(crate) mod shape_signal_workflow_execution_input;
pub(crate) mod shape_start_workflow_execution_input;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_terminate_workflow_execution_input;
pub(crate) mod shape_too_many_tags_fault;
pub(crate) mod shape_type_already_exists_fault;
pub(crate) mod shape_type_deprecated_fault;
pub(crate) mod shape_undeprecate_activity_type_input;
pub(crate) mod shape_undeprecate_domain_input;
pub(crate) mod shape_undeprecate_workflow_type_input;
pub(crate) mod shape_unknown_resource_fault;
pub(crate) mod shape_untag_resource_input;
pub(crate) mod shape_workflow_execution_already_started_fault;
pub(crate) mod shape_activity_type;
pub(crate) mod shape_activity_type_configuration;
pub(crate) mod shape_activity_type_info;
pub(crate) mod shape_activity_type_info_list;
pub(crate) mod shape_close_status_filter;
pub(crate) mod shape_decision;
pub(crate) mod shape_domain_configuration;
pub(crate) mod shape_domain_info;
pub(crate) mod shape_domain_info_list;
pub(crate) mod shape_execution_time_filter;
pub(crate) mod shape_history_event_list;
pub(crate) mod shape_resource_tag;
pub(crate) mod shape_resource_tag_list;
pub(crate) mod shape_tag_filter;
pub(crate) mod shape_task_list;
pub(crate) mod shape_workflow_execution;
pub(crate) mod shape_workflow_execution_configuration;
pub(crate) mod shape_workflow_execution_filter;
pub(crate) mod shape_workflow_execution_info;
pub(crate) mod shape_workflow_execution_info_list;
pub(crate) mod shape_workflow_execution_open_counts;
pub(crate) mod shape_workflow_type;
pub(crate) mod shape_workflow_type_configuration;
pub(crate) mod shape_workflow_type_filter;
pub(crate) mod shape_workflow_type_info;
pub(crate) mod shape_workflow_type_info_list;
pub(crate) mod shape_cancel_timer_decision_attributes;
pub(crate) mod shape_cancel_workflow_execution_decision_attributes;
pub(crate) mod shape_complete_workflow_execution_decision_attributes;
pub(crate) mod shape_continue_as_new_workflow_execution_decision_attributes;
pub(crate) mod shape_fail_workflow_execution_decision_attributes;
pub(crate) mod shape_history_event;
pub(crate) mod shape_record_marker_decision_attributes;
pub(crate) mod shape_request_cancel_activity_task_decision_attributes;
pub(crate) mod shape_request_cancel_external_workflow_execution_decision_attributes;
pub(crate) mod shape_schedule_activity_task_decision_attributes;
pub(crate) mod shape_schedule_lambda_function_decision_attributes;
pub(crate) mod shape_signal_external_workflow_execution_decision_attributes;
pub(crate) mod shape_start_child_workflow_execution_decision_attributes;
pub(crate) mod shape_start_timer_decision_attributes;
pub(crate) mod shape_tag_list;
pub(crate) mod shape_activity_task_cancel_requested_event_attributes;
pub(crate) mod shape_activity_task_canceled_event_attributes;
pub(crate) mod shape_activity_task_completed_event_attributes;
pub(crate) mod shape_activity_task_failed_event_attributes;
pub(crate) mod shape_activity_task_scheduled_event_attributes;
pub(crate) mod shape_activity_task_started_event_attributes;
pub(crate) mod shape_activity_task_timed_out_event_attributes;
pub(crate) mod shape_cancel_timer_failed_event_attributes;
pub(crate) mod shape_cancel_workflow_execution_failed_event_attributes;
pub(crate) mod shape_child_workflow_execution_canceled_event_attributes;
pub(crate) mod shape_child_workflow_execution_completed_event_attributes;
pub(crate) mod shape_child_workflow_execution_failed_event_attributes;
pub(crate) mod shape_child_workflow_execution_started_event_attributes;
pub(crate) mod shape_child_workflow_execution_terminated_event_attributes;
pub(crate) mod shape_child_workflow_execution_timed_out_event_attributes;
pub(crate) mod shape_complete_workflow_execution_failed_event_attributes;
pub(crate) mod shape_continue_as_new_workflow_execution_failed_event_attributes;
pub(crate) mod shape_decision_task_completed_event_attributes;
pub(crate) mod shape_decision_task_scheduled_event_attributes;
pub(crate) mod shape_decision_task_started_event_attributes;
pub(crate) mod shape_decision_task_timed_out_event_attributes;
pub(crate) mod shape_external_workflow_execution_cancel_requested_event_attributes;
pub(crate) mod shape_external_workflow_execution_signaled_event_attributes;
pub(crate) mod shape_fail_workflow_execution_failed_event_attributes;
pub(crate) mod shape_lambda_function_completed_event_attributes;
pub(crate) mod shape_lambda_function_failed_event_attributes;
pub(crate) mod shape_lambda_function_scheduled_event_attributes;
pub(crate) mod shape_lambda_function_started_event_attributes;
pub(crate) mod shape_lambda_function_timed_out_event_attributes;
pub(crate) mod shape_marker_recorded_event_attributes;
pub(crate) mod shape_record_marker_failed_event_attributes;
pub(crate) mod shape_request_cancel_activity_task_failed_event_attributes;
pub(crate) mod shape_request_cancel_external_workflow_execution_failed_event_attributes;
pub(crate) mod shape_request_cancel_external_workflow_execution_initiated_event_attributes;
pub(crate) mod shape_schedule_activity_task_failed_event_attributes;
pub(crate) mod shape_schedule_lambda_function_failed_event_attributes;
pub(crate) mod shape_signal_external_workflow_execution_failed_event_attributes;
pub(crate) mod shape_signal_external_workflow_execution_initiated_event_attributes;
pub(crate) mod shape_start_child_workflow_execution_failed_event_attributes;
pub(crate) mod shape_start_child_workflow_execution_initiated_event_attributes;
pub(crate) mod shape_start_lambda_function_failed_event_attributes;
pub(crate) mod shape_start_timer_failed_event_attributes;
pub(crate) mod shape_timer_canceled_event_attributes;
pub(crate) mod shape_timer_fired_event_attributes;
pub(crate) mod shape_timer_started_event_attributes;
pub(crate) mod shape_workflow_execution_cancel_requested_event_attributes;
pub(crate) mod shape_workflow_execution_canceled_event_attributes;
pub(crate) mod shape_workflow_execution_completed_event_attributes;
pub(crate) mod shape_workflow_execution_continued_as_new_event_attributes;
pub(crate) mod shape_workflow_execution_failed_event_attributes;
pub(crate) mod shape_workflow_execution_signaled_event_attributes;
pub(crate) mod shape_workflow_execution_started_event_attributes;
pub(crate) mod shape_workflow_execution_terminated_event_attributes;
pub(crate) mod shape_workflow_execution_timed_out_event_attributes;