AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,287 @@
           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 UpdateOpsMetadataInput {
           6  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
           7  +
    pub ops_metadata_arn: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
           9  +
    pub metadata_to_update: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>>,
          10  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
          11  +
    pub keys_to_delete: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          12  +
}
          13  +
impl UpdateOpsMetadataInput {
          14  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
          15  +
    pub fn ops_metadata_arn(&self) -> ::std::option::Option<&str> {
          16  +
        self.ops_metadata_arn.as_deref()
          17  +
    }
          18  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
          19  +
    pub fn metadata_to_update(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>> {
          20  +
        self.metadata_to_update.as_ref()
          21  +
    }
          22  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
          23  +
    ///
          24  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.keys_to_delete.is_none()`.
          25  +
    pub fn keys_to_delete(&self) -> &[::std::string::String] {
          26  +
        self.keys_to_delete.as_deref().unwrap_or_default()
          27  +
    }
          28  +
}
          29  +
static UPDATEOPSMETADATAINPUT_MEMBER_OPS_METADATA_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          30  +
    ::aws_smithy_schema::ShapeId::from_parts(
          31  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataInput$OpsMetadataArn",
          32  +
        "com.amazonaws.ssm.synthetic",
          33  +
        "UpdateOpsMetadataInput",
          34  +
    ),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "OpsMetadataArn",
          37  +
    0,
          38  +
);
          39  +
static UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          40  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#MetadataMap$key", "com.amazonaws.ssm", "MetadataMap"),
          41  +
    ::aws_smithy_schema::ShapeType::String,
          42  +
    "key",
          43  +
    0,
          44  +
);
          45  +
static UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          46  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#MetadataMap$value", "com.amazonaws.ssm", "MetadataMap"),
          47  +
    ::aws_smithy_schema::ShapeType::Structure,
          48  +
    "value",
          49  +
    1,
          50  +
);
          51  +
static UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts(
          53  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataInput$MetadataToUpdate",
          54  +
        "com.amazonaws.ssm.synthetic",
          55  +
        "UpdateOpsMetadataInput",
          56  +
    ),
          57  +
    ::aws_smithy_schema::ShapeType::Map,
          58  +
    "MetadataToUpdate",
          59  +
    1,
          60  +
)
          61  +
.with_map_members(
          62  +
    &UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE_KEY,
          63  +
    &UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE_VALUE,
          64  +
);
          65  +
static UPDATEOPSMETADATAINPUT_MEMBER_KEYS_TO_DELETE_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          66  +
    ::aws_smithy_schema::ShapeId::from_parts(
          67  +
        "com.amazonaws.ssm#MetadataKeysToDeleteList$member",
          68  +
        "com.amazonaws.ssm",
          69  +
        "MetadataKeysToDeleteList",
          70  +
    ),
          71  +
    ::aws_smithy_schema::ShapeType::String,
          72  +
    "member",
          73  +
    0,
          74  +
);
          75  +
static UPDATEOPSMETADATAINPUT_MEMBER_KEYS_TO_DELETE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          76  +
    ::aws_smithy_schema::ShapeId::from_parts(
          77  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataInput$KeysToDelete",
          78  +
        "com.amazonaws.ssm.synthetic",
          79  +
        "UpdateOpsMetadataInput",
          80  +
    ),
          81  +
    ::aws_smithy_schema::ShapeType::List,
          82  +
    "KeysToDelete",
          83  +
    2,
          84  +
)
          85  +
.with_list_member(&UPDATEOPSMETADATAINPUT_MEMBER_KEYS_TO_DELETE_MEMBER);
          86  +
static UPDATEOPSMETADATAINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          87  +
    ::aws_smithy_schema::ShapeId::from_parts(
          88  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataInput",
          89  +
        "com.amazonaws.ssm.synthetic",
          90  +
        "UpdateOpsMetadataInput",
          91  +
    ),
          92  +
    ::aws_smithy_schema::ShapeType::Structure,
          93  +
    &[
          94  +
        &UPDATEOPSMETADATAINPUT_MEMBER_OPS_METADATA_ARN,
          95  +
        &UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE,
          96  +
        &UPDATEOPSMETADATAINPUT_MEMBER_KEYS_TO_DELETE,
          97  +
    ],
          98  +
)
          99  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         100  +
.with_original_name("UpdateOpsMetadataRequest");
         101  +
impl UpdateOpsMetadataInput {
         102  +
    /// The schema for this shape.
         103  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEOPSMETADATAINPUT_SCHEMA;
         104  +
}
         105  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateOpsMetadataInput {
         106  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         107  +
    fn serialize_members(
         108  +
        &self,
         109  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         110  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         111  +
        if let Some(ref val) = self.ops_metadata_arn {
         112  +
            ser.write_string(&UPDATEOPSMETADATAINPUT_MEMBER_OPS_METADATA_ARN, val)?;
         113  +
        }
         114  +
        if let Some(ref val) = self.metadata_to_update {
         115  +
            ser.write_map(
         116  +
                &UPDATEOPSMETADATAINPUT_MEMBER_METADATA_TO_UPDATE,
         117  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         118  +
                    for (key, value) in val {
         119  +
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
         120  +
                        ser.write_struct(crate::types::MetadataValue::SCHEMA, value)?;
         121  +
                    }
         122  +
                    Ok(())
         123  +
                },
         124  +
            )?;
         125  +
        }
         126  +
        if let Some(ref val) = self.keys_to_delete {
         127  +
            ser.write_list(
         128  +
                &UPDATEOPSMETADATAINPUT_MEMBER_KEYS_TO_DELETE,
         129  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         130  +
                    for item in val {
         131  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
         132  +
                    }
         133  +
                    Ok(())
         134  +
                },
         135  +
            )?;
         136  +
        }
         137  +
        Ok(())
         138  +
    }
         139  +
}
         140  +
impl UpdateOpsMetadataInput {
         141  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         142  +
    pub fn deserialize(
         143  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         144  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         145  +
        #[allow(unused_variables, unused_mut)]
         146  +
        let mut builder = Self::builder();
         147  +
        #[allow(
         148  +
            unused_variables,
         149  +
            unreachable_code,
         150  +
            clippy::single_match,
         151  +
            clippy::match_single_binding,
         152  +
            clippy::diverging_sub_expression
         153  +
        )]
         154  +
        deserializer.read_struct(&UPDATEOPSMETADATAINPUT_SCHEMA, &mut |member, deser| {
         155  +
            match member.member_index() {
         156  +
                Some(0) => {
         157  +
                    if deser.is_null() {
         158  +
                        deser.read_null()?;
         159  +
                    } else {
         160  +
                        builder.ops_metadata_arn = Some(deser.read_string(member)?);
         161  +
                    }
         162  +
                }
         163  +
                Some(1) => {
         164  +
                    if deser.is_null() {
         165  +
                        deser.read_null()?;
         166  +
                    } else {
         167  +
                        builder.metadata_to_update = Some({
         168  +
                            let mut container = std::collections::HashMap::new();
         169  +
                            deser.read_map(member, &mut |key, deser| {
         170  +
                                container.insert(key, crate::types::MetadataValue::deserialize(deser)?);
         171  +
                                Ok(())
         172  +
                            })?;
         173  +
                            container
         174  +
                        });
         175  +
                    }
         176  +
                }
         177  +
                Some(2) => {
         178  +
                    if deser.is_null() {
         179  +
                        deser.read_null()?;
         180  +
                    } else {
         181  +
                        builder.keys_to_delete = Some(deser.read_string_list(member)?);
         182  +
                    }
         183  +
                }
         184  +
                _ => {}
         185  +
            }
         186  +
            Ok(())
         187  +
        })?;
         188  +
        builder.ops_metadata_arn = builder.ops_metadata_arn.or(Some(String::new()));
         189  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         190  +
    }
         191  +
}
         192  +
impl UpdateOpsMetadataInput {
         193  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         194  +
    pub fn deserialize_with_response(
         195  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         196  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         197  +
        _status: u16,
         198  +
        _body: &[u8],
         199  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         200  +
        Self::deserialize(deserializer)
         201  +
    }
         202  +
}
         203  +
impl UpdateOpsMetadataInput {
         204  +
    /// Creates a new builder-style object to manufacture [`UpdateOpsMetadataInput`](crate::operation::update_ops_metadata::UpdateOpsMetadataInput).
         205  +
    pub fn builder() -> crate::operation::update_ops_metadata::builders::UpdateOpsMetadataInputBuilder {
         206  +
        crate::operation::update_ops_metadata::builders::UpdateOpsMetadataInputBuilder::default()
         207  +
    }
         208  +
}
         209  +
         210  +
/// A builder for [`UpdateOpsMetadataInput`](crate::operation::update_ops_metadata::UpdateOpsMetadataInput).
         211  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         212  +
#[non_exhaustive]
         213  +
pub struct UpdateOpsMetadataInputBuilder {
         214  +
    pub(crate) ops_metadata_arn: ::std::option::Option<::std::string::String>,
         215  +
    pub(crate) metadata_to_update: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>>,
         216  +
    pub(crate) keys_to_delete: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         217  +
}
         218  +
impl UpdateOpsMetadataInputBuilder {
         219  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         220  +
    /// This field is required.
         221  +
    pub fn ops_metadata_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         222  +
        self.ops_metadata_arn = ::std::option::Option::Some(input.into());
         223  +
        self
         224  +
    }
         225  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         226  +
    pub fn set_ops_metadata_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         227  +
        self.ops_metadata_arn = input;
         228  +
        self
         229  +
    }
         230  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         231  +
    pub fn get_ops_metadata_arn(&self) -> &::std::option::Option<::std::string::String> {
         232  +
        &self.ops_metadata_arn
         233  +
    }
         234  +
    /// Adds a key-value pair to `metadata_to_update`.
         235  +
    ///
         236  +
    /// To override the contents of this collection use [`set_metadata_to_update`](Self::set_metadata_to_update).
         237  +
    ///
         238  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         239  +
    pub fn metadata_to_update(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::MetadataValue) -> Self {
         240  +
        let mut hash_map = self.metadata_to_update.unwrap_or_default();
         241  +
        hash_map.insert(k.into(), v);
         242  +
        self.metadata_to_update = ::std::option::Option::Some(hash_map);
         243  +
        self
         244  +
    }
         245  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         246  +
    pub fn set_metadata_to_update(
         247  +
        mut self,
         248  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>>,
         249  +
    ) -> Self {
         250  +
        self.metadata_to_update = input;
         251  +
        self
         252  +
    }
         253  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         254  +
    pub fn get_metadata_to_update(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>> {
         255  +
        &self.metadata_to_update
         256  +
    }
         257  +
    /// Appends an item to `keys_to_delete`.
         258  +
    ///
         259  +
    /// To override the contents of this collection use [`set_keys_to_delete`](Self::set_keys_to_delete).
         260  +
    ///
         261  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         262  +
    pub fn keys_to_delete(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         263  +
        let mut v = self.keys_to_delete.unwrap_or_default();
         264  +
        v.push(input.into());
         265  +
        self.keys_to_delete = ::std::option::Option::Some(v);
         266  +
        self
         267  +
    }
         268  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         269  +
    pub fn set_keys_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         270  +
        self.keys_to_delete = input;
         271  +
        self
         272  +
    }
         273  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         274  +
    pub fn get_keys_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         275  +
        &self.keys_to_delete
         276  +
    }
         277  +
    /// Consumes the builder and constructs a [`UpdateOpsMetadataInput`](crate::operation::update_ops_metadata::UpdateOpsMetadataInput).
         278  +
    pub fn build(
         279  +
        self,
         280  +
    ) -> ::std::result::Result<crate::operation::update_ops_metadata::UpdateOpsMetadataInput, ::aws_smithy_types::error::operation::BuildError> {
         281  +
        ::std::result::Result::Ok(crate::operation::update_ops_metadata::UpdateOpsMetadataInput {
         282  +
            ops_metadata_arn: self.ops_metadata_arn,
         283  +
            metadata_to_update: self.metadata_to_update,
         284  +
            keys_to_delete: self.keys_to_delete,
         285  +
        })
         286  +
    }
         287  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/update_ops_metadata/_update_ops_metadata_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 UpdateOpsMetadataOutput {
           6  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.</p>
           7  +
    pub ops_metadata_arn: ::std::option::Option<::std::string::String>,
           8  +
    _request_id: Option<String>,
           9  +
}
          10  +
impl UpdateOpsMetadataOutput {
          11  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.</p>
          12  +
    pub fn ops_metadata_arn(&self) -> ::std::option::Option<&str> {
          13  +
        self.ops_metadata_arn.as_deref()
          14  +
    }
          15  +
}
          16  +
static UPDATEOPSMETADATAOUTPUT_MEMBER_OPS_METADATA_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          17  +
    ::aws_smithy_schema::ShapeId::from_parts(
          18  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataOutput$OpsMetadataArn",
          19  +
        "com.amazonaws.ssm.synthetic",
          20  +
        "UpdateOpsMetadataOutput",
          21  +
    ),
          22  +
    ::aws_smithy_schema::ShapeType::String,
          23  +
    "OpsMetadataArn",
          24  +
    0,
          25  +
);
          26  +
static UPDATEOPSMETADATAOUTPUT_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 UPDATEOPSMETADATAOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          34  +
    ::aws_smithy_schema::ShapeId::from_parts(
          35  +
        "com.amazonaws.ssm.synthetic#UpdateOpsMetadataOutput",
          36  +
        "com.amazonaws.ssm.synthetic",
          37  +
        "UpdateOpsMetadataOutput",
          38  +
    ),
          39  +
    ::aws_smithy_schema::ShapeType::Structure,
          40  +
    &[
          41  +
        &UPDATEOPSMETADATAOUTPUT_MEMBER_OPS_METADATA_ARN,
          42  +
        &UPDATEOPSMETADATAOUTPUT_MEMBER__REQUEST_ID,
          43  +
    ],
          44  +
)
          45  +
.with_original_name("UpdateOpsMetadataResult");
          46  +
impl UpdateOpsMetadataOutput {
          47  +
    /// The schema for this shape.
          48  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEOPSMETADATAOUTPUT_SCHEMA;
          49  +
}
          50  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateOpsMetadataOutput {
          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.ops_metadata_arn {
          57  +
            ser.write_string(&UPDATEOPSMETADATAOUTPUT_MEMBER_OPS_METADATA_ARN, val)?;
          58  +
        }
          59  +
        Ok(())
          60  +
    }
          61  +
}
          62  +
impl UpdateOpsMetadataOutput {
          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(&UPDATEOPSMETADATAOUTPUT_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.ops_metadata_arn = Some(deser.read_string(member)?);
          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 UpdateOpsMetadataOutput {
          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(&UPDATEOPSMETADATAOUTPUT_SCHEMA, &mut |member, deser| {
         119  +
            match member.member_index() {
         120  +
                Some(0) => {
         121  +
                    builder.ops_metadata_arn = Some(deser.read_string(member)?);
         122  +
                }
         123  +
                _ => {}
         124  +
            }
         125  +
            Ok(())
         126  +
        })?;
         127  +
        Ok(builder.build())
         128  +
    }
         129  +
}
         130  +
impl ::aws_types::request_id::RequestId for UpdateOpsMetadataOutput {
         131  +
    fn request_id(&self) -> Option<&str> {
         132  +
        self._request_id.as_deref()
         133  +
    }
         134  +
}
         135  +
impl UpdateOpsMetadataOutput {
         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 UpdateOpsMetadataOutput {
         142  +
    /// Creates a new builder-style object to manufacture [`UpdateOpsMetadataOutput`](crate::operation::update_ops_metadata::UpdateOpsMetadataOutput).
         143  +
    pub fn builder() -> crate::operation::update_ops_metadata::builders::UpdateOpsMetadataOutputBuilder {
         144  +
        crate::operation::update_ops_metadata::builders::UpdateOpsMetadataOutputBuilder::default()
         145  +
    }
         146  +
}
         147  +
         148  +
/// A builder for [`UpdateOpsMetadataOutput`](crate::operation::update_ops_metadata::UpdateOpsMetadataOutput).
         149  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         150  +
#[non_exhaustive]
         151  +
pub struct UpdateOpsMetadataOutputBuilder {
         152  +
    pub(crate) ops_metadata_arn: ::std::option::Option<::std::string::String>,
         153  +
    _request_id: Option<String>,
         154  +
}
         155  +
impl UpdateOpsMetadataOutputBuilder {
         156  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.</p>
         157  +
    pub fn ops_metadata_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         158  +
        self.ops_metadata_arn = ::std::option::Option::Some(input.into());
         159  +
        self
         160  +
    }
         161  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.</p>
         162  +
    pub fn set_ops_metadata_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         163  +
        self.ops_metadata_arn = input;
         164  +
        self
         165  +
    }
         166  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.</p>
         167  +
    pub fn get_ops_metadata_arn(&self) -> &::std::option::Option<::std::string::String> {
         168  +
        &self.ops_metadata_arn
         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 [`UpdateOpsMetadataOutput`](crate::operation::update_ops_metadata::UpdateOpsMetadataOutput).
         180  +
    pub fn build(self) -> crate::operation::update_ops_metadata::UpdateOpsMetadataOutput {
         181  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataOutput {
         182  +
            ops_metadata_arn: self.ops_metadata_arn,
         183  +
            _request_id: self._request_id,
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,166 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::update_ops_metadata::_update_ops_metadata_input::UpdateOpsMetadataInputBuilder;
           3  +
           4  +
pub use crate::operation::update_ops_metadata::_update_ops_metadata_output::UpdateOpsMetadataOutputBuilder;
           5  +
           6  +
impl crate::operation::update_ops_metadata::builders::UpdateOpsMetadataInputBuilder {
           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_ops_metadata::UpdateOpsMetadataOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::update_ops_metadata::UpdateOpsMetadataError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.update_ops_metadata();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UpdateOpsMetadata`.
          24  +
///
          25  +
/// <p>Amazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct UpdateOpsMetadataFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::update_ops_metadata::builders::UpdateOpsMetadataInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataOutput,
          35  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataError,
          36  +
    > for UpdateOpsMetadataFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::update_ops_metadata::UpdateOpsMetadataOutput,
          44  +
            crate::operation::update_ops_metadata::UpdateOpsMetadataError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl UpdateOpsMetadataFluentBuilder {
          51  +
    /// Creates a new `UpdateOpsMetadataFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the UpdateOpsMetadata as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::update_ops_metadata::builders::UpdateOpsMetadataInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::update_ops_metadata::UpdateOpsMetadataError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::update_ops_metadata::UpdateOpsMetadata::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::update_ops_metadata::UpdateOpsMetadata::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataOutput,
          97  +
        crate::operation::update_ops_metadata::UpdateOpsMetadataError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         112  +
    pub fn ops_metadata_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.ops_metadata_arn(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         117  +
    pub fn set_ops_metadata_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_ops_metadata_arn(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object to update.</p>
         122  +
    pub fn get_ops_metadata_arn(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_ops_metadata_arn()
         124  +
    }
         125  +
    ///
         126  +
    /// Adds a key-value pair to `MetadataToUpdate`.
         127  +
    ///
         128  +
    /// To override the contents of this collection use [`set_metadata_to_update`](Self::set_metadata_to_update).
         129  +
    ///
         130  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         131  +
    pub fn metadata_to_update(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::MetadataValue) -> Self {
         132  +
        self.inner = self.inner.metadata_to_update(k.into(), v);
         133  +
        self
         134  +
    }
         135  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         136  +
    pub fn set_metadata_to_update(
         137  +
        mut self,
         138  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>>,
         139  +
    ) -> Self {
         140  +
        self.inner = self.inner.set_metadata_to_update(input);
         141  +
        self
         142  +
    }
         143  +
    /// <p>Metadata to add to an OpsMetadata object.</p>
         144  +
    pub fn get_metadata_to_update(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MetadataValue>> {
         145  +
        self.inner.get_metadata_to_update()
         146  +
    }
         147  +
    ///
         148  +
    /// Appends an item to `KeysToDelete`.
         149  +
    ///
         150  +
    /// To override the contents of this collection use [`set_keys_to_delete`](Self::set_keys_to_delete).
         151  +
    ///
         152  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         153  +
    pub fn keys_to_delete(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         154  +
        self.inner = self.inner.keys_to_delete(input.into());
         155  +
        self
         156  +
    }
         157  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         158  +
    pub fn set_keys_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         159  +
        self.inner = self.inner.set_keys_to_delete(input);
         160  +
        self
         161  +
    }
         162  +
    /// <p>The metadata keys to delete from the OpsMetadata object.</p>
         163  +
    pub fn get_keys_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         164  +
        self.inner.get_keys_to_delete()
         165  +
    }
         166  +
}

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

@@ -0,1 +0,573 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `UpdatePatchBaseline`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct UpdatePatchBaseline;
           6  +
impl UpdatePatchBaseline {
           7  +
    /// Creates a new `UpdatePatchBaseline`
           8  +
    pub fn new() -> Self {
           9  +
        Self
          10  +
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::update_patch_baseline::UpdatePatchBaselineInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          15  +
        crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::SCHEMA;
          16  +
    pub(crate) async fn orchestrate(
          17  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          18  +
        input: crate::operation::update_patch_baseline::UpdatePatchBaselineInput,
          19  +
    ) -> ::std::result::Result<
          20  +
        crate::operation::update_patch_baseline::UpdatePatchBaselineOutput,
          21  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          22  +
            crate::operation::update_patch_baseline::UpdatePatchBaselineError,
          23  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          24  +
        >,
          25  +
    > {
          26  +
        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
          27  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          28  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          29  +
        >| {
          30  +
            err.map_service_error(|err| {
          31  +
                err.downcast::<crate::operation::update_patch_baseline::UpdatePatchBaselineError>()
          32  +
                    .expect("correct error type")
          33  +
            })
          34  +
        };
          35  +
        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
          36  +
            .await
          37  +
            .map_err(map_err)?;
          38  +
        let output = context.finalize().map_err(map_err)?;
          39  +
        ::std::result::Result::Ok(
          40  +
            output
          41  +
                .downcast::<crate::operation::update_patch_baseline::UpdatePatchBaselineOutput>()
          42  +
                .expect("correct output type"),
          43  +
        )
          44  +
    }
          45  +
          46  +
    pub(crate) async fn orchestrate_with_stop_point(
          47  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          48  +
        input: crate::operation::update_patch_baseline::UpdatePatchBaselineInput,
          49  +
        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
          50  +
    ) -> ::std::result::Result<
          51  +
        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
          52  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          53  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          54  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          55  +
        >,
          56  +
    > {
          57  +
        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
          58  +
        use ::tracing::Instrument;
          59  +
        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("SSM", "UpdatePatchBaseline", input, runtime_plugins, stop_point)
          60  +
            // Create a parent span for the entire operation. Includes a random, internal-only,
          61  +
            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
          62  +
            .instrument(::tracing::debug_span!(
          63  +
                "SSM.UpdatePatchBaseline",
          64  +
                "rpc.service" = "SSM",
          65  +
                "rpc.method" = "UpdatePatchBaseline",
          66  +
                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
          67  +
                "rpc.system" = "aws-api",
          68  +
            ))
          69  +
            .await
          70  +
    }
          71  +
          72  +
    pub(crate) fn operation_runtime_plugins(
          73  +
        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          74  +
        client_config: &crate::config::Config,
          75  +
        config_override: ::std::option::Option<crate::config::Builder>,
          76  +
    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
          77  +
        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
          78  +
          79  +
        if let ::std::option::Option::Some(config_override) = config_override {
          80  +
            for plugin in config_override.runtime_plugins.iter().cloned() {
          81  +
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
          82  +
            }
          83  +
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
          84  +
                config_override,
          85  +
                client_config.config.clone(),
          86  +
                &client_config.runtime_components,
          87  +
            ));
          88  +
        }
          89  +
        runtime_plugins
          90  +
    }
          91  +
}
          92  +
/// Per-operation error registry. Contains an entry for every modeled
          93  +
/// error this operation can throw.
          94  +
///
          95  +
/// Used by the schema-serde error path as the operation-scoped lookup
          96  +
/// for registry-backed error reification: an error code that does not
          97  +
/// match one of the operation's modeled errors directly is resolved
          98  +
/// against this registry first, then widened to the service-wide error
          99  +
/// registry.
         100  +
pub(crate) mod error_registry {
         101  +
    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
         102  +
        ::aws_smithy_schema::registry::TypeRegistry::builder()
         103  +
                            .insert_error_shape(
         104  +
                        crate::types::error::DoesNotExistException::SCHEMA,
         105  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         106  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::DoesNotExistException::deserialize(d)?))
         107  +
                        },
         108  +
                        |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> {
         109  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::DoesNotExistException::deserialize(d)?))
         110  +
                        },
         111  +
                    )
         112  +
.insert_error_shape(
         113  +
                        crate::types::error::InternalServerError::SCHEMA,
         114  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         115  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServerError::deserialize(d)?))
         116  +
                        },
         117  +
                        |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> {
         118  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServerError::deserialize(d)?))
         119  +
                        },
         120  +
                    )
         121  +
                            .build()
         122  +
    });
         123  +
}
         124  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdatePatchBaseline {
         125  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         126  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdatePatchBaseline");
         127  +
         128  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         129  +
            UpdatePatchBaselineRequestSerializer,
         130  +
        ));
         131  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         132  +
            UpdatePatchBaselineResponseDeserializer,
         133  +
        ));
         134  +
         135  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         136  +
            crate::config::auth::Params::builder()
         137  +
                .operation_name("UpdatePatchBaseline")
         138  +
                .build()
         139  +
                .expect("required fields set"),
         140  +
        ));
         141  +
         142  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
         143  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         144  +
            "UpdatePatchBaseline",
         145  +
            "SSM",
         146  +
        ));
         147  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         148  +
        signing_options.double_uri_encode = true;
         149  +
        signing_options.content_sha256_header = false;
         150  +
        signing_options.normalize_uri_path = true;
         151  +
        signing_options.payload_override = None;
         152  +
         153  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         154  +
            signing_options,
         155  +
            ..::std::default::Default::default()
         156  +
        });
         157  +
         158  +
        ::std::option::Option::Some(cfg.freeze())
         159  +
    }
         160  +
         161  +
    fn runtime_components(
         162  +
        &self,
         163  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         164  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         165  +
        #[allow(unused_mut)]
         166  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdatePatchBaseline")
         167  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         168  +
                UpdatePatchBaselineTelemetryInputCaptureInterceptor,
         169  +
            ))
         170  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         171  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         172  +
            ))
         173  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         174  +
                UpdatePatchBaselineEndpointParamsInterceptor,
         175  +
            ))
         176  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         177  +
                crate::operation::update_patch_baseline::UpdatePatchBaselineError,
         178  +
            >::new())
         179  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         180  +
                crate::operation::update_patch_baseline::UpdatePatchBaselineError,
         181  +
            >::new())
         182  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         183  +
                crate::operation::update_patch_baseline::UpdatePatchBaselineError,
         184  +
            >::new())
         185  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         186  +
                crate::operation::update_patch_baseline::UpdatePatchBaselineError,
         187  +
            >::new());
         188  +
         189  +
        ::std::borrow::Cow::Owned(rcb)
         190  +
    }
         191  +
}
         192  +
         193  +
#[derive(Debug)]
         194  +
struct UpdatePatchBaselineTelemetryInputCaptureInterceptor;
         195  +
         196  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         197  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdatePatchBaselineTelemetryInputCaptureInterceptor {
         198  +
    fn name(&self) -> &'static str {
         199  +
        "UpdatePatchBaselineTelemetryInputCaptureInterceptor"
         200  +
    }
         201  +
         202  +
    fn read_before_execution(
         203  +
        &self,
         204  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         205  +
            '_,
         206  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         207  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         208  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         209  +
        >,
         210  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         211  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         212  +
        // Nothing to do unless the customer opted in by naming members to record.
         213  +
        let ::std::option::Option::Some(requested) = cfg
         214  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         215  +
            .filter(|r| !r.is_empty())
         216  +
        else {
         217  +
            return ::std::result::Result::Ok(());
         218  +
        };
         219  +
         220  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdatePatchBaselineInput>() else {
         221  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         222  +
            return ::std::result::Result::Ok(());
         223  +
        };
         224  +
         225  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         226  +
        if requested.should_capture("BaselineId") {
         227  +
            if let ::std::option::Option::Some(value) = input.baseline_id.as_deref() {
         228  +
                captured.insert("BaselineId", value);
         229  +
            }
         230  +
        }
         231  +
        if requested.should_capture("Name") {
         232  +
            if let ::std::option::Option::Some(value) = input.name.as_deref() {
         233  +
                captured.insert("Name", value);
         234  +
            }
         235  +
        }
         236  +
        if requested.should_capture("Description") {
         237  +
            if let ::std::option::Option::Some(value) = input.description.as_deref() {
         238  +
                captured.insert("Description", value);
         239  +
            }
         240  +
        }
         241  +
         242  +
        cfg.interceptor_state().store_put(captured);
         243  +
        ::std::result::Result::Ok(())
         244  +
    }
         245  +
}
         246  +
#[derive(Debug)]
         247  +
struct UpdatePatchBaselineResponseDeserializer;
         248  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdatePatchBaselineResponseDeserializer {
         249  +
    fn deserialize_nonstreaming_with_config(
         250  +
        &self,
         251  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         252  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         253  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         254  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         255  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         256  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         257  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         258  +
        // loads `body` before firing this hook.
         259  +
        let body = response.body().bytes().expect("body loaded");
         260  +
        let headers = response.headers();
         261  +
        #[allow(unused_mut)]
         262  +
        let mut force_error = false;
         263  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         264  +
        if !success && status != 200 || force_error {
         265  +
            let protocol = _cfg
         266  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         267  +
                .expect("a SharedClientProtocol is required");
         268  +
            #[allow(unused_mut)]
         269  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         270  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         271  +
            })?;
         272  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         273  +
            let generic = generic_builder.build();
         274  +
            let error_code = match generic.code() {
         275  +
                ::std::option::Option::Some(code) => code,
         276  +
                ::std::option::Option::None => {
         277  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         279  +
                            crate::operation::update_patch_baseline::UpdatePatchBaselineError::unhandled(generic),
         280  +
                        ),
         281  +
                    ))
         282  +
                }
         283  +
            };
         284  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         285  +
            let err = match error_code {
         286  +
                "DoesNotExistException" => crate::operation::update_patch_baseline::UpdatePatchBaselineError::DoesNotExistException({
         287  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         288  +
                        crate::types::error::DoesNotExistException::deserialize_with_response(
         289  +
                            &mut *deser,
         290  +
                            response.headers(),
         291  +
                            response.status().into(),
         292  +
                            body,
         293  +
                        )
         294  +
                    }) {
         295  +
                        ::std::result::Result::Ok(val) => val,
         296  +
                        ::std::result::Result::Err(e) => {
         297  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         298  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         299  +
                            ))
         300  +
                        }
         301  +
                    };
         302  +
                    tmp.meta = generic;
         303  +
                    if tmp.message.is_none() {
         304  +
                        tmp.message = _error_message;
         305  +
                    }
         306  +
                    tmp
         307  +
                }),
         308  +
                "InternalServerError" => crate::operation::update_patch_baseline::UpdatePatchBaselineError::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  +
                _ => {
         331  +
                    // Registry-backed, operation-scoped reification of an error whose
         332  +
                    // code this operation does not model directly: the operation's own
         333  +
                    // error registry is consulted first, then the lookup widens to the
         334  +
                    // service-wide error registry. On a hit, the reified error is attached
         335  +
                    // as the source of the returned unhandled error while its metadata
         336  +
                    // (code, message, request id) is preserved; on a miss the generic
         337  +
                    // error is returned unchanged.
         338  +
                    match protocol
         339  +
                        .deserialize_error_response(response, _cfg)
         340  +
                        .ok()
         341  +
                        .and_then(|mut deser| {
         342  +
                            ::aws_smithy_schema::registry::reify_error(
         343  +
                                crate::operation::update_patch_baseline::error_registry::REGISTRY
         344  +
                                    .or(&crate::error_type_registry::REGISTRY),
         345  +
                                error_code,
         346  +
                                &mut *deser,
         347  +
                            )
         348  +
                        }) {
         349  +
                        ::std::option::Option::Some(source) => <crate::operation::update_patch_baseline::UpdatePatchBaselineError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         350  +
                        ::std::option::Option::None => crate::operation::update_patch_baseline::UpdatePatchBaselineError::generic(generic),
         351  +
                    }
         352  +
                }
         353  +
            };
         354  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         355  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         356  +
            ))
         357  +
        } else {
         358  +
            let protocol = _cfg
         359  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         360  +
                .expect("a SharedClientProtocol is required");
         361  +
            let mut deser = protocol
         362  +
                .deserialize_response(response, UpdatePatchBaseline::OUTPUT_SCHEMA, _cfg)
         363  +
                .map_err(|e| {
         364  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         365  +
                })?;
         366  +
            // body and headers are already in scope from the top of the function;
         367  +
            // alias `headers` as `_response_headers` so MutateOutput
         368  +
            // customizations have a stable name to read from.
         369  +
            let _response_headers = headers;
         370  +
            #[allow(unused_mut)]
         371  +
            let mut output = crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::deserialize_with_response(
         372  +
                &mut *deser,
         373  +
                _response_headers,
         374  +
                response.status().into(),
         375  +
                body,
         376  +
            )
         377  +
            .map_err(|e| {
         378  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         379  +
            })?;
         380  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         381  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         382  +
        }
         383  +
    }
         384  +
}
         385  +
#[derive(Debug)]
         386  +
struct UpdatePatchBaselineRequestSerializer;
         387  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdatePatchBaselineRequestSerializer {
         388  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         389  +
    fn serialize_input(
         390  +
        &self,
         391  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         392  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         393  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         394  +
        let input = input
         395  +
            .downcast::<crate::operation::update_patch_baseline::UpdatePatchBaselineInput>()
         396  +
            .expect("correct type");
         397  +
         398  +
        let protocol = _cfg
         399  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         400  +
            .expect("a SharedClientProtocol is required");
         401  +
        let mut request = protocol
         402  +
            .serialize_request(&input, UpdatePatchBaseline::INPUT_SCHEMA, "/", _cfg)
         403  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         404  +
         405  +
        return ::std::result::Result::Ok(request);
         406  +
    }
         407  +
}
         408  +
#[derive(Debug)]
         409  +
struct UpdatePatchBaselineEndpointParamsInterceptor;
         410  +
         411  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         412  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdatePatchBaselineEndpointParamsInterceptor {
         413  +
    fn name(&self) -> &'static str {
         414  +
        "UpdatePatchBaselineEndpointParamsInterceptor"
         415  +
    }
         416  +
         417  +
    fn read_before_execution(
         418  +
        &self,
         419  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         420  +
            '_,
         421  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         422  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         423  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         424  +
        >,
         425  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         426  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         427  +
        let _input = context
         428  +
            .input()
         429  +
            .downcast_ref::<UpdatePatchBaselineInput>()
         430  +
            .ok_or("failed to downcast to UpdatePatchBaselineInput")?;
         431  +
         432  +
        let params = crate::config::endpoint::Params::builder()
         433  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         434  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         435  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         436  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         437  +
            .build()
         438  +
            .map_err(|err| {
         439  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         440  +
            })?;
         441  +
        cfg.interceptor_state()
         442  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         443  +
        ::std::result::Result::Ok(())
         444  +
    }
         445  +
}
         446  +
         447  +
// The get_* functions below are generated from JMESPath expressions in the
         448  +
// operationContextParams trait. They target the operation's input shape.
         449  +
         450  +
/// Error type for the `UpdatePatchBaselineError` operation.
         451  +
#[non_exhaustive]
         452  +
#[derive(::std::fmt::Debug)]
         453  +
pub enum UpdatePatchBaselineError {
         454  +
    /// <p>Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.</p>
         455  +
    /// <p>For information about resource quotas in Amazon Web Services Systems Manager, see <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm">Systems Manager service quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
         456  +
    DoesNotExistException(crate::types::error::DoesNotExistException),
         457  +
    /// <p>An error occurred on the server side.</p>
         458  +
    InternalServerError(crate::types::error::InternalServerError),
         459  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         460  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         461  +
    variable wildcard pattern and check `.code()`:
         462  +
     \
         463  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         464  +
     \
         465  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdatePatchBaselineError) for what information is available for the error.")]
         466  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         467  +
}
         468  +
impl UpdatePatchBaselineError {
         469  +
    /// Creates the `UpdatePatchBaselineError::Unhandled` variant from any error type.
         470  +
    pub fn unhandled(
         471  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         472  +
    ) -> Self {
         473  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         474  +
            source: err.into(),
         475  +
            meta: ::std::default::Default::default(),
         476  +
        })
         477  +
    }
         478  +
         479  +
    /// Creates the `UpdatePatchBaselineError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         480  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         481  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         482  +
            source: err.clone().into(),
         483  +
            meta: err,
         484  +
        })
         485  +
    }
         486  +
    ///
         487  +
    /// Returns error metadata, which includes the error code, message,
         488  +
    /// request ID, and potentially additional information.
         489  +
    ///
         490  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         491  +
        match self {
         492  +
            Self::DoesNotExistException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         493  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         494  +
            Self::Unhandled(e) => &e.meta,
         495  +
        }
         496  +
    }
         497  +
    /// Returns `true` if the error kind is `UpdatePatchBaselineError::DoesNotExistException`.
         498  +
    pub fn is_does_not_exist_exception(&self) -> bool {
         499  +
        matches!(self, Self::DoesNotExistException(_))
         500  +
    }
         501  +
    /// Returns `true` if the error kind is `UpdatePatchBaselineError::InternalServerError`.
         502  +
    pub fn is_internal_server_error(&self) -> bool {
         503  +
        matches!(self, Self::InternalServerError(_))
         504  +
    }
         505  +
}
         506  +
impl ::std::error::Error for UpdatePatchBaselineError {
         507  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         508  +
        match self {
         509  +
            Self::DoesNotExistException(_inner) => ::std::option::Option::Some(_inner),
         510  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         511  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         512  +
        }
         513  +
    }
         514  +
}
         515  +
impl ::std::fmt::Display for UpdatePatchBaselineError {
         516  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         517  +
        match self {
         518  +
            Self::DoesNotExistException(_inner) => _inner.fmt(f),
         519  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         520  +
            Self::Unhandled(_inner) => {
         521  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         522  +
                    write!(f, "unhandled error ({code})")
         523  +
                } else {
         524  +
                    f.write_str("unhandled error")
         525  +
                }
         526  +
            }
         527  +
        }
         528  +
    }
         529  +
}
         530  +
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdatePatchBaselineError {
         531  +
    fn code(&self) -> ::std::option::Option<&str> {
         532  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         533  +
    }
         534  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         535  +
        ::std::option::Option::None
         536  +
    }
         537  +
}
         538  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdatePatchBaselineError {
         539  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         540  +
        match self {
         541  +
            Self::DoesNotExistException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         542  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         543  +
            Self::Unhandled(_inner) => &_inner.meta,
         544  +
        }
         545  +
    }
         546  +
}
         547  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdatePatchBaselineError {
         548  +
    fn create_unhandled_error(
         549  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         550  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         551  +
    ) -> Self {
         552  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         553  +
            source,
         554  +
            meta: meta.unwrap_or_default(),
         555  +
        })
         556  +
    }
         557  +
}
         558  +
impl ::aws_types::request_id::RequestId for crate::operation::update_patch_baseline::UpdatePatchBaselineError {
         559  +
    fn request_id(&self) -> Option<&str> {
         560  +
        self.meta().request_id()
         561  +
    }
         562  +
}
         563  +
         564  +
pub use crate::operation::update_patch_baseline::_update_patch_baseline_input::UpdatePatchBaselineInput;
         565  +
         566  +
pub use crate::operation::update_patch_baseline::_update_patch_baseline_output::UpdatePatchBaselineOutput;
         567  +
         568  +
mod _update_patch_baseline_input;
         569  +
         570  +
mod _update_patch_baseline_output;
         571  +
         572  +
/// Builders
         573  +
pub mod builders;