AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/unlabel_parameter_version/builders.rs

@@ -0,1 +0,165 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::unlabel_parameter_version::_unlabel_parameter_version_input::UnlabelParameterVersionInputBuilder;
           3  +
           4  +
pub use crate::operation::unlabel_parameter_version::_unlabel_parameter_version_output::UnlabelParameterVersionOutputBuilder;
           5  +
           6  +
impl crate::operation::unlabel_parameter_version::builders::UnlabelParameterVersionInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::unlabel_parameter_version::UnlabelParameterVersionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.unlabel_parameter_version();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UnlabelParameterVersion`.
          24  +
///
          25  +
/// <p>Remove a label or labels from a parameter.</p>
          26  +
/// <p>Parameter names can't contain spaces. The service removes any spaces specified for the beginning or end of a parameter name. If the specified name for a parameter contains spaces between characters, the request fails with a <code>ValidationException</code> error.</p>
          27  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          28  +
pub struct UnlabelParameterVersionFluentBuilder {
          29  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          30  +
    inner: crate::operation::unlabel_parameter_version::builders::UnlabelParameterVersionInputBuilder,
          31  +
    config_override: ::std::option::Option<crate::config::Builder>,
          32  +
}
          33  +
impl
          34  +
    crate::client::customize::internal::CustomizableSend<
          35  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput,
          36  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionError,
          37  +
    > for UnlabelParameterVersionFluentBuilder
          38  +
{
          39  +
    fn send(
          40  +
        self,
          41  +
        config_override: crate::config::Builder,
          42  +
    ) -> crate::client::customize::internal::BoxFuture<
          43  +
        crate::client::customize::internal::SendResult<
          44  +
            crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput,
          45  +
            crate::operation::unlabel_parameter_version::UnlabelParameterVersionError,
          46  +
        >,
          47  +
    > {
          48  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          49  +
    }
          50  +
}
          51  +
impl UnlabelParameterVersionFluentBuilder {
          52  +
    /// Creates a new `UnlabelParameterVersionFluentBuilder`.
          53  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          54  +
        Self {
          55  +
            handle,
          56  +
            inner: ::std::default::Default::default(),
          57  +
            config_override: ::std::option::Option::None,
          58  +
        }
          59  +
    }
          60  +
    /// Access the UnlabelParameterVersion as a reference.
          61  +
    pub fn as_input(&self) -> &crate::operation::unlabel_parameter_version::builders::UnlabelParameterVersionInputBuilder {
          62  +
        &self.inner
          63  +
    }
          64  +
    /// Sends the request and returns the response.
          65  +
    ///
          66  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          67  +
    /// can be matched against.
          68  +
    ///
          69  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          70  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          71  +
    /// set when configuring the client.
          72  +
    pub async fn send(
          73  +
        self,
          74  +
    ) -> ::std::result::Result<
          75  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput,
          76  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          77  +
            crate::operation::unlabel_parameter_version::UnlabelParameterVersionError,
          78  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          79  +
        >,
          80  +
    > {
          81  +
        let input = self
          82  +
            .inner
          83  +
            .build()
          84  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          85  +
        let runtime_plugins = crate::operation::unlabel_parameter_version::UnlabelParameterVersion::operation_runtime_plugins(
          86  +
            self.handle.runtime_plugins.clone(),
          87  +
            &self.handle.conf,
          88  +
            self.config_override,
          89  +
        );
          90  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersion::orchestrate(&runtime_plugins, input).await
          91  +
    }
          92  +
          93  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          94  +
    pub fn customize(
          95  +
        self,
          96  +
    ) -> crate::client::customize::CustomizableOperation<
          97  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput,
          98  +
        crate::operation::unlabel_parameter_version::UnlabelParameterVersionError,
          99  +
        Self,
         100  +
    > {
         101  +
        crate::client::customize::CustomizableOperation::new(self)
         102  +
    }
         103  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         104  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         105  +
        self
         106  +
    }
         107  +
         108  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         109  +
        self.config_override = config_override;
         110  +
        self
         111  +
    }
         112  +
    /// <p>The name of the parameter from which you want to delete one or more labels.</p><note>
         113  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         114  +
    /// </note>
         115  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         116  +
        self.inner = self.inner.name(input.into());
         117  +
        self
         118  +
    }
         119  +
    /// <p>The name of the parameter from which you want to delete one or more labels.</p><note>
         120  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         121  +
    /// </note>
         122  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         123  +
        self.inner = self.inner.set_name(input);
         124  +
        self
         125  +
    }
         126  +
    /// <p>The name of the parameter from which you want to delete one or more labels.</p><note>
         127  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         128  +
    /// </note>
         129  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         130  +
        self.inner.get_name()
         131  +
    }
         132  +
    /// <p>The specific version of the parameter which you want to delete one or more labels from. If it isn't present, the call will fail.</p>
         133  +
    pub fn parameter_version(mut self, input: i64) -> Self {
         134  +
        self.inner = self.inner.parameter_version(input);
         135  +
        self
         136  +
    }
         137  +
    /// <p>The specific version of the parameter which you want to delete one or more labels from. If it isn't present, the call will fail.</p>
         138  +
    pub fn set_parameter_version(mut self, input: ::std::option::Option<i64>) -> Self {
         139  +
        self.inner = self.inner.set_parameter_version(input);
         140  +
        self
         141  +
    }
         142  +
    /// <p>The specific version of the parameter which you want to delete one or more labels from. If it isn't present, the call will fail.</p>
         143  +
    pub fn get_parameter_version(&self) -> &::std::option::Option<i64> {
         144  +
        self.inner.get_parameter_version()
         145  +
    }
         146  +
    ///
         147  +
    /// Appends an item to `Labels`.
         148  +
    ///
         149  +
    /// To override the contents of this collection use [`set_labels`](Self::set_labels).
         150  +
    ///
         151  +
    /// <p>One or more labels to delete from the specified parameter version.</p>
         152  +
    pub fn labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         153  +
        self.inner = self.inner.labels(input.into());
         154  +
        self
         155  +
    }
         156  +
    /// <p>One or more labels to delete from the specified parameter version.</p>
         157  +
    pub fn set_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         158  +
        self.inner = self.inner.set_labels(input);
         159  +
        self
         160  +
    }
         161  +
    /// <p>One or more labels to delete from the specified parameter version.</p>
         162  +
    pub fn get_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         163  +
        self.inner.get_labels()
         164  +
    }
         165  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/update_association.rs

@@ -0,1 +0,1044 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `UpdateAssociation`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct UpdateAssociation;
           6  +
impl UpdateAssociation {
           7  +
    /// Creates a new `UpdateAssociation`
           8  +
    pub fn new() -> Self {
           9  +
        Self
          10  +
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::update_association::UpdateAssociationInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::update_association::UpdateAssociationOutput::SCHEMA;
          15  +
    pub(crate) async fn orchestrate(
          16  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          17  +
        input: crate::operation::update_association::UpdateAssociationInput,
          18  +
    ) -> ::std::result::Result<
          19  +
        crate::operation::update_association::UpdateAssociationOutput,
          20  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          21  +
            crate::operation::update_association::UpdateAssociationError,
          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::update_association::UpdateAssociationError>()
          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::update_association::UpdateAssociationOutput>()
          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::update_association::UpdateAssociationInput,
          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("SSM", "UpdateAssociation", input, runtime_plugins, stop_point)
          59  +
            // Create a parent span for the entire operation. Includes a random, internal-only,
          60  +
            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
          61  +
            .instrument(::tracing::debug_span!(
          62  +
                "SSM.UpdateAssociation",
          63  +
                "rpc.service" = "SSM",
          64  +
                "rpc.method" = "UpdateAssociation",
          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  +
}
          91  +
/// Per-operation error registry. Contains an entry for every modeled
          92  +
/// error this operation can throw.
          93  +
///
          94  +
/// Used by the schema-serde error path as the operation-scoped lookup
          95  +
/// for registry-backed error reification: an error code that does not
          96  +
/// match one of the operation's modeled errors directly is resolved
          97  +
/// against this registry first, then widened to the service-wide error
          98  +
/// registry.
          99  +
pub(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::AssociationDoesNotExist::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::AssociationDoesNotExist::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::AssociationDoesNotExist::deserialize(d)?))
         109  +
                        },
         110  +
                    )
         111  +
.insert_error_shape(
         112  +
                        crate::types::error::AssociationVersionLimitExceeded::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::AssociationVersionLimitExceeded::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::AssociationVersionLimitExceeded::deserialize(d)?))
         118  +
                        },
         119  +
                    )
         120  +
.insert_error_shape(
         121  +
                        crate::types::error::InternalServerError::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::InternalServerError::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::InternalServerError::deserialize(d)?))
         127  +
                        },
         128  +
                    )
         129  +
.insert_error_shape(
         130  +
                        crate::types::error::InvalidAssociationVersion::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::InvalidAssociationVersion::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::InvalidAssociationVersion::deserialize(d)?))
         136  +
                        },
         137  +
                    )
         138  +
.insert_error_shape(
         139  +
                        crate::types::error::InvalidDocument::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::InvalidDocument::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::InvalidDocument::deserialize(d)?))
         145  +
                        },
         146  +
                    )
         147  +
.insert_error_shape(
         148  +
                        crate::types::error::InvalidDocumentVersion::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::InvalidDocumentVersion::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::InvalidDocumentVersion::deserialize(d)?))
         154  +
                        },
         155  +
                    )
         156  +
.insert_error_shape(
         157  +
                        crate::types::error::InvalidOutputLocation::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::InvalidOutputLocation::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::InvalidOutputLocation::deserialize(d)?))
         163  +
                        },
         164  +
                    )
         165  +
.insert_error_shape(
         166  +
                        crate::types::error::InvalidParameters::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::InvalidParameters::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::InvalidParameters::deserialize(d)?))
         172  +
                        },
         173  +
                    )
         174  +
.insert_error_shape(
         175  +
                        crate::types::error::InvalidSchedule::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::InvalidSchedule::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::InvalidSchedule::deserialize(d)?))
         181  +
                        },
         182  +
                    )
         183  +
.insert_error_shape(
         184  +
                        crate::types::error::InvalidTarget::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::InvalidTarget::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::InvalidTarget::deserialize(d)?))
         190  +
                        },
         191  +
                    )
         192  +
.insert_error_shape(
         193  +
                        crate::types::error::InvalidTargetMaps::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::InvalidTargetMaps::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::InvalidTargetMaps::deserialize(d)?))
         199  +
                        },
         200  +
                    )
         201  +
.insert_error_shape(
         202  +
                        crate::types::error::InvalidUpdate::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::InvalidUpdate::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::InvalidUpdate::deserialize(d)?))
         208  +
                        },
         209  +
                    )
         210  +
.insert_error_shape(
         211  +
                        crate::types::error::TooManyUpdates::SCHEMA,
         212  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         213  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         214  +
                        },
         215  +
                        |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> {
         216  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         217  +
                        },
         218  +
                    )
         219  +
                            .build()
         220  +
    });
         221  +
}
         222  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateAssociation {
         223  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         224  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateAssociation");
         225  +
         226  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         227  +
            UpdateAssociationRequestSerializer,
         228  +
        ));
         229  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         230  +
            UpdateAssociationResponseDeserializer,
         231  +
        ));
         232  +
         233  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         234  +
            crate::config::auth::Params::builder()
         235  +
                .operation_name("UpdateAssociation")
         236  +
                .build()
         237  +
                .expect("required fields set"),
         238  +
        ));
         239  +
         240  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
         241  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("UpdateAssociation", "SSM"));
         242  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         243  +
        signing_options.double_uri_encode = true;
         244  +
        signing_options.content_sha256_header = false;
         245  +
        signing_options.normalize_uri_path = true;
         246  +
        signing_options.payload_override = None;
         247  +
         248  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         249  +
            signing_options,
         250  +
            ..::std::default::Default::default()
         251  +
        });
         252  +
         253  +
        ::std::option::Option::Some(cfg.freeze())
         254  +
    }
         255  +
         256  +
    fn runtime_components(
         257  +
        &self,
         258  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         259  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         260  +
        #[allow(unused_mut)]
         261  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateAssociation")
         262  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         263  +
                UpdateAssociationTelemetryInputCaptureInterceptor,
         264  +
            ))
         265  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         266  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         267  +
            ))
         268  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         269  +
                UpdateAssociationEndpointParamsInterceptor,
         270  +
            ))
         271  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         272  +
                crate::operation::update_association::UpdateAssociationError,
         273  +
            >::new())
         274  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         275  +
                crate::operation::update_association::UpdateAssociationError,
         276  +
            >::new())
         277  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         278  +
                crate::operation::update_association::UpdateAssociationError,
         279  +
            >::new())
         280  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         281  +
                crate::operation::update_association::UpdateAssociationError,
         282  +
            >::new());
         283  +
         284  +
        ::std::borrow::Cow::Owned(rcb)
         285  +
    }
         286  +
}
         287  +
         288  +
#[derive(Debug)]
         289  +
struct UpdateAssociationTelemetryInputCaptureInterceptor;
         290  +
         291  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         292  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateAssociationTelemetryInputCaptureInterceptor {
         293  +
    fn name(&self) -> &'static str {
         294  +
        "UpdateAssociationTelemetryInputCaptureInterceptor"
         295  +
    }
         296  +
         297  +
    fn read_before_execution(
         298  +
        &self,
         299  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         300  +
            '_,
         301  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         302  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         303  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         304  +
        >,
         305  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         306  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         307  +
        // Nothing to do unless the customer opted in by naming members to record.
         308  +
        let ::std::option::Option::Some(requested) = cfg
         309  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         310  +
            .filter(|r| !r.is_empty())
         311  +
        else {
         312  +
            return ::std::result::Result::Ok(());
         313  +
        };
         314  +
         315  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdateAssociationInput>() else {
         316  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         317  +
            return ::std::result::Result::Ok(());
         318  +
        };
         319  +
         320  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         321  +
        if requested.should_capture("AssociationId") {
         322  +
            if let ::std::option::Option::Some(value) = input.association_id.as_deref() {
         323  +
                captured.insert("AssociationId", value);
         324  +
            }
         325  +
        }
         326  +
        if requested.should_capture("DocumentVersion") {
         327  +
            if let ::std::option::Option::Some(value) = input.document_version.as_deref() {
         328  +
                captured.insert("DocumentVersion", value);
         329  +
            }
         330  +
        }
         331  +
        if requested.should_capture("ScheduleExpression") {
         332  +
            if let ::std::option::Option::Some(value) = input.schedule_expression.as_deref() {
         333  +
                captured.insert("ScheduleExpression", value);
         334  +
            }
         335  +
        }
         336  +
        if requested.should_capture("Name") {
         337  +
            if let ::std::option::Option::Some(value) = input.name.as_deref() {
         338  +
                captured.insert("Name", value);
         339  +
            }
         340  +
        }
         341  +
        if requested.should_capture("AssociationName") {
         342  +
            if let ::std::option::Option::Some(value) = input.association_name.as_deref() {
         343  +
                captured.insert("AssociationName", value);
         344  +
            }
         345  +
        }
         346  +
        if requested.should_capture("AssociationVersion") {
         347  +
            if let ::std::option::Option::Some(value) = input.association_version.as_deref() {
         348  +
                captured.insert("AssociationVersion", value);
         349  +
            }
         350  +
        }
         351  +
        if requested.should_capture("AutomationTargetParameterName") {
         352  +
            if let ::std::option::Option::Some(value) = input.automation_target_parameter_name.as_deref() {
         353  +
                captured.insert("AutomationTargetParameterName", value);
         354  +
            }
         355  +
        }
         356  +
        if requested.should_capture("MaxErrors") {
         357  +
            if let ::std::option::Option::Some(value) = input.max_errors.as_deref() {
         358  +
                captured.insert("MaxErrors", value);
         359  +
            }
         360  +
        }
         361  +
        if requested.should_capture("MaxConcurrency") {
         362  +
            if let ::std::option::Option::Some(value) = input.max_concurrency.as_deref() {
         363  +
                captured.insert("MaxConcurrency", value);
         364  +
            }
         365  +
        }
         366  +
        if requested.should_capture("AssociationDispatchAssumeRole") {
         367  +
            if let ::std::option::Option::Some(value) = input.association_dispatch_assume_role.as_deref() {
         368  +
                captured.insert("AssociationDispatchAssumeRole", value);
         369  +
            }
         370  +
        }
         371  +
         372  +
        cfg.interceptor_state().store_put(captured);
         373  +
        ::std::result::Result::Ok(())
         374  +
    }
         375  +
}
         376  +
#[derive(Debug)]
         377  +
struct UpdateAssociationResponseDeserializer;
         378  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateAssociationResponseDeserializer {
         379  +
    fn deserialize_nonstreaming_with_config(
         380  +
        &self,
         381  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         382  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         383  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         384  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         385  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         386  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         387  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         388  +
        // loads `body` before firing this hook.
         389  +
        let body = response.body().bytes().expect("body loaded");
         390  +
        let headers = response.headers();
         391  +
        #[allow(unused_mut)]
         392  +
        let mut force_error = false;
         393  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         394  +
        if !success && status != 200 || force_error {
         395  +
            let protocol = _cfg
         396  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         397  +
                .expect("a SharedClientProtocol is required");
         398  +
            #[allow(unused_mut)]
         399  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         400  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         401  +
            })?;
         402  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         403  +
            let generic = generic_builder.build();
         404  +
            let error_code = match generic.code() {
         405  +
                ::std::option::Option::Some(code) => code,
         406  +
                ::std::option::Option::None => {
         407  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         408  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::update_association::UpdateAssociationError::unhandled(
         409  +
                            generic,
         410  +
                        )),
         411  +
                    ))
         412  +
                }
         413  +
            };
         414  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         415  +
            let err = match error_code {
         416  +
                "AssociationDoesNotExist" => crate::operation::update_association::UpdateAssociationError::AssociationDoesNotExist({
         417  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         418  +
                        crate::types::error::AssociationDoesNotExist::deserialize_with_response(
         419  +
                            &mut *deser,
         420  +
                            response.headers(),
         421  +
                            response.status().into(),
         422  +
                            body,
         423  +
                        )
         424  +
                    }) {
         425  +
                        ::std::result::Result::Ok(val) => val,
         426  +
                        ::std::result::Result::Err(e) => {
         427  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         428  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         429  +
                            ))
         430  +
                        }
         431  +
                    };
         432  +
                    tmp.meta = generic;
         433  +
                    if tmp.message.is_none() {
         434  +
                        tmp.message = _error_message;
         435  +
                    }
         436  +
                    tmp
         437  +
                }),
         438  +
                "AssociationVersionLimitExceeded" => crate::operation::update_association::UpdateAssociationError::AssociationVersionLimitExceeded({
         439  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         440  +
                        crate::types::error::AssociationVersionLimitExceeded::deserialize_with_response(
         441  +
                            &mut *deser,
         442  +
                            response.headers(),
         443  +
                            response.status().into(),
         444  +
                            body,
         445  +
                        )
         446  +
                    }) {
         447  +
                        ::std::result::Result::Ok(val) => val,
         448  +
                        ::std::result::Result::Err(e) => {
         449  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         450  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         451  +
                            ))
         452  +
                        }
         453  +
                    };
         454  +
                    tmp.meta = generic;
         455  +
                    if tmp.message.is_none() {
         456  +
                        tmp.message = _error_message;
         457  +
                    }
         458  +
                    tmp
         459  +
                }),
         460  +
                "InternalServerError" => crate::operation::update_association::UpdateAssociationError::InternalServerError({
         461  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         462  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         463  +
                            &mut *deser,
         464  +
                            response.headers(),
         465  +
                            response.status().into(),
         466  +
                            body,
         467  +
                        )
         468  +
                    }) {
         469  +
                        ::std::result::Result::Ok(val) => val,
         470  +
                        ::std::result::Result::Err(e) => {
         471  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         472  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         473  +
                            ))
         474  +
                        }
         475  +
                    };
         476  +
                    tmp.meta = generic;
         477  +
                    if tmp.message.is_none() {
         478  +
                        tmp.message = _error_message;
         479  +
                    }
         480  +
                    tmp
         481  +
                }),
         482  +
                "InvalidAssociationVersion" => crate::operation::update_association::UpdateAssociationError::InvalidAssociationVersion({
         483  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         484  +
                        crate::types::error::InvalidAssociationVersion::deserialize_with_response(
         485  +
                            &mut *deser,
         486  +
                            response.headers(),
         487  +
                            response.status().into(),
         488  +
                            body,
         489  +
                        )
         490  +
                    }) {
         491  +
                        ::std::result::Result::Ok(val) => val,
         492  +
                        ::std::result::Result::Err(e) => {
         493  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         494  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         495  +
                            ))
         496  +
                        }
         497  +
                    };
         498  +
                    tmp.meta = generic;
         499  +
                    if tmp.message.is_none() {
         500  +
                        tmp.message = _error_message;
         501  +
                    }
         502  +
                    tmp
         503  +
                }),
         504  +
                "InvalidDocument" => crate::operation::update_association::UpdateAssociationError::InvalidDocument({
         505  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         506  +
                        crate::types::error::InvalidDocument::deserialize_with_response(
         507  +
                            &mut *deser,
         508  +
                            response.headers(),
         509  +
                            response.status().into(),
         510  +
                            body,
         511  +
                        )
         512  +
                    }) {
         513  +
                        ::std::result::Result::Ok(val) => val,
         514  +
                        ::std::result::Result::Err(e) => {
         515  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         516  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         517  +
                            ))
         518  +
                        }
         519  +
                    };
         520  +
                    tmp.meta = generic;
         521  +
                    if tmp.message.is_none() {
         522  +
                        tmp.message = _error_message;
         523  +
                    }
         524  +
                    tmp
         525  +
                }),
         526  +
                "InvalidDocumentVersion" => crate::operation::update_association::UpdateAssociationError::InvalidDocumentVersion({
         527  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         528  +
                        crate::types::error::InvalidDocumentVersion::deserialize_with_response(
         529  +
                            &mut *deser,
         530  +
                            response.headers(),
         531  +
                            response.status().into(),
         532  +
                            body,
         533  +
                        )
         534  +
                    }) {
         535  +
                        ::std::result::Result::Ok(val) => val,
         536  +
                        ::std::result::Result::Err(e) => {
         537  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         538  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         539  +
                            ))
         540  +
                        }
         541  +
                    };
         542  +
                    tmp.meta = generic;
         543  +
                    if tmp.message.is_none() {
         544  +
                        tmp.message = _error_message;
         545  +
                    }
         546  +
                    tmp
         547  +
                }),
         548  +
                "InvalidOutputLocation" => crate::operation::update_association::UpdateAssociationError::InvalidOutputLocation({
         549  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         550  +
                        crate::types::error::InvalidOutputLocation::deserialize_with_response(
         551  +
                            &mut *deser,
         552  +
                            response.headers(),
         553  +
                            response.status().into(),
         554  +
                            body,
         555  +
                        )
         556  +
                    }) {
         557  +
                        ::std::result::Result::Ok(val) => val,
         558  +
                        ::std::result::Result::Err(e) => {
         559  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         560  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         561  +
                            ))
         562  +
                        }
         563  +
                    };
         564  +
                    tmp.meta = generic;
         565  +
                    if tmp.message.is_none() {
         566  +
                        tmp.message = _error_message;
         567  +
                    }
         568  +
                    tmp
         569  +
                }),
         570  +
                "InvalidParameters" => crate::operation::update_association::UpdateAssociationError::InvalidParameters({
         571  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         572  +
                        crate::types::error::InvalidParameters::deserialize_with_response(
         573  +
                            &mut *deser,
         574  +
                            response.headers(),
         575  +
                            response.status().into(),
         576  +
                            body,
         577  +
                        )
         578  +
                    }) {
         579  +
                        ::std::result::Result::Ok(val) => val,
         580  +
                        ::std::result::Result::Err(e) => {
         581  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         582  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         583  +
                            ))
         584  +
                        }
         585  +
                    };
         586  +
                    tmp.meta = generic;
         587  +
                    if tmp.message.is_none() {
         588  +
                        tmp.message = _error_message;
         589  +
                    }
         590  +
                    tmp
         591  +
                }),
         592  +
                "InvalidSchedule" => crate::operation::update_association::UpdateAssociationError::InvalidSchedule({
         593  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         594  +
                        crate::types::error::InvalidSchedule::deserialize_with_response(
         595  +
                            &mut *deser,
         596  +
                            response.headers(),
         597  +
                            response.status().into(),
         598  +
                            body,
         599  +
                        )
         600  +
                    }) {
         601  +
                        ::std::result::Result::Ok(val) => val,
         602  +
                        ::std::result::Result::Err(e) => {
         603  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         604  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         605  +
                            ))
         606  +
                        }
         607  +
                    };
         608  +
                    tmp.meta = generic;
         609  +
                    if tmp.message.is_none() {
         610  +
                        tmp.message = _error_message;
         611  +
                    }
         612  +
                    tmp
         613  +
                }),
         614  +
                "InvalidTarget" => crate::operation::update_association::UpdateAssociationError::InvalidTarget({
         615  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         616  +
                        crate::types::error::InvalidTarget::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body)
         617  +
                    }) {
         618  +
                        ::std::result::Result::Ok(val) => val,
         619  +
                        ::std::result::Result::Err(e) => {
         620  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         621  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         622  +
                            ))
         623  +
                        }
         624  +
                    };
         625  +
                    tmp.meta = generic;
         626  +
                    if tmp.message.is_none() {
         627  +
                        tmp.message = _error_message;
         628  +
                    }
         629  +
                    tmp
         630  +
                }),
         631  +
                "InvalidTargetMaps" => crate::operation::update_association::UpdateAssociationError::InvalidTargetMaps({
         632  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         633  +
                        crate::types::error::InvalidTargetMaps::deserialize_with_response(
         634  +
                            &mut *deser,
         635  +
                            response.headers(),
         636  +
                            response.status().into(),
         637  +
                            body,
         638  +
                        )
         639  +
                    }) {
         640  +
                        ::std::result::Result::Ok(val) => val,
         641  +
                        ::std::result::Result::Err(e) => {
         642  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         643  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         644  +
                            ))
         645  +
                        }
         646  +
                    };
         647  +
                    tmp.meta = generic;
         648  +
                    if tmp.message.is_none() {
         649  +
                        tmp.message = _error_message;
         650  +
                    }
         651  +
                    tmp
         652  +
                }),
         653  +
                "InvalidUpdate" => crate::operation::update_association::UpdateAssociationError::InvalidUpdate({
         654  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         655  +
                        crate::types::error::InvalidUpdate::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body)
         656  +
                    }) {
         657  +
                        ::std::result::Result::Ok(val) => val,
         658  +
                        ::std::result::Result::Err(e) => {
         659  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         660  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         661  +
                            ))
         662  +
                        }
         663  +
                    };
         664  +
                    tmp.meta = generic;
         665  +
                    if tmp.message.is_none() {
         666  +
                        tmp.message = _error_message;
         667  +
                    }
         668  +
                    tmp
         669  +
                }),
         670  +
                "TooManyUpdates" => crate::operation::update_association::UpdateAssociationError::TooManyUpdates({
         671  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         672  +
                        crate::types::error::TooManyUpdates::deserialize_with_response(
         673  +
                            &mut *deser,
         674  +
                            response.headers(),
         675  +
                            response.status().into(),
         676  +
                            body,
         677  +
                        )
         678  +
                    }) {
         679  +
                        ::std::result::Result::Ok(val) => val,
         680  +
                        ::std::result::Result::Err(e) => {
         681  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         682  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         683  +
                            ))
         684  +
                        }
         685  +
                    };
         686  +
                    tmp.meta = generic;
         687  +
                    if tmp.message.is_none() {
         688  +
                        tmp.message = _error_message;
         689  +
                    }
         690  +
                    tmp
         691  +
                }),
         692  +
                _ => {
         693  +
                    // Registry-backed, operation-scoped reification of an error whose
         694  +
                    // code this operation does not model directly: the operation's own
         695  +
                    // error registry is consulted first, then the lookup widens to the
         696  +
                    // service-wide error registry. On a hit, the reified error is attached
         697  +
                    // as the source of the returned unhandled error while its metadata
         698  +
                    // (code, message, request id) is preserved; on a miss the generic
         699  +
                    // error is returned unchanged.
         700  +
                    match protocol
         701  +
                        .deserialize_error_response(response, _cfg)
         702  +
                        .ok()
         703  +
                        .and_then(|mut deser| {
         704  +
                            ::aws_smithy_schema::registry::reify_error(
         705  +
                                crate::operation::update_association::error_registry::REGISTRY
         706  +
                                    .or(&crate::error_type_registry::REGISTRY),
         707  +
                                error_code,
         708  +
                                &mut *deser,
         709  +
                            )
         710  +
                        }) {
         711  +
                        ::std::option::Option::Some(source) => <crate::operation::update_association::UpdateAssociationError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         712  +
                        ::std::option::Option::None => crate::operation::update_association::UpdateAssociationError::generic(generic),
         713  +
                    }
         714  +
                }
         715  +
            };
         716  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         717  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         718  +
            ))
         719  +
        } else {
         720  +
            let protocol = _cfg
         721  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         722  +
                .expect("a SharedClientProtocol is required");
         723  +
            let mut deser = protocol
         724  +
                .deserialize_response(response, UpdateAssociation::OUTPUT_SCHEMA, _cfg)
         725  +
                .map_err(|e| {
         726  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         727  +
                })?;
         728  +
            // body and headers are already in scope from the top of the function;
         729  +
            // alias `headers` as `_response_headers` so MutateOutput
         730  +
            // customizations have a stable name to read from.
         731  +
            let _response_headers = headers;
         732  +
            #[allow(unused_mut)]
         733  +
            let mut output = crate::operation::update_association::UpdateAssociationOutput::deserialize_with_response(
         734  +
                &mut *deser,
         735  +
                _response_headers,
         736  +
                response.status().into(),
         737  +
                body,
         738  +
            )
         739  +
            .map_err(|e| {
         740  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         741  +
            })?;
         742  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         743  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         744  +
        }
         745  +
    }
         746  +
}
         747  +
#[derive(Debug)]
         748  +
struct UpdateAssociationRequestSerializer;
         749  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateAssociationRequestSerializer {
         750  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         751  +
    fn serialize_input(
         752  +
        &self,
         753  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         754  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         755  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         756  +
        let input = input
         757  +
            .downcast::<crate::operation::update_association::UpdateAssociationInput>()
         758  +
            .expect("correct type");
         759  +
         760  +
        let protocol = _cfg
         761  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         762  +
            .expect("a SharedClientProtocol is required");
         763  +
        let mut request = protocol
         764  +
            .serialize_request(&input, UpdateAssociation::INPUT_SCHEMA, "/", _cfg)
         765  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         766  +
         767  +
        return ::std::result::Result::Ok(request);
         768  +
    }
         769  +
}
         770  +
#[derive(Debug)]
         771  +
struct UpdateAssociationEndpointParamsInterceptor;
         772  +
         773  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         774  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateAssociationEndpointParamsInterceptor {
         775  +
    fn name(&self) -> &'static str {
         776  +
        "UpdateAssociationEndpointParamsInterceptor"
         777  +
    }
         778  +
         779  +
    fn read_before_execution(
         780  +
        &self,
         781  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         782  +
            '_,
         783  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         784  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         785  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         786  +
        >,
         787  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         788  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         789  +
        let _input = context
         790  +
            .input()
         791  +
            .downcast_ref::<UpdateAssociationInput>()
         792  +
            .ok_or("failed to downcast to UpdateAssociationInput")?;
         793  +
         794  +
        let params = crate::config::endpoint::Params::builder()
         795  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         796  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         797  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         798  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         799  +
            .build()
         800  +
            .map_err(|err| {
         801  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         802  +
            })?;
         803  +
        cfg.interceptor_state()
         804  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         805  +
        ::std::result::Result::Ok(())
         806  +
    }
         807  +
}
         808  +
         809  +
// The get_* functions below are generated from JMESPath expressions in the
         810  +
// operationContextParams trait. They target the operation's input shape.
         811  +
         812  +
/// Error type for the `UpdateAssociationError` operation.
         813  +
#[non_exhaustive]
         814  +
#[derive(::std::fmt::Debug)]
         815  +
pub enum UpdateAssociationError {
         816  +
    /// <p>The specified association doesn't exist.</p>
         817  +
    AssociationDoesNotExist(crate::types::error::AssociationDoesNotExist),
         818  +
    /// <p>You have reached the maximum number versions allowed for an association. Each association has a limit of 1,000 versions.</p>
         819  +
    AssociationVersionLimitExceeded(crate::types::error::AssociationVersionLimitExceeded),
         820  +
    /// <p>An error occurred on the server side.</p>
         821  +
    InternalServerError(crate::types::error::InternalServerError),
         822  +
    /// <p>The version you specified isn't valid. Use ListAssociationVersions to view all versions of an association according to the association ID. Or, use the <code>$LATEST</code> parameter to view the latest version of the association.</p>
         823  +
    InvalidAssociationVersion(crate::types::error::InvalidAssociationVersion),
         824  +
    /// <p>The specified SSM document doesn't exist.</p>
         825  +
    InvalidDocument(crate::types::error::InvalidDocument),
         826  +
    /// <p>The document version isn't valid or doesn't exist.</p>
         827  +
    InvalidDocumentVersion(crate::types::error::InvalidDocumentVersion),
         828  +
    /// <p>The output location isn't valid or doesn't exist.</p>
         829  +
    InvalidOutputLocation(crate::types::error::InvalidOutputLocation),
         830  +
    /// <p>You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM document). You can only supply values to parameters defined in the SSM document.</p>
         831  +
    InvalidParameters(crate::types::error::InvalidParameters),
         832  +
    /// <p>The schedule is invalid. Verify your cron or rate expression and try again.</p>
         833  +
    InvalidSchedule(crate::types::error::InvalidSchedule),
         834  +
    /// <p>The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not have permission to perform the operation.</p>
         835  +
    InvalidTarget(crate::types::error::InvalidTarget),
         836  +
    /// <p>TargetMap parameter isn't valid.</p>
         837  +
    InvalidTargetMaps(crate::types::error::InvalidTargetMaps),
         838  +
    /// <p>The update isn't valid.</p>
         839  +
    InvalidUpdate(crate::types::error::InvalidUpdate),
         840  +
    /// <p>There are concurrent updates for a resource that supports one update at a time.</p>
         841  +
    TooManyUpdates(crate::types::error::TooManyUpdates),
         842  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         843  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         844  +
    variable wildcard pattern and check `.code()`:
         845  +
     \
         846  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         847  +
     \
         848  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateAssociationError) for what information is available for the error.")]
         849  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         850  +
}
         851  +
impl UpdateAssociationError {
         852  +
    /// Creates the `UpdateAssociationError::Unhandled` variant from any error type.
         853  +
    pub fn unhandled(
         854  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         855  +
    ) -> Self {
         856  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         857  +
            source: err.into(),
         858  +
            meta: ::std::default::Default::default(),
         859  +
        })
         860  +
    }
         861  +
         862  +
    /// Creates the `UpdateAssociationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         863  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         864  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         865  +
            source: err.clone().into(),
         866  +
            meta: err,
         867  +
        })
         868  +
    }
         869  +
    ///
         870  +
    /// Returns error metadata, which includes the error code, message,
         871  +
    /// request ID, and potentially additional information.
         872  +
    ///
         873  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         874  +
        match self {
         875  +
            Self::AssociationDoesNotExist(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         876  +
            Self::AssociationVersionLimitExceeded(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         877  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         878  +
            Self::InvalidAssociationVersion(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         879  +
            Self::InvalidDocument(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         880  +
            Self::InvalidDocumentVersion(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         881  +
            Self::InvalidOutputLocation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         882  +
            Self::InvalidParameters(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         883  +
            Self::InvalidSchedule(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         884  +
            Self::InvalidTarget(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         885  +
            Self::InvalidTargetMaps(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         886  +
            Self::InvalidUpdate(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         887  +
            Self::TooManyUpdates(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         888  +
            Self::Unhandled(e) => &e.meta,
         889  +
        }
         890  +
    }
         891  +
    /// Returns `true` if the error kind is `UpdateAssociationError::AssociationDoesNotExist`.
         892  +
    pub fn is_association_does_not_exist(&self) -> bool {
         893  +
        matches!(self, Self::AssociationDoesNotExist(_))
         894  +
    }
         895  +
    /// Returns `true` if the error kind is `UpdateAssociationError::AssociationVersionLimitExceeded`.
         896  +
    pub fn is_association_version_limit_exceeded(&self) -> bool {
         897  +
        matches!(self, Self::AssociationVersionLimitExceeded(_))
         898  +
    }
         899  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InternalServerError`.
         900  +
    pub fn is_internal_server_error(&self) -> bool {
         901  +
        matches!(self, Self::InternalServerError(_))
         902  +
    }
         903  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidAssociationVersion`.
         904  +
    pub fn is_invalid_association_version(&self) -> bool {
         905  +
        matches!(self, Self::InvalidAssociationVersion(_))
         906  +
    }
         907  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidDocument`.
         908  +
    pub fn is_invalid_document(&self) -> bool {
         909  +
        matches!(self, Self::InvalidDocument(_))
         910  +
    }
         911  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidDocumentVersion`.
         912  +
    pub fn is_invalid_document_version(&self) -> bool {
         913  +
        matches!(self, Self::InvalidDocumentVersion(_))
         914  +
    }
         915  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidOutputLocation`.
         916  +
    pub fn is_invalid_output_location(&self) -> bool {
         917  +
        matches!(self, Self::InvalidOutputLocation(_))
         918  +
    }
         919  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidParameters`.
         920  +
    pub fn is_invalid_parameters(&self) -> bool {
         921  +
        matches!(self, Self::InvalidParameters(_))
         922  +
    }
         923  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidSchedule`.
         924  +
    pub fn is_invalid_schedule(&self) -> bool {
         925  +
        matches!(self, Self::InvalidSchedule(_))
         926  +
    }
         927  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidTarget`.
         928  +
    pub fn is_invalid_target(&self) -> bool {
         929  +
        matches!(self, Self::InvalidTarget(_))
         930  +
    }
         931  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidTargetMaps`.
         932  +
    pub fn is_invalid_target_maps(&self) -> bool {
         933  +
        matches!(self, Self::InvalidTargetMaps(_))
         934  +
    }
         935  +
    /// Returns `true` if the error kind is `UpdateAssociationError::InvalidUpdate`.
         936  +
    pub fn is_invalid_update(&self) -> bool {
         937  +
        matches!(self, Self::InvalidUpdate(_))
         938  +
    }
         939  +
    /// Returns `true` if the error kind is `UpdateAssociationError::TooManyUpdates`.
         940  +
    pub fn is_too_many_updates(&self) -> bool {
         941  +
        matches!(self, Self::TooManyUpdates(_))
         942  +
    }
         943  +
}
         944  +
impl ::std::error::Error for UpdateAssociationError {
         945  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         946  +
        match self {
         947  +
            Self::AssociationDoesNotExist(_inner) => ::std::option::Option::Some(_inner),
         948  +
            Self::AssociationVersionLimitExceeded(_inner) => ::std::option::Option::Some(_inner),
         949  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         950  +
            Self::InvalidAssociationVersion(_inner) => ::std::option::Option::Some(_inner),
         951  +
            Self::InvalidDocument(_inner) => ::std::option::Option::Some(_inner),
         952  +
            Self::InvalidDocumentVersion(_inner) => ::std::option::Option::Some(_inner),
         953  +
            Self::InvalidOutputLocation(_inner) => ::std::option::Option::Some(_inner),
         954  +
            Self::InvalidParameters(_inner) => ::std::option::Option::Some(_inner),
         955  +
            Self::InvalidSchedule(_inner) => ::std::option::Option::Some(_inner),
         956  +
            Self::InvalidTarget(_inner) => ::std::option::Option::Some(_inner),
         957  +
            Self::InvalidTargetMaps(_inner) => ::std::option::Option::Some(_inner),
         958  +
            Self::InvalidUpdate(_inner) => ::std::option::Option::Some(_inner),
         959  +
            Self::TooManyUpdates(_inner) => ::std::option::Option::Some(_inner),
         960  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         961  +
        }
         962  +
    }
         963  +
}
         964  +
impl ::std::fmt::Display for UpdateAssociationError {
         965  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         966  +
        match self {
         967  +
            Self::AssociationDoesNotExist(_inner) => _inner.fmt(f),
         968  +
            Self::AssociationVersionLimitExceeded(_inner) => _inner.fmt(f),
         969  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         970  +
            Self::InvalidAssociationVersion(_inner) => _inner.fmt(f),
         971  +
            Self::InvalidDocument(_inner) => _inner.fmt(f),
         972  +
            Self::InvalidDocumentVersion(_inner) => _inner.fmt(f),
         973  +
            Self::InvalidOutputLocation(_inner) => _inner.fmt(f),
         974  +
            Self::InvalidParameters(_inner) => _inner.fmt(f),
         975  +
            Self::InvalidSchedule(_inner) => _inner.fmt(f),
         976  +
            Self::InvalidTarget(_inner) => _inner.fmt(f),
         977  +
            Self::InvalidTargetMaps(_inner) => _inner.fmt(f),
         978  +
            Self::InvalidUpdate(_inner) => _inner.fmt(f),
         979  +
            Self::TooManyUpdates(_inner) => _inner.fmt(f),
         980  +
            Self::Unhandled(_inner) => {
         981  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         982  +
                    write!(f, "unhandled error ({code})")
         983  +
                } else {
         984  +
                    f.write_str("unhandled error")
         985  +
                }
         986  +
            }
         987  +
        }
         988  +
    }
         989  +
}
         990  +
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateAssociationError {
         991  +
    fn code(&self) -> ::std::option::Option<&str> {
         992  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         993  +
    }
         994  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         995  +
        ::std::option::Option::None
         996  +
    }
         997  +
}
         998  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateAssociationError {
         999  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1000  +
        match self {
        1001  +
            Self::AssociationDoesNotExist(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1002  +
            Self::AssociationVersionLimitExceeded(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1003  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1004  +
            Self::InvalidAssociationVersion(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1005  +
            Self::InvalidDocument(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1006  +
            Self::InvalidDocumentVersion(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1007  +
            Self::InvalidOutputLocation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1008  +
            Self::InvalidParameters(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1009  +
            Self::InvalidSchedule(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1010  +
            Self::InvalidTarget(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1011  +
            Self::InvalidTargetMaps(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1012  +
            Self::InvalidUpdate(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1013  +
            Self::TooManyUpdates(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
        1014  +
            Self::Unhandled(_inner) => &_inner.meta,
        1015  +
        }
        1016  +
    }
        1017  +
}
        1018  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateAssociationError {
        1019  +
    fn create_unhandled_error(
        1020  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
        1021  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
        1022  +
    ) -> Self {
        1023  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
        1024  +
            source,
        1025  +
            meta: meta.unwrap_or_default(),
        1026  +
        })
        1027  +
    }
        1028  +
}
        1029  +
impl ::aws_types::request_id::RequestId for crate::operation::update_association::UpdateAssociationError {
        1030  +
    fn request_id(&self) -> Option<&str> {
        1031  +
        self.meta().request_id()
        1032  +
    }
        1033  +
}
        1034  +
        1035  +
pub use crate::operation::update_association::_update_association_input::UpdateAssociationInput;
        1036  +
        1037  +
pub use crate::operation::update_association::_update_association_output::UpdateAssociationOutput;
        1038  +
        1039  +
mod _update_association_input;
        1040  +
        1041  +
mod _update_association_output;
        1042  +
        1043  +
/// Builders
        1044  +
pub mod builders;