AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578

Files changed:

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

@@ -0,1 +0,129 @@
           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 ResumeSessionInput {
           6  +
    /// <p>The ID of the disconnected session to resume.</p>
           7  +
    pub session_id: ::std::option::Option<::std::string::String>,
           8  +
}
           9  +
impl ResumeSessionInput {
          10  +
    /// <p>The ID of the disconnected session to resume.</p>
          11  +
    pub fn session_id(&self) -> ::std::option::Option<&str> {
          12  +
        self.session_id.as_deref()
          13  +
    }
          14  +
}
          15  +
static RESUMESESSIONINPUT_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          16  +
    ::aws_smithy_schema::ShapeId::from_parts(
          17  +
        "com.amazonaws.ssm.synthetic#ResumeSessionInput$SessionId",
          18  +
        "com.amazonaws.ssm.synthetic",
          19  +
        "ResumeSessionInput",
          20  +
    ),
          21  +
    ::aws_smithy_schema::ShapeType::String,
          22  +
    "SessionId",
          23  +
    0,
          24  +
);
          25  +
static RESUMESESSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          26  +
    ::aws_smithy_schema::ShapeId::from_parts(
          27  +
        "com.amazonaws.ssm.synthetic#ResumeSessionInput",
          28  +
        "com.amazonaws.ssm.synthetic",
          29  +
        "ResumeSessionInput",
          30  +
    ),
          31  +
    ::aws_smithy_schema::ShapeType::Structure,
          32  +
    &[&RESUMESESSIONINPUT_MEMBER_SESSION_ID],
          33  +
)
          34  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          35  +
.with_original_name("ResumeSessionRequest");
          36  +
impl ResumeSessionInput {
          37  +
    /// The schema for this shape.
          38  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &RESUMESESSIONINPUT_SCHEMA;
          39  +
}
          40  +
impl ::aws_smithy_schema::serde::SerializableStruct for ResumeSessionInput {
          41  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          42  +
    fn serialize_members(
          43  +
        &self,
          44  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          45  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          46  +
        if let Some(ref val) = self.session_id {
          47  +
            ser.write_string(&RESUMESESSIONINPUT_MEMBER_SESSION_ID, val)?;
          48  +
        }
          49  +
        Ok(())
          50  +
    }
          51  +
}
          52  +
impl ResumeSessionInput {
          53  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          54  +
    pub fn deserialize(
          55  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          56  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          57  +
        #[allow(unused_variables, unused_mut)]
          58  +
        let mut builder = Self::builder();
          59  +
        #[allow(
          60  +
            unused_variables,
          61  +
            unreachable_code,
          62  +
            clippy::single_match,
          63  +
            clippy::match_single_binding,
          64  +
            clippy::diverging_sub_expression
          65  +
        )]
          66  +
        deserializer.read_struct(&RESUMESESSIONINPUT_SCHEMA, &mut |member, deser| {
          67  +
            match member.member_index() {
          68  +
                Some(0) => {
          69  +
                    if deser.is_null() {
          70  +
                        deser.read_null()?;
          71  +
                    } else {
          72  +
                        builder.session_id = Some(deser.read_string(member)?);
          73  +
                    }
          74  +
                }
          75  +
                _ => {}
          76  +
            }
          77  +
            Ok(())
          78  +
        })?;
          79  +
        builder.session_id = builder.session_id.or(Some(String::new()));
          80  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
          81  +
    }
          82  +
}
          83  +
impl ResumeSessionInput {
          84  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          85  +
    pub fn deserialize_with_response(
          86  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          87  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          88  +
        _status: u16,
          89  +
        _body: &[u8],
          90  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          91  +
        Self::deserialize(deserializer)
          92  +
    }
          93  +
}
          94  +
impl ResumeSessionInput {
          95  +
    /// Creates a new builder-style object to manufacture [`ResumeSessionInput`](crate::operation::resume_session::ResumeSessionInput).
          96  +
    pub fn builder() -> crate::operation::resume_session::builders::ResumeSessionInputBuilder {
          97  +
        crate::operation::resume_session::builders::ResumeSessionInputBuilder::default()
          98  +
    }
          99  +
}
         100  +
         101  +
/// A builder for [`ResumeSessionInput`](crate::operation::resume_session::ResumeSessionInput).
         102  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
#[non_exhaustive]
         104  +
pub struct ResumeSessionInputBuilder {
         105  +
    pub(crate) session_id: ::std::option::Option<::std::string::String>,
         106  +
}
         107  +
impl ResumeSessionInputBuilder {
         108  +
    /// <p>The ID of the disconnected session to resume.</p>
         109  +
    /// This field is required.
         110  +
    pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         111  +
        self.session_id = ::std::option::Option::Some(input.into());
         112  +
        self
         113  +
    }
         114  +
    /// <p>The ID of the disconnected session to resume.</p>
         115  +
    pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         116  +
        self.session_id = input;
         117  +
        self
         118  +
    }
         119  +
    /// <p>The ID of the disconnected session to resume.</p>
         120  +
    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
         121  +
        &self.session_id
         122  +
    }
         123  +
    /// Consumes the builder and constructs a [`ResumeSessionInput`](crate::operation::resume_session::ResumeSessionInput).
         124  +
    pub fn build(
         125  +
        self,
         126  +
    ) -> ::std::result::Result<crate::operation::resume_session::ResumeSessionInput, ::aws_smithy_types::error::operation::BuildError> {
         127  +
        ::std::result::Result::Ok(crate::operation::resume_session::ResumeSessionInput { session_id: self.session_id })
         128  +
    }
         129  +
}

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

@@ -0,1 +0,288 @@
           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 ResumeSessionOutput {
           6  +
    /// <p>The ID of the session.</p>
           7  +
    pub session_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.</p>
           9  +
    pub token_value: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: <code>wss://ssmmessages.<b>region</b>.amazonaws.com/v1/data-channel/<b>session-id</b>?stream=(input|output)</code>.</p>
          11  +
    /// <p><b>region</b> represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as <code>us-east-2</code> for the US East (Ohio) Region. For a list of supported <b>region</b> values, see the <b>Region</b> column in <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region">Systems Manager service endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p>
          12  +
    /// <p><b>session-id</b> represents the ID of a Session Manager session, such as <code>1a2b3c4dEXAMPLE</code>.</p>
          13  +
    pub stream_url: ::std::option::Option<::std::string::String>,
          14  +
    _request_id: Option<String>,
          15  +
}
          16  +
impl ResumeSessionOutput {
          17  +
    /// <p>The ID of the session.</p>
          18  +
    pub fn session_id(&self) -> ::std::option::Option<&str> {
          19  +
        self.session_id.as_deref()
          20  +
    }
          21  +
    /// <p>An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.</p>
          22  +
    pub fn token_value(&self) -> ::std::option::Option<&str> {
          23  +
        self.token_value.as_deref()
          24  +
    }
          25  +
    /// <p>A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: <code>wss://ssmmessages.<b>region</b>.amazonaws.com/v1/data-channel/<b>session-id</b>?stream=(input|output)</code>.</p>
          26  +
    /// <p><b>region</b> represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as <code>us-east-2</code> for the US East (Ohio) Region. For a list of supported <b>region</b> values, see the <b>Region</b> column in <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region">Systems Manager service endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p>
          27  +
    /// <p><b>session-id</b> represents the ID of a Session Manager session, such as <code>1a2b3c4dEXAMPLE</code>.</p>
          28  +
    pub fn stream_url(&self) -> ::std::option::Option<&str> {
          29  +
        self.stream_url.as_deref()
          30  +
    }
          31  +
}
          32  +
static RESUMESESSIONOUTPUT_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          33  +
    ::aws_smithy_schema::ShapeId::from_parts(
          34  +
        "com.amazonaws.ssm.synthetic#ResumeSessionOutput$SessionId",
          35  +
        "com.amazonaws.ssm.synthetic",
          36  +
        "ResumeSessionOutput",
          37  +
    ),
          38  +
    ::aws_smithy_schema::ShapeType::String,
          39  +
    "SessionId",
          40  +
    0,
          41  +
);
          42  +
static RESUMESESSIONOUTPUT_MEMBER_TOKEN_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          43  +
    ::aws_smithy_schema::ShapeId::from_parts(
          44  +
        "com.amazonaws.ssm.synthetic#ResumeSessionOutput$TokenValue",
          45  +
        "com.amazonaws.ssm.synthetic",
          46  +
        "ResumeSessionOutput",
          47  +
    ),
          48  +
    ::aws_smithy_schema::ShapeType::String,
          49  +
    "TokenValue",
          50  +
    1,
          51  +
);
          52  +
static RESUMESESSIONOUTPUT_MEMBER_STREAM_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          53  +
    ::aws_smithy_schema::ShapeId::from_parts(
          54  +
        "com.amazonaws.ssm.synthetic#ResumeSessionOutput$StreamUrl",
          55  +
        "com.amazonaws.ssm.synthetic",
          56  +
        "ResumeSessionOutput",
          57  +
    ),
          58  +
    ::aws_smithy_schema::ShapeType::String,
          59  +
    "StreamUrl",
          60  +
    2,
          61  +
);
          62  +
static RESUMESESSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          63  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          64  +
    ::aws_smithy_schema::ShapeType::String,
          65  +
    "request_id",
          66  +
    3,
          67  +
)
          68  +
.with_http_header("x-amzn-requestid");
          69  +
static RESUMESESSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          70  +
    ::aws_smithy_schema::ShapeId::from_parts(
          71  +
        "com.amazonaws.ssm.synthetic#ResumeSessionOutput",
          72  +
        "com.amazonaws.ssm.synthetic",
          73  +
        "ResumeSessionOutput",
          74  +
    ),
          75  +
    ::aws_smithy_schema::ShapeType::Structure,
          76  +
    &[
          77  +
        &RESUMESESSIONOUTPUT_MEMBER_SESSION_ID,
          78  +
        &RESUMESESSIONOUTPUT_MEMBER_TOKEN_VALUE,
          79  +
        &RESUMESESSIONOUTPUT_MEMBER_STREAM_URL,
          80  +
        &RESUMESESSIONOUTPUT_MEMBER__REQUEST_ID,
          81  +
    ],
          82  +
)
          83  +
.with_original_name("ResumeSessionResponse");
          84  +
impl ResumeSessionOutput {
          85  +
    /// The schema for this shape.
          86  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &RESUMESESSIONOUTPUT_SCHEMA;
          87  +
}
          88  +
impl ::aws_smithy_schema::serde::SerializableStruct for ResumeSessionOutput {
          89  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          90  +
    fn serialize_members(
          91  +
        &self,
          92  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          93  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          94  +
        if let Some(ref val) = self.session_id {
          95  +
            ser.write_string(&RESUMESESSIONOUTPUT_MEMBER_SESSION_ID, val)?;
          96  +
        }
          97  +
        if let Some(ref val) = self.token_value {
          98  +
            ser.write_string(&RESUMESESSIONOUTPUT_MEMBER_TOKEN_VALUE, val)?;
          99  +
        }
         100  +
        if let Some(ref val) = self.stream_url {
         101  +
            ser.write_string(&RESUMESESSIONOUTPUT_MEMBER_STREAM_URL, val)?;
         102  +
        }
         103  +
        Ok(())
         104  +
    }
         105  +
}
         106  +
impl ResumeSessionOutput {
         107  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         108  +
    pub fn deserialize(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         111  +
        #[allow(unused_variables, unused_mut)]
         112  +
        let mut builder = Self::builder();
         113  +
        #[allow(
         114  +
            unused_variables,
         115  +
            unreachable_code,
         116  +
            clippy::single_match,
         117  +
            clippy::match_single_binding,
         118  +
            clippy::diverging_sub_expression
         119  +
        )]
         120  +
        deserializer.read_struct(&RESUMESESSIONOUTPUT_SCHEMA, &mut |member, deser| {
         121  +
            match member.member_index() {
         122  +
                Some(0) => {
         123  +
                    if deser.is_null() {
         124  +
                        deser.read_null()?;
         125  +
                    } else {
         126  +
                        builder.session_id = Some(deser.read_string(member)?);
         127  +
                    }
         128  +
                }
         129  +
                Some(1) => {
         130  +
                    if deser.is_null() {
         131  +
                        deser.read_null()?;
         132  +
                    } else {
         133  +
                        builder.token_value = Some(deser.read_string(member)?);
         134  +
                    }
         135  +
                }
         136  +
                Some(2) => {
         137  +
                    if deser.is_null() {
         138  +
                        deser.read_null()?;
         139  +
                    } else {
         140  +
                        builder.stream_url = Some(deser.read_string(member)?);
         141  +
                    }
         142  +
                }
         143  +
                Some(3) => {
         144  +
                    builder._request_id = Some(deser.read_string(member)?);
         145  +
                }
         146  +
                _ => {}
         147  +
            }
         148  +
            Ok(())
         149  +
        })?;
         150  +
        Ok(builder.build())
         151  +
    }
         152  +
}
         153  +
impl ResumeSessionOutput {
         154  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         155  +
    /// Header-bound members are read directly from headers, avoiding runtime
         156  +
    /// member iteration overhead. Body members are read via the deserializer.
         157  +
    pub fn deserialize_with_response(
         158  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         159  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         160  +
        _status: u16,
         161  +
        _body: &[u8],
         162  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         163  +
        #[allow(unused_variables, unused_mut)]
         164  +
        let mut builder = Self::builder();
         165  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         166  +
            builder._request_id = Some(val.to_string());
         167  +
        }
         168  +
         169  +
        #[allow(
         170  +
            unused_variables,
         171  +
            unreachable_code,
         172  +
            clippy::single_match,
         173  +
            clippy::match_single_binding,
         174  +
            clippy::diverging_sub_expression
         175  +
        )]
         176  +
        deserializer.read_struct(&RESUMESESSIONOUTPUT_SCHEMA, &mut |member, deser| {
         177  +
            match member.member_index() {
         178  +
                Some(0) => {
         179  +
                    builder.session_id = Some(deser.read_string(member)?);
         180  +
                }
         181  +
                Some(1) => {
         182  +
                    builder.token_value = Some(deser.read_string(member)?);
         183  +
                }
         184  +
                Some(2) => {
         185  +
                    builder.stream_url = Some(deser.read_string(member)?);
         186  +
                }
         187  +
                _ => {}
         188  +
            }
         189  +
            Ok(())
         190  +
        })?;
         191  +
        Ok(builder.build())
         192  +
    }
         193  +
}
         194  +
impl ::aws_types::request_id::RequestId for ResumeSessionOutput {
         195  +
    fn request_id(&self) -> Option<&str> {
         196  +
        self._request_id.as_deref()
         197  +
    }
         198  +
}
         199  +
impl ResumeSessionOutput {
         200  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         201  +
        self._request_id = request_id;
         202  +
        self
         203  +
    }
         204  +
}
         205  +
impl ResumeSessionOutput {
         206  +
    /// Creates a new builder-style object to manufacture [`ResumeSessionOutput`](crate::operation::resume_session::ResumeSessionOutput).
         207  +
    pub fn builder() -> crate::operation::resume_session::builders::ResumeSessionOutputBuilder {
         208  +
        crate::operation::resume_session::builders::ResumeSessionOutputBuilder::default()
         209  +
    }
         210  +
}
         211  +
         212  +
/// A builder for [`ResumeSessionOutput`](crate::operation::resume_session::ResumeSessionOutput).
         213  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         214  +
#[non_exhaustive]
         215  +
pub struct ResumeSessionOutputBuilder {
         216  +
    pub(crate) session_id: ::std::option::Option<::std::string::String>,
         217  +
    pub(crate) token_value: ::std::option::Option<::std::string::String>,
         218  +
    pub(crate) stream_url: ::std::option::Option<::std::string::String>,
         219  +
    _request_id: Option<String>,
         220  +
}
         221  +
impl ResumeSessionOutputBuilder {
         222  +
    /// <p>The ID of the session.</p>
         223  +
    pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         224  +
        self.session_id = ::std::option::Option::Some(input.into());
         225  +
        self
         226  +
    }
         227  +
    /// <p>The ID of the session.</p>
         228  +
    pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         229  +
        self.session_id = input;
         230  +
        self
         231  +
    }
         232  +
    /// <p>The ID of the session.</p>
         233  +
    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
         234  +
        &self.session_id
         235  +
    }
         236  +
    /// <p>An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.</p>
         237  +
    pub fn token_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         238  +
        self.token_value = ::std::option::Option::Some(input.into());
         239  +
        self
         240  +
    }
         241  +
    /// <p>An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.</p>
         242  +
    pub fn set_token_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         243  +
        self.token_value = input;
         244  +
        self
         245  +
    }
         246  +
    /// <p>An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.</p>
         247  +
    pub fn get_token_value(&self) -> &::std::option::Option<::std::string::String> {
         248  +
        &self.token_value
         249  +
    }
         250  +
    /// <p>A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: <code>wss://ssmmessages.<b>region</b>.amazonaws.com/v1/data-channel/<b>session-id</b>?stream=(input|output)</code>.</p>
         251  +
    /// <p><b>region</b> represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as <code>us-east-2</code> for the US East (Ohio) Region. For a list of supported <b>region</b> values, see the <b>Region</b> column in <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region">Systems Manager service endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p>
         252  +
    /// <p><b>session-id</b> represents the ID of a Session Manager session, such as <code>1a2b3c4dEXAMPLE</code>.</p>
         253  +
    pub fn stream_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         254  +
        self.stream_url = ::std::option::Option::Some(input.into());
         255  +
        self
         256  +
    }
         257  +
    /// <p>A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: <code>wss://ssmmessages.<b>region</b>.amazonaws.com/v1/data-channel/<b>session-id</b>?stream=(input|output)</code>.</p>
         258  +
    /// <p><b>region</b> represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as <code>us-east-2</code> for the US East (Ohio) Region. For a list of supported <b>region</b> values, see the <b>Region</b> column in <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region">Systems Manager service endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p>
         259  +
    /// <p><b>session-id</b> represents the ID of a Session Manager session, such as <code>1a2b3c4dEXAMPLE</code>.</p>
         260  +
    pub fn set_stream_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         261  +
        self.stream_url = input;
         262  +
        self
         263  +
    }
         264  +
    /// <p>A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: <code>wss://ssmmessages.<b>region</b>.amazonaws.com/v1/data-channel/<b>session-id</b>?stream=(input|output)</code>.</p>
         265  +
    /// <p><b>region</b> represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as <code>us-east-2</code> for the US East (Ohio) Region. For a list of supported <b>region</b> values, see the <b>Region</b> column in <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region">Systems Manager service endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p>
         266  +
    /// <p><b>session-id</b> represents the ID of a Session Manager session, such as <code>1a2b3c4dEXAMPLE</code>.</p>
         267  +
    pub fn get_stream_url(&self) -> &::std::option::Option<::std::string::String> {
         268  +
        &self.stream_url
         269  +
    }
         270  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         271  +
        self._request_id = Some(request_id.into());
         272  +
        self
         273  +
    }
         274  +
         275  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         276  +
        self._request_id = request_id;
         277  +
        self
         278  +
    }
         279  +
    /// Consumes the builder and constructs a [`ResumeSessionOutput`](crate::operation::resume_session::ResumeSessionOutput).
         280  +
    pub fn build(self) -> crate::operation::resume_session::ResumeSessionOutput {
         281  +
        crate::operation::resume_session::ResumeSessionOutput {
         282  +
            session_id: self.session_id,
         283  +
            token_value: self.token_value,
         284  +
            stream_url: self.stream_url,
         285  +
            _request_id: self._request_id,
         286  +
        }
         287  +
    }
         288  +
}

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

@@ -0,1 +0,127 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::resume_session::_resume_session_input::ResumeSessionInputBuilder;
           3  +
           4  +
pub use crate::operation::resume_session::_resume_session_output::ResumeSessionOutputBuilder;
           5  +
           6  +
impl crate::operation::resume_session::builders::ResumeSessionInputBuilder {
           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::resume_session::ResumeSessionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::resume_session::ResumeSessionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.resume_session();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `ResumeSession`.
          24  +
///
          25  +
/// <p>Reconnects a session to a managed node after it has been disconnected. Connections can be resumed for disconnected sessions, but not terminated sessions.</p><note>
          26  +
/// <p>This command is primarily for use by client machines to automatically reconnect during intermittent network issues. It isn't intended for any other use.</p>
          27  +
/// </note>
          28  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          29  +
pub struct ResumeSessionFluentBuilder {
          30  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          31  +
    inner: crate::operation::resume_session::builders::ResumeSessionInputBuilder,
          32  +
    config_override: ::std::option::Option<crate::config::Builder>,
          33  +
}
          34  +
impl
          35  +
    crate::client::customize::internal::CustomizableSend<
          36  +
        crate::operation::resume_session::ResumeSessionOutput,
          37  +
        crate::operation::resume_session::ResumeSessionError,
          38  +
    > for ResumeSessionFluentBuilder
          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::resume_session::ResumeSessionOutput,
          46  +
            crate::operation::resume_session::ResumeSessionError,
          47  +
        >,
          48  +
    > {
          49  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          50  +
    }
          51  +
}
          52  +
impl ResumeSessionFluentBuilder {
          53  +
    /// Creates a new `ResumeSessionFluentBuilder`.
          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 ResumeSession as a reference.
          62  +
    pub fn as_input(&self) -> &crate::operation::resume_session::builders::ResumeSessionInputBuilder {
          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::resume_session::ResumeSessionOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::resume_session::ResumeSessionError,
          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::resume_session::ResumeSession::operation_runtime_plugins(
          87  +
            self.handle.runtime_plugins.clone(),
          88  +
            &self.handle.conf,
          89  +
            self.config_override,
          90  +
        );
          91  +
        crate::operation::resume_session::ResumeSession::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::resume_session::ResumeSessionOutput,
          99  +
        crate::operation::resume_session::ResumeSessionError,
         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 ID of the disconnected session to resume.</p>
         114  +
    pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         115  +
        self.inner = self.inner.session_id(input.into());
         116  +
        self
         117  +
    }
         118  +
    /// <p>The ID of the disconnected session to resume.</p>
         119  +
    pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         120  +
        self.inner = self.inner.set_session_id(input);
         121  +
        self
         122  +
    }
         123  +
    /// <p>The ID of the disconnected session to resume.</p>
         124  +
    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
         125  +
        self.inner.get_session_id()
         126  +
    }
         127  +
}

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

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