aws_sdk_codestarconnections/
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_connection;
27
28pub(crate) mod shape_create_host;
29
30pub(crate) mod shape_create_repository_link;
31
32pub(crate) mod shape_create_sync_configuration;
33
34pub(crate) mod shape_delete_connection;
35
36pub(crate) mod shape_delete_host;
37
38pub(crate) mod shape_delete_repository_link;
39
40pub(crate) mod shape_delete_sync_configuration;
41
42pub(crate) mod shape_get_connection;
43
44pub(crate) mod shape_get_host;
45
46pub(crate) mod shape_get_repository_link;
47
48pub(crate) mod shape_get_repository_sync_status;
49
50pub(crate) mod shape_get_resource_sync_status;
51
52pub(crate) mod shape_get_sync_blocker_summary;
53
54pub(crate) mod shape_get_sync_configuration;
55
56pub(crate) mod shape_list_connections;
57
58pub(crate) mod shape_list_hosts;
59
60pub(crate) mod shape_list_repository_links;
61
62pub(crate) mod shape_list_repository_sync_definitions;
63
64pub(crate) mod shape_list_sync_configurations;
65
66pub(crate) mod shape_list_tags_for_resource;
67
68pub(crate) mod shape_tag_resource;
69
70pub(crate) mod shape_untag_resource;
71
72pub(crate) mod shape_update_host;
73
74pub(crate) mod shape_update_repository_link;
75
76pub(crate) mod shape_update_sync_blocker;
77
78pub(crate) mod shape_update_sync_configuration;
79
80pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
81    if data.is_empty() {
82        b"{}"
83    } else {
84        data
85    }
86}
87
88pub(crate) mod shape_access_denied_exception;
89
90pub(crate) mod shape_concurrent_modification_exception;
91
92pub(crate) mod shape_conditional_check_failed_exception;
93
94pub(crate) mod shape_conflict_exception;
95
96pub(crate) mod shape_create_connection_input;
97
98pub(crate) mod shape_create_host_input;
99
100pub(crate) mod shape_create_repository_link_input;
101
102pub(crate) mod shape_create_sync_configuration_input;
103
104pub(crate) mod shape_delete_connection_input;
105
106pub(crate) mod shape_delete_host_input;
107
108pub(crate) mod shape_delete_repository_link_input;
109
110pub(crate) mod shape_delete_sync_configuration_input;
111
112pub(crate) mod shape_get_connection_input;
113
114pub(crate) mod shape_get_host_input;
115
116pub(crate) mod shape_get_repository_link_input;
117
118pub(crate) mod shape_get_repository_sync_status_input;
119
120pub(crate) mod shape_get_resource_sync_status_input;
121
122pub(crate) mod shape_get_sync_blocker_summary_input;
123
124pub(crate) mod shape_get_sync_configuration_input;
125
126pub(crate) mod shape_internal_server_exception;
127
128pub(crate) mod shape_invalid_input_exception;
129
130pub(crate) mod shape_limit_exceeded_exception;
131
132pub(crate) mod shape_list_connections_input;
133
134pub(crate) mod shape_list_hosts_input;
135
136pub(crate) mod shape_list_repository_links_input;
137
138pub(crate) mod shape_list_repository_sync_definitions_input;
139
140pub(crate) mod shape_list_sync_configurations_input;
141
142pub(crate) mod shape_list_tags_for_resource_input;
143
144pub(crate) mod shape_resource_already_exists_exception;
145
146pub(crate) mod shape_resource_not_found_exception;
147
148pub(crate) mod shape_resource_unavailable_exception;
149
150pub(crate) mod shape_retry_latest_commit_failed_exception;
151
152pub(crate) mod shape_sync_blocker_does_not_exist_exception;
153
154pub(crate) mod shape_sync_configuration_still_exists_exception;
155
156pub(crate) mod shape_tag_resource_input;
157
158pub(crate) mod shape_throttling_exception;
159
160pub(crate) mod shape_unsupported_operation_exception;
161
162pub(crate) mod shape_unsupported_provider_type_exception;
163
164pub(crate) mod shape_untag_resource_input;
165
166pub(crate) mod shape_update_host_input;
167
168pub(crate) mod shape_update_out_of_sync_exception;
169
170pub(crate) mod shape_update_repository_link_input;
171
172pub(crate) mod shape_update_sync_blocker_input;
173
174pub(crate) mod shape_update_sync_configuration_input;
175
176pub(crate) mod shape_connection;
177
178pub(crate) mod shape_connection_list;
179
180pub(crate) mod shape_host_list;
181
182pub(crate) mod shape_repository_link_info;
183
184pub(crate) mod shape_repository_link_list;
185
186pub(crate) mod shape_repository_sync_attempt;
187
188pub(crate) mod shape_repository_sync_definition_list;
189
190pub(crate) mod shape_resource_sync_attempt;
191
192pub(crate) mod shape_revision;
193
194pub(crate) mod shape_sync_blocker;
195
196pub(crate) mod shape_sync_blocker_summary;
197
198pub(crate) mod shape_sync_configuration;
199
200pub(crate) mod shape_sync_configuration_list;
201
202pub(crate) mod shape_tag;
203
204pub(crate) mod shape_tag_list;
205
206pub(crate) mod shape_vpc_configuration;
207
208pub(crate) mod shape_host;
209
210pub(crate) mod shape_latest_sync_blocker_list;
211
212pub(crate) mod shape_repository_sync_definition;
213
214pub(crate) mod shape_repository_sync_event_list;
215
216pub(crate) mod shape_resource_sync_event_list;
217
218pub(crate) mod shape_security_group_ids;
219
220pub(crate) mod shape_subnet_ids;
221
222pub(crate) mod shape_sync_blocker_context_list;
223
224pub(crate) mod shape_repository_sync_event;
225
226pub(crate) mod shape_resource_sync_event;
227
228pub(crate) mod shape_sync_blocker_context;