aws-sdk-cognitosync 1.99.0

AWS SDK for Amazon Cognito Sync
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],
) -> ::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_bulk_publish;

pub(crate) mod shape_delete_dataset;

pub(crate) mod shape_describe_dataset;

pub(crate) mod shape_describe_identity_pool_usage;

pub(crate) mod shape_describe_identity_usage;

pub(crate) mod shape_get_bulk_publish_details;

pub(crate) mod shape_get_cognito_events;

pub(crate) mod shape_get_identity_pool_configuration;

pub(crate) mod shape_list_datasets;

pub(crate) mod shape_list_identity_pool_usage;

pub(crate) mod shape_list_records;

pub(crate) mod shape_register_device;

pub(crate) mod shape_set_cognito_events;

pub(crate) mod shape_set_identity_pool_configuration;

pub(crate) mod shape_subscribe_to_dataset;

pub(crate) mod shape_unsubscribe_from_dataset;

pub(crate) mod shape_update_records;

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

pub(crate) mod shape_already_streamed_exception;

pub(crate) mod shape_concurrent_modification_exception;

pub(crate) mod shape_duplicate_request_exception;

pub(crate) mod shape_internal_error_exception;

pub(crate) mod shape_invalid_configuration_exception;

pub(crate) mod shape_invalid_lambda_function_output_exception;

pub(crate) mod shape_invalid_parameter_exception;

pub(crate) mod shape_lambda_throttled_exception;

pub(crate) mod shape_limit_exceeded_exception;

pub(crate) mod shape_not_authorized_exception;

pub(crate) mod shape_register_device_input;

pub(crate) mod shape_resource_conflict_exception;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_set_cognito_events_input;

pub(crate) mod shape_set_identity_pool_configuration_input;

pub(crate) mod shape_too_many_requests_exception;

pub(crate) mod shape_update_records_input;

pub(crate) mod shape_cognito_streams;

pub(crate) mod shape_dataset;

pub(crate) mod shape_dataset_list;

pub(crate) mod shape_events;

pub(crate) mod shape_identity_pool_usage;

pub(crate) mod shape_identity_pool_usage_list;

pub(crate) mod shape_identity_usage;

pub(crate) mod shape_merged_dataset_name_list;

pub(crate) mod shape_push_sync;

pub(crate) mod shape_record_list;

pub(crate) mod shape_record_patch;

pub(crate) mod shape_application_arn_list;

pub(crate) mod shape_record;