1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct CreateWorkflow;
6impl CreateWorkflow {
7 pub fn new() -> Self {
9 Self
10 }
11 pub(crate) async fn orchestrate(
12 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13 input: crate::operation::create_workflow::CreateWorkflowInput,
14 ) -> ::std::result::Result<
15 crate::operation::create_workflow::CreateWorkflowOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::create_workflow::CreateWorkflowError,
18 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19 >,
20 > {
21 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22 ::aws_smithy_runtime_api::client::interceptors::context::Error,
23 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24 >| {
25 err.map_service_error(|err| {
26 err.downcast::<crate::operation::create_workflow::CreateWorkflowError>()
27 .expect("correct error type")
28 })
29 };
30 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
31 .await
32 .map_err(map_err)?;
33 let output = context.finalize().map_err(map_err)?;
34 ::std::result::Result::Ok(
35 output
36 .downcast::<crate::operation::create_workflow::CreateWorkflowOutput>()
37 .expect("correct output type"),
38 )
39 }
40
41 pub(crate) async fn orchestrate_with_stop_point(
42 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
43 input: crate::operation::create_workflow::CreateWorkflowInput,
44 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45 ) -> ::std::result::Result<
46 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47 ::aws_smithy_runtime_api::client::result::SdkError<
48 ::aws_smithy_runtime_api::client::interceptors::context::Error,
49 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50 >,
51 > {
52 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53 use ::tracing::Instrument;
54 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Omics", "CreateWorkflow", input, runtime_plugins, stop_point)
55 .instrument(::tracing::debug_span!(
58 "Omics.CreateWorkflow",
59 "rpc.service" = "Omics",
60 "rpc.method" = "CreateWorkflow",
61 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
62 "rpc.system" = "aws-api",
63 ))
64 .await
65 }
66
67 pub(crate) fn operation_runtime_plugins(
68 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
69 client_config: &crate::config::Config,
70 config_override: ::std::option::Option<crate::config::Builder>,
71 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
72 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
73 runtime_plugins = runtime_plugins.with_operation_plugin(crate::client_idempotency_token::IdempotencyTokenRuntimePlugin::new(
74 |token_provider, input| {
75 let input: &mut crate::operation::create_workflow::CreateWorkflowInput = input.downcast_mut().expect("correct type");
76 if input.request_id.is_none() {
77 input.request_id = ::std::option::Option::Some(token_provider.make_idempotency_token());
78 }
79 },
80 ));
81 if let ::std::option::Option::Some(config_override) = config_override {
82 for plugin in config_override.runtime_plugins.iter().cloned() {
83 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
84 }
85 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
86 config_override,
87 client_config.config.clone(),
88 &client_config.runtime_components,
89 ));
90 }
91 runtime_plugins
92 }
93}
94impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for CreateWorkflow {
95 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
96 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("CreateWorkflow");
97
98 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
99 CreateWorkflowRequestSerializer,
100 ));
101 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
102 CreateWorkflowResponseDeserializer,
103 ));
104
105 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
106 crate::config::auth::Params::builder()
107 .operation_name("CreateWorkflow")
108 .build()
109 .expect("required fields set"),
110 ));
111
112 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("CreateWorkflow", "Omics"));
113 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
114 signing_options.double_uri_encode = true;
115 signing_options.content_sha256_header = false;
116 signing_options.normalize_uri_path = true;
117 signing_options.payload_override = None;
118
119 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
120 signing_options,
121 ..::std::default::Default::default()
122 });
123
124 ::std::option::Option::Some(cfg.freeze())
125 }
126
127 fn runtime_components(
128 &self,
129 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
130 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
131 #[allow(unused_mut)]
132 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("CreateWorkflow")
133 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
134 CreateWorkflowTelemetryInputCaptureInterceptor,
135 ))
136 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
137 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
138 ))
139 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
140 CreateWorkflowEndpointParamsInterceptor,
141 ))
142 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
143 crate::operation::create_workflow::CreateWorkflowError,
144 >::new())
145 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
146 crate::operation::create_workflow::CreateWorkflowError,
147 >::new())
148 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
149 crate::operation::create_workflow::CreateWorkflowError,
150 >::new());
151
152 ::std::borrow::Cow::Owned(rcb)
153 }
154}
155
156#[derive(Debug)]
157struct CreateWorkflowTelemetryInputCaptureInterceptor;
158
159#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
160impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateWorkflowTelemetryInputCaptureInterceptor {
161 fn name(&self) -> &'static str {
162 "CreateWorkflowTelemetryInputCaptureInterceptor"
163 }
164
165 fn read_before_execution(
166 &self,
167 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
168 '_,
169 ::aws_smithy_runtime_api::client::interceptors::context::Input,
170 ::aws_smithy_runtime_api::client::interceptors::context::Output,
171 ::aws_smithy_runtime_api::client::interceptors::context::Error,
172 >,
173 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
174 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
175 let ::std::option::Option::Some(requested) = cfg
177 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
178 .filter(|r| !r.is_empty())
179 else {
180 return ::std::result::Result::Ok(());
181 };
182
183 let ::std::option::Option::Some(input) = context.input().downcast_ref::<CreateWorkflowInput>() else {
184 return ::std::result::Result::Ok(());
186 };
187
188 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
189 if requested.should_capture("name") {
190 if let ::std::option::Option::Some(value) = input.name.as_deref() {
191 captured.insert("name", value);
192 }
193 }
194 if requested.should_capture("description") {
195 if let ::std::option::Option::Some(value) = input.description.as_deref() {
196 captured.insert("description", value);
197 }
198 }
199 if requested.should_capture("definitionUri") {
200 if let ::std::option::Option::Some(value) = input.definition_uri.as_deref() {
201 captured.insert("definitionUri", value);
202 }
203 }
204 if requested.should_capture("main") {
205 if let ::std::option::Option::Some(value) = input.main.as_deref() {
206 captured.insert("main", value);
207 }
208 }
209 if requested.should_capture("requestId") {
210 if let ::std::option::Option::Some(value) = input.request_id.as_deref() {
211 captured.insert("requestId", value);
212 }
213 }
214 if requested.should_capture("containerRegistryMapUri") {
215 if let ::std::option::Option::Some(value) = input.container_registry_map_uri.as_deref() {
216 captured.insert("containerRegistryMapUri", value);
217 }
218 }
219 if requested.should_capture("readmeMarkdown") {
220 if let ::std::option::Option::Some(value) = input.readme_markdown.as_deref() {
221 captured.insert("readmeMarkdown", value);
222 }
223 }
224 if requested.should_capture("parameterTemplatePath") {
225 if let ::std::option::Option::Some(value) = input.parameter_template_path.as_deref() {
226 captured.insert("parameterTemplatePath", value);
227 }
228 }
229 if requested.should_capture("readmePath") {
230 if let ::std::option::Option::Some(value) = input.readme_path.as_deref() {
231 captured.insert("readmePath", value);
232 }
233 }
234 if requested.should_capture("workflowBucketOwnerId") {
235 if let ::std::option::Option::Some(value) = input.workflow_bucket_owner_id.as_deref() {
236 captured.insert("workflowBucketOwnerId", value);
237 }
238 }
239 if requested.should_capture("readmeUri") {
240 if let ::std::option::Option::Some(value) = input.readme_uri.as_deref() {
241 captured.insert("readmeUri", value);
242 }
243 }
244
245 cfg.interceptor_state().store_put(captured);
246 ::std::result::Result::Ok(())
247 }
248}
249#[derive(Debug)]
250struct CreateWorkflowResponseDeserializer;
251impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateWorkflowResponseDeserializer {
252 fn deserialize_nonstreaming_with_config(
253 &self,
254 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
255 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
256 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
257 let (success, status) = (response.status().is_success(), response.status().as_u16());
258 let headers = response.headers();
259 let body = response.body().bytes().expect("body loaded");
260 #[allow(unused_mut)]
261 let mut force_error = false;
262 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
263 let parse_result = if !success && status != 201 || force_error {
264 crate::protocol_serde::shape_create_workflow::de_create_workflow_http_error(status, headers, body)
265 } else {
266 crate::protocol_serde::shape_create_workflow::de_create_workflow_http_response(status, headers, body)
267 };
268 crate::protocol_serde::type_erase_result(parse_result)
269 }
270}
271#[derive(Debug)]
272struct CreateWorkflowRequestSerializer;
273impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateWorkflowRequestSerializer {
274 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
275 fn serialize_input(
276 &self,
277 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
278 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
279 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
280 let input = input
281 .downcast::<crate::operation::create_workflow::CreateWorkflowInput>()
282 .expect("correct type");
283 let _header_serialization_settings = _cfg
284 .load::<crate::serialization_settings::HeaderSerializationSettings>()
285 .cloned()
286 .unwrap_or_default();
287 let mut request_builder = {
288 #[allow(clippy::uninlined_format_args)]
289 fn uri_base(
290 _input: &crate::operation::create_workflow::CreateWorkflowInput,
291 output: &mut ::std::string::String,
292 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
293 use ::std::fmt::Write as _;
294 ::std::write!(output, "/workflow").expect("formatting should succeed");
295 ::std::result::Result::Ok(())
296 }
297 #[allow(clippy::unnecessary_wraps)]
298 fn update_http_builder(
299 input: &crate::operation::create_workflow::CreateWorkflowInput,
300 builder: ::http_1x::request::Builder,
301 ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
302 let mut uri = ::std::string::String::new();
303 uri_base(input, &mut uri)?;
304 ::std::result::Result::Ok(builder.method("POST").uri(uri))
305 }
306 let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
307 builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
308 builder
309 };
310 let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_workflow::ser_create_workflow_input(&input)?);
311 if let Some(content_length) = body.content_length() {
312 let content_length = content_length.to_string();
313 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
314 }
315 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
316 }
317}
318#[derive(Debug)]
319struct CreateWorkflowEndpointParamsInterceptor;
320
321#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
322impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateWorkflowEndpointParamsInterceptor {
323 fn name(&self) -> &'static str {
324 "CreateWorkflowEndpointParamsInterceptor"
325 }
326
327 fn read_before_execution(
328 &self,
329 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
330 '_,
331 ::aws_smithy_runtime_api::client::interceptors::context::Input,
332 ::aws_smithy_runtime_api::client::interceptors::context::Output,
333 ::aws_smithy_runtime_api::client::interceptors::context::Error,
334 >,
335 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
336 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
337 let _input = context
338 .input()
339 .downcast_ref::<CreateWorkflowInput>()
340 .ok_or("failed to downcast to CreateWorkflowInput")?;
341
342 let endpoint_prefix = ::aws_smithy_runtime_api::client::endpoint::EndpointPrefix::new("workflows-").map_err(|err| {
343 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint prefix could not be built", err)
344 })?;
345 cfg.interceptor_state().store_put(endpoint_prefix);
346
347 let params = crate::config::endpoint::Params::builder()
348 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
349 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
350 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
351 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
352 .build()
353 .map_err(|err| {
354 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
355 })?;
356 cfg.interceptor_state()
357 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
358 ::std::result::Result::Ok(())
359 }
360}
361
362#[non_exhaustive]
367#[derive(::std::fmt::Debug)]
368pub enum CreateWorkflowError {
369 AccessDeniedException(crate::types::error::AccessDeniedException),
371 ConflictException(crate::types::error::ConflictException),
373 InternalServerException(crate::types::error::InternalServerException),
375 RequestTimeoutException(crate::types::error::RequestTimeoutException),
377 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
379 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
381 ThrottlingException(crate::types::error::ThrottlingException),
383 ValidationException(crate::types::error::ValidationException),
385 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
387 variable wildcard pattern and check `.code()`:
388 \
389 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
390 \
391 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CreateWorkflowError) for what information is available for the error.")]
392 Unhandled(crate::error::sealed_unhandled::Unhandled),
393}
394impl CreateWorkflowError {
395 pub fn unhandled(
397 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
398 ) -> Self {
399 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
400 source: err.into(),
401 meta: ::std::default::Default::default(),
402 })
403 }
404
405 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
407 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
408 source: err.clone().into(),
409 meta: err,
410 })
411 }
412 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
417 match self {
418 Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
419 Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
420 Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
421 Self::RequestTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
422 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
423 Self::ServiceQuotaExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
424 Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
425 Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
426 Self::Unhandled(e) => &e.meta,
427 }
428 }
429 pub fn is_access_denied_exception(&self) -> bool {
431 matches!(self, Self::AccessDeniedException(_))
432 }
433 pub fn is_conflict_exception(&self) -> bool {
435 matches!(self, Self::ConflictException(_))
436 }
437 pub fn is_internal_server_exception(&self) -> bool {
439 matches!(self, Self::InternalServerException(_))
440 }
441 pub fn is_request_timeout_exception(&self) -> bool {
443 matches!(self, Self::RequestTimeoutException(_))
444 }
445 pub fn is_resource_not_found_exception(&self) -> bool {
447 matches!(self, Self::ResourceNotFoundException(_))
448 }
449 pub fn is_service_quota_exceeded_exception(&self) -> bool {
451 matches!(self, Self::ServiceQuotaExceededException(_))
452 }
453 pub fn is_throttling_exception(&self) -> bool {
455 matches!(self, Self::ThrottlingException(_))
456 }
457 pub fn is_validation_exception(&self) -> bool {
459 matches!(self, Self::ValidationException(_))
460 }
461}
462impl ::std::error::Error for CreateWorkflowError {
463 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
464 match self {
465 Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
466 Self::ConflictException(_inner) => ::std::option::Option::Some(_inner),
467 Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
468 Self::RequestTimeoutException(_inner) => ::std::option::Option::Some(_inner),
469 Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
470 Self::ServiceQuotaExceededException(_inner) => ::std::option::Option::Some(_inner),
471 Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
472 Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
473 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
474 }
475 }
476}
477impl ::std::fmt::Display for CreateWorkflowError {
478 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
479 match self {
480 Self::AccessDeniedException(_inner) => _inner.fmt(f),
481 Self::ConflictException(_inner) => _inner.fmt(f),
482 Self::InternalServerException(_inner) => _inner.fmt(f),
483 Self::RequestTimeoutException(_inner) => _inner.fmt(f),
484 Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
485 Self::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
486 Self::ThrottlingException(_inner) => _inner.fmt(f),
487 Self::ValidationException(_inner) => _inner.fmt(f),
488 Self::Unhandled(_inner) => {
489 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
490 write!(f, "unhandled error ({code})")
491 } else {
492 f.write_str("unhandled error")
493 }
494 }
495 }
496 }
497}
498impl ::aws_smithy_types::retry::ProvideErrorKind for CreateWorkflowError {
499 fn code(&self) -> ::std::option::Option<&str> {
500 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
501 }
502 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
503 match self {
504 Self::InternalServerException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
505 Self::ThrottlingException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
506 _ => ::std::option::Option::None,
507 }
508 }
509}
510impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateWorkflowError {
511 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
512 match self {
513 Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
514 Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
515 Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
516 Self::RequestTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
517 Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
518 Self::ServiceQuotaExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
519 Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
520 Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
521 Self::Unhandled(_inner) => &_inner.meta,
522 }
523 }
524}
525impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CreateWorkflowError {
526 fn create_unhandled_error(
527 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
528 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
529 ) -> Self {
530 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
531 source,
532 meta: meta.unwrap_or_default(),
533 })
534 }
535}
536impl ::aws_types::request_id::RequestId for crate::operation::create_workflow::CreateWorkflowError {
537 fn request_id(&self) -> Option<&str> {
538 self.meta().request_id()
539 }
540}
541
542pub use crate::operation::create_workflow::_create_workflow_input::CreateWorkflowInput;
543
544pub use crate::operation::create_workflow::_create_workflow_output::CreateWorkflowOutput;
545
546mod _create_workflow_input;
547
548mod _create_workflow_output;
549
550pub mod builders;