AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578

Files changed:

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

@@ -0,1 +0,297 @@
           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 RemoveTagsFromResourceInput {
           6  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
           7  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
           8  +
    /// </note>
           9  +
    pub resource_type: ::std::option::Option<crate::types::ResourceTypeForTagging>,
          10  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
          11  +
    /// <p>ManagedInstance: mi-012345abcde</p>
          12  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
          13  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
          14  +
    /// <p>PatchBaseline: pb-012345abcde</p>
          15  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
          16  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
          17  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
          18  +
    /// </note>
          19  +
    pub resource_id: ::std::option::Option<::std::string::String>,
          20  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
          21  +
    pub tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          22  +
}
          23  +
impl RemoveTagsFromResourceInput {
          24  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
          25  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
          26  +
    /// </note>
          27  +
    pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceTypeForTagging> {
          28  +
        self.resource_type.as_ref()
          29  +
    }
          30  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
          31  +
    /// <p>ManagedInstance: mi-012345abcde</p>
          32  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
          33  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
          34  +
    /// <p>PatchBaseline: pb-012345abcde</p>
          35  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
          36  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
          37  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
          38  +
    /// </note>
          39  +
    pub fn resource_id(&self) -> ::std::option::Option<&str> {
          40  +
        self.resource_id.as_deref()
          41  +
    }
          42  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
          43  +
    ///
          44  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tag_keys.is_none()`.
          45  +
    pub fn tag_keys(&self) -> &[::std::string::String] {
          46  +
        self.tag_keys.as_deref().unwrap_or_default()
          47  +
    }
          48  +
}
          49  +
static REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_parts(
          51  +
        "com.amazonaws.ssm.synthetic#RemoveTagsFromResourceInput$ResourceType",
          52  +
        "com.amazonaws.ssm.synthetic",
          53  +
        "RemoveTagsFromResourceInput",
          54  +
    ),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "ResourceType",
          57  +
    0,
          58  +
);
          59  +
static REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          60  +
    ::aws_smithy_schema::ShapeId::from_parts(
          61  +
        "com.amazonaws.ssm.synthetic#RemoveTagsFromResourceInput$ResourceId",
          62  +
        "com.amazonaws.ssm.synthetic",
          63  +
        "RemoveTagsFromResourceInput",
          64  +
    ),
          65  +
    ::aws_smithy_schema::ShapeType::String,
          66  +
    "ResourceId",
          67  +
    1,
          68  +
);
          69  +
static REMOVETAGSFROMRESOURCEINPUT_MEMBER_TAG_KEYS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          70  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#KeyList$member", "com.amazonaws.ssm", "KeyList"),
          71  +
    ::aws_smithy_schema::ShapeType::String,
          72  +
    "member",
          73  +
    0,
          74  +
);
          75  +
static REMOVETAGSFROMRESOURCEINPUT_MEMBER_TAG_KEYS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          76  +
    ::aws_smithy_schema::ShapeId::from_parts(
          77  +
        "com.amazonaws.ssm.synthetic#RemoveTagsFromResourceInput$TagKeys",
          78  +
        "com.amazonaws.ssm.synthetic",
          79  +
        "RemoveTagsFromResourceInput",
          80  +
    ),
          81  +
    ::aws_smithy_schema::ShapeType::List,
          82  +
    "TagKeys",
          83  +
    2,
          84  +
)
          85  +
.with_list_member(&REMOVETAGSFROMRESOURCEINPUT_MEMBER_TAG_KEYS_MEMBER);
          86  +
static REMOVETAGSFROMRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          87  +
    ::aws_smithy_schema::ShapeId::from_parts(
          88  +
        "com.amazonaws.ssm.synthetic#RemoveTagsFromResourceInput",
          89  +
        "com.amazonaws.ssm.synthetic",
          90  +
        "RemoveTagsFromResourceInput",
          91  +
    ),
          92  +
    ::aws_smithy_schema::ShapeType::Structure,
          93  +
    &[
          94  +
        &REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_TYPE,
          95  +
        &REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_ID,
          96  +
        &REMOVETAGSFROMRESOURCEINPUT_MEMBER_TAG_KEYS,
          97  +
    ],
          98  +
)
          99  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         100  +
.with_original_name("RemoveTagsFromResourceRequest");
         101  +
impl RemoveTagsFromResourceInput {
         102  +
    /// The schema for this shape.
         103  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &REMOVETAGSFROMRESOURCEINPUT_SCHEMA;
         104  +
}
         105  +
impl ::aws_smithy_schema::serde::SerializableStruct for RemoveTagsFromResourceInput {
         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.resource_type {
         112  +
            ser.write_string(&REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_TYPE, val.as_str())?;
         113  +
        }
         114  +
        if let Some(ref val) = self.resource_id {
         115  +
            ser.write_string(&REMOVETAGSFROMRESOURCEINPUT_MEMBER_RESOURCE_ID, val)?;
         116  +
        }
         117  +
        if let Some(ref val) = self.tag_keys {
         118  +
            ser.write_list(
         119  +
                &REMOVETAGSFROMRESOURCEINPUT_MEMBER_TAG_KEYS,
         120  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         121  +
                    for item in val {
         122  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
         123  +
                    }
         124  +
                    Ok(())
         125  +
                },
         126  +
            )?;
         127  +
        }
         128  +
        Ok(())
         129  +
    }
         130  +
}
         131  +
impl RemoveTagsFromResourceInput {
         132  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         133  +
    pub fn deserialize(
         134  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         135  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         136  +
        #[allow(unused_variables, unused_mut)]
         137  +
        let mut builder = Self::builder();
         138  +
        #[allow(
         139  +
            unused_variables,
         140  +
            unreachable_code,
         141  +
            clippy::single_match,
         142  +
            clippy::match_single_binding,
         143  +
            clippy::diverging_sub_expression
         144  +
        )]
         145  +
        deserializer.read_struct(&REMOVETAGSFROMRESOURCEINPUT_SCHEMA, &mut |member, deser| {
         146  +
            match member.member_index() {
         147  +
                Some(0) => {
         148  +
                    if deser.is_null() {
         149  +
                        deser.read_null()?;
         150  +
                    } else {
         151  +
                        builder.resource_type = Some(crate::types::ResourceTypeForTagging::from(deser.read_string(member)?.as_str()));
         152  +
                    }
         153  +
                }
         154  +
                Some(1) => {
         155  +
                    if deser.is_null() {
         156  +
                        deser.read_null()?;
         157  +
                    } else {
         158  +
                        builder.resource_id = Some(deser.read_string(member)?);
         159  +
                    }
         160  +
                }
         161  +
                Some(2) => {
         162  +
                    if deser.is_null() {
         163  +
                        deser.read_null()?;
         164  +
                    } else {
         165  +
                        builder.tag_keys = Some(deser.read_string_list(member)?);
         166  +
                    }
         167  +
                }
         168  +
                _ => {}
         169  +
            }
         170  +
            Ok(())
         171  +
        })?;
         172  +
        builder.resource_id = builder.resource_id.or(Some(String::new()));
         173  +
        builder.tag_keys = builder.tag_keys.or(Some(Vec::new()));
         174  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         175  +
    }
         176  +
}
         177  +
impl RemoveTagsFromResourceInput {
         178  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         179  +
    pub fn deserialize_with_response(
         180  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         181  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         182  +
        _status: u16,
         183  +
        _body: &[u8],
         184  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         185  +
        Self::deserialize(deserializer)
         186  +
    }
         187  +
}
         188  +
impl RemoveTagsFromResourceInput {
         189  +
    /// Creates a new builder-style object to manufacture [`RemoveTagsFromResourceInput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceInput).
         190  +
    pub fn builder() -> crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceInputBuilder {
         191  +
        crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceInputBuilder::default()
         192  +
    }
         193  +
}
         194  +
         195  +
/// A builder for [`RemoveTagsFromResourceInput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceInput).
         196  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         197  +
#[non_exhaustive]
         198  +
pub struct RemoveTagsFromResourceInputBuilder {
         199  +
    pub(crate) resource_type: ::std::option::Option<crate::types::ResourceTypeForTagging>,
         200  +
    pub(crate) resource_id: ::std::option::Option<::std::string::String>,
         201  +
    pub(crate) tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         202  +
}
         203  +
impl RemoveTagsFromResourceInputBuilder {
         204  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
         205  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         206  +
    /// </note>
         207  +
    /// This field is required.
         208  +
    pub fn resource_type(mut self, input: crate::types::ResourceTypeForTagging) -> Self {
         209  +
        self.resource_type = ::std::option::Option::Some(input);
         210  +
        self
         211  +
    }
         212  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
         213  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         214  +
    /// </note>
         215  +
    pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceTypeForTagging>) -> Self {
         216  +
        self.resource_type = input;
         217  +
        self
         218  +
    }
         219  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
         220  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         221  +
    /// </note>
         222  +
    pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::ResourceTypeForTagging> {
         223  +
        &self.resource_type
         224  +
    }
         225  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         226  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         227  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         228  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         229  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         230  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         231  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         232  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         233  +
    /// </note>
         234  +
    /// This field is required.
         235  +
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         236  +
        self.resource_id = ::std::option::Option::Some(input.into());
         237  +
        self
         238  +
    }
         239  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         240  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         241  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         242  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         243  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         244  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         245  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         246  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         247  +
    /// </note>
         248  +
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         249  +
        self.resource_id = input;
         250  +
        self
         251  +
    }
         252  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         253  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         254  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         255  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         256  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         257  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         258  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         259  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         260  +
    /// </note>
         261  +
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
         262  +
        &self.resource_id
         263  +
    }
         264  +
    /// Appends an item to `tag_keys`.
         265  +
    ///
         266  +
    /// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
         267  +
    ///
         268  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         269  +
    pub fn tag_keys(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         270  +
        let mut v = self.tag_keys.unwrap_or_default();
         271  +
        v.push(input.into());
         272  +
        self.tag_keys = ::std::option::Option::Some(v);
         273  +
        self
         274  +
    }
         275  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         276  +
    pub fn set_tag_keys(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         277  +
        self.tag_keys = input;
         278  +
        self
         279  +
    }
         280  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         281  +
    pub fn get_tag_keys(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         282  +
        &self.tag_keys
         283  +
    }
         284  +
    /// Consumes the builder and constructs a [`RemoveTagsFromResourceInput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceInput).
         285  +
    pub fn build(
         286  +
        self,
         287  +
    ) -> ::std::result::Result<
         288  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResourceInput,
         289  +
        ::aws_smithy_types::error::operation::BuildError,
         290  +
    > {
         291  +
        ::std::result::Result::Ok(crate::operation::remove_tags_from_resource::RemoveTagsFromResourceInput {
         292  +
            resource_type: self.resource_type,
         293  +
            resource_id: self.resource_id,
         294  +
            tag_keys: self.tag_keys,
         295  +
        })
         296  +
    }
         297  +
}

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

@@ -0,1 +0,122 @@
           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 RemoveTagsFromResourceOutput {
           6  +
    _request_id: Option<String>,
           7  +
}
           8  +
static REMOVETAGSFROMRESOURCEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
           9  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          10  +
    ::aws_smithy_schema::ShapeType::String,
          11  +
    "request_id",
          12  +
    0,
          13  +
)
          14  +
.with_http_header("x-amzn-requestid");
          15  +
static REMOVETAGSFROMRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          16  +
    ::aws_smithy_schema::ShapeId::from_parts(
          17  +
        "com.amazonaws.ssm.synthetic#RemoveTagsFromResourceOutput",
          18  +
        "com.amazonaws.ssm.synthetic",
          19  +
        "RemoveTagsFromResourceOutput",
          20  +
    ),
          21  +
    ::aws_smithy_schema::ShapeType::Structure,
          22  +
    &[&REMOVETAGSFROMRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          23  +
)
          24  +
.with_original_name("RemoveTagsFromResourceResult");
          25  +
impl RemoveTagsFromResourceOutput {
          26  +
    /// The schema for this shape.
          27  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &REMOVETAGSFROMRESOURCEOUTPUT_SCHEMA;
          28  +
}
          29  +
impl ::aws_smithy_schema::serde::SerializableStruct for RemoveTagsFromResourceOutput {
          30  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          31  +
    fn serialize_members(
          32  +
        &self,
          33  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          34  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          35  +
        Ok(())
          36  +
    }
          37  +
}
          38  +
impl RemoveTagsFromResourceOutput {
          39  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          42  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          43  +
        #[allow(unused_variables, unused_mut)]
          44  +
        let mut builder = Self::builder();
          45  +
        #[allow(
          46  +
            unused_variables,
          47  +
            unreachable_code,
          48  +
            clippy::single_match,
          49  +
            clippy::match_single_binding,
          50  +
            clippy::diverging_sub_expression
          51  +
        )]
          52  +
        deserializer.read_struct(&REMOVETAGSFROMRESOURCEOUTPUT_SCHEMA, &mut |member, deser| {
          53  +
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
          57  +
                _ => {}
          58  +
            }
          59  +
            Ok(())
          60  +
        })?;
          61  +
        Ok(builder.build())
          62  +
    }
          63  +
}
          64  +
impl RemoveTagsFromResourceOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
          82  +
impl ::aws_types::request_id::RequestId for RemoveTagsFromResourceOutput {
          83  +
    fn request_id(&self) -> Option<&str> {
          84  +
        self._request_id.as_deref()
          85  +
    }
          86  +
}
          87  +
impl RemoveTagsFromResourceOutput {
          88  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
          89  +
        self._request_id = request_id;
          90  +
        self
          91  +
    }
          92  +
}
          93  +
impl RemoveTagsFromResourceOutput {
          94  +
    /// Creates a new builder-style object to manufacture [`RemoveTagsFromResourceOutput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput).
          95  +
    pub fn builder() -> crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceOutputBuilder {
          96  +
        crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceOutputBuilder::default()
          97  +
    }
          98  +
}
          99  +
         100  +
/// A builder for [`RemoveTagsFromResourceOutput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput).
         101  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         102  +
#[non_exhaustive]
         103  +
pub struct RemoveTagsFromResourceOutputBuilder {
         104  +
    _request_id: Option<String>,
         105  +
}
         106  +
impl RemoveTagsFromResourceOutputBuilder {
         107  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         108  +
        self._request_id = Some(request_id.into());
         109  +
        self
         110  +
    }
         111  +
         112  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         113  +
        self._request_id = request_id;
         114  +
        self
         115  +
    }
         116  +
    /// Consumes the builder and constructs a [`RemoveTagsFromResourceOutput`](crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput).
         117  +
    pub fn build(self) -> crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput {
         118  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput {
         119  +
            _request_id: self._request_id,
         120  +
        }
         121  +
    }
         122  +
}

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

@@ -0,1 +0,188 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::remove_tags_from_resource::_remove_tags_from_resource_input::RemoveTagsFromResourceInputBuilder;
           3  +
           4  +
pub use crate::operation::remove_tags_from_resource::_remove_tags_from_resource_output::RemoveTagsFromResourceOutputBuilder;
           5  +
           6  +
impl crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceInputBuilder {
           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::remove_tags_from_resource::RemoveTagsFromResourceOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.remove_tags_from_resource();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `RemoveTagsFromResource`.
          24  +
///
          25  +
/// <p>Removes tag keys from the specified resource.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct RemoveTagsFromResourceFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResourceOutput,
          35  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError,
          36  +
    > for RemoveTagsFromResourceFluentBuilder
          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::remove_tags_from_resource::RemoveTagsFromResourceOutput,
          44  +
            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl RemoveTagsFromResourceFluentBuilder {
          51  +
    /// Creates a new `RemoveTagsFromResourceFluentBuilder`.
          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 RemoveTagsFromResource as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::remove_tags_from_resource::builders::RemoveTagsFromResourceInputBuilder {
          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::remove_tags_from_resource::RemoveTagsFromResourceOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError,
          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::remove_tags_from_resource::RemoveTagsFromResource::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResource::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::remove_tags_from_resource::RemoveTagsFromResourceOutput,
          97  +
        crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError,
          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 type of resource from which you want to remove a tag.</p><note>
         112  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         113  +
    /// </note>
         114  +
    pub fn resource_type(mut self, input: crate::types::ResourceTypeForTagging) -> Self {
         115  +
        self.inner = self.inner.resource_type(input);
         116  +
        self
         117  +
    }
         118  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
         119  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         120  +
    /// </note>
         121  +
    pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceTypeForTagging>) -> Self {
         122  +
        self.inner = self.inner.set_resource_type(input);
         123  +
        self
         124  +
    }
         125  +
    /// <p>The type of resource from which you want to remove a tag.</p><note>
         126  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: <code>mi-<i>ID_number</i> </code>. For example, <code>mi-1a2b3c4d5e6f</code>.</p>
         127  +
    /// </note>
         128  +
    pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::ResourceTypeForTagging> {
         129  +
        self.inner.get_resource_type()
         130  +
    }
         131  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         132  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         133  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         134  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         135  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         136  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         137  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         138  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         139  +
    /// </note>
         140  +
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         141  +
        self.inner = self.inner.resource_id(input.into());
         142  +
        self
         143  +
    }
         144  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         145  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         146  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         147  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         148  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         149  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         150  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         151  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         152  +
    /// </note>
         153  +
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         154  +
        self.inner = self.inner.set_resource_id(input);
         155  +
        self
         156  +
    }
         157  +
    /// <p>The ID of the resource from which you want to remove tags. For example:</p>
         158  +
    /// <p>ManagedInstance: mi-012345abcde</p>
         159  +
    /// <p>MaintenanceWindow: mw-012345abcde</p>
         160  +
    /// <p><code>Automation</code>: <code>example-c160-4567-8519-012345abcde</code></p>
         161  +
    /// <p>PatchBaseline: pb-012345abcde</p>
         162  +
    /// <p>OpsMetadata object: <code>ResourceID</code> for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, <code>ResourceID</code> is created from the strings that come after the word <code>opsmetadata</code> in the ARN. For example, an OpsMetadata object with an ARN of <code>arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager</code> has a <code>ResourceID</code> of either <code>aws/ssm/MyGroup/appmanager</code> or <code>/aws/ssm/MyGroup/appmanager</code>.</p>
         163  +
    /// <p>For the Document and Parameter values, use the name of the resource.</p><note>
         164  +
    /// <p>The <code>ManagedInstance</code> type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
         165  +
    /// </note>
         166  +
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
         167  +
        self.inner.get_resource_id()
         168  +
    }
         169  +
    ///
         170  +
    /// Appends an item to `TagKeys`.
         171  +
    ///
         172  +
    /// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
         173  +
    ///
         174  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         175  +
    pub fn tag_keys(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         176  +
        self.inner = self.inner.tag_keys(input.into());
         177  +
        self
         178  +
    }
         179  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         180  +
    pub fn set_tag_keys(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         181  +
        self.inner = self.inner.set_tag_keys(input);
         182  +
        self
         183  +
    }
         184  +
    /// <p>Tag keys that you want to remove from the specified resource.</p>
         185  +
    pub fn get_tag_keys(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         186  +
        self.inner.get_tag_keys()
         187  +
    }
         188  +
}

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

@@ -0,1 +0,602 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `ResetServiceSetting`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct ResetServiceSetting;
           6  +
impl ResetServiceSetting {
           7  +
    /// Creates a new `ResetServiceSetting`
           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::reset_service_setting::ResetServiceSettingInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          15  +
        crate::operation::reset_service_setting::ResetServiceSettingOutput::SCHEMA;
          16  +
    pub(crate) async fn orchestrate(
          17  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          18  +
        input: crate::operation::reset_service_setting::ResetServiceSettingInput,
          19  +
    ) -> ::std::result::Result<
          20  +
        crate::operation::reset_service_setting::ResetServiceSettingOutput,
          21  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          22  +
            crate::operation::reset_service_setting::ResetServiceSettingError,
          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::reset_service_setting::ResetServiceSettingError>()
          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::reset_service_setting::ResetServiceSettingOutput>()
          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::reset_service_setting::ResetServiceSettingInput,
          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", "ResetServiceSetting", 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.ResetServiceSetting",
          64  +
                "rpc.service" = "SSM",
          65  +
                "rpc.method" = "ResetServiceSetting",
          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::InternalServerError::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::InternalServerError::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::InternalServerError::deserialize(d)?))
         110  +
                        },
         111  +
                    )
         112  +
.insert_error_shape(
         113  +
                        crate::types::error::ServiceSettingNotFound::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::ServiceSettingNotFound::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::ServiceSettingNotFound::deserialize(d)?))
         119  +
                        },
         120  +
                    )
         121  +
.insert_error_shape(
         122  +
                        crate::types::error::TooManyUpdates::SCHEMA,
         123  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         124  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         125  +
                        },
         126  +
                        |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> {
         127  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         128  +
                        },
         129  +
                    )
         130  +
                            .build()
         131  +
    });
         132  +
}
         133  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ResetServiceSetting {
         134  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         135  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ResetServiceSetting");
         136  +
         137  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         138  +
            ResetServiceSettingRequestSerializer,
         139  +
        ));
         140  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         141  +
            ResetServiceSettingResponseDeserializer,
         142  +
        ));
         143  +
         144  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         145  +
            crate::config::auth::Params::builder()
         146  +
                .operation_name("ResetServiceSetting")
         147  +
                .build()
         148  +
                .expect("required fields set"),
         149  +
        ));
         150  +
         151  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         152  +
            "ResetServiceSetting",
         153  +
            "SSM",
         154  +
        ));
         155  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         156  +
        signing_options.double_uri_encode = true;
         157  +
        signing_options.content_sha256_header = false;
         158  +
        signing_options.normalize_uri_path = true;
         159  +
        signing_options.payload_override = None;
         160  +
         161  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         162  +
            signing_options,
         163  +
            ..::std::default::Default::default()
         164  +
        });
         165  +
         166  +
        ::std::option::Option::Some(cfg.freeze())
         167  +
    }
         168  +
         169  +
    fn runtime_components(
         170  +
        &self,
         171  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         172  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         173  +
        #[allow(unused_mut)]
         174  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ResetServiceSetting")
         175  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         176  +
                ResetServiceSettingTelemetryInputCaptureInterceptor,
         177  +
            ))
         178  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         179  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         180  +
            ))
         181  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         182  +
                ResetServiceSettingEndpointParamsInterceptor,
         183  +
            ))
         184  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         185  +
                crate::operation::reset_service_setting::ResetServiceSettingError,
         186  +
            >::new())
         187  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         188  +
                crate::operation::reset_service_setting::ResetServiceSettingError,
         189  +
            >::new())
         190  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         191  +
                crate::operation::reset_service_setting::ResetServiceSettingError,
         192  +
            >::new())
         193  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         194  +
                crate::operation::reset_service_setting::ResetServiceSettingError,
         195  +
            >::new());
         196  +
         197  +
        ::std::borrow::Cow::Owned(rcb)
         198  +
    }
         199  +
}
         200  +
         201  +
#[derive(Debug)]
         202  +
struct ResetServiceSettingTelemetryInputCaptureInterceptor;
         203  +
         204  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         205  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ResetServiceSettingTelemetryInputCaptureInterceptor {
         206  +
    fn name(&self) -> &'static str {
         207  +
        "ResetServiceSettingTelemetryInputCaptureInterceptor"
         208  +
    }
         209  +
         210  +
    fn read_before_execution(
         211  +
        &self,
         212  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         213  +
            '_,
         214  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         215  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         216  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         217  +
        >,
         218  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         219  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         220  +
        // Nothing to do unless the customer opted in by naming members to record.
         221  +
        let ::std::option::Option::Some(requested) = cfg
         222  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         223  +
            .filter(|r| !r.is_empty())
         224  +
        else {
         225  +
            return ::std::result::Result::Ok(());
         226  +
        };
         227  +
         228  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<ResetServiceSettingInput>() else {
         229  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         230  +
            return ::std::result::Result::Ok(());
         231  +
        };
         232  +
         233  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         234  +
        if requested.should_capture("SettingId") {
         235  +
            if let ::std::option::Option::Some(value) = input.setting_id.as_deref() {
         236  +
                captured.insert("SettingId", value);
         237  +
            }
         238  +
        }
         239  +
         240  +
        cfg.interceptor_state().store_put(captured);
         241  +
        ::std::result::Result::Ok(())
         242  +
    }
         243  +
}
         244  +
#[derive(Debug)]
         245  +
struct ResetServiceSettingResponseDeserializer;
         246  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ResetServiceSettingResponseDeserializer {
         247  +
    fn deserialize_nonstreaming_with_config(
         248  +
        &self,
         249  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         250  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         251  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         252  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         253  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         254  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         255  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         256  +
        // loads `body` before firing this hook.
         257  +
        let body = response.body().bytes().expect("body loaded");
         258  +
        let headers = response.headers();
         259  +
        #[allow(unused_mut)]
         260  +
        let mut force_error = false;
         261  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         262  +
        if !success && status != 200 || force_error {
         263  +
            let protocol = _cfg
         264  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         265  +
                .expect("a SharedClientProtocol is required");
         266  +
            #[allow(unused_mut)]
         267  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         268  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         269  +
            })?;
         270  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         271  +
            let generic = generic_builder.build();
         272  +
            let error_code = match generic.code() {
         273  +
                ::std::option::Option::Some(code) => code,
         274  +
                ::std::option::Option::None => {
         275  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         276  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         277  +
                            crate::operation::reset_service_setting::ResetServiceSettingError::unhandled(generic),
         278  +
                        ),
         279  +
                    ))
         280  +
                }
         281  +
            };
         282  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         283  +
            let err = match error_code {
         284  +
                "InternalServerError" => crate::operation::reset_service_setting::ResetServiceSettingError::InternalServerError({
         285  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         286  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         287  +
                            &mut *deser,
         288  +
                            response.headers(),
         289  +
                            response.status().into(),
         290  +
                            body,
         291  +
                        )
         292  +
                    }) {
         293  +
                        ::std::result::Result::Ok(val) => val,
         294  +
                        ::std::result::Result::Err(e) => {
         295  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         296  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         297  +
                            ))
         298  +
                        }
         299  +
                    };
         300  +
                    tmp.meta = generic;
         301  +
                    if tmp.message.is_none() {
         302  +
                        tmp.message = _error_message;
         303  +
                    }
         304  +
                    tmp
         305  +
                }),
         306  +
                "ServiceSettingNotFound" => crate::operation::reset_service_setting::ResetServiceSettingError::ServiceSettingNotFound({
         307  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         308  +
                        crate::types::error::ServiceSettingNotFound::deserialize_with_response(
         309  +
                            &mut *deser,
         310  +
                            response.headers(),
         311  +
                            response.status().into(),
         312  +
                            body,
         313  +
                        )
         314  +
                    }) {
         315  +
                        ::std::result::Result::Ok(val) => val,
         316  +
                        ::std::result::Result::Err(e) => {
         317  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         318  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         319  +
                            ))
         320  +
                        }
         321  +
                    };
         322  +
                    tmp.meta = generic;
         323  +
                    if tmp.message.is_none() {
         324  +
                        tmp.message = _error_message;
         325  +
                    }
         326  +
                    tmp
         327  +
                }),
         328  +
                "TooManyUpdates" => crate::operation::reset_service_setting::ResetServiceSettingError::TooManyUpdates({
         329  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         330  +
                        crate::types::error::TooManyUpdates::deserialize_with_response(
         331  +
                            &mut *deser,
         332  +
                            response.headers(),
         333  +
                            response.status().into(),
         334  +
                            body,
         335  +
                        )
         336  +
                    }) {
         337  +
                        ::std::result::Result::Ok(val) => val,
         338  +
                        ::std::result::Result::Err(e) => {
         339  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         340  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         341  +
                            ))
         342  +
                        }
         343  +
                    };
         344  +
                    tmp.meta = generic;
         345  +
                    if tmp.message.is_none() {
         346  +
                        tmp.message = _error_message;
         347  +
                    }
         348  +
                    tmp
         349  +
                }),
         350  +
                _ => {
         351  +
                    // Registry-backed, operation-scoped reification of an error whose
         352  +
                    // code this operation does not model directly: the operation's own
         353  +
                    // error registry is consulted first, then the lookup widens to the
         354  +
                    // service-wide error registry. On a hit, the reified error is attached
         355  +
                    // as the source of the returned unhandled error while its metadata
         356  +
                    // (code, message, request id) is preserved; on a miss the generic
         357  +
                    // error is returned unchanged.
         358  +
                    match protocol
         359  +
                        .deserialize_error_response(response, _cfg)
         360  +
                        .ok()
         361  +
                        .and_then(|mut deser| {
         362  +
                            ::aws_smithy_schema::registry::reify_error(
         363  +
                                crate::operation::reset_service_setting::error_registry::REGISTRY
         364  +
                                    .or(&crate::error_type_registry::REGISTRY),
         365  +
                                error_code,
         366  +
                                &mut *deser,
         367  +
                            )
         368  +
                        }) {
         369  +
                        ::std::option::Option::Some(source) => <crate::operation::reset_service_setting::ResetServiceSettingError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         370  +
                        ::std::option::Option::None => crate::operation::reset_service_setting::ResetServiceSettingError::generic(generic),
         371  +
                    }
         372  +
                }
         373  +
            };
         374  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         375  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         376  +
            ))
         377  +
        } else {
         378  +
            let protocol = _cfg
         379  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         380  +
                .expect("a SharedClientProtocol is required");
         381  +
            let mut deser = protocol
         382  +
                .deserialize_response(response, ResetServiceSetting::OUTPUT_SCHEMA, _cfg)
         383  +
                .map_err(|e| {
         384  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         385  +
                })?;
         386  +
            // body and headers are already in scope from the top of the function;
         387  +
            // alias `headers` as `_response_headers` so MutateOutput
         388  +
            // customizations have a stable name to read from.
         389  +
            let _response_headers = headers;
         390  +
            #[allow(unused_mut)]
         391  +
            let mut output = crate::operation::reset_service_setting::ResetServiceSettingOutput::deserialize_with_response(
         392  +
                &mut *deser,
         393  +
                _response_headers,
         394  +
                response.status().into(),
         395  +
                body,
         396  +
            )
         397  +
            .map_err(|e| {
         398  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         399  +
            })?;
         400  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         401  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         402  +
        }
         403  +
    }
         404  +
}
         405  +
#[derive(Debug)]
         406  +
struct ResetServiceSettingRequestSerializer;
         407  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ResetServiceSettingRequestSerializer {
         408  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         409  +
    fn serialize_input(
         410  +
        &self,
         411  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         412  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         413  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         414  +
        let input = input
         415  +
            .downcast::<crate::operation::reset_service_setting::ResetServiceSettingInput>()
         416  +
            .expect("correct type");
         417  +
         418  +
        let protocol = _cfg
         419  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         420  +
            .expect("a SharedClientProtocol is required");
         421  +
        let mut request = protocol
         422  +
            .serialize_request(&input, ResetServiceSetting::INPUT_SCHEMA, "/", _cfg)
         423  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         424  +
         425  +
        return ::std::result::Result::Ok(request);
         426  +
    }
         427  +
}
         428  +
#[derive(Debug)]
         429  +
struct ResetServiceSettingEndpointParamsInterceptor;
         430  +
         431  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         432  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ResetServiceSettingEndpointParamsInterceptor {
         433  +
    fn name(&self) -> &'static str {
         434  +
        "ResetServiceSettingEndpointParamsInterceptor"
         435  +
    }
         436  +
         437  +
    fn read_before_execution(
         438  +
        &self,
         439  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         440  +
            '_,
         441  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         442  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         443  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         444  +
        >,
         445  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         446  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         447  +
        let _input = context
         448  +
            .input()
         449  +
            .downcast_ref::<ResetServiceSettingInput>()
         450  +
            .ok_or("failed to downcast to ResetServiceSettingInput")?;
         451  +
         452  +
        let params = crate::config::endpoint::Params::builder()
         453  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         454  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         455  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         456  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         457  +
            .build()
         458  +
            .map_err(|err| {
         459  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         460  +
            })?;
         461  +
        cfg.interceptor_state()
         462  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         463  +
        ::std::result::Result::Ok(())
         464  +
    }
         465  +
}
         466  +
         467  +
// The get_* functions below are generated from JMESPath expressions in the
         468  +
// operationContextParams trait. They target the operation's input shape.
         469  +
         470  +
/// Error type for the `ResetServiceSettingError` operation.
         471  +
#[non_exhaustive]
         472  +
#[derive(::std::fmt::Debug)]
         473  +
pub enum ResetServiceSettingError {
         474  +
    /// <p>An error occurred on the server side.</p>
         475  +
    InternalServerError(crate::types::error::InternalServerError),
         476  +
    /// <p>The specified service setting wasn't found. Either the service name or the setting hasn't been provisioned by the Amazon Web Services service team.</p>
         477  +
    ServiceSettingNotFound(crate::types::error::ServiceSettingNotFound),
         478  +
    /// <p>There are concurrent updates for a resource that supports one update at a time.</p>
         479  +
    TooManyUpdates(crate::types::error::TooManyUpdates),
         480  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         481  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         482  +
    variable wildcard pattern and check `.code()`:
         483  +
     \
         484  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         485  +
     \
         486  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ResetServiceSettingError) for what information is available for the error.")]
         487  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         488  +
}
         489  +
impl ResetServiceSettingError {
         490  +
    /// Creates the `ResetServiceSettingError::Unhandled` variant from any error type.
         491  +
    pub fn unhandled(
         492  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         493  +
    ) -> Self {
         494  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         495  +
            source: err.into(),
         496  +
            meta: ::std::default::Default::default(),
         497  +
        })
         498  +
    }
         499  +
         500  +
    /// Creates the `ResetServiceSettingError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         501  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         502  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         503  +
            source: err.clone().into(),
         504  +
            meta: err,
         505  +
        })
         506  +
    }
         507  +
    ///
         508  +
    /// Returns error metadata, which includes the error code, message,
         509  +
    /// request ID, and potentially additional information.
         510  +
    ///
         511  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         512  +
        match self {
         513  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         514  +
            Self::ServiceSettingNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         515  +
            Self::TooManyUpdates(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         516  +
            Self::Unhandled(e) => &e.meta,
         517  +
        }
         518  +
    }
         519  +
    /// Returns `true` if the error kind is `ResetServiceSettingError::InternalServerError`.
         520  +
    pub fn is_internal_server_error(&self) -> bool {
         521  +
        matches!(self, Self::InternalServerError(_))
         522  +
    }
         523  +
    /// Returns `true` if the error kind is `ResetServiceSettingError::ServiceSettingNotFound`.
         524  +
    pub fn is_service_setting_not_found(&self) -> bool {
         525  +
        matches!(self, Self::ServiceSettingNotFound(_))
         526  +
    }
         527  +
    /// Returns `true` if the error kind is `ResetServiceSettingError::TooManyUpdates`.
         528  +
    pub fn is_too_many_updates(&self) -> bool {
         529  +
        matches!(self, Self::TooManyUpdates(_))
         530  +
    }
         531  +
}
         532  +
impl ::std::error::Error for ResetServiceSettingError {
         533  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         534  +
        match self {
         535  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         536  +
            Self::ServiceSettingNotFound(_inner) => ::std::option::Option::Some(_inner),
         537  +
            Self::TooManyUpdates(_inner) => ::std::option::Option::Some(_inner),
         538  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         539  +
        }
         540  +
    }
         541  +
}
         542  +
impl ::std::fmt::Display for ResetServiceSettingError {
         543  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         544  +
        match self {
         545  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         546  +
            Self::ServiceSettingNotFound(_inner) => _inner.fmt(f),
         547  +
            Self::TooManyUpdates(_inner) => _inner.fmt(f),
         548  +
            Self::Unhandled(_inner) => {
         549  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         550  +
                    write!(f, "unhandled error ({code})")
         551  +
                } else {
         552  +
                    f.write_str("unhandled error")
         553  +
                }
         554  +
            }
         555  +
        }
         556  +
    }
         557  +
}
         558  +
impl ::aws_smithy_types::retry::ProvideErrorKind for ResetServiceSettingError {
         559  +
    fn code(&self) -> ::std::option::Option<&str> {
         560  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         561  +
    }
         562  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         563  +
        ::std::option::Option::None
         564  +
    }
         565  +
}
         566  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ResetServiceSettingError {
         567  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         568  +
        match self {
         569  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         570  +
            Self::ServiceSettingNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         571  +
            Self::TooManyUpdates(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         572  +
            Self::Unhandled(_inner) => &_inner.meta,
         573  +
        }
         574  +
    }
         575  +
}
         576  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ResetServiceSettingError {
         577  +
    fn create_unhandled_error(
         578  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         579  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         580  +
    ) -> Self {
         581  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         582  +
            source,
         583  +
            meta: meta.unwrap_or_default(),
         584  +
        })
         585  +
    }
         586  +
}
         587  +
impl ::aws_types::request_id::RequestId for crate::operation::reset_service_setting::ResetServiceSettingError {
         588  +
    fn request_id(&self) -> Option<&str> {
         589  +
        self.meta().request_id()
         590  +
    }
         591  +
}
         592  +
         593  +
pub use crate::operation::reset_service_setting::_reset_service_setting_input::ResetServiceSettingInput;
         594  +
         595  +
pub use crate::operation::reset_service_setting::_reset_service_setting_output::ResetServiceSettingOutput;
         596  +
         597  +
mod _reset_service_setting_input;
         598  +
         599  +
mod _reset_service_setting_output;
         600  +
         601  +
/// Builders
         602  +
pub mod builders;