aws_sdk_secretsmanager/
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) -> 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_batch_get_secret_value;
27
28pub(crate) mod shape_cancel_rotate_secret;
29
30pub(crate) mod shape_create_secret;
31
32pub(crate) mod shape_delete_resource_policy;
33
34pub(crate) mod shape_delete_secret;
35
36pub(crate) mod shape_describe_secret;
37
38pub(crate) mod shape_get_random_password;
39
40pub(crate) mod shape_get_resource_policy;
41
42pub(crate) mod shape_get_secret_value;
43
44pub(crate) mod shape_list_secret_version_ids;
45
46pub(crate) mod shape_list_secrets;
47
48pub(crate) mod shape_put_resource_policy;
49
50pub(crate) mod shape_put_secret_value;
51
52pub(crate) mod shape_remove_regions_from_replication;
53
54pub(crate) mod shape_replicate_secret_to_regions;
55
56pub(crate) mod shape_restore_secret;
57
58pub(crate) mod shape_rotate_secret;
59
60pub(crate) mod shape_stop_replication_to_replica;
61
62pub(crate) mod shape_tag_resource;
63
64pub(crate) mod shape_untag_resource;
65
66pub(crate) mod shape_update_secret;
67
68pub(crate) mod shape_update_secret_version_stage;
69
70pub(crate) mod shape_validate_resource_policy;
71
72pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
73    if data.is_empty() {
74        b"{}"
75    } else {
76        data
77    }
78}
79
80pub(crate) mod shape_batch_get_secret_value_input;
81
82pub(crate) mod shape_cancel_rotate_secret_input;
83
84pub(crate) mod shape_create_secret_input;
85
86pub(crate) mod shape_decryption_failure;
87
88pub(crate) mod shape_delete_resource_policy_input;
89
90pub(crate) mod shape_delete_secret_input;
91
92pub(crate) mod shape_describe_secret_input;
93
94pub(crate) mod shape_encryption_failure;
95
96pub(crate) mod shape_get_random_password_input;
97
98pub(crate) mod shape_get_resource_policy_input;
99
100pub(crate) mod shape_get_secret_value_input;
101
102pub(crate) mod shape_internal_service_error;
103
104pub(crate) mod shape_invalid_next_token_exception;
105
106pub(crate) mod shape_invalid_parameter_exception;
107
108pub(crate) mod shape_invalid_request_exception;
109
110pub(crate) mod shape_limit_exceeded_exception;
111
112pub(crate) mod shape_list_secret_version_ids_input;
113
114pub(crate) mod shape_list_secrets_input;
115
116pub(crate) mod shape_malformed_policy_document_exception;
117
118pub(crate) mod shape_precondition_not_met_exception;
119
120pub(crate) mod shape_public_policy_exception;
121
122pub(crate) mod shape_put_resource_policy_input;
123
124pub(crate) mod shape_put_secret_value_input;
125
126pub(crate) mod shape_remove_regions_from_replication_input;
127
128pub(crate) mod shape_replicate_secret_to_regions_input;
129
130pub(crate) mod shape_resource_exists_exception;
131
132pub(crate) mod shape_resource_not_found_exception;
133
134pub(crate) mod shape_restore_secret_input;
135
136pub(crate) mod shape_rotate_secret_input;
137
138pub(crate) mod shape_stop_replication_to_replica_input;
139
140pub(crate) mod shape_tag_resource_input;
141
142pub(crate) mod shape_untag_resource_input;
143
144pub(crate) mod shape_update_secret_input;
145
146pub(crate) mod shape_update_secret_version_stage_input;
147
148pub(crate) mod shape_validate_resource_policy_input;
149
150pub(crate) mod shape_api_error_list_type;
151
152pub(crate) mod shape_filter;
153
154pub(crate) mod shape_replica_region_type;
155
156pub(crate) mod shape_replication_status_list_type;
157
158pub(crate) mod shape_rotation_rules_type;
159
160pub(crate) mod shape_secret_list_type;
161
162pub(crate) mod shape_secret_values_type;
163
164pub(crate) mod shape_secret_version_stages_type;
165
166pub(crate) mod shape_secret_versions_list_type;
167
168pub(crate) mod shape_secret_versions_to_stages_map_type;
169
170pub(crate) mod shape_tag;
171
172pub(crate) mod shape_tag_list_type;
173
174pub(crate) mod shape_validation_errors_type;
175
176pub(crate) mod shape_api_error_type;
177
178pub(crate) mod shape_replication_status_type;
179
180pub(crate) mod shape_secret_list_entry;
181
182pub(crate) mod shape_secret_value_entry;
183
184pub(crate) mod shape_secret_versions_list_entry;
185
186pub(crate) mod shape_validation_errors_entry;
187
188pub(crate) mod shape_kms_key_id_list_type;