AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,241 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The request body of the ResetServiceSetting API operation.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ResetServiceSettingInput {
           7  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
           8  +
    /// <ul>
           9  +
    /// <li>
          10  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
          11  +
    /// <li>
          12  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
          13  +
    /// <li>
          14  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
          15  +
    /// <li>
          16  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
          17  +
    /// <li>
          18  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
          19  +
    /// <li>
          20  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
          21  +
    /// <li>
          22  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
          23  +
    /// <li>
          24  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
          25  +
    /// <li>
          26  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
          27  +
    /// <li>
          28  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
          29  +
    /// </ul>
          30  +
    pub setting_id: ::std::option::Option<::std::string::String>,
          31  +
}
          32  +
impl ResetServiceSettingInput {
          33  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
          34  +
    /// <ul>
          35  +
    /// <li>
          36  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
          37  +
    /// <li>
          38  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
          39  +
    /// <li>
          40  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
          41  +
    /// <li>
          42  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
          43  +
    /// <li>
          44  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
          45  +
    /// <li>
          46  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
          47  +
    /// <li>
          48  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
          49  +
    /// <li>
          50  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
          51  +
    /// <li>
          52  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
          53  +
    /// <li>
          54  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
          55  +
    /// </ul>
          56  +
    pub fn setting_id(&self) -> ::std::option::Option<&str> {
          57  +
        self.setting_id.as_deref()
          58  +
    }
          59  +
}
          60  +
static RESETSERVICESETTINGINPUT_MEMBER_SETTING_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          61  +
    ::aws_smithy_schema::ShapeId::from_parts(
          62  +
        "com.amazonaws.ssm.synthetic#ResetServiceSettingInput$SettingId",
          63  +
        "com.amazonaws.ssm.synthetic",
          64  +
        "ResetServiceSettingInput",
          65  +
    ),
          66  +
    ::aws_smithy_schema::ShapeType::String,
          67  +
    "SettingId",
          68  +
    0,
          69  +
);
          70  +
static RESETSERVICESETTINGINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          71  +
    ::aws_smithy_schema::ShapeId::from_parts(
          72  +
        "com.amazonaws.ssm.synthetic#ResetServiceSettingInput",
          73  +
        "com.amazonaws.ssm.synthetic",
          74  +
        "ResetServiceSettingInput",
          75  +
    ),
          76  +
    ::aws_smithy_schema::ShapeType::Structure,
          77  +
    &[&RESETSERVICESETTINGINPUT_MEMBER_SETTING_ID],
          78  +
)
          79  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          80  +
.with_original_name("ResetServiceSettingRequest");
          81  +
impl ResetServiceSettingInput {
          82  +
    /// The schema for this shape.
          83  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &RESETSERVICESETTINGINPUT_SCHEMA;
          84  +
}
          85  +
impl ::aws_smithy_schema::serde::SerializableStruct for ResetServiceSettingInput {
          86  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          87  +
    fn serialize_members(
          88  +
        &self,
          89  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          90  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          91  +
        if let Some(ref val) = self.setting_id {
          92  +
            ser.write_string(&RESETSERVICESETTINGINPUT_MEMBER_SETTING_ID, val)?;
          93  +
        }
          94  +
        Ok(())
          95  +
    }
          96  +
}
          97  +
impl ResetServiceSettingInput {
          98  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          99  +
    pub fn deserialize(
         100  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        #[allow(unused_variables, unused_mut)]
         103  +
        let mut builder = Self::builder();
         104  +
        #[allow(
         105  +
            unused_variables,
         106  +
            unreachable_code,
         107  +
            clippy::single_match,
         108  +
            clippy::match_single_binding,
         109  +
            clippy::diverging_sub_expression
         110  +
        )]
         111  +
        deserializer.read_struct(&RESETSERVICESETTINGINPUT_SCHEMA, &mut |member, deser| {
         112  +
            match member.member_index() {
         113  +
                Some(0) => {
         114  +
                    if deser.is_null() {
         115  +
                        deser.read_null()?;
         116  +
                    } else {
         117  +
                        builder.setting_id = Some(deser.read_string(member)?);
         118  +
                    }
         119  +
                }
         120  +
                _ => {}
         121  +
            }
         122  +
            Ok(())
         123  +
        })?;
         124  +
        builder.setting_id = builder.setting_id.or(Some(String::new()));
         125  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         126  +
    }
         127  +
}
         128  +
impl ResetServiceSettingInput {
         129  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         130  +
    pub fn deserialize_with_response(
         131  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         132  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         133  +
        _status: u16,
         134  +
        _body: &[u8],
         135  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         136  +
        Self::deserialize(deserializer)
         137  +
    }
         138  +
}
         139  +
impl ResetServiceSettingInput {
         140  +
    /// Creates a new builder-style object to manufacture [`ResetServiceSettingInput`](crate::operation::reset_service_setting::ResetServiceSettingInput).
         141  +
    pub fn builder() -> crate::operation::reset_service_setting::builders::ResetServiceSettingInputBuilder {
         142  +
        crate::operation::reset_service_setting::builders::ResetServiceSettingInputBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`ResetServiceSettingInput`](crate::operation::reset_service_setting::ResetServiceSettingInput).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct ResetServiceSettingInputBuilder {
         150  +
    pub(crate) setting_id: ::std::option::Option<::std::string::String>,
         151  +
}
         152  +
impl ResetServiceSettingInputBuilder {
         153  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         154  +
    /// <ul>
         155  +
    /// <li>
         156  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         157  +
    /// <li>
         158  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         159  +
    /// <li>
         160  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         161  +
    /// <li>
         162  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         163  +
    /// <li>
         164  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         165  +
    /// <li>
         166  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         167  +
    /// <li>
         168  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         169  +
    /// <li>
         170  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         171  +
    /// <li>
         172  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         173  +
    /// <li>
         174  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         175  +
    /// </ul>
         176  +
    /// This field is required.
         177  +
    pub fn setting_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         178  +
        self.setting_id = ::std::option::Option::Some(input.into());
         179  +
        self
         180  +
    }
         181  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         182  +
    /// <ul>
         183  +
    /// <li>
         184  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         185  +
    /// <li>
         186  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         187  +
    /// <li>
         188  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         189  +
    /// <li>
         190  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         191  +
    /// <li>
         192  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         193  +
    /// <li>
         194  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         195  +
    /// <li>
         196  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         197  +
    /// <li>
         198  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         199  +
    /// <li>
         200  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         201  +
    /// <li>
         202  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         203  +
    /// </ul>
         204  +
    pub fn set_setting_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         205  +
        self.setting_id = input;
         206  +
        self
         207  +
    }
         208  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         209  +
    /// <ul>
         210  +
    /// <li>
         211  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         212  +
    /// <li>
         213  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         214  +
    /// <li>
         215  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         216  +
    /// <li>
         217  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         218  +
    /// <li>
         219  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         220  +
    /// <li>
         221  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         222  +
    /// <li>
         223  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         224  +
    /// <li>
         225  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         226  +
    /// <li>
         227  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         228  +
    /// <li>
         229  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         230  +
    /// </ul>
         231  +
    pub fn get_setting_id(&self) -> &::std::option::Option<::std::string::String> {
         232  +
        &self.setting_id
         233  +
    }
         234  +
    /// Consumes the builder and constructs a [`ResetServiceSettingInput`](crate::operation::reset_service_setting::ResetServiceSettingInput).
         235  +
    pub fn build(
         236  +
        self,
         237  +
    ) -> ::std::result::Result<crate::operation::reset_service_setting::ResetServiceSettingInput, ::aws_smithy_types::error::operation::BuildError>
         238  +
    {
         239  +
        ::std::result::Result::Ok(crate::operation::reset_service_setting::ResetServiceSettingInput { setting_id: self.setting_id })
         240  +
    }
         241  +
}

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

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

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

@@ -0,1 +0,193 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::reset_service_setting::_reset_service_setting_input::ResetServiceSettingInputBuilder;
           3  +
           4  +
pub use crate::operation::reset_service_setting::_reset_service_setting_output::ResetServiceSettingOutputBuilder;
           5  +
           6  +
impl crate::operation::reset_service_setting::builders::ResetServiceSettingInputBuilder {
           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::reset_service_setting::ResetServiceSettingOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::reset_service_setting::ResetServiceSettingError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.reset_service_setting();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `ResetServiceSetting`.
          24  +
///
          25  +
/// <p><code>ServiceSetting</code> is an account-level setting for an Amazon Web Services service. This setting defines how a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services service team might create a default setting of "false". This means the user can't use this feature unless they change the setting to "true" and intentionally opt in for a paid feature.</p>
          26  +
/// <p>Services map a <code>SettingId</code> object to a setting value. Amazon Web Services services teams define the default value for a <code>SettingId</code>. You can't create a new <code>SettingId</code>, but you can overwrite the default value if you have the <code>ssm:UpdateServiceSetting</code> permission for the setting. Use the <code>GetServiceSetting</code> API operation to view the current value. Use the <code>UpdateServiceSetting</code> API operation to change the default setting.</p>
          27  +
/// <p>Reset the service setting for the account to the default value as provisioned by the Amazon Web Services service team.</p>
          28  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          29  +
pub struct ResetServiceSettingFluentBuilder {
          30  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          31  +
    inner: crate::operation::reset_service_setting::builders::ResetServiceSettingInputBuilder,
          32  +
    config_override: ::std::option::Option<crate::config::Builder>,
          33  +
}
          34  +
impl
          35  +
    crate::client::customize::internal::CustomizableSend<
          36  +
        crate::operation::reset_service_setting::ResetServiceSettingOutput,
          37  +
        crate::operation::reset_service_setting::ResetServiceSettingError,
          38  +
    > for ResetServiceSettingFluentBuilder
          39  +
{
          40  +
    fn send(
          41  +
        self,
          42  +
        config_override: crate::config::Builder,
          43  +
    ) -> crate::client::customize::internal::BoxFuture<
          44  +
        crate::client::customize::internal::SendResult<
          45  +
            crate::operation::reset_service_setting::ResetServiceSettingOutput,
          46  +
            crate::operation::reset_service_setting::ResetServiceSettingError,
          47  +
        >,
          48  +
    > {
          49  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          50  +
    }
          51  +
}
          52  +
impl ResetServiceSettingFluentBuilder {
          53  +
    /// Creates a new `ResetServiceSettingFluentBuilder`.
          54  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          55  +
        Self {
          56  +
            handle,
          57  +
            inner: ::std::default::Default::default(),
          58  +
            config_override: ::std::option::Option::None,
          59  +
        }
          60  +
    }
          61  +
    /// Access the ResetServiceSetting as a reference.
          62  +
    pub fn as_input(&self) -> &crate::operation::reset_service_setting::builders::ResetServiceSettingInputBuilder {
          63  +
        &self.inner
          64  +
    }
          65  +
    /// Sends the request and returns the response.
          66  +
    ///
          67  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          68  +
    /// can be matched against.
          69  +
    ///
          70  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          71  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          72  +
    /// set when configuring the client.
          73  +
    pub async fn send(
          74  +
        self,
          75  +
    ) -> ::std::result::Result<
          76  +
        crate::operation::reset_service_setting::ResetServiceSettingOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::reset_service_setting::ResetServiceSettingError,
          79  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          80  +
        >,
          81  +
    > {
          82  +
        let input = self
          83  +
            .inner
          84  +
            .build()
          85  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          86  +
        let runtime_plugins = crate::operation::reset_service_setting::ResetServiceSetting::operation_runtime_plugins(
          87  +
            self.handle.runtime_plugins.clone(),
          88  +
            &self.handle.conf,
          89  +
            self.config_override,
          90  +
        );
          91  +
        crate::operation::reset_service_setting::ResetServiceSetting::orchestrate(&runtime_plugins, input).await
          92  +
    }
          93  +
          94  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          95  +
    pub fn customize(
          96  +
        self,
          97  +
    ) -> crate::client::customize::CustomizableOperation<
          98  +
        crate::operation::reset_service_setting::ResetServiceSettingOutput,
          99  +
        crate::operation::reset_service_setting::ResetServiceSettingError,
         100  +
        Self,
         101  +
    > {
         102  +
        crate::client::customize::CustomizableOperation::new(self)
         103  +
    }
         104  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         105  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         106  +
        self
         107  +
    }
         108  +
         109  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         110  +
        self.config_override = config_override;
         111  +
        self
         112  +
    }
         113  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         114  +
    /// <ul>
         115  +
    /// <li>
         116  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         117  +
    /// <li>
         118  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         119  +
    /// <li>
         120  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         121  +
    /// <li>
         122  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         123  +
    /// <li>
         124  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         125  +
    /// <li>
         126  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         127  +
    /// <li>
         128  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         129  +
    /// <li>
         130  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         131  +
    /// <li>
         132  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         133  +
    /// <li>
         134  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         135  +
    /// </ul>
         136  +
    pub fn setting_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         137  +
        self.inner = self.inner.setting_id(input.into());
         138  +
        self
         139  +
    }
         140  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         141  +
    /// <ul>
         142  +
    /// <li>
         143  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         144  +
    /// <li>
         145  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         146  +
    /// <li>
         147  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         148  +
    /// <li>
         149  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         150  +
    /// <li>
         151  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         152  +
    /// <li>
         153  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         154  +
    /// <li>
         155  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         156  +
    /// <li>
         157  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         158  +
    /// <li>
         159  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         160  +
    /// <li>
         161  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         162  +
    /// </ul>
         163  +
    pub fn set_setting_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         164  +
        self.inner = self.inner.set_setting_id(input);
         165  +
        self
         166  +
    }
         167  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.</p>
         168  +
    /// <ul>
         169  +
    /// <li>
         170  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         171  +
    /// <li>
         172  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         173  +
    /// <li>
         174  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         175  +
    /// <li>
         176  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         177  +
    /// <li>
         178  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         179  +
    /// <li>
         180  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         181  +
    /// <li>
         182  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         183  +
    /// <li>
         184  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         185  +
    /// <li>
         186  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         187  +
    /// <li>
         188  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         189  +
    /// </ul>
         190  +
    pub fn get_setting_id(&self) -> &::std::option::Option<::std::string::String> {
         191  +
        self.inner.get_setting_id()
         192  +
    }
         193  +
}

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

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