77 86 | runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
|
78 87 | }
|
79 88 | runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
|
80 89 | config_override,
|
81 90 | client_config.config.clone(),
|
82 91 | &client_config.runtime_components,
|
83 92 | ));
|
84 93 | }
|
85 94 | runtime_plugins
|
86 95 | }
|
96 + | /* OperationGenerator.kt:85 */
|
87 97 | }
|
98 + | /* OperationRuntimePluginGenerator.kt:55 */
|
88 99 | impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for CompleteSnapshot {
|
89 100 | fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
|
90 101 | let mut cfg = ::aws_smithy_types::config_bag::Layer::new("CompleteSnapshot");
|
91 102 |
|
92 103 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
|
93 104 | CompleteSnapshotRequestSerializer,
|
94 105 | ));
|
95 106 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
|
96 107 | CompleteSnapshotResponseDeserializer,
|
97 108 | ));
|
98 109 |
|
99 110 | cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
|
100 111 | ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
|
101 112 | ));
|
102 113 |
|
103 114 | cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("CompleteSnapshot", "EBS"));
|
104 115 |
|
105 116 | ::std::option::Option::Some(cfg.freeze())
|
106 117 | }
|
107 118 |
|
108 119 | fn runtime_components(
|
109 120 | &self,
|
110 121 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
111 122 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
112 123 | #[allow(unused_mut)]
|
113 124 | let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("CompleteSnapshot")
|
114 125 | .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
|
115 126 | .with_interceptor(CompleteSnapshotEndpointParamsInterceptor)
|
116 127 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
|
117 128 | crate::operation::complete_snapshot::CompleteSnapshotError,
|
118 129 | >::new())
|
119 130 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
|
120 131 | crate::operation::complete_snapshot::CompleteSnapshotError,
|
121 132 | >::new());
|
122 133 |
|
123 134 | ::std::borrow::Cow::Owned(rcb)
|
124 135 | }
|
125 136 | }
|
126 137 |
|
138 + | /* ResponseDeserializerGenerator.kt:64 */
|
127 139 | #[derive(Debug)]
|
128 140 | struct CompleteSnapshotResponseDeserializer;
|
129 141 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CompleteSnapshotResponseDeserializer {
|
130 142 | fn deserialize_nonstreaming(
|
131 143 | &self,
|
132 144 | response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
133 145 | ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
|
134 146 | let (success, status) = (response.status().is_success(), response.status().as_u16());
|
135 147 | let headers = response.headers();
|
136 148 | let body = response.body().bytes().expect("body loaded");
|
137 149 | #[allow(unused_mut)]
|
138 150 | let mut force_error = false;
|
139 151 |
|
140 152 | let parse_result = if !success && status != 202 || force_error {
|
141 153 | crate::protocol_serde::shape_complete_snapshot::de_complete_snapshot_http_error(status, headers, body)
|
142 154 | } else {
|
143 155 | crate::protocol_serde::shape_complete_snapshot::de_complete_snapshot_http_response(status, headers, body)
|
144 156 | };
|
145 157 | crate::protocol_serde::type_erase_result(parse_result)
|
146 158 | }
|
147 159 | }
|
160 + | /* RequestSerializerGenerator.kt:67 */
|
148 161 | #[derive(Debug)]
|
149 162 | struct CompleteSnapshotRequestSerializer;
|
150 163 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CompleteSnapshotRequestSerializer {
|
151 164 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
152 165 | fn serialize_input(
|
153 166 | &self,
|
154 167 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
155 168 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
156 169 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
157 170 | let input = input
|
158 171 | .downcast::<crate::operation::complete_snapshot::CompleteSnapshotInput>()
|
159 172 | .expect("correct type");
|
160 173 | let _header_serialization_settings = _cfg
|
161 174 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
162 175 | .cloned()
|
163 176 | .unwrap_or_default();
|
164 177 | let mut request_builder = {
|
165 178 | fn uri_base(
|
166 179 | _input: &crate::operation::complete_snapshot::CompleteSnapshotInput,
|
167 180 | output: &mut ::std::string::String,
|
168 181 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
169 182 | use ::std::fmt::Write as _;
|
170 183 | let input_1 = &_input.snapshot_id;
|
171 184 | let input_1 = input_1
|
172 185 | .as_ref()
|
173 186 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("snapshot_id", "cannot be empty or unset"))?;
|
174 187 | let snapshot_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
|
175 188 | if snapshot_id.is_empty() {
|
176 189 | return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
|
177 190 | "snapshot_id",
|
178 191 | "cannot be empty or unset",
|
179 192 | ));
|
180 193 | }
|
181 194 | ::std::write!(output, "/snapshots/completion/{SnapshotId}", SnapshotId = snapshot_id).expect("formatting should succeed");
|
182 195 | ::std::result::Result::Ok(())
|
183 196 | }
|
184 197 | #[allow(clippy::unnecessary_wraps)]
|
185 198 | fn update_http_builder(
|
186 199 | input: &crate::operation::complete_snapshot::CompleteSnapshotInput,
|
187 200 | builder: ::http::request::Builder,
|
188 201 | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
189 202 | let mut uri = ::std::string::String::new();
|
190 203 | uri_base(input, &mut uri)?;
|
191 204 | let builder = crate::protocol_serde::shape_complete_snapshot::ser_complete_snapshot_headers(input, builder)?;
|
192 205 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
193 206 | }
|
194 207 | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
195 208 | builder
|
196 209 | };
|
197 210 | let body = ::aws_smithy_types::body::SdkBody::from("");
|
198 211 |
|
199 212 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
200 213 | }
|
201 214 | }
|
215 + | /* EndpointParamsInterceptorGenerator.kt:86 */
|
202 216 | #[derive(Debug)]
|
203 217 | struct CompleteSnapshotEndpointParamsInterceptor;
|
204 218 |
|
205 219 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CompleteSnapshotEndpointParamsInterceptor {
|
206 220 | fn name(&self) -> &'static str {
|
207 221 | "CompleteSnapshotEndpointParamsInterceptor"
|
208 222 | }
|
209 223 |
|
210 224 | fn read_before_execution(
|
211 225 | &self,
|
212 226 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
213 227 | '_,
|
214 228 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
215 229 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
216 230 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
217 231 | >,
|
218 232 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
219 233 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
220 234 | let _input = context
|
221 235 | .input()
|
222 236 | .downcast_ref::<CompleteSnapshotInput>()
|
223 237 | .ok_or("failed to downcast to CompleteSnapshotInput")?;
|
224 238 |
|
225 239 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
226 240 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
227 241 | })?;
|
228 242 | cfg.interceptor_state()
|
229 243 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
230 244 | ::std::result::Result::Ok(())
|
231 245 | }
|
232 246 | }
|
233 247 |
|
234 248 | // The get_* functions below are generated from JMESPath expressions in the
|
235 249 | // operationContextParams trait. They target the operation's input shape.
|
236 250 |
|
251 + | /* OperationErrorGenerator.kt:79 */
|
237 252 | /// Error type for the `CompleteSnapshotError` operation.
|
253 + | /* RustType.kt:516 */
|
238 254 | #[non_exhaustive]
|
255 + | /* RustType.kt:516 */
|
239 256 | #[derive(::std::fmt::Debug)]
|
240 - | pub enum CompleteSnapshotError {
|
241 - | /// <p>You do not have sufficient access to perform this action.</p>
|
257 + | pub /* OperationErrorGenerator.kt:81 */ enum CompleteSnapshotError {
|
258 + | /// /* OperationErrorGenerator.kt:83 */<p>You do not have sufficient access to perform this action.</p>
|
259 + | /* OperationErrorGenerator.kt:86 */
|
242 260 | AccessDeniedError(crate::types::error::AccessDeniedError),
|
243 - | /// <p>An internal error has occurred.</p>
|
261 + | /// /* OperationErrorGenerator.kt:83 */<p>An internal error has occurred.</p>
|
262 + | /* OperationErrorGenerator.kt:86 */
|
244 263 | InternalServerError(crate::types::error::InternalServerError),
|
245 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
264 + | /// /* OperationErrorGenerator.kt:83 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
265 + | /* OperationErrorGenerator.kt:86 */
|
246 266 | RequestThrottledError(crate::types::error::RequestThrottledError),
|
247 - | /// <p>The specified resource does not exist.</p>
|
267 + | /// /* OperationErrorGenerator.kt:83 */<p>The specified resource does not exist.</p>
|
268 + | /* OperationErrorGenerator.kt:86 */
|
248 269 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
249 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
270 + | /// /* OperationErrorGenerator.kt:83 */<p>Your current service quotas do not allow you to perform this action.</p>
|
271 + | /* OperationErrorGenerator.kt:86 */
|
250 272 | ServiceQuotaExceededError(crate::types::error::ServiceQuotaExceededError),
|
251 - | /// <p>The input fails to satisfy the constraints of the EBS direct APIs.</p>
|
273 + | /// /* OperationErrorGenerator.kt:83 */<p>The input fails to satisfy the constraints of the EBS direct APIs.</p>
|
274 + | /* OperationErrorGenerator.kt:86 */
|
252 275 | ValidationError(crate::types::error::ValidationError),
|
276 + | /* OperationErrorGenerator.kt:88 */
|
253 277 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
254 278 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
255 279 | variable wildcard pattern and check `.code()`:
|
256 280 | \
|
257 281 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
258 282 | \
|
259 283 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CompleteSnapshotError) for what information is available for the error.")]
|
260 284 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
285 + | /* OperationErrorGenerator.kt:81 */
|
261 286 | }
|
287 + | /* OperationErrorGenerator.kt:218 */
|
262 288 | impl CompleteSnapshotError {
|
289 + | /* OperationErrorGenerator.kt:219 */
|
263 290 | /// Creates the `CompleteSnapshotError::Unhandled` variant from any error type.
|
264 291 | pub fn unhandled(
|
265 292 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
266 293 | ) -> Self {
|
267 294 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
268 295 | source: err.into(),
|
269 296 | meta: ::std::default::Default::default(),
|
270 297 | })
|
271 298 | }
|
272 299 |
|
273 300 | /// Creates the `CompleteSnapshotError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
274 301 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
275 302 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
276 303 | source: err.clone().into(),
|
277 304 | meta: err,
|
278 305 | })
|
279 306 | }
|
280 - | ///
|
307 + | /// /* OperationErrorGenerator.kt:236 */
|
281 308 | /// Returns error metadata, which includes the error code, message,
|
282 309 | /// request ID, and potentially additional information.
|
283 310 | ///
|
311 + | /* OperationErrorGenerator.kt:242 */
|
284 312 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
313 + | /* OperationErrorGenerator.kt:243 */
|
285 314 | match self {
|
315 + | /* OperationErrorGenerator.kt:246 */
|
286 316 | Self::AccessDeniedError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
317 + | /* OperationErrorGenerator.kt:246 */
|
287 318 | Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
319 + | /* OperationErrorGenerator.kt:246 */
|
288 320 | Self::RequestThrottledError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
321 + | /* OperationErrorGenerator.kt:246 */
|
289 322 | Self::ResourceNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
323 + | /* OperationErrorGenerator.kt:246 */
|
290 324 | Self::ServiceQuotaExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
291 - | Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
292 - | Self::Unhandled(e) => &e.meta,
|
325 + | /* OperationErrorGenerator.kt:246 */ Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
326 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
327 + | /* OperationErrorGenerator.kt:243 */
|
293 328 | }
|
329 + | /* OperationErrorGenerator.kt:242 */
|
294 330 | }
|
331 + | /* OperationErrorGenerator.kt:257 */
|
295 332 | /// Returns `true` if the error kind is `CompleteSnapshotError::AccessDeniedError`.
|
333 + | /* OperationErrorGenerator.kt:258 */
|
296 334 | pub fn is_access_denied_error(&self) -> bool {
|
335 + | /* OperationErrorGenerator.kt:259 */
|
297 336 | matches!(self, Self::AccessDeniedError(_))
|
337 + | /* OperationErrorGenerator.kt:258 */
|
298 338 | }
|
339 + | /* OperationErrorGenerator.kt:257 */
|
299 340 | /// Returns `true` if the error kind is `CompleteSnapshotError::InternalServerError`.
|
341 + | /* OperationErrorGenerator.kt:258 */
|
300 342 | pub fn is_internal_server_error(&self) -> bool {
|
343 + | /* OperationErrorGenerator.kt:259 */
|
301 344 | matches!(self, Self::InternalServerError(_))
|
345 + | /* OperationErrorGenerator.kt:258 */
|
302 346 | }
|
347 + | /* OperationErrorGenerator.kt:257 */
|
303 348 | /// Returns `true` if the error kind is `CompleteSnapshotError::RequestThrottledError`.
|
349 + | /* OperationErrorGenerator.kt:258 */
|
304 350 | pub fn is_request_throttled_error(&self) -> bool {
|
351 + | /* OperationErrorGenerator.kt:259 */
|
305 352 | matches!(self, Self::RequestThrottledError(_))
|
353 + | /* OperationErrorGenerator.kt:258 */
|
306 354 | }
|
355 + | /* OperationErrorGenerator.kt:257 */
|
307 356 | /// Returns `true` if the error kind is `CompleteSnapshotError::ResourceNotFoundError`.
|
357 + | /* OperationErrorGenerator.kt:258 */
|
308 358 | pub fn is_resource_not_found_error(&self) -> bool {
|
359 + | /* OperationErrorGenerator.kt:259 */
|
309 360 | matches!(self, Self::ResourceNotFoundError(_))
|
361 + | /* OperationErrorGenerator.kt:258 */
|
310 362 | }
|
363 + | /* OperationErrorGenerator.kt:257 */
|
311 364 | /// Returns `true` if the error kind is `CompleteSnapshotError::ServiceQuotaExceededError`.
|
365 + | /* OperationErrorGenerator.kt:258 */
|
312 366 | pub fn is_service_quota_exceeded_error(&self) -> bool {
|
367 + | /* OperationErrorGenerator.kt:259 */
|
313 368 | matches!(self, Self::ServiceQuotaExceededError(_))
|
369 + | /* OperationErrorGenerator.kt:258 */
|
314 370 | }
|
371 + | /* OperationErrorGenerator.kt:257 */
|
315 372 | /// Returns `true` if the error kind is `CompleteSnapshotError::ValidationError`.
|
373 + | /* OperationErrorGenerator.kt:258 */
|
316 374 | pub fn is_validation_error(&self) -> bool {
|
375 + | /* OperationErrorGenerator.kt:259 */
|
317 376 | matches!(self, Self::ValidationError(_))
|
377 + | /* OperationErrorGenerator.kt:258 */
|
318 378 | }
|
379 + | /* OperationErrorGenerator.kt:218 */
|
319 380 | }
|
381 + | /* OperationErrorGenerator.kt:269 */
|
320 382 | impl ::std::error::Error for CompleteSnapshotError {
|
383 + | /* OperationErrorGenerator.kt:270 */
|
321 384 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
385 + | /* OperationErrorGenerator.kt:318 */
|
322 386 | match self {
|
323 - | Self::AccessDeniedError(_inner) => ::std::option::Option::Some(_inner),
|
324 - | Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
|
325 - | Self::RequestThrottledError(_inner) => ::std::option::Option::Some(_inner),
|
326 - | Self::ResourceNotFoundError(_inner) => ::std::option::Option::Some(_inner),
|
327 - | Self::ServiceQuotaExceededError(_inner) => ::std::option::Option::Some(_inner),
|
328 - | Self::ValidationError(_inner) => ::std::option::Option::Some(_inner),
|
329 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
387 + | /* OperationErrorGenerator.kt:321 */
|
388 + | Self::AccessDeniedError(_inner) =>
|
389 + | /* OperationErrorGenerator.kt:283 */
|
390 + | {
|
391 + | ::std::option::Option::Some(_inner)
|
392 + | }
|
393 + | ,
|
394 + | /* OperationErrorGenerator.kt:321 */
|
395 + | Self::InternalServerError(_inner) =>
|
396 + | /* OperationErrorGenerator.kt:283 */
|
397 + | {
|
398 + | ::std::option::Option::Some(_inner)
|
399 + | }
|
400 + | ,
|
401 + | /* OperationErrorGenerator.kt:321 */
|
402 + | Self::RequestThrottledError(_inner) =>
|
403 + | /* OperationErrorGenerator.kt:283 */
|
404 + | {
|
405 + | ::std::option::Option::Some(_inner)
|
406 + | }
|
407 + | ,
|
408 + | /* OperationErrorGenerator.kt:321 */
|
409 + | Self::ResourceNotFoundError(_inner) =>
|
410 + | /* OperationErrorGenerator.kt:283 */
|
411 + | {
|
412 + | ::std::option::Option::Some(_inner)
|
413 + | }
|
414 + | ,
|
415 + | /* OperationErrorGenerator.kt:321 */
|
416 + | Self::ServiceQuotaExceededError(_inner) =>
|
417 + | /* OperationErrorGenerator.kt:283 */
|
418 + | {
|
419 + | ::std::option::Option::Some(_inner)
|
420 + | }
|
421 + | ,
|
422 + | /* OperationErrorGenerator.kt:321 */
|
423 + | Self::ValidationError(_inner) =>
|
424 + | /* OperationErrorGenerator.kt:283 */
|
425 + | {
|
426 + | ::std::option::Option::Some(_inner)
|
427 + | }
|
428 + | ,
|
429 + | /* OperationErrorGenerator.kt:326 */
|
430 + | Self::Unhandled(_inner) => {
|
431 + | /* OperationErrorGenerator.kt:279 */
|
432 + | ::std::option::Option::Some(&*_inner.source)
|
433 + | /* OperationErrorGenerator.kt:326 */
|
434 + | } /* OperationErrorGenerator.kt:318 */
|
330 435 | }
|
436 + | /* OperationErrorGenerator.kt:270 */
|
331 437 | }
|
438 + | /* OperationErrorGenerator.kt:269 */
|
332 439 | }
|
440 + | /* OperationErrorGenerator.kt:133 */
|
333 441 | impl ::std::fmt::Display for CompleteSnapshotError {
|
442 + | /* OperationErrorGenerator.kt:134 */
|
334 443 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
444 + | /* OperationErrorGenerator.kt:318 */
|
335 445 | match self {
|
336 - | Self::AccessDeniedError(_inner) => _inner.fmt(f),
|
337 - | Self::InternalServerError(_inner) => _inner.fmt(f),
|
338 - | Self::RequestThrottledError(_inner) => _inner.fmt(f),
|
339 - | Self::ResourceNotFoundError(_inner) => _inner.fmt(f),
|
340 - | Self::ServiceQuotaExceededError(_inner) => _inner.fmt(f),
|
341 - | Self::ValidationError(_inner) => _inner.fmt(f),
|
446 + | /* OperationErrorGenerator.kt:321 */
|
447 + | Self::AccessDeniedError(_inner) =>
|
448 + | /* OperationErrorGenerator.kt:151 */
|
449 + | {
|
450 + | _inner.fmt(f)
|
451 + | }
|
452 + | ,
|
453 + | /* OperationErrorGenerator.kt:321 */
|
454 + | Self::InternalServerError(_inner) =>
|
455 + | /* OperationErrorGenerator.kt:151 */
|
456 + | {
|
457 + | _inner.fmt(f)
|
458 + | }
|
459 + | ,
|
460 + | /* OperationErrorGenerator.kt:321 */
|
461 + | Self::RequestThrottledError(_inner) =>
|
462 + | /* OperationErrorGenerator.kt:151 */
|
463 + | {
|
464 + | _inner.fmt(f)
|
465 + | }
|
466 + | ,
|
467 + | /* OperationErrorGenerator.kt:321 */
|
468 + | Self::ResourceNotFoundError(_inner) =>
|
469 + | /* OperationErrorGenerator.kt:151 */
|
470 + | {
|
471 + | _inner.fmt(f)
|
472 + | }
|
473 + | ,
|
474 + | /* OperationErrorGenerator.kt:321 */
|
475 + | Self::ServiceQuotaExceededError(_inner) =>
|
476 + | /* OperationErrorGenerator.kt:151 */
|
477 + | {
|
478 + | _inner.fmt(f)
|
479 + | }
|
480 + | ,
|
481 + | /* OperationErrorGenerator.kt:321 */
|
482 + | Self::ValidationError(_inner) =>
|
483 + | /* OperationErrorGenerator.kt:151 */
|
484 + | {
|
485 + | _inner.fmt(f)
|
486 + | }
|
487 + | ,
|
488 + | /* OperationErrorGenerator.kt:326 */
|
342 489 | Self::Unhandled(_inner) => {
|
490 + | /* OperationErrorGenerator.kt:139 */
|
343 491 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
344 492 | write!(f, "unhandled error ({code})")
|
345 493 | } else {
|
346 494 | f.write_str("unhandled error")
|
347 495 | }
|
496 + | /* OperationErrorGenerator.kt:326 */
|
497 + | } /* OperationErrorGenerator.kt:318 */
|
348 498 | }
|
499 + | /* OperationErrorGenerator.kt:134 */
|
349 500 | }
|
350 - | }
|
501 + | /* OperationErrorGenerator.kt:133 */
|
351 502 | }
|
503 + | /* OperationErrorGenerator.kt:182 */
|
352 504 | impl ::aws_smithy_types::retry::ProvideErrorKind for CompleteSnapshotError {
|
505 + | /* OperationErrorGenerator.kt:186 */
|
353 506 | fn code(&self) -> ::std::option::Option<&str> {
|
507 + | /* OperationErrorGenerator.kt:187 */
|
354 508 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
509 + | /* OperationErrorGenerator.kt:186 */
|
355 510 | }
|
511 + | /* OperationErrorGenerator.kt:190 */
|
356 512 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
513 + | /* OperationErrorGenerator.kt:197 */
|
357 514 | ::std::option::Option::None
|
515 + | /* OperationErrorGenerator.kt:190 */
|
358 516 | }
|
517 + | /* OperationErrorGenerator.kt:182 */
|
359 518 | }
|
519 + | /* OperationErrorGenerator.kt:163 */
|
360 520 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CompleteSnapshotError {
|
521 + | /* OperationErrorGenerator.kt:164 */
|
361 522 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
523 + | /* OperationErrorGenerator.kt:318 */
|
362 524 | match self {
|
363 - | Self::AccessDeniedError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
364 - | Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
365 - | Self::RequestThrottledError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
366 - | Self::ResourceNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
367 - | Self::ServiceQuotaExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
368 - | Self::ValidationError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
369 - | Self::Unhandled(_inner) => &_inner.meta,
|
525 + | /* OperationErrorGenerator.kt:321 */
|
526 + | Self::AccessDeniedError(_inner) =>
|
527 + | /* OperationErrorGenerator.kt:169 */
|
528 + | {
|
529 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
530 + | }
|
531 + | ,
|
532 + | /* OperationErrorGenerator.kt:321 */
|
533 + | Self::InternalServerError(_inner) =>
|
534 + | /* OperationErrorGenerator.kt:169 */
|
535 + | {
|
536 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
537 + | }
|
538 + | ,
|
539 + | /* OperationErrorGenerator.kt:321 */
|
540 + | Self::RequestThrottledError(_inner) =>
|
541 + | /* OperationErrorGenerator.kt:169 */
|
542 + | {
|
543 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
544 + | }
|
545 + | ,
|
546 + | /* OperationErrorGenerator.kt:321 */
|
547 + | Self::ResourceNotFoundError(_inner) =>
|
548 + | /* OperationErrorGenerator.kt:169 */
|
549 + | {
|
550 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
551 + | }
|
552 + | ,
|
553 + | /* OperationErrorGenerator.kt:321 */
|
554 + | Self::ServiceQuotaExceededError(_inner) =>
|
555 + | /* OperationErrorGenerator.kt:169 */
|
556 + | {
|
557 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
558 + | }
|
559 + | ,
|
560 + | /* OperationErrorGenerator.kt:321 */
|
561 + | Self::ValidationError(_inner) =>
|
562 + | /* OperationErrorGenerator.kt:169 */
|
563 + | {
|
564 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
565 + | }
|
566 + | ,
|
567 + | /* OperationErrorGenerator.kt:326 */
|
568 + | Self::Unhandled(_inner) => {
|
569 + | /* OperationErrorGenerator.kt:168 */
|
570 + | &_inner.meta
|
571 + | /* OperationErrorGenerator.kt:326 */
|
572 + | } /* OperationErrorGenerator.kt:318 */
|
370 573 | }
|
574 + | /* OperationErrorGenerator.kt:164 */
|
371 575 | }
|
576 + | /* OperationErrorGenerator.kt:163 */
|
372 577 | }
|
578 + | /* OperationErrorGenerator.kt:109 */
|
373 579 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CompleteSnapshotError {
|
580 + | /* OperationErrorGenerator.kt:110 */
|
374 581 | fn create_unhandled_error(
|
375 582 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
376 583 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
377 584 | ) -> Self {
|
585 + | /* OperationErrorGenerator.kt:121 */
|
378 586 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
379 587 | source,
|
380 588 | meta: meta.unwrap_or_default(),
|
381 589 | })
|
590 + | /* OperationErrorGenerator.kt:110 */
|
382 591 | }
|
592 + | /* OperationErrorGenerator.kt:109 */
|
383 593 | }
|
384 594 |
|
595 + | /* CodegenDelegator.kt:255 */
|
385 596 | pub use crate::operation::complete_snapshot::_complete_snapshot_output::CompleteSnapshotOutput;
|
386 597 |
|
598 + | /* CodegenDelegator.kt:255 */
|
387 599 | pub use crate::operation::complete_snapshot::_complete_snapshot_input::CompleteSnapshotInput;
|
388 600 |
|
601 + | /* RustModule.kt:172 */
|
389 602 | mod _complete_snapshot_input;
|
390 603 |
|
604 + | /* RustModule.kt:172 */
|
391 605 | mod _complete_snapshot_output;
|
392 606 |
|
393 - | /// Builders
|
607 + | /// /* CodegenDelegator.kt:51 */Builders
|
394 608 | pub mod builders;
|