AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_invocation_does_not_exist.rs

@@ -0,1 +0,182 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The command ID and managed node ID you specified didn't match any invocations. Verify the command ID and the managed node ID and try again.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvocationDoesNotExist {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVOCATIONDOESNOTEXIST_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#InvocationDoesNotExist$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "InvocationDoesNotExist",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static INVOCATIONDOESNOTEXIST_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("InvocationDoesNotExist".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static INVOCATIONDOESNOTEXIST_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvocationDoesNotExist", "com.amazonaws.ssm", "InvocationDoesNotExist"),
          42  +
    ::aws_smithy_schema::ShapeType::Structure,
          43  +
    &[&INVOCATIONDOESNOTEXIST_MEMBER_MESSAGE],
          44  +
)
          45  +
.with_traits(&INVOCATIONDOESNOTEXIST_TRAITS);
          46  +
impl InvocationDoesNotExist {
          47  +
    /// The schema for this shape.
          48  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVOCATIONDOESNOTEXIST_SCHEMA;
          49  +
}
          50  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvocationDoesNotExist {
          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.message {
          57  +
            ser.write_string(&INVOCATIONDOESNOTEXIST_MEMBER_MESSAGE, val)?;
          58  +
        }
          59  +
        Ok(())
          60  +
    }
          61  +
}
          62  +
impl InvocationDoesNotExist {
          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(&INVOCATIONDOESNOTEXIST_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.message = Some(deser.read_string(member)?);
          83  +
                    }
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl InvocationDoesNotExist {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          94  +
    pub fn deserialize_with_response(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          97  +
        _status: u16,
          98  +
        body: &[u8],
          99  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         100  +
        if body.is_empty() {
         101  +
            return Ok(Self::builder().build());
         102  +
        }
         103  +
        Self::deserialize(deserializer)
         104  +
    }
         105  +
}
         106  +
impl InvocationDoesNotExist {
         107  +
    /// Returns the error message.
         108  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         109  +
        self.message.as_deref()
         110  +
    }
         111  +
}
         112  +
impl ::std::fmt::Display for InvocationDoesNotExist {
         113  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         114  +
        ::std::write!(f, "InvocationDoesNotExist")?;
         115  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         116  +
            {
         117  +
                ::std::write!(f, ": {inner_1}")?;
         118  +
            }
         119  +
        }
         120  +
        Ok(())
         121  +
    }
         122  +
}
         123  +
impl ::std::error::Error for InvocationDoesNotExist {}
         124  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvocationDoesNotExist {
         125  +
    fn request_id(&self) -> Option<&str> {
         126  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         127  +
        self.meta().request_id()
         128  +
    }
         129  +
}
         130  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvocationDoesNotExist {
         131  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         132  +
        &self.meta
         133  +
    }
         134  +
}
         135  +
impl InvocationDoesNotExist {
         136  +
    /// Creates a new builder-style object to manufacture [`InvocationDoesNotExist`](crate::types::error::InvocationDoesNotExist).
         137  +
    pub fn builder() -> crate::types::error::builders::InvocationDoesNotExistBuilder {
         138  +
        crate::types::error::builders::InvocationDoesNotExistBuilder::default()
         139  +
    }
         140  +
}
         141  +
         142  +
/// A builder for [`InvocationDoesNotExist`](crate::types::error::InvocationDoesNotExist).
         143  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         144  +
#[non_exhaustive]
         145  +
pub struct InvocationDoesNotExistBuilder {
         146  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         147  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         148  +
}
         149  +
impl InvocationDoesNotExistBuilder {
         150  +
    #[allow(missing_docs)] // documentation missing in model
         151  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         152  +
        self.message = ::std::option::Option::Some(input.into());
         153  +
        self
         154  +
    }
         155  +
    #[allow(missing_docs)] // documentation missing in model
         156  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         157  +
        self.message = input;
         158  +
        self
         159  +
    }
         160  +
    #[allow(missing_docs)] // documentation missing in model
         161  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         162  +
        &self.message
         163  +
    }
         164  +
    /// Sets error metadata
         165  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         166  +
        self.meta = Some(meta);
         167  +
        self
         168  +
    }
         169  +
         170  +
    /// Sets error metadata
         171  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         172  +
        self.meta = meta;
         173  +
        self
         174  +
    }
         175  +
    /// Consumes the builder and constructs a [`InvocationDoesNotExist`](crate::types::error::InvocationDoesNotExist).
         176  +
    pub fn build(self) -> crate::types::error::InvocationDoesNotExist {
         177  +
        crate::types::error::InvocationDoesNotExist {
         178  +
            message: self.message,
         179  +
            meta: self.meta.unwrap_or_default(),
         180  +
        }
         181  +
    }
         182  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_item_content_mismatch_exception.rs

@@ -0,1 +0,233 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The inventory item has invalid content.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ItemContentMismatchException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub type_name: ::std::option::Option<::std::string::String>,
           9  +
    #[allow(missing_docs)] // documentation missing in model
          10  +
    pub message: ::std::option::Option<::std::string::String>,
          11  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
}
          13  +
impl ItemContentMismatchException {
          14  +
    #[allow(missing_docs)] // documentation missing in model
          15  +
    pub fn type_name(&self) -> ::std::option::Option<&str> {
          16  +
        self.type_name.as_deref()
          17  +
    }
          18  +
}
          19  +
static ITEMCONTENTMISMATCHEXCEPTION_MEMBER_TYPE_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          20  +
    ::aws_smithy_schema::ShapeId::from_parts(
          21  +
        "com.amazonaws.ssm#ItemContentMismatchException$TypeName",
          22  +
        "com.amazonaws.ssm",
          23  +
        "ItemContentMismatchException",
          24  +
    ),
          25  +
    ::aws_smithy_schema::ShapeType::String,
          26  +
    "TypeName",
          27  +
    0,
          28  +
);
          29  +
static ITEMCONTENTMISMATCHEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          30  +
    ::aws_smithy_schema::ShapeId::from_parts(
          31  +
        "com.amazonaws.ssm#ItemContentMismatchException$Message",
          32  +
        "com.amazonaws.ssm",
          33  +
        "ItemContentMismatchException",
          34  +
    ),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "Message",
          37  +
    1,
          38  +
);
          39  +
static ITEMCONTENTMISMATCHEXCEPTION_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          40  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          41  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          42  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          43  +
        {
          44  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          45  +
            obj.insert(
          46  +
                "code".to_string(),
          47  +
                ::aws_smithy_types::Document::String("ItemContentMismatch".to_string()),
          48  +
            );
          49  +
            obj.insert(
          50  +
                "httpResponseCode".to_string(),
          51  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          52  +
            );
          53  +
            ::aws_smithy_types::Document::Object(obj)
          54  +
        },
          55  +
    )));
          56  +
    map
          57  +
});
          58  +
static ITEMCONTENTMISMATCHEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm#ItemContentMismatchException",
          61  +
        "com.amazonaws.ssm",
          62  +
        "ItemContentMismatchException",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &ITEMCONTENTMISMATCHEXCEPTION_MEMBER_TYPE_NAME,
          67  +
        &ITEMCONTENTMISMATCHEXCEPTION_MEMBER_MESSAGE,
          68  +
    ],
          69  +
)
          70  +
.with_traits(&ITEMCONTENTMISMATCHEXCEPTION_TRAITS);
          71  +
impl ItemContentMismatchException {
          72  +
    /// The schema for this shape.
          73  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &ITEMCONTENTMISMATCHEXCEPTION_SCHEMA;
          74  +
}
          75  +
impl ::aws_smithy_schema::serde::SerializableStruct for ItemContentMismatchException {
          76  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          77  +
    fn serialize_members(
          78  +
        &self,
          79  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          80  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          81  +
        if let Some(ref val) = self.type_name {
          82  +
            ser.write_string(&ITEMCONTENTMISMATCHEXCEPTION_MEMBER_TYPE_NAME, val)?;
          83  +
        }
          84  +
        if let Some(ref val) = self.message {
          85  +
            ser.write_string(&ITEMCONTENTMISMATCHEXCEPTION_MEMBER_MESSAGE, val)?;
          86  +
        }
          87  +
        Ok(())
          88  +
    }
          89  +
}
          90  +
impl ItemContentMismatchException {
          91  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          92  +
    pub fn deserialize(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          95  +
        #[allow(unused_variables, unused_mut)]
          96  +
        let mut builder = Self::builder();
          97  +
        #[allow(
          98  +
            unused_variables,
          99  +
            unreachable_code,
         100  +
            clippy::single_match,
         101  +
            clippy::match_single_binding,
         102  +
            clippy::diverging_sub_expression
         103  +
        )]
         104  +
        deserializer.read_struct(&ITEMCONTENTMISMATCHEXCEPTION_SCHEMA, &mut |member, deser| {
         105  +
            match member.member_index() {
         106  +
                Some(0) => {
         107  +
                    if deser.is_null() {
         108  +
                        deser.read_null()?;
         109  +
                    } else {
         110  +
                        builder.type_name = Some(deser.read_string(member)?);
         111  +
                    }
         112  +
                }
         113  +
                Some(1) => {
         114  +
                    if deser.is_null() {
         115  +
                        deser.read_null()?;
         116  +
                    } else {
         117  +
                        builder.message = Some(deser.read_string(member)?);
         118  +
                    }
         119  +
                }
         120  +
                _ => {}
         121  +
            }
         122  +
            Ok(())
         123  +
        })?;
         124  +
        Ok(builder.build())
         125  +
    }
         126  +
}
         127  +
impl ItemContentMismatchException {
         128  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         129  +
    pub fn deserialize_with_response(
         130  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         131  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         132  +
        _status: u16,
         133  +
        body: &[u8],
         134  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         135  +
        if body.is_empty() {
         136  +
            return Ok(Self::builder().build());
         137  +
        }
         138  +
        Self::deserialize(deserializer)
         139  +
    }
         140  +
}
         141  +
impl ItemContentMismatchException {
         142  +
    /// Returns the error message.
         143  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         144  +
        self.message.as_deref()
         145  +
    }
         146  +
}
         147  +
impl ::std::fmt::Display for ItemContentMismatchException {
         148  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         149  +
        ::std::write!(f, "ItemContentMismatchException")?;
         150  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         151  +
            {
         152  +
                ::std::write!(f, ": {inner_1}")?;
         153  +
            }
         154  +
        }
         155  +
        Ok(())
         156  +
    }
         157  +
}
         158  +
impl ::std::error::Error for ItemContentMismatchException {}
         159  +
impl ::aws_types::request_id::RequestId for crate::types::error::ItemContentMismatchException {
         160  +
    fn request_id(&self) -> Option<&str> {
         161  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         162  +
        self.meta().request_id()
         163  +
    }
         164  +
}
         165  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ItemContentMismatchException {
         166  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         167  +
        &self.meta
         168  +
    }
         169  +
}
         170  +
impl ItemContentMismatchException {
         171  +
    /// Creates a new builder-style object to manufacture [`ItemContentMismatchException`](crate::types::error::ItemContentMismatchException).
         172  +
    pub fn builder() -> crate::types::error::builders::ItemContentMismatchExceptionBuilder {
         173  +
        crate::types::error::builders::ItemContentMismatchExceptionBuilder::default()
         174  +
    }
         175  +
}
         176  +
         177  +
/// A builder for [`ItemContentMismatchException`](crate::types::error::ItemContentMismatchException).
         178  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         179  +
#[non_exhaustive]
         180  +
pub struct ItemContentMismatchExceptionBuilder {
         181  +
    pub(crate) type_name: ::std::option::Option<::std::string::String>,
         182  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         183  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         184  +
}
         185  +
impl ItemContentMismatchExceptionBuilder {
         186  +
    #[allow(missing_docs)] // documentation missing in model
         187  +
    pub fn type_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         188  +
        self.type_name = ::std::option::Option::Some(input.into());
         189  +
        self
         190  +
    }
         191  +
    #[allow(missing_docs)] // documentation missing in model
         192  +
    pub fn set_type_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         193  +
        self.type_name = input;
         194  +
        self
         195  +
    }
         196  +
    #[allow(missing_docs)] // documentation missing in model
         197  +
    pub fn get_type_name(&self) -> &::std::option::Option<::std::string::String> {
         198  +
        &self.type_name
         199  +
    }
         200  +
    #[allow(missing_docs)] // documentation missing in model
         201  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         202  +
        self.message = ::std::option::Option::Some(input.into());
         203  +
        self
         204  +
    }
         205  +
    #[allow(missing_docs)] // documentation missing in model
         206  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         207  +
        self.message = input;
         208  +
        self
         209  +
    }
         210  +
    #[allow(missing_docs)] // documentation missing in model
         211  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         212  +
        &self.message
         213  +
    }
         214  +
    /// Sets error metadata
         215  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         216  +
        self.meta = Some(meta);
         217  +
        self
         218  +
    }
         219  +
         220  +
    /// Sets error metadata
         221  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         222  +
        self.meta = meta;
         223  +
        self
         224  +
    }
         225  +
    /// Consumes the builder and constructs a [`ItemContentMismatchException`](crate::types::error::ItemContentMismatchException).
         226  +
    pub fn build(self) -> crate::types::error::ItemContentMismatchException {
         227  +
        crate::types::error::ItemContentMismatchException {
         228  +
            type_name: self.type_name,
         229  +
            message: self.message,
         230  +
            meta: self.meta.unwrap_or_default(),
         231  +
        }
         232  +
    }
         233  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_item_size_limit_exceeded_exception.rs

@@ -0,1 +0,233 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The inventory item size has exceeded the size limit.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ItemSizeLimitExceededException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub type_name: ::std::option::Option<::std::string::String>,
           9  +
    #[allow(missing_docs)] // documentation missing in model
          10  +
    pub message: ::std::option::Option<::std::string::String>,
          11  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
}
          13  +
impl ItemSizeLimitExceededException {
          14  +
    #[allow(missing_docs)] // documentation missing in model
          15  +
    pub fn type_name(&self) -> ::std::option::Option<&str> {
          16  +
        self.type_name.as_deref()
          17  +
    }
          18  +
}
          19  +
static ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_TYPE_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          20  +
    ::aws_smithy_schema::ShapeId::from_parts(
          21  +
        "com.amazonaws.ssm#ItemSizeLimitExceededException$TypeName",
          22  +
        "com.amazonaws.ssm",
          23  +
        "ItemSizeLimitExceededException",
          24  +
    ),
          25  +
    ::aws_smithy_schema::ShapeType::String,
          26  +
    "TypeName",
          27  +
    0,
          28  +
);
          29  +
static ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          30  +
    ::aws_smithy_schema::ShapeId::from_parts(
          31  +
        "com.amazonaws.ssm#ItemSizeLimitExceededException$Message",
          32  +
        "com.amazonaws.ssm",
          33  +
        "ItemSizeLimitExceededException",
          34  +
    ),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "Message",
          37  +
    1,
          38  +
);
          39  +
static ITEMSIZELIMITEXCEEDEDEXCEPTION_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          40  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          41  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          42  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          43  +
        {
          44  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          45  +
            obj.insert(
          46  +
                "code".to_string(),
          47  +
                ::aws_smithy_types::Document::String("ItemSizeLimitExceeded".to_string()),
          48  +
            );
          49  +
            obj.insert(
          50  +
                "httpResponseCode".to_string(),
          51  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          52  +
            );
          53  +
            ::aws_smithy_types::Document::Object(obj)
          54  +
        },
          55  +
    )));
          56  +
    map
          57  +
});
          58  +
static ITEMSIZELIMITEXCEEDEDEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm#ItemSizeLimitExceededException",
          61  +
        "com.amazonaws.ssm",
          62  +
        "ItemSizeLimitExceededException",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_TYPE_NAME,
          67  +
        &ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_MESSAGE,
          68  +
    ],
          69  +
)
          70  +
.with_traits(&ITEMSIZELIMITEXCEEDEDEXCEPTION_TRAITS);
          71  +
impl ItemSizeLimitExceededException {
          72  +
    /// The schema for this shape.
          73  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &ITEMSIZELIMITEXCEEDEDEXCEPTION_SCHEMA;
          74  +
}
          75  +
impl ::aws_smithy_schema::serde::SerializableStruct for ItemSizeLimitExceededException {
          76  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          77  +
    fn serialize_members(
          78  +
        &self,
          79  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          80  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          81  +
        if let Some(ref val) = self.type_name {
          82  +
            ser.write_string(&ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_TYPE_NAME, val)?;
          83  +
        }
          84  +
        if let Some(ref val) = self.message {
          85  +
            ser.write_string(&ITEMSIZELIMITEXCEEDEDEXCEPTION_MEMBER_MESSAGE, val)?;
          86  +
        }
          87  +
        Ok(())
          88  +
    }
          89  +
}
          90  +
impl ItemSizeLimitExceededException {
          91  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          92  +
    pub fn deserialize(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          95  +
        #[allow(unused_variables, unused_mut)]
          96  +
        let mut builder = Self::builder();
          97  +
        #[allow(
          98  +
            unused_variables,
          99  +
            unreachable_code,
         100  +
            clippy::single_match,
         101  +
            clippy::match_single_binding,
         102  +
            clippy::diverging_sub_expression
         103  +
        )]
         104  +
        deserializer.read_struct(&ITEMSIZELIMITEXCEEDEDEXCEPTION_SCHEMA, &mut |member, deser| {
         105  +
            match member.member_index() {
         106  +
                Some(0) => {
         107  +
                    if deser.is_null() {
         108  +
                        deser.read_null()?;
         109  +
                    } else {
         110  +
                        builder.type_name = Some(deser.read_string(member)?);
         111  +
                    }
         112  +
                }
         113  +
                Some(1) => {
         114  +
                    if deser.is_null() {
         115  +
                        deser.read_null()?;
         116  +
                    } else {
         117  +
                        builder.message = Some(deser.read_string(member)?);
         118  +
                    }
         119  +
                }
         120  +
                _ => {}
         121  +
            }
         122  +
            Ok(())
         123  +
        })?;
         124  +
        Ok(builder.build())
         125  +
    }
         126  +
}
         127  +
impl ItemSizeLimitExceededException {
         128  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         129  +
    pub fn deserialize_with_response(
         130  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         131  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         132  +
        _status: u16,
         133  +
        body: &[u8],
         134  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         135  +
        if body.is_empty() {
         136  +
            return Ok(Self::builder().build());
         137  +
        }
         138  +
        Self::deserialize(deserializer)
         139  +
    }
         140  +
}
         141  +
impl ItemSizeLimitExceededException {
         142  +
    /// Returns the error message.
         143  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         144  +
        self.message.as_deref()
         145  +
    }
         146  +
}
         147  +
impl ::std::fmt::Display for ItemSizeLimitExceededException {
         148  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         149  +
        ::std::write!(f, "ItemSizeLimitExceededException")?;
         150  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         151  +
            {
         152  +
                ::std::write!(f, ": {inner_1}")?;
         153  +
            }
         154  +
        }
         155  +
        Ok(())
         156  +
    }
         157  +
}
         158  +
impl ::std::error::Error for ItemSizeLimitExceededException {}
         159  +
impl ::aws_types::request_id::RequestId for crate::types::error::ItemSizeLimitExceededException {
         160  +
    fn request_id(&self) -> Option<&str> {
         161  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         162  +
        self.meta().request_id()
         163  +
    }
         164  +
}
         165  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ItemSizeLimitExceededException {
         166  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         167  +
        &self.meta
         168  +
    }
         169  +
}
         170  +
impl ItemSizeLimitExceededException {
         171  +
    /// Creates a new builder-style object to manufacture [`ItemSizeLimitExceededException`](crate::types::error::ItemSizeLimitExceededException).
         172  +
    pub fn builder() -> crate::types::error::builders::ItemSizeLimitExceededExceptionBuilder {
         173  +
        crate::types::error::builders::ItemSizeLimitExceededExceptionBuilder::default()
         174  +
    }
         175  +
}
         176  +
         177  +
/// A builder for [`ItemSizeLimitExceededException`](crate::types::error::ItemSizeLimitExceededException).
         178  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         179  +
#[non_exhaustive]
         180  +
pub struct ItemSizeLimitExceededExceptionBuilder {
         181  +
    pub(crate) type_name: ::std::option::Option<::std::string::String>,
         182  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         183  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         184  +
}
         185  +
impl ItemSizeLimitExceededExceptionBuilder {
         186  +
    #[allow(missing_docs)] // documentation missing in model
         187  +
    pub fn type_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         188  +
        self.type_name = ::std::option::Option::Some(input.into());
         189  +
        self
         190  +
    }
         191  +
    #[allow(missing_docs)] // documentation missing in model
         192  +
    pub fn set_type_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         193  +
        self.type_name = input;
         194  +
        self
         195  +
    }
         196  +
    #[allow(missing_docs)] // documentation missing in model
         197  +
    pub fn get_type_name(&self) -> &::std::option::Option<::std::string::String> {
         198  +
        &self.type_name
         199  +
    }
         200  +
    #[allow(missing_docs)] // documentation missing in model
         201  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         202  +
        self.message = ::std::option::Option::Some(input.into());
         203  +
        self
         204  +
    }
         205  +
    #[allow(missing_docs)] // documentation missing in model
         206  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         207  +
        self.message = input;
         208  +
        self
         209  +
    }
         210  +
    #[allow(missing_docs)] // documentation missing in model
         211  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         212  +
        &self.message
         213  +
    }
         214  +
    /// Sets error metadata
         215  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         216  +
        self.meta = Some(meta);
         217  +
        self
         218  +
    }
         219  +
         220  +
    /// Sets error metadata
         221  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         222  +
        self.meta = meta;
         223  +
        self
         224  +
    }
         225  +
    /// Consumes the builder and constructs a [`ItemSizeLimitExceededException`](crate::types::error::ItemSizeLimitExceededException).
         226  +
    pub fn build(self) -> crate::types::error::ItemSizeLimitExceededException {
         227  +
        crate::types::error::ItemSizeLimitExceededException {
         228  +
            type_name: self.type_name,
         229  +
            message: self.message,
         230  +
            meta: self.meta.unwrap_or_default(),
         231  +
        }
         232  +
    }
         233  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_malformed_resource_policy_document_exception.rs

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The specified policy document is malformed or invalid, or excessive <code>PutResourcePolicy</code> or <code>DeleteResourcePolicy</code> calls have been made.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct MalformedResourcePolicyDocumentException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#MalformedResourcePolicyDocumentException$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "MalformedResourcePolicyDocumentException",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("MalformedResourcePolicyDocumentException".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#MalformedResourcePolicyDocumentException",
          43  +
        "com.amazonaws.ssm",
          44  +
        "MalformedResourcePolicyDocumentException",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_TRAITS);
          50  +
impl MalformedResourcePolicyDocumentException {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for MalformedResourcePolicyDocumentException {
          55  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          56  +
    fn serialize_members(
          57  +
        &self,
          58  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          59  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          60  +
        if let Some(ref val) = self.message {
          61  +
            ser.write_string(&MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl MalformedResourcePolicyDocumentException {
          67  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          68  +
    pub fn deserialize(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          71  +
        #[allow(unused_variables, unused_mut)]
          72  +
        let mut builder = Self::builder();
          73  +
        #[allow(
          74  +
            unused_variables,
          75  +
            unreachable_code,
          76  +
            clippy::single_match,
          77  +
            clippy::match_single_binding,
          78  +
            clippy::diverging_sub_expression
          79  +
        )]
          80  +
        deserializer.read_struct(&MALFORMEDRESOURCEPOLICYDOCUMENTEXCEPTION_SCHEMA, &mut |member, deser| {
          81  +
            match member.member_index() {
          82  +
                Some(0) => {
          83  +
                    if deser.is_null() {
          84  +
                        deser.read_null()?;
          85  +
                    } else {
          86  +
                        builder.message = Some(deser.read_string(member)?);
          87  +
                    }
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl MalformedResourcePolicyDocumentException {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        if body.is_empty() {
         105  +
            return Ok(Self::builder().build());
         106  +
        }
         107  +
        Self::deserialize(deserializer)
         108  +
    }
         109  +
}
         110  +
impl MalformedResourcePolicyDocumentException {
         111  +
    /// Returns the error message.
         112  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         113  +
        self.message.as_deref()
         114  +
    }
         115  +
}
         116  +
impl ::std::fmt::Display for MalformedResourcePolicyDocumentException {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "MalformedResourcePolicyDocumentException")?;
         119  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         120  +
            {
         121  +
                ::std::write!(f, ": {inner_1}")?;
         122  +
            }
         123  +
        }
         124  +
        Ok(())
         125  +
    }
         126  +
}
         127  +
impl ::std::error::Error for MalformedResourcePolicyDocumentException {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::MalformedResourcePolicyDocumentException {
         129  +
    fn request_id(&self) -> Option<&str> {
         130  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         131  +
        self.meta().request_id()
         132  +
    }
         133  +
}
         134  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MalformedResourcePolicyDocumentException {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl MalformedResourcePolicyDocumentException {
         140  +
    /// Creates a new builder-style object to manufacture [`MalformedResourcePolicyDocumentException`](crate::types::error::MalformedResourcePolicyDocumentException).
         141  +
    pub fn builder() -> crate::types::error::builders::MalformedResourcePolicyDocumentExceptionBuilder {
         142  +
        crate::types::error::builders::MalformedResourcePolicyDocumentExceptionBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`MalformedResourcePolicyDocumentException`](crate::types::error::MalformedResourcePolicyDocumentException).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct MalformedResourcePolicyDocumentExceptionBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl MalformedResourcePolicyDocumentExceptionBuilder {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        self.message = ::std::option::Option::Some(input.into());
         157  +
        self
         158  +
    }
         159  +
    #[allow(missing_docs)] // documentation missing in model
         160  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        self.message = input;
         162  +
        self
         163  +
    }
         164  +
    #[allow(missing_docs)] // documentation missing in model
         165  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         166  +
        &self.message
         167  +
    }
         168  +
    /// Sets error metadata
         169  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         170  +
        self.meta = Some(meta);
         171  +
        self
         172  +
    }
         173  +
         174  +
    /// Sets error metadata
         175  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         176  +
        self.meta = meta;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`MalformedResourcePolicyDocumentException`](crate::types::error::MalformedResourcePolicyDocumentException).
         180  +
    pub fn build(self) -> crate::types::error::MalformedResourcePolicyDocumentException {
         181  +
        crate::types::error::MalformedResourcePolicyDocumentException {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_max_document_size_exceeded.rs

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The size limit of a document is 64 KB.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct MaxDocumentSizeExceeded {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static MAXDOCUMENTSIZEEXCEEDED_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#MaxDocumentSizeExceeded$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "MaxDocumentSizeExceeded",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static MAXDOCUMENTSIZEEXCEEDED_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("MaxDocumentSizeExceeded".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static MAXDOCUMENTSIZEEXCEEDED_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#MaxDocumentSizeExceeded",
          43  +
        "com.amazonaws.ssm",
          44  +
        "MaxDocumentSizeExceeded",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&MAXDOCUMENTSIZEEXCEEDED_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&MAXDOCUMENTSIZEEXCEEDED_TRAITS);
          50  +
impl MaxDocumentSizeExceeded {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &MAXDOCUMENTSIZEEXCEEDED_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for MaxDocumentSizeExceeded {
          55  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          56  +
    fn serialize_members(
          57  +
        &self,
          58  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          59  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          60  +
        if let Some(ref val) = self.message {
          61  +
            ser.write_string(&MAXDOCUMENTSIZEEXCEEDED_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl MaxDocumentSizeExceeded {
          67  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          68  +
    pub fn deserialize(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          71  +
        #[allow(unused_variables, unused_mut)]
          72  +
        let mut builder = Self::builder();
          73  +
        #[allow(
          74  +
            unused_variables,
          75  +
            unreachable_code,
          76  +
            clippy::single_match,
          77  +
            clippy::match_single_binding,
          78  +
            clippy::diverging_sub_expression
          79  +
        )]
          80  +
        deserializer.read_struct(&MAXDOCUMENTSIZEEXCEEDED_SCHEMA, &mut |member, deser| {
          81  +
            match member.member_index() {
          82  +
                Some(0) => {
          83  +
                    if deser.is_null() {
          84  +
                        deser.read_null()?;
          85  +
                    } else {
          86  +
                        builder.message = Some(deser.read_string(member)?);
          87  +
                    }
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl MaxDocumentSizeExceeded {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        if body.is_empty() {
         105  +
            return Ok(Self::builder().build());
         106  +
        }
         107  +
        Self::deserialize(deserializer)
         108  +
    }
         109  +
}
         110  +
impl MaxDocumentSizeExceeded {
         111  +
    /// Returns the error message.
         112  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         113  +
        self.message.as_deref()
         114  +
    }
         115  +
}
         116  +
impl ::std::fmt::Display for MaxDocumentSizeExceeded {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "MaxDocumentSizeExceeded")?;
         119  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         120  +
            {
         121  +
                ::std::write!(f, ": {inner_1}")?;
         122  +
            }
         123  +
        }
         124  +
        Ok(())
         125  +
    }
         126  +
}
         127  +
impl ::std::error::Error for MaxDocumentSizeExceeded {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::MaxDocumentSizeExceeded {
         129  +
    fn request_id(&self) -> Option<&str> {
         130  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         131  +
        self.meta().request_id()
         132  +
    }
         133  +
}
         134  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MaxDocumentSizeExceeded {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl MaxDocumentSizeExceeded {
         140  +
    /// Creates a new builder-style object to manufacture [`MaxDocumentSizeExceeded`](crate::types::error::MaxDocumentSizeExceeded).
         141  +
    pub fn builder() -> crate::types::error::builders::MaxDocumentSizeExceededBuilder {
         142  +
        crate::types::error::builders::MaxDocumentSizeExceededBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`MaxDocumentSizeExceeded`](crate::types::error::MaxDocumentSizeExceeded).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct MaxDocumentSizeExceededBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl MaxDocumentSizeExceededBuilder {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        self.message = ::std::option::Option::Some(input.into());
         157  +
        self
         158  +
    }
         159  +
    #[allow(missing_docs)] // documentation missing in model
         160  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        self.message = input;
         162  +
        self
         163  +
    }
         164  +
    #[allow(missing_docs)] // documentation missing in model
         165  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         166  +
        &self.message
         167  +
    }
         168  +
    /// Sets error metadata
         169  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         170  +
        self.meta = Some(meta);
         171  +
        self
         172  +
    }
         173  +
         174  +
    /// Sets error metadata
         175  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         176  +
        self.meta = meta;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`MaxDocumentSizeExceeded`](crate::types::error::MaxDocumentSizeExceeded).
         180  +
    pub fn build(self) -> crate::types::error::MaxDocumentSizeExceeded {
         181  +
        crate::types::error::MaxDocumentSizeExceeded {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}