AWS SDK

AWS SDK

rev. 3388bf5e18f4269f2b46f39cdc814c5c39d413d0 (ignoring whitespace)

Files changed:

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

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

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

@@ -0,1 +0,425 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::send_command::_send_command_input::SendCommandInputBuilder;
           3  +
           4  +
pub use crate::operation::send_command::_send_command_output::SendCommandOutputBuilder;
           5  +
           6  +
impl crate::operation::send_command::builders::SendCommandInputBuilder {
           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::send_command::SendCommandOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::send_command::SendCommandError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.send_command();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `SendCommand`.
          24  +
///
          25  +
/// <p>Runs commands on one or more managed nodes.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct SendCommandFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::send_command::builders::SendCommandInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::send_command::SendCommandOutput,
          35  +
        crate::operation::send_command::SendCommandError,
          36  +
    > for SendCommandFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::send_command::SendCommandOutput,
          44  +
            crate::operation::send_command::SendCommandError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl SendCommandFluentBuilder {
          51  +
    /// Creates a new `SendCommandFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the SendCommand as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::send_command::builders::SendCommandInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::send_command::SendCommandOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::send_command::SendCommandError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::send_command::SendCommand::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::send_command::SendCommand::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::send_command::SendCommandOutput,
          97  +
        crate::operation::send_command::SendCommandError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    ///
         112  +
    /// Appends an item to `InstanceIds`.
         113  +
    ///
         114  +
    /// To override the contents of this collection use [`set_instance_ids`](Self::set_instance_ids).
         115  +
    ///
         116  +
    /// <p>The IDs of the managed nodes where the command should run. Specifying managed node IDs is most useful when you are targeting a limited number of managed nodes, though you can specify up to 50 IDs.</p>
         117  +
    /// <p>To target a larger number of managed nodes, or if you prefer not to list individual node IDs, we recommend using the <code>Targets</code> option instead. Using <code>Targets</code>, which accepts tag key-value pairs to identify the managed nodes to send commands to, you can a send command to tens, hundreds, or thousands of nodes at once.</p>
         118  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         119  +
    pub fn instance_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         120  +
        self.inner = self.inner.instance_ids(input.into());
         121  +
        self
         122  +
    }
         123  +
    /// <p>The IDs of the managed nodes where the command should run. Specifying managed node IDs is most useful when you are targeting a limited number of managed nodes, though you can specify up to 50 IDs.</p>
         124  +
    /// <p>To target a larger number of managed nodes, or if you prefer not to list individual node IDs, we recommend using the <code>Targets</code> option instead. Using <code>Targets</code>, which accepts tag key-value pairs to identify the managed nodes to send commands to, you can a send command to tens, hundreds, or thousands of nodes at once.</p>
         125  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         126  +
    pub fn set_instance_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         127  +
        self.inner = self.inner.set_instance_ids(input);
         128  +
        self
         129  +
    }
         130  +
    /// <p>The IDs of the managed nodes where the command should run. Specifying managed node IDs is most useful when you are targeting a limited number of managed nodes, though you can specify up to 50 IDs.</p>
         131  +
    /// <p>To target a larger number of managed nodes, or if you prefer not to list individual node IDs, we recommend using the <code>Targets</code> option instead. Using <code>Targets</code>, which accepts tag key-value pairs to identify the managed nodes to send commands to, you can a send command to tens, hundreds, or thousands of nodes at once.</p>
         132  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         133  +
    pub fn get_instance_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         134  +
        self.inner.get_instance_ids()
         135  +
    }
         136  +
    ///
         137  +
    /// Appends an item to `Targets`.
         138  +
    ///
         139  +
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
         140  +
    ///
         141  +
    /// <p>An array of search criteria that targets managed nodes using a <code>Key,Value</code> combination that you specify. Specifying targets is most useful when you want to send a command to a large number of managed nodes at once. Using <code>Targets</code>, which accepts tag key-value pairs to identify managed nodes, you can send a command to tens, hundreds, or thousands of nodes at once.</p>
         142  +
    /// <p>To send a command to a smaller number of managed nodes, you can use the <code>InstanceIds</code> option instead.</p>
         143  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         144  +
    pub fn targets(mut self, input: crate::types::Target) -> Self {
         145  +
        self.inner = self.inner.targets(input);
         146  +
        self
         147  +
    }
         148  +
    /// <p>An array of search criteria that targets managed nodes using a <code>Key,Value</code> combination that you specify. Specifying targets is most useful when you want to send a command to a large number of managed nodes at once. Using <code>Targets</code>, which accepts tag key-value pairs to identify managed nodes, you can send a command to tens, hundreds, or thousands of nodes at once.</p>
         149  +
    /// <p>To send a command to a smaller number of managed nodes, you can use the <code>InstanceIds</code> option instead.</p>
         150  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         151  +
    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
         152  +
        self.inner = self.inner.set_targets(input);
         153  +
        self
         154  +
    }
         155  +
    /// <p>An array of search criteria that targets managed nodes using a <code>Key,Value</code> combination that you specify. Specifying targets is most useful when you want to send a command to a large number of managed nodes at once. Using <code>Targets</code>, which accepts tag key-value pairs to identify managed nodes, you can send a command to tens, hundreds, or thousands of nodes at once.</p>
         156  +
    /// <p>To send a command to a smaller number of managed nodes, you can use the <code>InstanceIds</code> option instead.</p>
         157  +
    /// <p>For more information about how to use targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html">Run commands at scale</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         158  +
    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
         159  +
        self.inner.get_targets()
         160  +
    }
         161  +
    /// <p>The name of the Amazon Web Services Systems Manager document (SSM document) to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document Amazon Resource Name (ARN). For more information about how to use shared documents, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-using-shared.html">Sharing SSM documents</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><note>
         162  +
    /// <p>If you specify a document name or ARN that hasn't been shared with your account, you receive an <code>InvalidDocument</code> error.</p>
         163  +
    /// </note>
         164  +
    pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         165  +
        self.inner = self.inner.document_name(input.into());
         166  +
        self
         167  +
    }
         168  +
    /// <p>The name of the Amazon Web Services Systems Manager document (SSM document) to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document Amazon Resource Name (ARN). For more information about how to use shared documents, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-using-shared.html">Sharing SSM documents</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><note>
         169  +
    /// <p>If you specify a document name or ARN that hasn't been shared with your account, you receive an <code>InvalidDocument</code> error.</p>
         170  +
    /// </note>
         171  +
    pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         172  +
        self.inner = self.inner.set_document_name(input);
         173  +
        self
         174  +
    }
         175  +
    /// <p>The name of the Amazon Web Services Systems Manager document (SSM document) to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document Amazon Resource Name (ARN). For more information about how to use shared documents, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-using-shared.html">Sharing SSM documents</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><note>
         176  +
    /// <p>If you specify a document name or ARN that hasn't been shared with your account, you receive an <code>InvalidDocument</code> error.</p>
         177  +
    /// </note>
         178  +
    pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
         179  +
        self.inner.get_document_name()
         180  +
    }
         181  +
    /// <p>The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the Command Line Interface (Amazon Web Services CLI), then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:</p>
         182  +
    /// <p>--document-version "\$DEFAULT"</p>
         183  +
    /// <p>--document-version "\$LATEST"</p>
         184  +
    /// <p>--document-version "3"</p>
         185  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         186  +
        self.inner = self.inner.document_version(input.into());
         187  +
        self
         188  +
    }
         189  +
    /// <p>The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the Command Line Interface (Amazon Web Services CLI), then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:</p>
         190  +
    /// <p>--document-version "\$DEFAULT"</p>
         191  +
    /// <p>--document-version "\$LATEST"</p>
         192  +
    /// <p>--document-version "3"</p>
         193  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         194  +
        self.inner = self.inner.set_document_version(input);
         195  +
        self
         196  +
    }
         197  +
    /// <p>The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the Command Line Interface (Amazon Web Services CLI), then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:</p>
         198  +
    /// <p>--document-version "\$DEFAULT"</p>
         199  +
    /// <p>--document-version "\$LATEST"</p>
         200  +
    /// <p>--document-version "3"</p>
         201  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         202  +
        self.inner.get_document_version()
         203  +
    }
         204  +
    /// <p>The Sha256 or Sha1 hash created by the system when the document was created.</p><note>
         205  +
    /// <p>Sha1 hashes have been deprecated.</p>
         206  +
    /// </note>
         207  +
    pub fn document_hash(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         208  +
        self.inner = self.inner.document_hash(input.into());
         209  +
        self
         210  +
    }
         211  +
    /// <p>The Sha256 or Sha1 hash created by the system when the document was created.</p><note>
         212  +
    /// <p>Sha1 hashes have been deprecated.</p>
         213  +
    /// </note>
         214  +
    pub fn set_document_hash(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         215  +
        self.inner = self.inner.set_document_hash(input);
         216  +
        self
         217  +
    }
         218  +
    /// <p>The Sha256 or Sha1 hash created by the system when the document was created.</p><note>
         219  +
    /// <p>Sha1 hashes have been deprecated.</p>
         220  +
    /// </note>
         221  +
    pub fn get_document_hash(&self) -> &::std::option::Option<::std::string::String> {
         222  +
        self.inner.get_document_hash()
         223  +
    }
         224  +
    /// <p>Sha256 or Sha1.</p><note>
         225  +
    /// <p>Sha1 hashes have been deprecated.</p>
         226  +
    /// </note>
         227  +
    pub fn document_hash_type(mut self, input: crate::types::DocumentHashType) -> Self {
         228  +
        self.inner = self.inner.document_hash_type(input);
         229  +
        self
         230  +
    }
         231  +
    /// <p>Sha256 or Sha1.</p><note>
         232  +
    /// <p>Sha1 hashes have been deprecated.</p>
         233  +
    /// </note>
         234  +
    pub fn set_document_hash_type(mut self, input: ::std::option::Option<crate::types::DocumentHashType>) -> Self {
         235  +
        self.inner = self.inner.set_document_hash_type(input);
         236  +
        self
         237  +
    }
         238  +
    /// <p>Sha256 or Sha1.</p><note>
         239  +
    /// <p>Sha1 hashes have been deprecated.</p>
         240  +
    /// </note>
         241  +
    pub fn get_document_hash_type(&self) -> &::std::option::Option<crate::types::DocumentHashType> {
         242  +
        self.inner.get_document_hash_type()
         243  +
    }
         244  +
    /// <p>If this time is reached and the command hasn't already started running, it won't run.</p>
         245  +
    pub fn timeout_seconds(mut self, input: i32) -> Self {
         246  +
        self.inner = self.inner.timeout_seconds(input);
         247  +
        self
         248  +
    }
         249  +
    /// <p>If this time is reached and the command hasn't already started running, it won't run.</p>
         250  +
    pub fn set_timeout_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
         251  +
        self.inner = self.inner.set_timeout_seconds(input);
         252  +
        self
         253  +
    }
         254  +
    /// <p>If this time is reached and the command hasn't already started running, it won't run.</p>
         255  +
    pub fn get_timeout_seconds(&self) -> &::std::option::Option<i32> {
         256  +
        self.inner.get_timeout_seconds()
         257  +
    }
         258  +
    /// <p>User-specified information about the command, such as a brief description of what the command should do.</p>
         259  +
    pub fn comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         260  +
        self.inner = self.inner.comment(input.into());
         261  +
        self
         262  +
    }
         263  +
    /// <p>User-specified information about the command, such as a brief description of what the command should do.</p>
         264  +
    pub fn set_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         265  +
        self.inner = self.inner.set_comment(input);
         266  +
        self
         267  +
    }
         268  +
    /// <p>User-specified information about the command, such as a brief description of what the command should do.</p>
         269  +
    pub fn get_comment(&self) -> &::std::option::Option<::std::string::String> {
         270  +
        self.inner.get_comment()
         271  +
    }
         272  +
    ///
         273  +
    /// Adds a key-value pair to `Parameters`.
         274  +
    ///
         275  +
    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
         276  +
    ///
         277  +
    /// <p>The required and optional parameters specified in the document being run.</p>
         278  +
    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
         279  +
        self.inner = self.inner.parameters(k.into(), v);
         280  +
        self
         281  +
    }
         282  +
    /// <p>The required and optional parameters specified in the document being run.</p>
         283  +
    pub fn set_parameters(
         284  +
        mut self,
         285  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
         286  +
    ) -> Self {
         287  +
        self.inner = self.inner.set_parameters(input);
         288  +
        self
         289  +
    }
         290  +
    /// <p>The required and optional parameters specified in the document being run.</p>
         291  +
    pub fn get_parameters(
         292  +
        &self,
         293  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
         294  +
        self.inner.get_parameters()
         295  +
    }
         296  +
    /// <p>(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.</p>
         297  +
    pub fn output_s3_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         298  +
        self.inner = self.inner.output_s3_region(input.into());
         299  +
        self
         300  +
    }
         301  +
    /// <p>(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.</p>
         302  +
    pub fn set_output_s3_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         303  +
        self.inner = self.inner.set_output_s3_region(input);
         304  +
        self
         305  +
    }
         306  +
    /// <p>(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.</p>
         307  +
    pub fn get_output_s3_region(&self) -> &::std::option::Option<::std::string::String> {
         308  +
        self.inner.get_output_s3_region()
         309  +
    }
         310  +
    /// <p>The name of the S3 bucket where command execution responses should be stored.</p>
         311  +
    pub fn output_s3_bucket_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         312  +
        self.inner = self.inner.output_s3_bucket_name(input.into());
         313  +
        self
         314  +
    }
         315  +
    /// <p>The name of the S3 bucket where command execution responses should be stored.</p>
         316  +
    pub fn set_output_s3_bucket_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         317  +
        self.inner = self.inner.set_output_s3_bucket_name(input);
         318  +
        self
         319  +
    }
         320  +
    /// <p>The name of the S3 bucket where command execution responses should be stored.</p>
         321  +
    pub fn get_output_s3_bucket_name(&self) -> &::std::option::Option<::std::string::String> {
         322  +
        self.inner.get_output_s3_bucket_name()
         323  +
    }
         324  +
    /// <p>The directory structure within the S3 bucket where the responses should be stored.</p>
         325  +
    pub fn output_s3_key_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         326  +
        self.inner = self.inner.output_s3_key_prefix(input.into());
         327  +
        self
         328  +
    }
         329  +
    /// <p>The directory structure within the S3 bucket where the responses should be stored.</p>
         330  +
    pub fn set_output_s3_key_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         331  +
        self.inner = self.inner.set_output_s3_key_prefix(input);
         332  +
        self
         333  +
    }
         334  +
    /// <p>The directory structure within the S3 bucket where the responses should be stored.</p>
         335  +
    pub fn get_output_s3_key_prefix(&self) -> &::std::option::Option<::std::string::String> {
         336  +
        self.inner.get_output_s3_key_prefix()
         337  +
    }
         338  +
    /// <p>(Optional) The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a number such as 10 or a percentage such as 10%. The default value is <code>50</code>. For more information about how to use <code>MaxConcurrency</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity">Using concurrency controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         339  +
    pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         340  +
        self.inner = self.inner.max_concurrency(input.into());
         341  +
        self
         342  +
    }
         343  +
    /// <p>(Optional) The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a number such as 10 or a percentage such as 10%. The default value is <code>50</code>. For more information about how to use <code>MaxConcurrency</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity">Using concurrency controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         344  +
    pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         345  +
        self.inner = self.inner.set_max_concurrency(input);
         346  +
        self
         347  +
    }
         348  +
    /// <p>(Optional) The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a number such as 10 or a percentage such as 10%. The default value is <code>50</code>. For more information about how to use <code>MaxConcurrency</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity">Using concurrency controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         349  +
    pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> {
         350  +
        self.inner.get_max_concurrency()
         351  +
    }
         352  +
    /// <p>The maximum number of errors allowed without the command failing. When the command fails one more time beyond the value of <code>MaxErrors</code>, the systems stops sending the command to additional targets. You can specify a number like 10 or a percentage like 10%. The default value is <code>0</code>. For more information about how to use <code>MaxErrors</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors">Using error controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         353  +
    pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         354  +
        self.inner = self.inner.max_errors(input.into());
         355  +
        self
         356  +
    }
         357  +
    /// <p>The maximum number of errors allowed without the command failing. When the command fails one more time beyond the value of <code>MaxErrors</code>, the systems stops sending the command to additional targets. You can specify a number like 10 or a percentage like 10%. The default value is <code>0</code>. For more information about how to use <code>MaxErrors</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors">Using error controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         358  +
    pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         359  +
        self.inner = self.inner.set_max_errors(input);
         360  +
        self
         361  +
    }
         362  +
    /// <p>The maximum number of errors allowed without the command failing. When the command fails one more time beyond the value of <code>MaxErrors</code>, the systems stops sending the command to additional targets. You can specify a number like 10 or a percentage like 10%. The default value is <code>0</code>. For more information about how to use <code>MaxErrors</code>, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors">Using error controls</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         363  +
    pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> {
         364  +
        self.inner.get_max_errors()
         365  +
    }
         366  +
    /// <p>The ARN of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for Run Command commands.</p>
         367  +
    /// <p>This role must provide the <code>sns:Publish</code> permission for your notification topic. For information about creating and using this service role, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring Systems Manager status changes using Amazon SNS notifications</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         368  +
    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         369  +
        self.inner = self.inner.service_role_arn(input.into());
         370  +
        self
         371  +
    }
         372  +
    /// <p>The ARN of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for Run Command commands.</p>
         373  +
    /// <p>This role must provide the <code>sns:Publish</code> permission for your notification topic. For information about creating and using this service role, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring Systems Manager status changes using Amazon SNS notifications</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         374  +
    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         375  +
        self.inner = self.inner.set_service_role_arn(input);
         376  +
        self
         377  +
    }
         378  +
    /// <p>The ARN of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for Run Command commands.</p>
         379  +
    /// <p>This role must provide the <code>sns:Publish</code> permission for your notification topic. For information about creating and using this service role, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring Systems Manager status changes using Amazon SNS notifications</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         380  +
    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
         381  +
        self.inner.get_service_role_arn()
         382  +
    }
         383  +
    /// <p>Configurations for sending notifications.</p>
         384  +
    pub fn notification_config(mut self, input: crate::types::NotificationConfig) -> Self {
         385  +
        self.inner = self.inner.notification_config(input);
         386  +
        self
         387  +
    }
         388  +
    /// <p>Configurations for sending notifications.</p>
         389  +
    pub fn set_notification_config(mut self, input: ::std::option::Option<crate::types::NotificationConfig>) -> Self {
         390  +
        self.inner = self.inner.set_notification_config(input);
         391  +
        self
         392  +
    }
         393  +
    /// <p>Configurations for sending notifications.</p>
         394  +
    pub fn get_notification_config(&self) -> &::std::option::Option<crate::types::NotificationConfig> {
         395  +
        self.inner.get_notification_config()
         396  +
    }
         397  +
    /// <p>Enables Amazon Web Services Systems Manager to send Run Command output to Amazon CloudWatch Logs. Run Command is a tool in Amazon Web Services Systems Manager.</p>
         398  +
    pub fn cloud_watch_output_config(mut self, input: crate::types::CloudWatchOutputConfig) -> Self {
         399  +
        self.inner = self.inner.cloud_watch_output_config(input);
         400  +
        self
         401  +
    }
         402  +
    /// <p>Enables Amazon Web Services Systems Manager to send Run Command output to Amazon CloudWatch Logs. Run Command is a tool in Amazon Web Services Systems Manager.</p>
         403  +
    pub fn set_cloud_watch_output_config(mut self, input: ::std::option::Option<crate::types::CloudWatchOutputConfig>) -> Self {
         404  +
        self.inner = self.inner.set_cloud_watch_output_config(input);
         405  +
        self
         406  +
    }
         407  +
    /// <p>Enables Amazon Web Services Systems Manager to send Run Command output to Amazon CloudWatch Logs. Run Command is a tool in Amazon Web Services Systems Manager.</p>
         408  +
    pub fn get_cloud_watch_output_config(&self) -> &::std::option::Option<crate::types::CloudWatchOutputConfig> {
         409  +
        self.inner.get_cloud_watch_output_config()
         410  +
    }
         411  +
    /// <p>The CloudWatch alarm you want to apply to your command.</p>
         412  +
    pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
         413  +
        self.inner = self.inner.alarm_configuration(input);
         414  +
        self
         415  +
    }
         416  +
    /// <p>The CloudWatch alarm you want to apply to your command.</p>
         417  +
    pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
         418  +
        self.inner = self.inner.set_alarm_configuration(input);
         419  +
        self
         420  +
    }
         421  +
    /// <p>The CloudWatch alarm you want to apply to your command.</p>
         422  +
    pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
         423  +
        self.inner.get_alarm_configuration()
         424  +
    }
         425  +
}

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

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