aws_sdk_networkflowmonitor/
protocol_serde.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(crate) fn type_erase_result<O, E>(
3    result: ::std::result::Result<O, E>,
4) -> ::std::result::Result<
5    ::aws_smithy_runtime_api::client::interceptors::context::Output,
6    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
7>
8where
9    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
11{
12    result
13        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
14        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
15        .map_err(::std::convert::Into::into)
16}
17
18pub fn parse_http_error_metadata(
19    _response_status: u16,
20    response_headers: &::aws_smithy_runtime_api::http::Headers,
21    response_body: &[u8],
22) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
23    crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
25
26pub(crate) mod shape_create_monitor;
27
28pub(crate) mod shape_create_scope;
29
30pub(crate) mod shape_delete_monitor;
31
32pub(crate) mod shape_delete_scope;
33
34pub(crate) mod shape_get_monitor;
35
36pub(crate) mod shape_get_query_results_monitor_top_contributors;
37
38pub(crate) mod shape_get_query_results_workload_insights_top_contributors;
39
40pub(crate) mod shape_get_query_results_workload_insights_top_contributors_data;
41
42pub(crate) mod shape_get_query_status_monitor_top_contributors;
43
44pub(crate) mod shape_get_query_status_workload_insights_top_contributors;
45
46pub(crate) mod shape_get_query_status_workload_insights_top_contributors_data;
47
48pub(crate) mod shape_get_scope;
49
50pub(crate) mod shape_list_monitors;
51
52pub(crate) mod shape_list_scopes;
53
54pub(crate) mod shape_list_tags_for_resource;
55
56pub(crate) mod shape_start_query_monitor_top_contributors;
57
58pub(crate) mod shape_start_query_workload_insights_top_contributors;
59
60pub(crate) mod shape_start_query_workload_insights_top_contributors_data;
61
62pub(crate) mod shape_stop_query_monitor_top_contributors;
63
64pub(crate) mod shape_stop_query_workload_insights_top_contributors;
65
66pub(crate) mod shape_stop_query_workload_insights_top_contributors_data;
67
68pub(crate) mod shape_tag_resource;
69
70pub(crate) mod shape_untag_resource;
71
72pub(crate) mod shape_update_monitor;
73
74pub(crate) mod shape_update_scope;
75
76pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
77    if data.is_empty() {
78        b"{}"
79    } else {
80        data
81    }
82}
83
84pub(crate) mod shape_access_denied_exception;
85
86pub(crate) mod shape_conflict_exception;
87
88pub(crate) mod shape_create_monitor_input;
89
90pub(crate) mod shape_create_scope_input;
91
92pub(crate) mod shape_internal_server_exception;
93
94pub(crate) mod shape_resource_not_found_exception;
95
96pub(crate) mod shape_service_quota_exceeded_exception;
97
98pub(crate) mod shape_start_query_monitor_top_contributors_input;
99
100pub(crate) mod shape_start_query_workload_insights_top_contributors_data_input;
101
102pub(crate) mod shape_start_query_workload_insights_top_contributors_input;
103
104pub(crate) mod shape_tag_resource_input;
105
106pub(crate) mod shape_throttling_exception;
107
108pub(crate) mod shape_update_monitor_input;
109
110pub(crate) mod shape_update_scope_input;
111
112pub(crate) mod shape_validation_exception;
113
114pub(crate) mod shape_monitor_list;
115
116pub(crate) mod shape_monitor_local_resource;
117
118pub(crate) mod shape_monitor_local_resources;
119
120pub(crate) mod shape_monitor_remote_resource;
121
122pub(crate) mod shape_monitor_remote_resources;
123
124pub(crate) mod shape_monitor_top_contributors_row_list;
125
126pub(crate) mod shape_scope_summary_list;
127
128pub(crate) mod shape_tag_map;
129
130pub(crate) mod shape_target_resource;
131
132pub(crate) mod shape_target_resource_list;
133
134pub(crate) mod shape_workload_insights_top_contributors_data_points;
135
136pub(crate) mod shape_workload_insights_top_contributors_row_list;
137
138pub(crate) mod shape_monitor_summary;
139
140pub(crate) mod shape_monitor_top_contributors_row;
141
142pub(crate) mod shape_scope_summary;
143
144pub(crate) mod shape_target_identifier;
145
146pub(crate) mod shape_workload_insights_top_contributors_data_point;
147
148pub(crate) mod shape_workload_insights_top_contributors_row;
149
150pub(crate) mod shape_kubernetes_metadata;
151
152pub(crate) mod shape_target_id;
153
154pub(crate) mod shape_traversed_constructs_list;
155
156pub(crate) mod shape_workload_insights_top_contributors_timestamps_list;
157
158pub(crate) mod shape_workload_insights_top_contributors_values_list;
159
160pub(crate) mod shape_traversed_component;