1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct CreateIntegration;
6impl CreateIntegration {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::create_integration::CreateIntegrationInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::create_integration::CreateIntegrationOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::create_integration::CreateIntegrationInput,
18 ) -> ::std::result::Result<
19 crate::operation::create_integration::CreateIntegrationOutput,
20 ::aws_smithy_runtime_api::client::result::SdkError<
21 crate::operation::create_integration::CreateIntegrationError,
22 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
23 >,
24 > {
25 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
26 ::aws_smithy_runtime_api::client::interceptors::context::Error,
27 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
28 >| {
29 err.map_service_error(|err| {
30 err.downcast::<crate::operation::create_integration::CreateIntegrationError>()
31 .expect("correct error type")
32 })
33 };
34 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
35 .await
36 .map_err(map_err)?;
37 let output = context.finalize().map_err(map_err)?;
38 ::std::result::Result::Ok(
39 output
40 .downcast::<crate::operation::create_integration::CreateIntegrationOutput>()
41 .expect("correct output type"),
42 )
43 }
44
45 pub(crate) async fn orchestrate_with_stop_point(
46 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
47 input: crate::operation::create_integration::CreateIntegrationInput,
48 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
49 ) -> ::std::result::Result<
50 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
51 ::aws_smithy_runtime_api::client::result::SdkError<
52 ::aws_smithy_runtime_api::client::interceptors::context::Error,
53 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
54 >,
55 > {
56 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
57 use ::tracing::Instrument;
58 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Glue", "CreateIntegration", input, runtime_plugins, stop_point)
59 .instrument(::tracing::debug_span!(
62 "Glue.CreateIntegration",
63 "rpc.service" = "Glue",
64 "rpc.method" = "CreateIntegration",
65 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
66 "rpc.system" = "aws-api",
67 ))
68 .await
69 }
70
71 pub(crate) fn operation_runtime_plugins(
72 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
73 client_config: &crate::config::Config,
74 config_override: ::std::option::Option<crate::config::Builder>,
75 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
76 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
77
78 if let ::std::option::Option::Some(config_override) = config_override {
79 for plugin in config_override.runtime_plugins.iter().cloned() {
80 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
81 }
82 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
83 config_override,
84 client_config.config.clone(),
85 &client_config.runtime_components,
86 ));
87 }
88 runtime_plugins
89 }
90}
91pub(crate) mod error_registry {
100 pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
101 ::aws_smithy_schema::registry::TypeRegistry::builder()
102 .insert_error_shape(
103 crate::types::error::AccessDeniedException::SCHEMA,
104 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
105 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::AccessDeniedException::deserialize(d)?))
106 },
107 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
108 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::AccessDeniedException::deserialize(d)?))
109 },
110 )
111.insert_error_shape(
112 crate::types::error::ConflictException::SCHEMA,
113 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
114 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ConflictException::deserialize(d)?))
115 },
116 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
117 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ConflictException::deserialize(d)?))
118 },
119 )
120.insert_error_shape(
121 crate::types::error::EntityNotFoundException::SCHEMA,
122 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
123 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
124 },
125 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
126 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
127 },
128 )
129.insert_error_shape(
130 crate::types::error::IntegrationConflictOperationFault::SCHEMA,
131 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
132 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::IntegrationConflictOperationFault::deserialize(d)?))
133 },
134 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
135 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::IntegrationConflictOperationFault::deserialize(d)?))
136 },
137 )
138.insert_error_shape(
139 crate::types::error::IntegrationQuotaExceededFault::SCHEMA,
140 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
141 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::IntegrationQuotaExceededFault::deserialize(d)?))
142 },
143 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
144 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::IntegrationQuotaExceededFault::deserialize(d)?))
145 },
146 )
147.insert_error_shape(
148 crate::types::error::InternalServerException::SCHEMA,
149 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
150 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServerException::deserialize(d)?))
151 },
152 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
153 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServerException::deserialize(d)?))
154 },
155 )
156.insert_error_shape(
157 crate::types::error::InternalServiceException::SCHEMA,
158 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
159 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServiceException::deserialize(d)?))
160 },
161 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
162 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServiceException::deserialize(d)?))
163 },
164 )
165.insert_error_shape(
166 crate::types::error::InvalidInputException::SCHEMA,
167 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
168 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidInputException::deserialize(d)?))
169 },
170 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
171 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidInputException::deserialize(d)?))
172 },
173 )
174.insert_error_shape(
175 crate::types::error::KmsKeyNotAccessibleFault::SCHEMA,
176 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
177 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::KmsKeyNotAccessibleFault::deserialize(d)?))
178 },
179 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
180 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::KmsKeyNotAccessibleFault::deserialize(d)?))
181 },
182 )
183.insert_error_shape(
184 crate::types::error::ResourceNotFoundException::SCHEMA,
185 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
186 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ResourceNotFoundException::deserialize(d)?))
187 },
188 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
189 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ResourceNotFoundException::deserialize(d)?))
190 },
191 )
192.insert_error_shape(
193 crate::types::error::ResourceNumberLimitExceededException::SCHEMA,
194 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
195 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ResourceNumberLimitExceededException::deserialize(d)?))
196 },
197 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
198 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ResourceNumberLimitExceededException::deserialize(d)?))
199 },
200 )
201.insert_error_shape(
202 crate::types::error::ValidationException::SCHEMA,
203 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
204 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ValidationException::deserialize(d)?))
205 },
206 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
207 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ValidationException::deserialize(d)?))
208 },
209 )
210 .build()
211 });
212}
213impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for CreateIntegration {
214 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
215 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("CreateIntegration");
216
217 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
218 CreateIntegrationRequestSerializer,
219 ));
220 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
221 CreateIntegrationResponseDeserializer,
222 ));
223
224 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
225 crate::config::auth::Params::builder()
226 .operation_name("CreateIntegration")
227 .build()
228 .expect("required fields set"),
229 ));
230
231 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("CreateIntegration", "Glue"));
232 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
233 signing_options.double_uri_encode = true;
234 signing_options.content_sha256_header = false;
235 signing_options.normalize_uri_path = true;
236 signing_options.payload_override = None;
237
238 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
239 signing_options,
240 ..::std::default::Default::default()
241 });
242
243 ::std::option::Option::Some(cfg.freeze())
244 }
245
246 fn runtime_components(
247 &self,
248 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
249 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
250 #[allow(unused_mut)]
251 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("CreateIntegration")
252 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
253 CreateIntegrationTelemetryInputCaptureInterceptor,
254 ))
255 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
256 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
257 ))
258 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
259 CreateIntegrationEndpointParamsInterceptor,
260 ))
261 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
262 crate::operation::create_integration::CreateIntegrationError,
263 >::new())
264 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
265 crate::operation::create_integration::CreateIntegrationError,
266 >::new())
267 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
268 crate::operation::create_integration::CreateIntegrationError,
269 >::new())
270 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
271 crate::operation::create_integration::CreateIntegrationError,
272 >::new());
273
274 ::std::borrow::Cow::Owned(rcb)
275 }
276}
277
278#[derive(Debug)]
279struct CreateIntegrationTelemetryInputCaptureInterceptor;
280
281#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
282impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateIntegrationTelemetryInputCaptureInterceptor {
283 fn name(&self) -> &'static str {
284 "CreateIntegrationTelemetryInputCaptureInterceptor"
285 }
286
287 fn read_before_execution(
288 &self,
289 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
290 '_,
291 ::aws_smithy_runtime_api::client::interceptors::context::Input,
292 ::aws_smithy_runtime_api::client::interceptors::context::Output,
293 ::aws_smithy_runtime_api::client::interceptors::context::Error,
294 >,
295 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
296 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
297 let ::std::option::Option::Some(requested) = cfg
299 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
300 .filter(|r| !r.is_empty())
301 else {
302 return ::std::result::Result::Ok(());
303 };
304
305 let ::std::option::Option::Some(input) = context.input().downcast_ref::<CreateIntegrationInput>() else {
306 return ::std::result::Result::Ok(());
308 };
309
310 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
311 if requested.should_capture("IntegrationName") {
312 if let ::std::option::Option::Some(value) = input.integration_name.as_deref() {
313 captured.insert("IntegrationName", value);
314 }
315 }
316 if requested.should_capture("SourceArn") {
317 if let ::std::option::Option::Some(value) = input.source_arn.as_deref() {
318 captured.insert("SourceArn", value);
319 }
320 }
321 if requested.should_capture("TargetArn") {
322 if let ::std::option::Option::Some(value) = input.target_arn.as_deref() {
323 captured.insert("TargetArn", value);
324 }
325 }
326 if requested.should_capture("Description") {
327 if let ::std::option::Option::Some(value) = input.description.as_deref() {
328 captured.insert("Description", value);
329 }
330 }
331 if requested.should_capture("DataFilter") {
332 if let ::std::option::Option::Some(value) = input.data_filter.as_deref() {
333 captured.insert("DataFilter", value);
334 }
335 }
336 if requested.should_capture("KmsKeyId") {
337 if let ::std::option::Option::Some(value) = input.kms_key_id.as_deref() {
338 captured.insert("KmsKeyId", value);
339 }
340 }
341
342 cfg.interceptor_state().store_put(captured);
343 ::std::result::Result::Ok(())
344 }
345}
346#[derive(Debug)]
347struct CreateIntegrationResponseDeserializer;
348impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateIntegrationResponseDeserializer {
349 fn deserialize_nonstreaming_with_config(
350 &self,
351 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
352 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
353 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
354 let (success, status) = (response.status().is_success(), response.status().as_u16());
355 #[allow(unused_variables)]
360 let body = response.body().bytes().expect("body loaded");
361 let headers = response.headers();
362 #[allow(unused_mut)]
363 let mut force_error = false;
364 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
365 if !success && status != 200 || force_error {
366 let protocol = _cfg
367 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
368 .expect("a SharedClientProtocol is required");
369 #[allow(unused_mut)]
370 let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
371 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
372 })?;
373 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
374 let generic = generic_builder.build();
375 let error_code = match generic.code() {
376 ::std::option::Option::Some(code) => code,
377 ::std::option::Option::None => {
378 return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
379 ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::create_integration::CreateIntegrationError::unhandled(
380 generic,
381 )),
382 ))
383 }
384 };
385 let _error_message = generic.message().map(|msg| msg.to_owned());
386 let err = match error_code {
387 "AccessDeniedException" => crate::operation::create_integration::CreateIntegrationError::AccessDeniedException({
388 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
389 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
390 e,
391 ))
392 })?;
393 let mut tmp = <crate::types::error::builders::AccessDeniedExceptionBuilder>::default();
394 tmp.deserialize_members(&mut *deser).map_err(|e| {
395 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
396 e,
397 ))
398 })?;
399 if tmp.message.is_none() {
400 tmp.message = _error_message;
401 }
402 let tmp = tmp.meta(generic);
403 tmp.build()
404 }),
405 "ConflictException" => crate::operation::create_integration::CreateIntegrationError::ConflictException({
406 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
407 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
408 e,
409 ))
410 })?;
411 let mut tmp = <crate::types::error::builders::ConflictExceptionBuilder>::default();
412 tmp.deserialize_members(&mut *deser).map_err(|e| {
413 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
414 e,
415 ))
416 })?;
417 if tmp.message.is_none() {
418 tmp.message = _error_message;
419 }
420 let tmp = tmp.meta(generic);
421 tmp.build()
422 }),
423 "EntityNotFoundException" => crate::operation::create_integration::CreateIntegrationError::EntityNotFoundException({
424 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
425 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
426 e,
427 ))
428 })?;
429 let mut tmp = <crate::types::error::builders::EntityNotFoundExceptionBuilder>::default();
430 tmp.deserialize_members(&mut *deser).map_err(|e| {
431 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
432 e,
433 ))
434 })?;
435 if tmp.message.is_none() {
436 tmp.message = _error_message;
437 }
438 let tmp = tmp.meta(generic);
439 tmp.build()
440 }),
441 "IntegrationConflictOperationFault" => {
442 crate::operation::create_integration::CreateIntegrationError::IntegrationConflictOperationFault({
443 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
444 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
445 ::aws_smithy_runtime_api::box_error::BoxError::from(e),
446 )
447 })?;
448 let mut tmp = <crate::types::error::builders::IntegrationConflictOperationFaultBuilder>::default();
449 tmp.deserialize_members(&mut *deser).map_err(|e| {
450 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
451 ::aws_smithy_runtime_api::box_error::BoxError::from(e),
452 )
453 })?;
454 if tmp.message.is_none() {
455 tmp.message = _error_message;
456 }
457 let tmp = tmp.meta(generic);
458 tmp.build()
459 })
460 }
461 "IntegrationQuotaExceededFault" => crate::operation::create_integration::CreateIntegrationError::IntegrationQuotaExceededFault({
462 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
463 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
464 e,
465 ))
466 })?;
467 let mut tmp = <crate::types::error::builders::IntegrationQuotaExceededFaultBuilder>::default();
468 tmp.deserialize_members(&mut *deser).map_err(|e| {
469 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
470 e,
471 ))
472 })?;
473 if tmp.message.is_none() {
474 tmp.message = _error_message;
475 }
476 let tmp = tmp.meta(generic);
477 tmp.build()
478 }),
479 "InternalServerException" => crate::operation::create_integration::CreateIntegrationError::InternalServerException({
480 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
481 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
482 e,
483 ))
484 })?;
485 let mut tmp = <crate::types::error::builders::InternalServerExceptionBuilder>::default();
486 tmp.deserialize_members(&mut *deser).map_err(|e| {
487 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
488 e,
489 ))
490 })?;
491 if tmp.message.is_none() {
492 tmp.message = _error_message;
493 }
494 let tmp = tmp.meta(generic);
495 tmp.build()
496 }),
497 "InternalServiceException" => crate::operation::create_integration::CreateIntegrationError::InternalServiceException({
498 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
499 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
500 e,
501 ))
502 })?;
503 let mut tmp = <crate::types::error::builders::InternalServiceExceptionBuilder>::default();
504 tmp.deserialize_members(&mut *deser).map_err(|e| {
505 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
506 e,
507 ))
508 })?;
509 if tmp.message.is_none() {
510 tmp.message = _error_message;
511 }
512 let tmp = tmp.meta(generic);
513 tmp.build()
514 }),
515 "InvalidInputException" => crate::operation::create_integration::CreateIntegrationError::InvalidInputException({
516 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
517 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
518 e,
519 ))
520 })?;
521 let mut tmp = <crate::types::error::builders::InvalidInputExceptionBuilder>::default();
522 tmp.deserialize_members(&mut *deser).map_err(|e| {
523 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
524 e,
525 ))
526 })?;
527 if tmp.message.is_none() {
528 tmp.message = _error_message;
529 }
530 let tmp = tmp.meta(generic);
531 tmp.build()
532 }),
533 "KMSKeyNotAccessibleFault" => crate::operation::create_integration::CreateIntegrationError::KmsKeyNotAccessibleFault({
534 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
535 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
536 e,
537 ))
538 })?;
539 let mut tmp = <crate::types::error::builders::KmsKeyNotAccessibleFaultBuilder>::default();
540 tmp.deserialize_members(&mut *deser).map_err(|e| {
541 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
542 e,
543 ))
544 })?;
545 if tmp.message.is_none() {
546 tmp.message = _error_message;
547 }
548 let tmp = tmp.meta(generic);
549 tmp.build()
550 }),
551 "ResourceNotFoundException" => crate::operation::create_integration::CreateIntegrationError::ResourceNotFoundException({
552 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
553 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
554 e,
555 ))
556 })?;
557 let mut tmp = <crate::types::error::builders::ResourceNotFoundExceptionBuilder>::default();
558 tmp.deserialize_members(&mut *deser).map_err(|e| {
559 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
560 e,
561 ))
562 })?;
563 if tmp.message.is_none() {
564 tmp.message = _error_message;
565 }
566 let tmp = tmp.meta(generic);
567 tmp.build()
568 }),
569 "ResourceNumberLimitExceededException" => {
570 crate::operation::create_integration::CreateIntegrationError::ResourceNumberLimitExceededException({
571 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
572 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
573 ::aws_smithy_runtime_api::box_error::BoxError::from(e),
574 )
575 })?;
576 let mut tmp = <crate::types::error::builders::ResourceNumberLimitExceededExceptionBuilder>::default();
577 tmp.deserialize_members(&mut *deser).map_err(|e| {
578 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
579 ::aws_smithy_runtime_api::box_error::BoxError::from(e),
580 )
581 })?;
582 if tmp.message.is_none() {
583 tmp.message = _error_message;
584 }
585 let tmp = tmp.meta(generic);
586 tmp.build()
587 })
588 }
589 "ValidationException" => crate::operation::create_integration::CreateIntegrationError::ValidationException({
590 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
591 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
592 e,
593 ))
594 })?;
595 let mut tmp = <crate::types::error::builders::ValidationExceptionBuilder>::default();
596 tmp.deserialize_members(&mut *deser).map_err(|e| {
597 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
598 e,
599 ))
600 })?;
601 if tmp.message.is_none() {
602 tmp.message = _error_message;
603 }
604 let tmp = tmp.meta(generic);
605 tmp.build()
606 }),
607 _ => {
608 match protocol
616 .deserialize_error_response(response, _cfg)
617 .ok()
618 .and_then(|mut deser| {
619 ::aws_smithy_schema::registry::reify_error(
620 crate::operation::create_integration::error_registry::REGISTRY
621 .or(&crate::error_type_registry::REGISTRY),
622 error_code,
623 &mut *deser,
624 )
625 }) {
626 ::std::option::Option::Some(source) => <crate::operation::create_integration::CreateIntegrationError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
627 ::std::option::Option::None => crate::operation::create_integration::CreateIntegrationError::generic(generic),
628 }
629 }
630 };
631 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
632 ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
633 ))
634 } else {
635 let protocol = _cfg
636 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
637 .expect("a SharedClientProtocol is required");
638 let mut deser = protocol
639 .deserialize_response(response, CreateIntegration::OUTPUT_SCHEMA, _cfg)
640 .map_err(|e| {
641 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
642 })?;
643 let _response_headers = headers;
647 #[allow(unused_mut)]
651 let mut output = <crate::operation::create_integration::builders::CreateIntegrationOutputBuilder>::default();
652 output.deserialize_members(&mut *deser).map_err(|e| {
653 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
654 })?;
655 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
656 let output = crate::serde_util::create_integration_output_output_correct_errors(output)
657 .build()
658 .map_err(|e| {
659 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
660 })?;
661 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
662 }
663 }
664}
665#[derive(Debug)]
666struct CreateIntegrationRequestSerializer;
667impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateIntegrationRequestSerializer {
668 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
669 fn serialize_input(
670 &self,
671 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
672 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
673 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
674 let input = input
675 .downcast::<crate::operation::create_integration::CreateIntegrationInput>()
676 .expect("correct type");
677
678 let protocol = _cfg
679 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
680 .expect("a SharedClientProtocol is required");
681 let mut request = protocol
682 .serialize_request(&input, CreateIntegration::INPUT_SCHEMA, "/", _cfg)
683 .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
684
685 return ::std::result::Result::Ok(request);
686 }
687}
688#[derive(Debug)]
689struct CreateIntegrationEndpointParamsInterceptor;
690
691#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
692impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateIntegrationEndpointParamsInterceptor {
693 fn name(&self) -> &'static str {
694 "CreateIntegrationEndpointParamsInterceptor"
695 }
696
697 fn read_before_execution(
698 &self,
699 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
700 '_,
701 ::aws_smithy_runtime_api::client::interceptors::context::Input,
702 ::aws_smithy_runtime_api::client::interceptors::context::Output,
703 ::aws_smithy_runtime_api::client::interceptors::context::Error,
704 >,
705 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
706 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
707 let _input = context
708 .input()
709 .downcast_ref::<CreateIntegrationInput>()
710 .ok_or("failed to downcast to CreateIntegrationInput")?;
711
712 let params = crate::config::endpoint::Params::builder()
713 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
714 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
715 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
716 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
717 .build()
718 .map_err(|err| {
719 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
720 })?;
721 cfg.interceptor_state()
722 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
723 ::std::result::Result::Ok(())
724 }
725}
726
727#[non_exhaustive]
732#[derive(::std::fmt::Debug)]
733pub enum CreateIntegrationError {
734 AccessDeniedException(crate::types::error::AccessDeniedException),
736 ConflictException(crate::types::error::ConflictException),
738 EntityNotFoundException(crate::types::error::EntityNotFoundException),
740 IntegrationConflictOperationFault(crate::types::error::IntegrationConflictOperationFault),
742 IntegrationQuotaExceededFault(crate::types::error::IntegrationQuotaExceededFault),
744 InternalServerException(crate::types::error::InternalServerException),
746 InternalServiceException(crate::types::error::InternalServiceException),
748 InvalidInputException(crate::types::error::InvalidInputException),
750 KmsKeyNotAccessibleFault(crate::types::error::KmsKeyNotAccessibleFault),
752 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
754 ResourceNumberLimitExceededException(crate::types::error::ResourceNumberLimitExceededException),
756 ValidationException(crate::types::error::ValidationException),
758 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
760 variable wildcard pattern and check `.code()`:
761 \
762 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
763 \
764 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CreateIntegrationError) for what information is available for the error.")]
765 Unhandled(crate::error::sealed_unhandled::Unhandled),
766}
767impl CreateIntegrationError {
768 pub fn unhandled(
770 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
771 ) -> Self {
772 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
773 source: err.into(),
774 meta: ::std::default::Default::default(),
775 })
776 }
777
778 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
780 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
781 source: err.clone().into(),
782 meta: err,
783 })
784 }
785 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
790 match self {
791 Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
792 Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
793 Self::EntityNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
794 Self::IntegrationConflictOperationFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
795 Self::IntegrationQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
796 Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
797 Self::InternalServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
798 Self::InvalidInputException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
799 Self::KmsKeyNotAccessibleFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
800 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
801 Self::ResourceNumberLimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
802 Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
803 Self::Unhandled(e) => &e.meta,
804 }
805 }
806 pub fn is_access_denied_exception(&self) -> bool {
808 matches!(self, Self::AccessDeniedException(_))
809 }
810 pub fn is_conflict_exception(&self) -> bool {
812 matches!(self, Self::ConflictException(_))
813 }
814 pub fn is_entity_not_found_exception(&self) -> bool {
816 matches!(self, Self::EntityNotFoundException(_))
817 }
818 pub fn is_integration_conflict_operation_fault(&self) -> bool {
820 matches!(self, Self::IntegrationConflictOperationFault(_))
821 }
822 pub fn is_integration_quota_exceeded_fault(&self) -> bool {
824 matches!(self, Self::IntegrationQuotaExceededFault(_))
825 }
826 pub fn is_internal_server_exception(&self) -> bool {
828 matches!(self, Self::InternalServerException(_))
829 }
830 pub fn is_internal_service_exception(&self) -> bool {
832 matches!(self, Self::InternalServiceException(_))
833 }
834 pub fn is_invalid_input_exception(&self) -> bool {
836 matches!(self, Self::InvalidInputException(_))
837 }
838 pub fn is_kms_key_not_accessible_fault(&self) -> bool {
840 matches!(self, Self::KmsKeyNotAccessibleFault(_))
841 }
842 pub fn is_resource_not_found_exception(&self) -> bool {
844 matches!(self, Self::ResourceNotFoundException(_))
845 }
846 pub fn is_resource_number_limit_exceeded_exception(&self) -> bool {
848 matches!(self, Self::ResourceNumberLimitExceededException(_))
849 }
850 pub fn is_validation_exception(&self) -> bool {
852 matches!(self, Self::ValidationException(_))
853 }
854}
855impl ::std::error::Error for CreateIntegrationError {
856 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
857 match self {
858 Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
859 Self::ConflictException(_inner) => ::std::option::Option::Some(_inner),
860 Self::EntityNotFoundException(_inner) => ::std::option::Option::Some(_inner),
861 Self::IntegrationConflictOperationFault(_inner) => ::std::option::Option::Some(_inner),
862 Self::IntegrationQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
863 Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
864 Self::InternalServiceException(_inner) => ::std::option::Option::Some(_inner),
865 Self::InvalidInputException(_inner) => ::std::option::Option::Some(_inner),
866 Self::KmsKeyNotAccessibleFault(_inner) => ::std::option::Option::Some(_inner),
867 Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
868 Self::ResourceNumberLimitExceededException(_inner) => ::std::option::Option::Some(_inner),
869 Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
870 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
871 }
872 }
873}
874impl ::std::fmt::Display for CreateIntegrationError {
875 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
876 match self {
877 Self::AccessDeniedException(_inner) => _inner.fmt(f),
878 Self::ConflictException(_inner) => _inner.fmt(f),
879 Self::EntityNotFoundException(_inner) => _inner.fmt(f),
880 Self::IntegrationConflictOperationFault(_inner) => _inner.fmt(f),
881 Self::IntegrationQuotaExceededFault(_inner) => _inner.fmt(f),
882 Self::InternalServerException(_inner) => _inner.fmt(f),
883 Self::InternalServiceException(_inner) => _inner.fmt(f),
884 Self::InvalidInputException(_inner) => _inner.fmt(f),
885 Self::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
886 Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
887 Self::ResourceNumberLimitExceededException(_inner) => _inner.fmt(f),
888 Self::ValidationException(_inner) => _inner.fmt(f),
889 Self::Unhandled(_inner) => {
890 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
891 write!(f, "unhandled error ({code})")
892 } else {
893 f.write_str("unhandled error")
894 }
895 }
896 }
897 }
898}
899impl ::aws_smithy_types::retry::ProvideErrorKind for CreateIntegrationError {
900 fn code(&self) -> ::std::option::Option<&str> {
901 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
902 }
903 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
904 ::std::option::Option::None
905 }
906}
907impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateIntegrationError {
908 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
909 match self {
910 Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
911 Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
912 Self::EntityNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
913 Self::IntegrationConflictOperationFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
914 Self::IntegrationQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
915 Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
916 Self::InternalServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
917 Self::InvalidInputException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
918 Self::KmsKeyNotAccessibleFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
919 Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
920 Self::ResourceNumberLimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
921 Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
922 Self::Unhandled(_inner) => &_inner.meta,
923 }
924 }
925}
926impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CreateIntegrationError {
927 fn create_unhandled_error(
928 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
929 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
930 ) -> Self {
931 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
932 source,
933 meta: meta.unwrap_or_default(),
934 })
935 }
936}
937impl ::aws_types::request_id::RequestId for crate::operation::create_integration::CreateIntegrationError {
938 fn request_id(&self) -> Option<&str> {
939 self.meta().request_id()
940 }
941}
942
943pub use crate::operation::create_integration::_create_integration_input::CreateIntegrationInput;
944
945pub use crate::operation::create_integration::_create_integration_output::CreateIntegrationOutput;
946
947mod _create_integration_input;
948
949mod _create_integration_output;
950
951pub mod builders;