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