Skip to main content

aws_sdk_eks/operation/
disassociate_identity_provider_config.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `DisassociateIdentityProviderConfig`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct DisassociateIdentityProviderConfig;
6impl DisassociateIdentityProviderConfig {
7    /// Creates a new `DisassociateIdentityProviderConfig`
8    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::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput,
14    ) -> ::std::result::Result<
15        crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError,
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::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError>()
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::disassociate_identity_provider_config::DisassociateIdentityProviderConfigOutput>()
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::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput,
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(
55            "EKS",
56            "DisassociateIdentityProviderConfig",
57            input,
58            runtime_plugins,
59            stop_point,
60        )
61        // Create a parent span for the entire operation. Includes a random, internal-only,
62        // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
63        .instrument(::tracing::debug_span!(
64            "EKS.DisassociateIdentityProviderConfig",
65            "rpc.service" = "EKS",
66            "rpc.method" = "DisassociateIdentityProviderConfig",
67            "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
68            "rpc.system" = "aws-api",
69        ))
70        .await
71    }
72
73    pub(crate) fn operation_runtime_plugins(
74        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
75        client_config: &crate::config::Config,
76        config_override: ::std::option::Option<crate::config::Builder>,
77    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
78        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
79        runtime_plugins = runtime_plugins.with_operation_plugin(crate::client_idempotency_token::IdempotencyTokenRuntimePlugin::new(
80            |token_provider, input| {
81                let input: &mut crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput =
82                    input.downcast_mut().expect("correct type");
83                if input.client_request_token.is_none() {
84                    input.client_request_token = ::std::option::Option::Some(token_provider.make_idempotency_token());
85                }
86            },
87        ));
88        if let ::std::option::Option::Some(config_override) = config_override {
89            for plugin in config_override.runtime_plugins.iter().cloned() {
90                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
91            }
92            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
93                config_override,
94                client_config.config.clone(),
95                &client_config.runtime_components,
96            ));
97        }
98        runtime_plugins
99    }
100}
101impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for DisassociateIdentityProviderConfig {
102    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
103        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("DisassociateIdentityProviderConfig");
104
105        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
106            DisassociateIdentityProviderConfigRequestSerializer,
107        ));
108        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
109            DisassociateIdentityProviderConfigResponseDeserializer,
110        ));
111
112        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
113            crate::config::auth::Params::builder()
114                .operation_name("DisassociateIdentityProviderConfig")
115                .build()
116                .expect("required fields set"),
117        ));
118
119        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
120            "DisassociateIdentityProviderConfig",
121            "EKS",
122        ));
123        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
124        signing_options.double_uri_encode = true;
125        signing_options.content_sha256_header = false;
126        signing_options.normalize_uri_path = true;
127        signing_options.payload_override = None;
128
129        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
130            signing_options,
131            ..::std::default::Default::default()
132        });
133
134        ::std::option::Option::Some(cfg.freeze())
135    }
136
137    fn runtime_components(
138        &self,
139        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
140    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
141        #[allow(unused_mut)]
142        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("DisassociateIdentityProviderConfig")
143            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
144                DisassociateIdentityProviderConfigTelemetryInputCaptureInterceptor,
145            ))
146            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
147                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
148            ))
149            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
150                DisassociateIdentityProviderConfigEndpointParamsInterceptor,
151            ))
152            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
153                crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError,
154            >::new())
155            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
156                crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError,
157            >::new())
158            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
159                crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError,
160            >::new())
161            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
162                crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError,
163            >::new());
164
165        ::std::borrow::Cow::Owned(rcb)
166    }
167}
168
169#[derive(Debug)]
170struct DisassociateIdentityProviderConfigTelemetryInputCaptureInterceptor;
171
172#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
173impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DisassociateIdentityProviderConfigTelemetryInputCaptureInterceptor {
174    fn name(&self) -> &'static str {
175        "DisassociateIdentityProviderConfigTelemetryInputCaptureInterceptor"
176    }
177
178    fn read_before_execution(
179        &self,
180        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
181            '_,
182            ::aws_smithy_runtime_api::client::interceptors::context::Input,
183            ::aws_smithy_runtime_api::client::interceptors::context::Output,
184            ::aws_smithy_runtime_api::client::interceptors::context::Error,
185        >,
186        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
187    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
188        // Nothing to do unless the customer opted in by naming members to record.
189        let ::std::option::Option::Some(requested) = cfg
190            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
191            .filter(|r| !r.is_empty())
192        else {
193            return ::std::result::Result::Ok(());
194        };
195
196        let ::std::option::Option::Some(input) = context.input().downcast_ref::<DisassociateIdentityProviderConfigInput>() else {
197            // A mismatched input is not this interceptor's concern; skip quietly.
198            return ::std::result::Result::Ok(());
199        };
200
201        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
202        if requested.should_capture("clusterName") {
203            if let ::std::option::Option::Some(value) = input.cluster_name.as_deref() {
204                captured.insert("clusterName", value);
205            }
206        }
207        if requested.should_capture("clientRequestToken") {
208            if let ::std::option::Option::Some(value) = input.client_request_token.as_deref() {
209                captured.insert("clientRequestToken", value);
210            }
211        }
212
213        cfg.interceptor_state().store_put(captured);
214        ::std::result::Result::Ok(())
215    }
216}
217#[derive(Debug)]
218struct DisassociateIdentityProviderConfigResponseDeserializer;
219impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisassociateIdentityProviderConfigResponseDeserializer {
220    fn deserialize_nonstreaming_with_config(
221        &self,
222        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
223        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
224    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
225        let (success, status) = (response.status().is_success(), response.status().as_u16());
226        let headers = response.headers();
227        let body = response.body().bytes().expect("body loaded");
228        #[allow(unused_mut)]
229        let mut force_error = false;
230        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
231        let parse_result = if !success && status != 200 || force_error {
232            crate::protocol_serde::shape_disassociate_identity_provider_config::de_disassociate_identity_provider_config_http_error(
233                status, headers, body,
234            )
235        } else {
236            crate::protocol_serde::shape_disassociate_identity_provider_config::de_disassociate_identity_provider_config_http_response(
237                status, headers, body,
238            )
239        };
240        crate::protocol_serde::type_erase_result(parse_result)
241    }
242}
243#[derive(Debug)]
244struct DisassociateIdentityProviderConfigRequestSerializer;
245impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DisassociateIdentityProviderConfigRequestSerializer {
246    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
247    fn serialize_input(
248        &self,
249        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
250        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
251    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
252        let input = input
253            .downcast::<crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput>()
254            .expect("correct type");
255        let _header_serialization_settings = _cfg
256            .load::<crate::serialization_settings::HeaderSerializationSettings>()
257            .cloned()
258            .unwrap_or_default();
259        let mut request_builder = {
260            #[allow(clippy::uninlined_format_args)]
261            fn uri_base(
262                _input: &crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput,
263                output: &mut ::std::string::String,
264            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
265                use ::std::fmt::Write as _;
266                let input_1 = &_input.cluster_name;
267                let input_1 = input_1
268                    .as_ref()
269                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("cluster_name", "cannot be empty or unset"))?;
270                let cluster_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
271                if cluster_name.is_empty() {
272                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
273                        "cluster_name",
274                        "cannot be empty or unset",
275                    ));
276                }
277                ::std::write!(
278                    output,
279                    "/clusters/{clusterName}/identity-provider-configs/disassociate",
280                    clusterName = cluster_name
281                )
282                .expect("formatting should succeed");
283                ::std::result::Result::Ok(())
284            }
285            #[allow(clippy::unnecessary_wraps)]
286            fn update_http_builder(
287                input: &crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigInput,
288                builder: ::http_1x::request::Builder,
289            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
290                let mut uri = ::std::string::String::new();
291                uri_base(input, &mut uri)?;
292                ::std::result::Result::Ok(builder.method("POST").uri(uri))
293            }
294            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
295            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
296            builder
297        };
298        let body = ::aws_smithy_types::body::SdkBody::from(
299            crate::protocol_serde::shape_disassociate_identity_provider_config::ser_disassociate_identity_provider_config_input(&input)?,
300        );
301        if let Some(content_length) = body.content_length() {
302            let content_length = content_length.to_string();
303            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
304        }
305        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
306    }
307}
308#[derive(Debug)]
309struct DisassociateIdentityProviderConfigEndpointParamsInterceptor;
310
311#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
312impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DisassociateIdentityProviderConfigEndpointParamsInterceptor {
313    fn name(&self) -> &'static str {
314        "DisassociateIdentityProviderConfigEndpointParamsInterceptor"
315    }
316
317    fn read_before_execution(
318        &self,
319        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
320            '_,
321            ::aws_smithy_runtime_api::client::interceptors::context::Input,
322            ::aws_smithy_runtime_api::client::interceptors::context::Output,
323            ::aws_smithy_runtime_api::client::interceptors::context::Error,
324        >,
325        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
326    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
327        let _input = context
328            .input()
329            .downcast_ref::<DisassociateIdentityProviderConfigInput>()
330            .ok_or("failed to downcast to DisassociateIdentityProviderConfigInput")?;
331
332        let params = crate::config::endpoint::Params::builder()
333            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
334            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
335            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
336            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
337            .build()
338            .map_err(|err| {
339                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
340            })?;
341        cfg.interceptor_state()
342            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
343        ::std::result::Result::Ok(())
344    }
345}
346
347// The get_* functions below are generated from JMESPath expressions in the
348// operationContextParams trait. They target the operation's input shape.
349
350/// Error type for the `DisassociateIdentityProviderConfigError` operation.
351#[non_exhaustive]
352#[derive(::std::fmt::Debug)]
353pub enum DisassociateIdentityProviderConfigError {
354    /// <p>These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html">IAM principal</a> that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.</p>
355    ClientException(crate::types::error::ClientException),
356    /// <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
357    InvalidParameterException(crate::types::error::InvalidParameterException),
358    /// <p>The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.</p>
359    InvalidRequestException(crate::types::error::InvalidRequestException),
360    /// <p>The specified resource is in use.</p>
361    ResourceInUseException(crate::types::error::ResourceInUseException),
362    /// <p>The specified resource could not be found. You can view your available clusters with <code>ListClusters</code>. You can view your available managed node groups with <code>ListNodegroups</code>. Amazon EKS clusters and node groups are Amazon Web Services Region specific.</p>
363    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
364    /// <p>These errors are usually caused by a server-side issue.</p>
365    ServerException(crate::types::error::ServerException),
366    /// <p>The request or operation couldn't be performed because a service is throttling requests.</p>
367    ThrottlingException(crate::types::error::ThrottlingException),
368    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
369    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
370    variable wildcard pattern and check `.code()`:
371     \
372    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
373     \
374    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DisassociateIdentityProviderConfigError) for what information is available for the error.")]
375    Unhandled(crate::error::sealed_unhandled::Unhandled),
376}
377impl DisassociateIdentityProviderConfigError {
378    /// Creates the `DisassociateIdentityProviderConfigError::Unhandled` variant from any error type.
379    pub fn unhandled(
380        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
381    ) -> Self {
382        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
383            source: err.into(),
384            meta: ::std::default::Default::default(),
385        })
386    }
387
388    /// Creates the `DisassociateIdentityProviderConfigError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
389    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
390        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
391            source: err.clone().into(),
392            meta: err,
393        })
394    }
395    ///
396    /// Returns error metadata, which includes the error code, message,
397    /// request ID, and potentially additional information.
398    ///
399    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
400        match self {
401            Self::ClientException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
402            Self::InvalidParameterException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
403            Self::InvalidRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
404            Self::ResourceInUseException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
405            Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
406            Self::ServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
407            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
408            Self::Unhandled(e) => &e.meta,
409        }
410    }
411    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::ClientException`.
412    pub fn is_client_exception(&self) -> bool {
413        matches!(self, Self::ClientException(_))
414    }
415    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::InvalidParameterException`.
416    pub fn is_invalid_parameter_exception(&self) -> bool {
417        matches!(self, Self::InvalidParameterException(_))
418    }
419    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::InvalidRequestException`.
420    pub fn is_invalid_request_exception(&self) -> bool {
421        matches!(self, Self::InvalidRequestException(_))
422    }
423    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::ResourceInUseException`.
424    pub fn is_resource_in_use_exception(&self) -> bool {
425        matches!(self, Self::ResourceInUseException(_))
426    }
427    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::ResourceNotFoundException`.
428    pub fn is_resource_not_found_exception(&self) -> bool {
429        matches!(self, Self::ResourceNotFoundException(_))
430    }
431    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::ServerException`.
432    pub fn is_server_exception(&self) -> bool {
433        matches!(self, Self::ServerException(_))
434    }
435    /// Returns `true` if the error kind is `DisassociateIdentityProviderConfigError::ThrottlingException`.
436    pub fn is_throttling_exception(&self) -> bool {
437        matches!(self, Self::ThrottlingException(_))
438    }
439}
440impl ::std::error::Error for DisassociateIdentityProviderConfigError {
441    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
442        match self {
443            Self::ClientException(_inner) => ::std::option::Option::Some(_inner),
444            Self::InvalidParameterException(_inner) => ::std::option::Option::Some(_inner),
445            Self::InvalidRequestException(_inner) => ::std::option::Option::Some(_inner),
446            Self::ResourceInUseException(_inner) => ::std::option::Option::Some(_inner),
447            Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
448            Self::ServerException(_inner) => ::std::option::Option::Some(_inner),
449            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
450            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
451        }
452    }
453}
454impl ::std::fmt::Display for DisassociateIdentityProviderConfigError {
455    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
456        match self {
457            Self::ClientException(_inner) => _inner.fmt(f),
458            Self::InvalidParameterException(_inner) => _inner.fmt(f),
459            Self::InvalidRequestException(_inner) => _inner.fmt(f),
460            Self::ResourceInUseException(_inner) => _inner.fmt(f),
461            Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
462            Self::ServerException(_inner) => _inner.fmt(f),
463            Self::ThrottlingException(_inner) => _inner.fmt(f),
464            Self::Unhandled(_inner) => {
465                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
466                    write!(f, "unhandled error ({code})")
467                } else {
468                    f.write_str("unhandled error")
469                }
470            }
471        }
472    }
473}
474impl ::aws_smithy_types::retry::ProvideErrorKind for DisassociateIdentityProviderConfigError {
475    fn code(&self) -> ::std::option::Option<&str> {
476        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
477    }
478    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
479        ::std::option::Option::None
480    }
481}
482impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DisassociateIdentityProviderConfigError {
483    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
484        match self {
485            Self::ClientException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
486            Self::InvalidParameterException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
487            Self::InvalidRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
488            Self::ResourceInUseException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
489            Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
490            Self::ServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
491            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
492            Self::Unhandled(_inner) => &_inner.meta,
493        }
494    }
495}
496impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DisassociateIdentityProviderConfigError {
497    fn create_unhandled_error(
498        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
499        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
500    ) -> Self {
501        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
502            source,
503            meta: meta.unwrap_or_default(),
504        })
505    }
506}
507impl ::aws_types::request_id::RequestId for crate::operation::disassociate_identity_provider_config::DisassociateIdentityProviderConfigError {
508    fn request_id(&self) -> Option<&str> {
509        self.meta().request_id()
510    }
511}
512
513pub use crate::operation::disassociate_identity_provider_config::_disassociate_identity_provider_config_input::DisassociateIdentityProviderConfigInput;
514
515pub use crate::operation::disassociate_identity_provider_config::_disassociate_identity_provider_config_output::DisassociateIdentityProviderConfigOutput;
516
517mod _disassociate_identity_provider_config_input;
518
519mod _disassociate_identity_provider_config_output;
520
521/// Builders
522pub mod builders;