aws-sdk-ivs 1.14.0

AWS SDK for Amazon Interactive Video Service
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_batch_get_channel;

pub(crate) mod shape_batch_get_stream_key;

pub(crate) mod shape_batch_start_viewer_session_revocation;

pub(crate) mod shape_create_channel;

pub(crate) mod shape_create_playback_restriction_policy;

pub(crate) mod shape_create_recording_configuration;

pub(crate) mod shape_create_stream_key;

pub(crate) mod shape_delete_channel;

pub(crate) mod shape_delete_playback_key_pair;

pub(crate) mod shape_delete_playback_restriction_policy;

pub(crate) mod shape_delete_recording_configuration;

pub(crate) mod shape_delete_stream_key;

pub(crate) mod shape_get_channel;

pub(crate) mod shape_get_playback_key_pair;

pub(crate) mod shape_get_playback_restriction_policy;

pub(crate) mod shape_get_recording_configuration;

pub(crate) mod shape_get_stream;

pub(crate) mod shape_get_stream_key;

pub(crate) mod shape_get_stream_session;

pub(crate) mod shape_import_playback_key_pair;

pub(crate) mod shape_list_channels;

pub(crate) mod shape_list_playback_key_pairs;

pub(crate) mod shape_list_playback_restriction_policies;

pub(crate) mod shape_list_recording_configurations;

pub(crate) mod shape_list_stream_keys;

pub(crate) mod shape_list_stream_sessions;

pub(crate) mod shape_list_streams;

pub(crate) mod shape_list_tags_for_resource;

pub(crate) mod shape_put_metadata;

pub(crate) mod shape_start_viewer_session_revocation;

pub(crate) mod shape_stop_stream;

pub(crate) mod shape_tag_resource;

pub(crate) mod shape_untag_resource;

pub(crate) mod shape_update_channel;

pub(crate) mod shape_update_playback_restriction_policy;

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_batch_get_channel_input;

pub(crate) mod shape_batch_get_stream_key_input;

pub(crate) mod shape_batch_start_viewer_session_revocation_input;

pub(crate) mod shape_channel_not_broadcasting;

pub(crate) mod shape_conflict_exception;

pub(crate) mod shape_create_channel_input;

pub(crate) mod shape_create_playback_restriction_policy_input;

pub(crate) mod shape_create_recording_configuration_input;

pub(crate) mod shape_create_stream_key_input;

pub(crate) mod shape_delete_channel_input;

pub(crate) mod shape_delete_playback_key_pair_input;

pub(crate) mod shape_delete_playback_restriction_policy_input;

pub(crate) mod shape_delete_recording_configuration_input;

pub(crate) mod shape_delete_stream_key_input;

pub(crate) mod shape_get_channel_input;

pub(crate) mod shape_get_playback_key_pair_input;

pub(crate) mod shape_get_playback_restriction_policy_input;

pub(crate) mod shape_get_recording_configuration_input;

pub(crate) mod shape_get_stream_input;

pub(crate) mod shape_get_stream_key_input;

pub(crate) mod shape_get_stream_session_input;

pub(crate) mod shape_import_playback_key_pair_input;

pub(crate) mod shape_internal_server_exception;

pub(crate) mod shape_list_channels_input;

pub(crate) mod shape_list_playback_key_pairs_input;

pub(crate) mod shape_list_playback_restriction_policies_input;

pub(crate) mod shape_list_recording_configurations_input;

pub(crate) mod shape_list_stream_keys_input;

pub(crate) mod shape_list_stream_sessions_input;

pub(crate) mod shape_list_streams_input;

pub(crate) mod shape_pending_verification;

pub(crate) mod shape_put_metadata_input;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_service_quota_exceeded_exception;

pub(crate) mod shape_start_viewer_session_revocation_input;

pub(crate) mod shape_stop_stream_input;

pub(crate) mod shape_stream_unavailable;

pub(crate) mod shape_tag_resource_input;

pub(crate) mod shape_throttling_exception;

pub(crate) mod shape_update_channel_input;

pub(crate) mod shape_update_playback_restriction_policy_input;

pub(crate) mod shape_validation_exception;

pub(crate) mod shape_batch_errors;

pub(crate) mod shape_batch_start_viewer_session_revocation_errors;

pub(crate) mod shape_batch_start_viewer_session_revocation_viewer_session;

pub(crate) mod shape_channel;

pub(crate) mod shape_channel_list;

pub(crate) mod shape_channels;

pub(crate) mod shape_destination_configuration;

pub(crate) mod shape_playback_key_pair;

pub(crate) mod shape_playback_key_pair_list;

pub(crate) mod shape_playback_restriction_policy;

pub(crate) mod shape_playback_restriction_policy_list;

pub(crate) mod shape_recording_configuration;

pub(crate) mod shape_recording_configuration_list;

pub(crate) mod shape_rendition_configuration;

pub(crate) mod shape_stream;

pub(crate) mod shape_stream_filters;

pub(crate) mod shape_stream_key;

pub(crate) mod shape_stream_key_list;

pub(crate) mod shape_stream_keys;

pub(crate) mod shape_stream_list;

pub(crate) mod shape_stream_session;

pub(crate) mod shape_stream_session_list;

pub(crate) mod shape_tags;

pub(crate) mod shape_thumbnail_configuration;

pub(crate) mod shape_batch_error;

pub(crate) mod shape_batch_start_viewer_session_revocation_error;

pub(crate) mod shape_channel_summary;

pub(crate) mod shape_ingest_configuration;

pub(crate) mod shape_playback_key_pair_summary;

pub(crate) mod shape_playback_restriction_policy_allowed_country_list;

pub(crate) mod shape_playback_restriction_policy_allowed_origin_list;

pub(crate) mod shape_playback_restriction_policy_summary;

pub(crate) mod shape_recording_configuration_summary;

pub(crate) mod shape_s3_destination_configuration;

pub(crate) mod shape_stream_events;

pub(crate) mod shape_stream_key_summary;

pub(crate) mod shape_stream_session_summary;

pub(crate) mod shape_stream_summary;

pub(crate) mod shape_audio_configuration;

pub(crate) mod shape_rendition_configuration_rendition_list;

pub(crate) mod shape_stream_event;

pub(crate) mod shape_thumbnail_configuration_storage_list;

pub(crate) mod shape_video_configuration;