AWS SDK

AWS SDK

rev. 97ba95e6039d206ffea5b866ddc214d34f7f88c3 (ignoring whitespace)

Files changed:

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

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

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

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

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

@@ -0,1 +0,126 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::register_default_patch_baseline::_register_default_patch_baseline_input::RegisterDefaultPatchBaselineInputBuilder;
           3  +
           4  +
pub use crate::operation::register_default_patch_baseline::_register_default_patch_baseline_output::RegisterDefaultPatchBaselineOutputBuilder;
           5  +
           6  +
impl crate::operation::register_default_patch_baseline::builders::RegisterDefaultPatchBaselineInputBuilder {
           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::register_default_patch_baseline::RegisterDefaultPatchBaselineOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.register_default_patch_baseline();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `RegisterDefaultPatchBaseline`.
          24  +
///
          25  +
/// <p>Defines the default patch baseline for the relevant operating system.</p>
          26  +
/// <p>To reset the Amazon Web Services-predefined patch baseline as the default, specify the full patch baseline Amazon Resource Name (ARN) as the baseline ID value. For example, for CentOS, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed</code> instead of <code>pb-0574b43a65ea646ed</code>.</p>
          27  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          28  +
pub struct RegisterDefaultPatchBaselineFluentBuilder {
          29  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          30  +
    inner: crate::operation::register_default_patch_baseline::builders::RegisterDefaultPatchBaselineInputBuilder,
          31  +
    config_override: ::std::option::Option<crate::config::Builder>,
          32  +
}
          33  +
impl
          34  +
    crate::client::customize::internal::CustomizableSend<
          35  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineOutput,
          36  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineError,
          37  +
    > for RegisterDefaultPatchBaselineFluentBuilder
          38  +
{
          39  +
    fn send(
          40  +
        self,
          41  +
        config_override: crate::config::Builder,
          42  +
    ) -> crate::client::customize::internal::BoxFuture<
          43  +
        crate::client::customize::internal::SendResult<
          44  +
            crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineOutput,
          45  +
            crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineError,
          46  +
        >,
          47  +
    > {
          48  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          49  +
    }
          50  +
}
          51  +
impl RegisterDefaultPatchBaselineFluentBuilder {
          52  +
    /// Creates a new `RegisterDefaultPatchBaselineFluentBuilder`.
          53  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          54  +
        Self {
          55  +
            handle,
          56  +
            inner: ::std::default::Default::default(),
          57  +
            config_override: ::std::option::Option::None,
          58  +
        }
          59  +
    }
          60  +
    /// Access the RegisterDefaultPatchBaseline as a reference.
          61  +
    pub fn as_input(&self) -> &crate::operation::register_default_patch_baseline::builders::RegisterDefaultPatchBaselineInputBuilder {
          62  +
        &self.inner
          63  +
    }
          64  +
    /// Sends the request and returns the response.
          65  +
    ///
          66  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          67  +
    /// can be matched against.
          68  +
    ///
          69  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          70  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          71  +
    /// set when configuring the client.
          72  +
    pub async fn send(
          73  +
        self,
          74  +
    ) -> ::std::result::Result<
          75  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineOutput,
          76  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          77  +
            crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineError,
          78  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          79  +
        >,
          80  +
    > {
          81  +
        let input = self
          82  +
            .inner
          83  +
            .build()
          84  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          85  +
        let runtime_plugins = crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaseline::operation_runtime_plugins(
          86  +
            self.handle.runtime_plugins.clone(),
          87  +
            &self.handle.conf,
          88  +
            self.config_override,
          89  +
        );
          90  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaseline::orchestrate(&runtime_plugins, input).await
          91  +
    }
          92  +
          93  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          94  +
    pub fn customize(
          95  +
        self,
          96  +
    ) -> crate::client::customize::CustomizableOperation<
          97  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineOutput,
          98  +
        crate::operation::register_default_patch_baseline::RegisterDefaultPatchBaselineError,
          99  +
        Self,
         100  +
    > {
         101  +
        crate::client::customize::CustomizableOperation::new(self)
         102  +
    }
         103  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         104  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         105  +
        self
         106  +
    }
         107  +
         108  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         109  +
        self.config_override = config_override;
         110  +
        self
         111  +
    }
         112  +
    /// <p>The ID of the patch baseline that should be the default patch baseline.</p>
         113  +
    pub fn baseline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         114  +
        self.inner = self.inner.baseline_id(input.into());
         115  +
        self
         116  +
    }
         117  +
    /// <p>The ID of the patch baseline that should be the default patch baseline.</p>
         118  +
    pub fn set_baseline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         119  +
        self.inner = self.inner.set_baseline_id(input);
         120  +
        self
         121  +
    }
         122  +
    /// <p>The ID of the patch baseline that should be the default patch baseline.</p>
         123  +
    pub fn get_baseline_id(&self) -> &::std::option::Option<::std::string::String> {
         124  +
        self.inner.get_baseline_id()
         125  +
    }
         126  +
}

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

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