AWS SDK

AWS SDK

rev. 3388bf5e18f4269f2b46f39cdc814c5c39d413d0

Files changed:

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

@@ -0,1 +0,181 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct UpdateDocumentDefaultVersionInput {
           6  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
           7  +
    pub name: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
           9  +
    pub document_version: ::std::option::Option<::std::string::String>,
          10  +
}
          11  +
impl UpdateDocumentDefaultVersionInput {
          12  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
          13  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          14  +
        self.name.as_deref()
          15  +
    }
          16  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
          17  +
    pub fn document_version(&self) -> ::std::option::Option<&str> {
          18  +
        self.document_version.as_deref()
          19  +
    }
          20  +
}
          21  +
static UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          22  +
    ::aws_smithy_schema::ShapeId::from_parts(
          23  +
        "com.amazonaws.ssm.synthetic#UpdateDocumentDefaultVersionInput$Name",
          24  +
        "com.amazonaws.ssm.synthetic",
          25  +
        "UpdateDocumentDefaultVersionInput",
          26  +
    ),
          27  +
    ::aws_smithy_schema::ShapeType::String,
          28  +
    "Name",
          29  +
    0,
          30  +
);
          31  +
static UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_parts(
          33  +
        "com.amazonaws.ssm.synthetic#UpdateDocumentDefaultVersionInput$DocumentVersion",
          34  +
        "com.amazonaws.ssm.synthetic",
          35  +
        "UpdateDocumentDefaultVersionInput",
          36  +
    ),
          37  +
    ::aws_smithy_schema::ShapeType::String,
          38  +
    "DocumentVersion",
          39  +
    1,
          40  +
);
          41  +
static UPDATEDOCUMENTDEFAULTVERSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          42  +
    ::aws_smithy_schema::ShapeId::from_parts(
          43  +
        "com.amazonaws.ssm.synthetic#UpdateDocumentDefaultVersionInput",
          44  +
        "com.amazonaws.ssm.synthetic",
          45  +
        "UpdateDocumentDefaultVersionInput",
          46  +
    ),
          47  +
    ::aws_smithy_schema::ShapeType::Structure,
          48  +
    &[
          49  +
        &UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_NAME,
          50  +
        &UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_DOCUMENT_VERSION,
          51  +
    ],
          52  +
)
          53  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          54  +
.with_original_name("UpdateDocumentDefaultVersionRequest");
          55  +
impl UpdateDocumentDefaultVersionInput {
          56  +
    /// The schema for this shape.
          57  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEDOCUMENTDEFAULTVERSIONINPUT_SCHEMA;
          58  +
}
          59  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateDocumentDefaultVersionInput {
          60  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          61  +
    fn serialize_members(
          62  +
        &self,
          63  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          64  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          65  +
        if let Some(ref val) = self.name {
          66  +
            ser.write_string(&UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_NAME, val)?;
          67  +
        }
          68  +
        if let Some(ref val) = self.document_version {
          69  +
            ser.write_string(&UPDATEDOCUMENTDEFAULTVERSIONINPUT_MEMBER_DOCUMENT_VERSION, val)?;
          70  +
        }
          71  +
        Ok(())
          72  +
    }
          73  +
}
          74  +
impl UpdateDocumentDefaultVersionInput {
          75  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          78  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          79  +
        #[allow(unused_variables, unused_mut)]
          80  +
        let mut builder = Self::builder();
          81  +
        #[allow(
          82  +
            unused_variables,
          83  +
            unreachable_code,
          84  +
            clippy::single_match,
          85  +
            clippy::match_single_binding,
          86  +
            clippy::diverging_sub_expression
          87  +
        )]
          88  +
        deserializer.read_struct(&UPDATEDOCUMENTDEFAULTVERSIONINPUT_SCHEMA, &mut |member, deser| {
          89  +
            match member.member_index() {
          90  +
                Some(0) => {
          91  +
                    if deser.is_null() {
          92  +
                        deser.read_null()?;
          93  +
                    } else {
          94  +
                        builder.name = Some(deser.read_string(member)?);
          95  +
                    }
          96  +
                }
          97  +
                Some(1) => {
          98  +
                    if deser.is_null() {
          99  +
                        deser.read_null()?;
         100  +
                    } else {
         101  +
                        builder.document_version = Some(deser.read_string(member)?);
         102  +
                    }
         103  +
                }
         104  +
                _ => {}
         105  +
            }
         106  +
            Ok(())
         107  +
        })?;
         108  +
        builder.name = builder.name.or(Some(String::new()));
         109  +
        builder.document_version = builder.document_version.or(Some(String::new()));
         110  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         111  +
    }
         112  +
}
         113  +
impl UpdateDocumentDefaultVersionInput {
         114  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         115  +
    pub fn deserialize_with_response(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         117  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         118  +
        _status: u16,
         119  +
        _body: &[u8],
         120  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         121  +
        Self::deserialize(deserializer)
         122  +
    }
         123  +
}
         124  +
impl UpdateDocumentDefaultVersionInput {
         125  +
    /// Creates a new builder-style object to manufacture [`UpdateDocumentDefaultVersionInput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionInput).
         126  +
    pub fn builder() -> crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionInputBuilder {
         127  +
        crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionInputBuilder::default()
         128  +
    }
         129  +
}
         130  +
         131  +
/// A builder for [`UpdateDocumentDefaultVersionInput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionInput).
         132  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         133  +
#[non_exhaustive]
         134  +
pub struct UpdateDocumentDefaultVersionInputBuilder {
         135  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         136  +
    pub(crate) document_version: ::std::option::Option<::std::string::String>,
         137  +
}
         138  +
impl UpdateDocumentDefaultVersionInputBuilder {
         139  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         140  +
    /// This field is required.
         141  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         142  +
        self.name = ::std::option::Option::Some(input.into());
         143  +
        self
         144  +
    }
         145  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         146  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         147  +
        self.name = input;
         148  +
        self
         149  +
    }
         150  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         151  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         152  +
        &self.name
         153  +
    }
         154  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         155  +
    /// This field is required.
         156  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         157  +
        self.document_version = ::std::option::Option::Some(input.into());
         158  +
        self
         159  +
    }
         160  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         161  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         162  +
        self.document_version = input;
         163  +
        self
         164  +
    }
         165  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         166  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         167  +
        &self.document_version
         168  +
    }
         169  +
    /// Consumes the builder and constructs a [`UpdateDocumentDefaultVersionInput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionInput).
         170  +
    pub fn build(
         171  +
        self,
         172  +
    ) -> ::std::result::Result<
         173  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionInput,
         174  +
        ::aws_smithy_types::error::operation::BuildError,
         175  +
    > {
         176  +
        ::std::result::Result::Ok(crate::operation::update_document_default_version::UpdateDocumentDefaultVersionInput {
         177  +
            name: self.name,
         178  +
            document_version: self.document_version,
         179  +
        })
         180  +
    }
         181  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct UpdateDocumentDefaultVersionOutput {
           6  +
    /// <p>The description of a custom document that you want to set as the default version.</p>
           7  +
    pub description: ::std::option::Option<crate::types::DocumentDefaultVersionDescription>,
           8  +
    _request_id: Option<String>,
           9  +
}
          10  +
impl UpdateDocumentDefaultVersionOutput {
          11  +
    /// <p>The description of a custom document that you want to set as the default version.</p>
          12  +
    pub fn description(&self) -> ::std::option::Option<&crate::types::DocumentDefaultVersionDescription> {
          13  +
        self.description.as_ref()
          14  +
    }
          15  +
}
          16  +
static UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          17  +
    ::aws_smithy_schema::ShapeId::from_parts(
          18  +
        "com.amazonaws.ssm.synthetic#UpdateDocumentDefaultVersionOutput$Description",
          19  +
        "com.amazonaws.ssm.synthetic",
          20  +
        "UpdateDocumentDefaultVersionOutput",
          21  +
    ),
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    "Description",
          24  +
    0,
          25  +
);
          26  +
static UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          27  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          28  +
    ::aws_smithy_schema::ShapeType::String,
          29  +
    "request_id",
          30  +
    1,
          31  +
)
          32  +
.with_http_header("x-amzn-requestid");
          33  +
static UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          34  +
    ::aws_smithy_schema::ShapeId::from_parts(
          35  +
        "com.amazonaws.ssm.synthetic#UpdateDocumentDefaultVersionOutput",
          36  +
        "com.amazonaws.ssm.synthetic",
          37  +
        "UpdateDocumentDefaultVersionOutput",
          38  +
    ),
          39  +
    ::aws_smithy_schema::ShapeType::Structure,
          40  +
    &[
          41  +
        &UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_MEMBER_DESCRIPTION,
          42  +
        &UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_MEMBER__REQUEST_ID,
          43  +
    ],
          44  +
)
          45  +
.with_original_name("UpdateDocumentDefaultVersionResult");
          46  +
impl UpdateDocumentDefaultVersionOutput {
          47  +
    /// The schema for this shape.
          48  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_SCHEMA;
          49  +
}
          50  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateDocumentDefaultVersionOutput {
          51  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          52  +
    fn serialize_members(
          53  +
        &self,
          54  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          55  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          56  +
        if let Some(ref val) = self.description {
          57  +
            ser.write_struct(&UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_MEMBER_DESCRIPTION, val)?;
          58  +
        }
          59  +
        Ok(())
          60  +
    }
          61  +
}
          62  +
impl UpdateDocumentDefaultVersionOutput {
          63  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          66  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          67  +
        #[allow(unused_variables, unused_mut)]
          68  +
        let mut builder = Self::builder();
          69  +
        #[allow(
          70  +
            unused_variables,
          71  +
            unreachable_code,
          72  +
            clippy::single_match,
          73  +
            clippy::match_single_binding,
          74  +
            clippy::diverging_sub_expression
          75  +
        )]
          76  +
        deserializer.read_struct(&UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    if deser.is_null() {
          80  +
                        deser.read_null()?;
          81  +
                    } else {
          82  +
                        builder.description = Some(crate::types::DocumentDefaultVersionDescription::deserialize(deser)?);
          83  +
                    }
          84  +
                }
          85  +
                Some(1) => {
          86  +
                    builder._request_id = Some(deser.read_string(member)?);
          87  +
                }
          88  +
                _ => {}
          89  +
            }
          90  +
            Ok(())
          91  +
        })?;
          92  +
        Ok(builder.build())
          93  +
    }
          94  +
}
          95  +
impl UpdateDocumentDefaultVersionOutput {
          96  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          97  +
    /// Header-bound members are read directly from headers, avoiding runtime
          98  +
    /// member iteration overhead. Body members are read via the deserializer.
          99  +
    pub fn deserialize_with_response(
         100  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         101  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         102  +
        _status: u16,
         103  +
        _body: &[u8],
         104  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         105  +
        #[allow(unused_variables, unused_mut)]
         106  +
        let mut builder = Self::builder();
         107  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         108  +
            builder._request_id = Some(val.to_string());
         109  +
        }
         110  +
         111  +
        #[allow(
         112  +
            unused_variables,
         113  +
            unreachable_code,
         114  +
            clippy::single_match,
         115  +
            clippy::match_single_binding,
         116  +
            clippy::diverging_sub_expression
         117  +
        )]
         118  +
        deserializer.read_struct(&UPDATEDOCUMENTDEFAULTVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
         119  +
            match member.member_index() {
         120  +
                Some(0) => {
         121  +
                    builder.description = Some(crate::types::DocumentDefaultVersionDescription::deserialize(deser)?);
         122  +
                }
         123  +
                _ => {}
         124  +
            }
         125  +
            Ok(())
         126  +
        })?;
         127  +
        Ok(builder.build())
         128  +
    }
         129  +
}
         130  +
impl ::aws_types::request_id::RequestId for UpdateDocumentDefaultVersionOutput {
         131  +
    fn request_id(&self) -> Option<&str> {
         132  +
        self._request_id.as_deref()
         133  +
    }
         134  +
}
         135  +
impl UpdateDocumentDefaultVersionOutput {
         136  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         137  +
        self._request_id = request_id;
         138  +
        self
         139  +
    }
         140  +
}
         141  +
impl UpdateDocumentDefaultVersionOutput {
         142  +
    /// Creates a new builder-style object to manufacture [`UpdateDocumentDefaultVersionOutput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput).
         143  +
    pub fn builder() -> crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionOutputBuilder {
         144  +
        crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionOutputBuilder::default()
         145  +
    }
         146  +
}
         147  +
         148  +
/// A builder for [`UpdateDocumentDefaultVersionOutput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput).
         149  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         150  +
#[non_exhaustive]
         151  +
pub struct UpdateDocumentDefaultVersionOutputBuilder {
         152  +
    pub(crate) description: ::std::option::Option<crate::types::DocumentDefaultVersionDescription>,
         153  +
    _request_id: Option<String>,
         154  +
}
         155  +
impl UpdateDocumentDefaultVersionOutputBuilder {
         156  +
    /// <p>The description of a custom document that you want to set as the default version.</p>
         157  +
    pub fn description(mut self, input: crate::types::DocumentDefaultVersionDescription) -> Self {
         158  +
        self.description = ::std::option::Option::Some(input);
         159  +
        self
         160  +
    }
         161  +
    /// <p>The description of a custom document that you want to set as the default version.</p>
         162  +
    pub fn set_description(mut self, input: ::std::option::Option<crate::types::DocumentDefaultVersionDescription>) -> Self {
         163  +
        self.description = input;
         164  +
        self
         165  +
    }
         166  +
    /// <p>The description of a custom document that you want to set as the default version.</p>
         167  +
    pub fn get_description(&self) -> &::std::option::Option<crate::types::DocumentDefaultVersionDescription> {
         168  +
        &self.description
         169  +
    }
         170  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         171  +
        self._request_id = Some(request_id.into());
         172  +
        self
         173  +
    }
         174  +
         175  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         176  +
        self._request_id = request_id;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`UpdateDocumentDefaultVersionOutput`](crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput).
         180  +
    pub fn build(self) -> crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput {
         181  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput {
         182  +
            description: self.description,
         183  +
            _request_id: self._request_id,
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,141 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::update_document_default_version::_update_document_default_version_input::UpdateDocumentDefaultVersionInputBuilder;
           3  +
           4  +
pub use crate::operation::update_document_default_version::_update_document_default_version_output::UpdateDocumentDefaultVersionOutputBuilder;
           5  +
           6  +
impl crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionInputBuilder {
           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::update_document_default_version::UpdateDocumentDefaultVersionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::update_document_default_version::UpdateDocumentDefaultVersionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.update_document_default_version();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UpdateDocumentDefaultVersion`.
          24  +
///
          25  +
/// <p>Set the default version of a document.</p><note>
          26  +
/// <p>If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the <code>apply-only-at-cron-interval</code> parameter.</p>
          27  +
/// </note>
          28  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          29  +
pub struct UpdateDocumentDefaultVersionFluentBuilder {
          30  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          31  +
    inner: crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionInputBuilder,
          32  +
    config_override: ::std::option::Option<crate::config::Builder>,
          33  +
}
          34  +
impl
          35  +
    crate::client::customize::internal::CustomizableSend<
          36  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput,
          37  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionError,
          38  +
    > for UpdateDocumentDefaultVersionFluentBuilder
          39  +
{
          40  +
    fn send(
          41  +
        self,
          42  +
        config_override: crate::config::Builder,
          43  +
    ) -> crate::client::customize::internal::BoxFuture<
          44  +
        crate::client::customize::internal::SendResult<
          45  +
            crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput,
          46  +
            crate::operation::update_document_default_version::UpdateDocumentDefaultVersionError,
          47  +
        >,
          48  +
    > {
          49  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          50  +
    }
          51  +
}
          52  +
impl UpdateDocumentDefaultVersionFluentBuilder {
          53  +
    /// Creates a new `UpdateDocumentDefaultVersionFluentBuilder`.
          54  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          55  +
        Self {
          56  +
            handle,
          57  +
            inner: ::std::default::Default::default(),
          58  +
            config_override: ::std::option::Option::None,
          59  +
        }
          60  +
    }
          61  +
    /// Access the UpdateDocumentDefaultVersion as a reference.
          62  +
    pub fn as_input(&self) -> &crate::operation::update_document_default_version::builders::UpdateDocumentDefaultVersionInputBuilder {
          63  +
        &self.inner
          64  +
    }
          65  +
    /// Sends the request and returns the response.
          66  +
    ///
          67  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          68  +
    /// can be matched against.
          69  +
    ///
          70  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          71  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          72  +
    /// set when configuring the client.
          73  +
    pub async fn send(
          74  +
        self,
          75  +
    ) -> ::std::result::Result<
          76  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::update_document_default_version::UpdateDocumentDefaultVersionError,
          79  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          80  +
        >,
          81  +
    > {
          82  +
        let input = self
          83  +
            .inner
          84  +
            .build()
          85  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          86  +
        let runtime_plugins = crate::operation::update_document_default_version::UpdateDocumentDefaultVersion::operation_runtime_plugins(
          87  +
            self.handle.runtime_plugins.clone(),
          88  +
            &self.handle.conf,
          89  +
            self.config_override,
          90  +
        );
          91  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersion::orchestrate(&runtime_plugins, input).await
          92  +
    }
          93  +
          94  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          95  +
    pub fn customize(
          96  +
        self,
          97  +
    ) -> crate::client::customize::CustomizableOperation<
          98  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionOutput,
          99  +
        crate::operation::update_document_default_version::UpdateDocumentDefaultVersionError,
         100  +
        Self,
         101  +
    > {
         102  +
        crate::client::customize::CustomizableOperation::new(self)
         103  +
    }
         104  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         105  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         106  +
        self
         107  +
    }
         108  +
         109  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         110  +
        self.config_override = config_override;
         111  +
        self
         112  +
    }
         113  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         114  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         115  +
        self.inner = self.inner.name(input.into());
         116  +
        self
         117  +
    }
         118  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         119  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         120  +
        self.inner = self.inner.set_name(input);
         121  +
        self
         122  +
    }
         123  +
    /// <p>The name of a custom document that you want to set as the default version.</p>
         124  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         125  +
        self.inner.get_name()
         126  +
    }
         127  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         128  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         129  +
        self.inner = self.inner.document_version(input.into());
         130  +
        self
         131  +
    }
         132  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         133  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         134  +
        self.inner = self.inner.set_document_version(input);
         135  +
        self
         136  +
    }
         137  +
    /// <p>The version of a custom document that you want to set as the default version.</p>
         138  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         139  +
        self.inner.get_document_version()
         140  +
    }
         141  +
}

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

@@ -0,1 +0,690 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `UpdateDocumentMetadata`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct UpdateDocumentMetadata;
           6  +
impl UpdateDocumentMetadata {
           7  +
    /// Creates a new `UpdateDocumentMetadata`
           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> =
          13  +
        crate::operation::update_document_metadata::UpdateDocumentMetadataInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          16  +
        crate::operation::update_document_metadata::UpdateDocumentMetadataOutput::SCHEMA;
          17  +
    pub(crate) async fn orchestrate(
          18  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          19  +
        input: crate::operation::update_document_metadata::UpdateDocumentMetadataInput,
          20  +
    ) -> ::std::result::Result<
          21  +
        crate::operation::update_document_metadata::UpdateDocumentMetadataOutput,
          22  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          23  +
            crate::operation::update_document_metadata::UpdateDocumentMetadataError,
          24  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          25  +
        >,
          26  +
    > {
          27  +
        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
          28  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          29  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          30  +
        >| {
          31  +
            err.map_service_error(|err| {
          32  +
                err.downcast::<crate::operation::update_document_metadata::UpdateDocumentMetadataError>()
          33  +
                    .expect("correct error type")
          34  +
            })
          35  +
        };
          36  +
        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
          37  +
            .await
          38  +
            .map_err(map_err)?;
          39  +
        let output = context.finalize().map_err(map_err)?;
          40  +
        ::std::result::Result::Ok(
          41  +
            output
          42  +
                .downcast::<crate::operation::update_document_metadata::UpdateDocumentMetadataOutput>()
          43  +
                .expect("correct output type"),
          44  +
        )
          45  +
    }
          46  +
          47  +
    pub(crate) async fn orchestrate_with_stop_point(
          48  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          49  +
        input: crate::operation::update_document_metadata::UpdateDocumentMetadataInput,
          50  +
        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
          51  +
    ) -> ::std::result::Result<
          52  +
        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
          53  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          54  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          55  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          56  +
        >,
          57  +
    > {
          58  +
        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
          59  +
        use ::tracing::Instrument;
          60  +
        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("SSM", "UpdateDocumentMetadata", input, runtime_plugins, stop_point)
          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  +
                "SSM.UpdateDocumentMetadata",
          65  +
                "rpc.service" = "SSM",
          66  +
                "rpc.method" = "UpdateDocumentMetadata",
          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  +
          80  +
        if let ::std::option::Option::Some(config_override) = config_override {
          81  +
            for plugin in config_override.runtime_plugins.iter().cloned() {
          82  +
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
          83  +
            }
          84  +
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
          85  +
                config_override,
          86  +
                client_config.config.clone(),
          87  +
                &client_config.runtime_components,
          88  +
            ));
          89  +
        }
          90  +
        runtime_plugins
          91  +
    }
          92  +
}
          93  +
/// Per-operation error registry. Contains an entry for every modeled
          94  +
/// error this operation can throw.
          95  +
///
          96  +
/// Used by the schema-serde error path as the operation-scoped lookup
          97  +
/// for registry-backed error reification: an error code that does not
          98  +
/// match one of the operation's modeled errors directly is resolved
          99  +
/// against this registry first, then widened to the service-wide error
         100  +
/// registry.
         101  +
pub(crate) mod error_registry {
         102  +
    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
         103  +
        ::aws_smithy_schema::registry::TypeRegistry::builder()
         104  +
                            .insert_error_shape(
         105  +
                        crate::types::error::InternalServerError::SCHEMA,
         106  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         107  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServerError::deserialize(d)?))
         108  +
                        },
         109  +
                        |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> {
         110  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServerError::deserialize(d)?))
         111  +
                        },
         112  +
                    )
         113  +
.insert_error_shape(
         114  +
                        crate::types::error::InvalidDocument::SCHEMA,
         115  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         116  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidDocument::deserialize(d)?))
         117  +
                        },
         118  +
                        |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> {
         119  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidDocument::deserialize(d)?))
         120  +
                        },
         121  +
                    )
         122  +
.insert_error_shape(
         123  +
                        crate::types::error::InvalidDocumentOperation::SCHEMA,
         124  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         125  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidDocumentOperation::deserialize(d)?))
         126  +
                        },
         127  +
                        |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> {
         128  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidDocumentOperation::deserialize(d)?))
         129  +
                        },
         130  +
                    )
         131  +
.insert_error_shape(
         132  +
                        crate::types::error::InvalidDocumentVersion::SCHEMA,
         133  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         134  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidDocumentVersion::deserialize(d)?))
         135  +
                        },
         136  +
                        |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> {
         137  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidDocumentVersion::deserialize(d)?))
         138  +
                        },
         139  +
                    )
         140  +
.insert_error_shape(
         141  +
                        crate::types::error::TooManyUpdates::SCHEMA,
         142  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         143  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         144  +
                        },
         145  +
                        |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> {
         146  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         147  +
                        },
         148  +
                    )
         149  +
                            .build()
         150  +
    });
         151  +
}
         152  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateDocumentMetadata {
         153  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         154  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateDocumentMetadata");
         155  +
         156  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         157  +
            UpdateDocumentMetadataRequestSerializer,
         158  +
        ));
         159  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         160  +
            UpdateDocumentMetadataResponseDeserializer,
         161  +
        ));
         162  +
         163  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         164  +
            crate::config::auth::Params::builder()
         165  +
                .operation_name("UpdateDocumentMetadata")
         166  +
                .build()
         167  +
                .expect("required fields set"),
         168  +
        ));
         169  +
         170  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         171  +
            "UpdateDocumentMetadata",
         172  +
            "SSM",
         173  +
        ));
         174  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         175  +
        signing_options.double_uri_encode = true;
         176  +
        signing_options.content_sha256_header = false;
         177  +
        signing_options.normalize_uri_path = true;
         178  +
        signing_options.payload_override = None;
         179  +
         180  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         181  +
            signing_options,
         182  +
            ..::std::default::Default::default()
         183  +
        });
         184  +
         185  +
        ::std::option::Option::Some(cfg.freeze())
         186  +
    }
         187  +
         188  +
    fn runtime_components(
         189  +
        &self,
         190  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         191  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         192  +
        #[allow(unused_mut)]
         193  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateDocumentMetadata")
         194  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         195  +
                UpdateDocumentMetadataTelemetryInputCaptureInterceptor,
         196  +
            ))
         197  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         198  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         199  +
            ))
         200  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         201  +
                UpdateDocumentMetadataEndpointParamsInterceptor,
         202  +
            ))
         203  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         204  +
                crate::operation::update_document_metadata::UpdateDocumentMetadataError,
         205  +
            >::new())
         206  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         207  +
                crate::operation::update_document_metadata::UpdateDocumentMetadataError,
         208  +
            >::new())
         209  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         210  +
                crate::operation::update_document_metadata::UpdateDocumentMetadataError,
         211  +
            >::new())
         212  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         213  +
                crate::operation::update_document_metadata::UpdateDocumentMetadataError,
         214  +
            >::new());
         215  +
         216  +
        ::std::borrow::Cow::Owned(rcb)
         217  +
    }
         218  +
}
         219  +
         220  +
#[derive(Debug)]
         221  +
struct UpdateDocumentMetadataTelemetryInputCaptureInterceptor;
         222  +
         223  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         224  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateDocumentMetadataTelemetryInputCaptureInterceptor {
         225  +
    fn name(&self) -> &'static str {
         226  +
        "UpdateDocumentMetadataTelemetryInputCaptureInterceptor"
         227  +
    }
         228  +
         229  +
    fn read_before_execution(
         230  +
        &self,
         231  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         232  +
            '_,
         233  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         234  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         235  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         236  +
        >,
         237  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         238  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         239  +
        // Nothing to do unless the customer opted in by naming members to record.
         240  +
        let ::std::option::Option::Some(requested) = cfg
         241  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         242  +
            .filter(|r| !r.is_empty())
         243  +
        else {
         244  +
            return ::std::result::Result::Ok(());
         245  +
        };
         246  +
         247  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdateDocumentMetadataInput>() else {
         248  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         249  +
            return ::std::result::Result::Ok(());
         250  +
        };
         251  +
         252  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         253  +
        if requested.should_capture("Name") {
         254  +
            if let ::std::option::Option::Some(value) = input.name.as_deref() {
         255  +
                captured.insert("Name", value);
         256  +
            }
         257  +
        }
         258  +
        if requested.should_capture("DocumentVersion") {
         259  +
            if let ::std::option::Option::Some(value) = input.document_version.as_deref() {
         260  +
                captured.insert("DocumentVersion", value);
         261  +
            }
         262  +
        }
         263  +
         264  +
        cfg.interceptor_state().store_put(captured);
         265  +
        ::std::result::Result::Ok(())
         266  +
    }
         267  +
}
         268  +
#[derive(Debug)]
         269  +
struct UpdateDocumentMetadataResponseDeserializer;
         270  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateDocumentMetadataResponseDeserializer {
         271  +
    fn deserialize_nonstreaming_with_config(
         272  +
        &self,
         273  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         274  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         275  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         276  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         277  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         278  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         279  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         280  +
        // loads `body` before firing this hook.
         281  +
        let body = response.body().bytes().expect("body loaded");
         282  +
        let headers = response.headers();
         283  +
        #[allow(unused_mut)]
         284  +
        let mut force_error = false;
         285  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         286  +
        if !success && status != 200 || force_error {
         287  +
            let protocol = _cfg
         288  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         289  +
                .expect("a SharedClientProtocol is required");
         290  +
            #[allow(unused_mut)]
         291  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         292  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         293  +
            })?;
         294  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         295  +
            let generic = generic_builder.build();
         296  +
            let error_code = match generic.code() {
         297  +
                ::std::option::Option::Some(code) => code,
         298  +
                ::std::option::Option::None => {
         299  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         300  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         301  +
                            crate::operation::update_document_metadata::UpdateDocumentMetadataError::unhandled(generic),
         302  +
                        ),
         303  +
                    ))
         304  +
                }
         305  +
            };
         306  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         307  +
            let err = match error_code {
         308  +
                "InternalServerError" => crate::operation::update_document_metadata::UpdateDocumentMetadataError::InternalServerError({
         309  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         310  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         311  +
                            &mut *deser,
         312  +
                            response.headers(),
         313  +
                            response.status().into(),
         314  +
                            body,
         315  +
                        )
         316  +
                    }) {
         317  +
                        ::std::result::Result::Ok(val) => val,
         318  +
                        ::std::result::Result::Err(e) => {
         319  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         320  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         321  +
                            ))
         322  +
                        }
         323  +
                    };
         324  +
                    tmp.meta = generic;
         325  +
                    if tmp.message.is_none() {
         326  +
                        tmp.message = _error_message;
         327  +
                    }
         328  +
                    tmp
         329  +
                }),
         330  +
                "InvalidDocument" => crate::operation::update_document_metadata::UpdateDocumentMetadataError::InvalidDocument({
         331  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         332  +
                        crate::types::error::InvalidDocument::deserialize_with_response(
         333  +
                            &mut *deser,
         334  +
                            response.headers(),
         335  +
                            response.status().into(),
         336  +
                            body,
         337  +
                        )
         338  +
                    }) {
         339  +
                        ::std::result::Result::Ok(val) => val,
         340  +
                        ::std::result::Result::Err(e) => {
         341  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         342  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         343  +
                            ))
         344  +
                        }
         345  +
                    };
         346  +
                    tmp.meta = generic;
         347  +
                    if tmp.message.is_none() {
         348  +
                        tmp.message = _error_message;
         349  +
                    }
         350  +
                    tmp
         351  +
                }),
         352  +
                "InvalidDocumentOperation" => crate::operation::update_document_metadata::UpdateDocumentMetadataError::InvalidDocumentOperation({
         353  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         354  +
                        crate::types::error::InvalidDocumentOperation::deserialize_with_response(
         355  +
                            &mut *deser,
         356  +
                            response.headers(),
         357  +
                            response.status().into(),
         358  +
                            body,
         359  +
                        )
         360  +
                    }) {
         361  +
                        ::std::result::Result::Ok(val) => val,
         362  +
                        ::std::result::Result::Err(e) => {
         363  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         364  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         365  +
                            ))
         366  +
                        }
         367  +
                    };
         368  +
                    tmp.meta = generic;
         369  +
                    if tmp.message.is_none() {
         370  +
                        tmp.message = _error_message;
         371  +
                    }
         372  +
                    tmp
         373  +
                }),
         374  +
                "InvalidDocumentVersion" => crate::operation::update_document_metadata::UpdateDocumentMetadataError::InvalidDocumentVersion({
         375  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         376  +
                        crate::types::error::InvalidDocumentVersion::deserialize_with_response(
         377  +
                            &mut *deser,
         378  +
                            response.headers(),
         379  +
                            response.status().into(),
         380  +
                            body,
         381  +
                        )
         382  +
                    }) {
         383  +
                        ::std::result::Result::Ok(val) => val,
         384  +
                        ::std::result::Result::Err(e) => {
         385  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         386  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         387  +
                            ))
         388  +
                        }
         389  +
                    };
         390  +
                    tmp.meta = generic;
         391  +
                    if tmp.message.is_none() {
         392  +
                        tmp.message = _error_message;
         393  +
                    }
         394  +
                    tmp
         395  +
                }),
         396  +
                "TooManyUpdates" => crate::operation::update_document_metadata::UpdateDocumentMetadataError::TooManyUpdates({
         397  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         398  +
                        crate::types::error::TooManyUpdates::deserialize_with_response(
         399  +
                            &mut *deser,
         400  +
                            response.headers(),
         401  +
                            response.status().into(),
         402  +
                            body,
         403  +
                        )
         404  +
                    }) {
         405  +
                        ::std::result::Result::Ok(val) => val,
         406  +
                        ::std::result::Result::Err(e) => {
         407  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         408  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         409  +
                            ))
         410  +
                        }
         411  +
                    };
         412  +
                    tmp.meta = generic;
         413  +
                    if tmp.message.is_none() {
         414  +
                        tmp.message = _error_message;
         415  +
                    }
         416  +
                    tmp
         417  +
                }),
         418  +
                _ => {
         419  +
                    // Registry-backed, operation-scoped reification of an error whose
         420  +
                    // code this operation does not model directly: the operation's own
         421  +
                    // error registry is consulted first, then the lookup widens to the
         422  +
                    // service-wide error registry. On a hit, the reified error is attached
         423  +
                    // as the source of the returned unhandled error while its metadata
         424  +
                    // (code, message, request id) is preserved; on a miss the generic
         425  +
                    // error is returned unchanged.
         426  +
                    match protocol
         427  +
                        .deserialize_error_response(response, _cfg)
         428  +
                        .ok()
         429  +
                        .and_then(|mut deser| {
         430  +
                            ::aws_smithy_schema::registry::reify_error(
         431  +
                                crate::operation::update_document_metadata::error_registry::REGISTRY
         432  +
                                    .or(&crate::error_type_registry::REGISTRY),
         433  +
                                error_code,
         434  +
                                &mut *deser,
         435  +
                            )
         436  +
                        }) {
         437  +
                        ::std::option::Option::Some(source) => <crate::operation::update_document_metadata::UpdateDocumentMetadataError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         438  +
                        ::std::option::Option::None => crate::operation::update_document_metadata::UpdateDocumentMetadataError::generic(generic),
         439  +
                    }
         440  +
                }
         441  +
            };
         442  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         443  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         444  +
            ))
         445  +
        } else {
         446  +
            let protocol = _cfg
         447  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         448  +
                .expect("a SharedClientProtocol is required");
         449  +
            let mut deser = protocol
         450  +
                .deserialize_response(response, UpdateDocumentMetadata::OUTPUT_SCHEMA, _cfg)
         451  +
                .map_err(|e| {
         452  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         453  +
                })?;
         454  +
            // body and headers are already in scope from the top of the function;
         455  +
            // alias `headers` as `_response_headers` so MutateOutput
         456  +
            // customizations have a stable name to read from.
         457  +
            let _response_headers = headers;
         458  +
            #[allow(unused_mut)]
         459  +
            let mut output = crate::operation::update_document_metadata::UpdateDocumentMetadataOutput::deserialize_with_response(
         460  +
                &mut *deser,
         461  +
                _response_headers,
         462  +
                response.status().into(),
         463  +
                body,
         464  +
            )
         465  +
            .map_err(|e| {
         466  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         467  +
            })?;
         468  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         469  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         470  +
        }
         471  +
    }
         472  +
}
         473  +
#[derive(Debug)]
         474  +
struct UpdateDocumentMetadataRequestSerializer;
         475  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateDocumentMetadataRequestSerializer {
         476  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         477  +
    fn serialize_input(
         478  +
        &self,
         479  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         480  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         481  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         482  +
        let input = input
         483  +
            .downcast::<crate::operation::update_document_metadata::UpdateDocumentMetadataInput>()
         484  +
            .expect("correct type");
         485  +
         486  +
        let protocol = _cfg
         487  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         488  +
            .expect("a SharedClientProtocol is required");
         489  +
        let mut request = protocol
         490  +
            .serialize_request(&input, UpdateDocumentMetadata::INPUT_SCHEMA, "/", _cfg)
         491  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         492  +
         493  +
        return ::std::result::Result::Ok(request);
         494  +
    }
         495  +
}
         496  +
#[derive(Debug)]
         497  +
struct UpdateDocumentMetadataEndpointParamsInterceptor;
         498  +
         499  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         500  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateDocumentMetadataEndpointParamsInterceptor {
         501  +
    fn name(&self) -> &'static str {
         502  +
        "UpdateDocumentMetadataEndpointParamsInterceptor"
         503  +
    }
         504  +
         505  +
    fn read_before_execution(
         506  +
        &self,
         507  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         508  +
            '_,
         509  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         510  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         511  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         512  +
        >,
         513  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         514  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         515  +
        let _input = context
         516  +
            .input()
         517  +
            .downcast_ref::<UpdateDocumentMetadataInput>()
         518  +
            .ok_or("failed to downcast to UpdateDocumentMetadataInput")?;
         519  +
         520  +
        let params = crate::config::endpoint::Params::builder()
         521  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         522  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         523  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         524  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         525  +
            .build()
         526  +
            .map_err(|err| {
         527  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         528  +
            })?;
         529  +
        cfg.interceptor_state()
         530  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         531  +
        ::std::result::Result::Ok(())
         532  +
    }
         533  +
}
         534  +
         535  +
// The get_* functions below are generated from JMESPath expressions in the
         536  +
// operationContextParams trait. They target the operation's input shape.
         537  +
         538  +
/// Error type for the `UpdateDocumentMetadataError` operation.
         539  +
#[non_exhaustive]
         540  +
#[derive(::std::fmt::Debug)]
         541  +
pub enum UpdateDocumentMetadataError {
         542  +
    /// <p>An error occurred on the server side.</p>
         543  +
    InternalServerError(crate::types::error::InternalServerError),
         544  +
    /// <p>The specified SSM document doesn't exist.</p>
         545  +
    InvalidDocument(crate::types::error::InvalidDocument),
         546  +
    /// <p>You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.</p>
         547  +
    InvalidDocumentOperation(crate::types::error::InvalidDocumentOperation),
         548  +
    /// <p>The document version isn't valid or doesn't exist.</p>
         549  +
    InvalidDocumentVersion(crate::types::error::InvalidDocumentVersion),
         550  +
    /// <p>There are concurrent updates for a resource that supports one update at a time.</p>
         551  +
    TooManyUpdates(crate::types::error::TooManyUpdates),
         552  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         553  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         554  +
    variable wildcard pattern and check `.code()`:
         555  +
     \
         556  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         557  +
     \
         558  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateDocumentMetadataError) for what information is available for the error.")]
         559  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         560  +
}
         561  +
impl UpdateDocumentMetadataError {
         562  +
    /// Creates the `UpdateDocumentMetadataError::Unhandled` variant from any error type.
         563  +
    pub fn unhandled(
         564  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         565  +
    ) -> Self {
         566  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         567  +
            source: err.into(),
         568  +
            meta: ::std::default::Default::default(),
         569  +
        })
         570  +
    }
         571  +
         572  +
    /// Creates the `UpdateDocumentMetadataError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         573  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         574  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         575  +
            source: err.clone().into(),
         576  +
            meta: err,
         577  +
        })
         578  +
    }
         579  +
    ///
         580  +
    /// Returns error metadata, which includes the error code, message,
         581  +
    /// request ID, and potentially additional information.
         582  +
    ///
         583  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         584  +
        match self {
         585  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         586  +
            Self::InvalidDocument(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         587  +
            Self::InvalidDocumentOperation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         588  +
            Self::InvalidDocumentVersion(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         589  +
            Self::TooManyUpdates(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         590  +
            Self::Unhandled(e) => &e.meta,
         591  +
        }
         592  +
    }
         593  +
    /// Returns `true` if the error kind is `UpdateDocumentMetadataError::InternalServerError`.
         594  +
    pub fn is_internal_server_error(&self) -> bool {
         595  +
        matches!(self, Self::InternalServerError(_))
         596  +
    }
         597  +
    /// Returns `true` if the error kind is `UpdateDocumentMetadataError::InvalidDocument`.
         598  +
    pub fn is_invalid_document(&self) -> bool {
         599  +
        matches!(self, Self::InvalidDocument(_))
         600  +
    }
         601  +
    /// Returns `true` if the error kind is `UpdateDocumentMetadataError::InvalidDocumentOperation`.
         602  +
    pub fn is_invalid_document_operation(&self) -> bool {
         603  +
        matches!(self, Self::InvalidDocumentOperation(_))
         604  +
    }
         605  +
    /// Returns `true` if the error kind is `UpdateDocumentMetadataError::InvalidDocumentVersion`.
         606  +
    pub fn is_invalid_document_version(&self) -> bool {
         607  +
        matches!(self, Self::InvalidDocumentVersion(_))
         608  +
    }
         609  +
    /// Returns `true` if the error kind is `UpdateDocumentMetadataError::TooManyUpdates`.
         610  +
    pub fn is_too_many_updates(&self) -> bool {
         611  +
        matches!(self, Self::TooManyUpdates(_))
         612  +
    }
         613  +
}
         614  +
impl ::std::error::Error for UpdateDocumentMetadataError {
         615  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         616  +
        match self {
         617  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         618  +
            Self::InvalidDocument(_inner) => ::std::option::Option::Some(_inner),
         619  +
            Self::InvalidDocumentOperation(_inner) => ::std::option::Option::Some(_inner),
         620  +
            Self::InvalidDocumentVersion(_inner) => ::std::option::Option::Some(_inner),
         621  +
            Self::TooManyUpdates(_inner) => ::std::option::Option::Some(_inner),
         622  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         623  +
        }
         624  +
    }
         625  +
}
         626  +
impl ::std::fmt::Display for UpdateDocumentMetadataError {
         627  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         628  +
        match self {
         629  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         630  +
            Self::InvalidDocument(_inner) => _inner.fmt(f),
         631  +
            Self::InvalidDocumentOperation(_inner) => _inner.fmt(f),
         632  +
            Self::InvalidDocumentVersion(_inner) => _inner.fmt(f),
         633  +
            Self::TooManyUpdates(_inner) => _inner.fmt(f),
         634  +
            Self::Unhandled(_inner) => {
         635  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         636  +
                    write!(f, "unhandled error ({code})")
         637  +
                } else {
         638  +
                    f.write_str("unhandled error")
         639  +
                }
         640  +
            }
         641  +
        }
         642  +
    }
         643  +
}
         644  +
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateDocumentMetadataError {
         645  +
    fn code(&self) -> ::std::option::Option<&str> {
         646  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         647  +
    }
         648  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         649  +
        ::std::option::Option::None
         650  +
    }
         651  +
}
         652  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateDocumentMetadataError {
         653  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         654  +
        match self {
         655  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         656  +
            Self::InvalidDocument(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         657  +
            Self::InvalidDocumentOperation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         658  +
            Self::InvalidDocumentVersion(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         659  +
            Self::TooManyUpdates(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         660  +
            Self::Unhandled(_inner) => &_inner.meta,
         661  +
        }
         662  +
    }
         663  +
}
         664  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateDocumentMetadataError {
         665  +
    fn create_unhandled_error(
         666  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         667  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         668  +
    ) -> Self {
         669  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         670  +
            source,
         671  +
            meta: meta.unwrap_or_default(),
         672  +
        })
         673  +
    }
         674  +
}
         675  +
impl ::aws_types::request_id::RequestId for crate::operation::update_document_metadata::UpdateDocumentMetadataError {
         676  +
    fn request_id(&self) -> Option<&str> {
         677  +
        self.meta().request_id()
         678  +
    }
         679  +
}
         680  +
         681  +
pub use crate::operation::update_document_metadata::_update_document_metadata_input::UpdateDocumentMetadataInput;
         682  +
         683  +
pub use crate::operation::update_document_metadata::_update_document_metadata_output::UpdateDocumentMetadataOutput;
         684  +
         685  +
mod _update_document_metadata_input;
         686  +
         687  +
mod _update_document_metadata_output;
         688  +
         689  +
/// Builders
         690  +
pub mod builders;