aws-sdk-shield 1.98.0

AWS SDK for AWS Shield
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_associate_drt_log_bucket;

pub(crate) mod shape_associate_drt_role;

pub(crate) mod shape_associate_health_check;

pub(crate) mod shape_associate_proactive_engagement_details;

pub(crate) mod shape_create_protection;

pub(crate) mod shape_create_protection_group;

pub(crate) mod shape_create_subscription;

pub(crate) mod shape_delete_protection;

pub(crate) mod shape_delete_protection_group;

pub(crate) mod shape_delete_subscription;

pub(crate) mod shape_describe_attack;

pub(crate) mod shape_describe_attack_statistics;

pub(crate) mod shape_describe_drt_access;

pub(crate) mod shape_describe_emergency_contact_settings;

pub(crate) mod shape_describe_protection;

pub(crate) mod shape_describe_protection_group;

pub(crate) mod shape_describe_subscription;

pub(crate) mod shape_disable_application_layer_automatic_response;

pub(crate) mod shape_disable_proactive_engagement;

pub(crate) mod shape_disassociate_drt_log_bucket;

pub(crate) mod shape_disassociate_drt_role;

pub(crate) mod shape_disassociate_health_check;

pub(crate) mod shape_enable_application_layer_automatic_response;

pub(crate) mod shape_enable_proactive_engagement;

pub(crate) mod shape_get_subscription_state;

pub(crate) mod shape_list_attacks;

pub(crate) mod shape_list_protection_groups;

pub(crate) mod shape_list_protections;

pub(crate) mod shape_list_resources_in_protection_group;

pub(crate) mod shape_list_tags_for_resource;

pub(crate) mod shape_tag_resource;

pub(crate) mod shape_untag_resource;

pub(crate) mod shape_update_application_layer_automatic_response;

pub(crate) mod shape_update_emergency_contact_settings;

pub(crate) mod shape_update_protection_group;

pub(crate) mod shape_update_subscription;

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

pub(crate) mod shape_associate_drt_log_bucket_input;

pub(crate) mod shape_associate_drt_role_input;

pub(crate) mod shape_associate_health_check_input;

pub(crate) mod shape_associate_proactive_engagement_details_input;

pub(crate) mod shape_create_protection_group_input;

pub(crate) mod shape_create_protection_input;

pub(crate) mod shape_delete_protection_group_input;

pub(crate) mod shape_delete_protection_input;

pub(crate) mod shape_describe_attack_input;

pub(crate) mod shape_describe_protection_group_input;

pub(crate) mod shape_describe_protection_input;

pub(crate) mod shape_disable_application_layer_automatic_response_input;

pub(crate) mod shape_disassociate_drt_log_bucket_input;

pub(crate) mod shape_disassociate_health_check_input;

pub(crate) mod shape_enable_application_layer_automatic_response_input;

pub(crate) mod shape_internal_error_exception;

pub(crate) mod shape_invalid_operation_exception;

pub(crate) mod shape_invalid_pagination_token_exception;

pub(crate) mod shape_invalid_parameter_exception;

pub(crate) mod shape_invalid_resource_exception;

pub(crate) mod shape_limits_exceeded_exception;

pub(crate) mod shape_list_attacks_input;

pub(crate) mod shape_list_protection_groups_input;

pub(crate) mod shape_list_protections_input;

pub(crate) mod shape_list_resources_in_protection_group_input;

pub(crate) mod shape_list_tags_for_resource_input;

pub(crate) mod shape_locked_subscription_exception;

pub(crate) mod shape_no_associated_role_exception;

pub(crate) mod shape_optimistic_lock_exception;

pub(crate) mod shape_resource_already_exists_exception;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_tag_resource_input;

pub(crate) mod shape_untag_resource_input;

pub(crate) mod shape_update_application_layer_automatic_response_input;

pub(crate) mod shape_update_emergency_contact_settings_input;

pub(crate) mod shape_update_protection_group_input;

pub(crate) mod shape_update_subscription_input;

pub(crate) mod shape_attack_detail;

pub(crate) mod shape_attack_statistics_data_list;

pub(crate) mod shape_attack_summaries;

pub(crate) mod shape_emergency_contact;

pub(crate) mod shape_emergency_contact_list;

pub(crate) mod shape_inclusion_protection_filters;

pub(crate) mod shape_inclusion_protection_group_filters;

pub(crate) mod shape_log_bucket_list;

pub(crate) mod shape_protection;

pub(crate) mod shape_protection_group;

pub(crate) mod shape_protection_groups;

pub(crate) mod shape_protections;

pub(crate) mod shape_resource_arn_list;

pub(crate) mod shape_response_action;

pub(crate) mod shape_subscription;

pub(crate) mod shape_tag;

pub(crate) mod shape_tag_list;

pub(crate) mod shape_time_range;

pub(crate) mod shape_validation_exception_field_list;

pub(crate) mod shape_application_layer_automatic_response_configuration;

pub(crate) mod shape_attack_properties;

pub(crate) mod shape_attack_statistics_data_item;

pub(crate) mod shape_attack_summary;

pub(crate) mod shape_block_action;

pub(crate) mod shape_count_action;

pub(crate) mod shape_health_check_ids;

pub(crate) mod shape_limits;

pub(crate) mod shape_mitigation_list;

pub(crate) mod shape_protection_group_members;

pub(crate) mod shape_sub_resource_summary_list;

pub(crate) mod shape_subscription_limits;

pub(crate) mod shape_summarized_counter_list;

pub(crate) mod shape_validation_exception_field;

pub(crate) mod shape_attack_property;

pub(crate) mod shape_attack_vector_description_list;

pub(crate) mod shape_attack_volume;

pub(crate) mod shape_limit;

pub(crate) mod shape_mitigation;

pub(crate) mod shape_protection_group_limits;

pub(crate) mod shape_protection_limits;

pub(crate) mod shape_sub_resource_summary;

pub(crate) mod shape_summarized_counter;

pub(crate) mod shape_attack_vector_description;

pub(crate) mod shape_attack_volume_statistics;

pub(crate) mod shape_protection_group_pattern_type_limits;

pub(crate) mod shape_summarized_attack_vector_list;

pub(crate) mod shape_top_contributors;

pub(crate) mod shape_contributor;

pub(crate) mod shape_protection_group_arbitrary_pattern_limits;

pub(crate) mod shape_summarized_attack_vector;