AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/get_maintenance_window_execution/_get_maintenance_window_execution_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 GetMaintenanceWindowExecutionInput {
           6  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
           7  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           8  +
}
           9  +
impl GetMaintenanceWindowExecutionInput {
          10  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
          11  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          12  +
        self.window_execution_id.as_deref()
          13  +
    }
          14  +
}
          15  +
static GETMAINTENANCEWINDOWEXECUTIONINPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          16  +
    ::aws_smithy_schema::ShapeId::from_parts(
          17  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionInput$WindowExecutionId",
          18  +
        "com.amazonaws.ssm.synthetic",
          19  +
        "GetMaintenanceWindowExecutionInput",
          20  +
    ),
          21  +
    ::aws_smithy_schema::ShapeType::String,
          22  +
    "WindowExecutionId",
          23  +
    0,
          24  +
);
          25  +
static GETMAINTENANCEWINDOWEXECUTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          26  +
    ::aws_smithy_schema::ShapeId::from_parts(
          27  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionInput",
          28  +
        "com.amazonaws.ssm.synthetic",
          29  +
        "GetMaintenanceWindowExecutionInput",
          30  +
    ),
          31  +
    ::aws_smithy_schema::ShapeType::Structure,
          32  +
    &[&GETMAINTENANCEWINDOWEXECUTIONINPUT_MEMBER_WINDOW_EXECUTION_ID],
          33  +
)
          34  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          35  +
.with_original_name("GetMaintenanceWindowExecutionRequest");
          36  +
impl GetMaintenanceWindowExecutionInput {
          37  +
    /// The schema for this shape.
          38  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONINPUT_SCHEMA;
          39  +
}
          40  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionInput {
          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.window_execution_id {
          47  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONINPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
          48  +
        }
          49  +
        Ok(())
          50  +
    }
          51  +
}
          52  +
impl GetMaintenanceWindowExecutionInput {
          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(&GETMAINTENANCEWINDOWEXECUTIONINPUT_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.window_execution_id = Some(deser.read_string(member)?);
          73  +
                    }
          74  +
                }
          75  +
                _ => {}
          76  +
            }
          77  +
            Ok(())
          78  +
        })?;
          79  +
        builder.window_execution_id = builder.window_execution_id.or(Some(String::new()));
          80  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
          81  +
    }
          82  +
}
          83  +
impl GetMaintenanceWindowExecutionInput {
          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 GetMaintenanceWindowExecutionInput {
          95  +
    /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionInput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput).
          96  +
    pub fn builder() -> crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionInputBuilder {
          97  +
        crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionInputBuilder::default()
          98  +
    }
          99  +
}
         100  +
         101  +
/// A builder for [`GetMaintenanceWindowExecutionInput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput).
         102  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
#[non_exhaustive]
         104  +
pub struct GetMaintenanceWindowExecutionInputBuilder {
         105  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         106  +
}
         107  +
impl GetMaintenanceWindowExecutionInputBuilder {
         108  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         109  +
    /// This field is required.
         110  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         111  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         112  +
        self
         113  +
    }
         114  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         115  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         116  +
        self.window_execution_id = input;
         117  +
        self
         118  +
    }
         119  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         120  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         121  +
        &self.window_execution_id
         122  +
    }
         123  +
    /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionInput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput).
         124  +
    pub fn build(
         125  +
        self,
         126  +
    ) -> ::std::result::Result<
         127  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput,
         128  +
        ::aws_smithy_types::error::operation::BuildError,
         129  +
    > {
         130  +
        ::std::result::Result::Ok(crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput {
         131  +
            window_execution_id: self.window_execution_id,
         132  +
        })
         133  +
    }
         134  +
}

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

@@ -0,1 +0,443 @@
           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 GetMaintenanceWindowExecutionOutput {
           6  +
    /// <p>The ID of the maintenance window execution.</p>
           7  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The ID of the task executions from the maintenance window execution.</p>
           9  +
    pub task_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          10  +
    /// <p>The status of the maintenance window execution.</p>
          11  +
    pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
          12  +
    /// <p>The details explaining the status. Not available for all status values.</p>
          13  +
    pub status_details: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>The time the maintenance window started running.</p>
          15  +
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          16  +
    /// <p>The time the maintenance window finished running.</p>
          17  +
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          18  +
    _request_id: Option<String>,
          19  +
}
          20  +
impl GetMaintenanceWindowExecutionOutput {
          21  +
    /// <p>The ID of the maintenance window execution.</p>
          22  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          23  +
        self.window_execution_id.as_deref()
          24  +
    }
          25  +
    /// <p>The ID of the task executions from the maintenance window execution.</p>
          26  +
    ///
          27  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.task_ids.is_none()`.
          28  +
    pub fn task_ids(&self) -> &[::std::string::String] {
          29  +
        self.task_ids.as_deref().unwrap_or_default()
          30  +
    }
          31  +
    /// <p>The status of the maintenance window execution.</p>
          32  +
    pub fn status(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowExecutionStatus> {
          33  +
        self.status.as_ref()
          34  +
    }
          35  +
    /// <p>The details explaining the status. Not available for all status values.</p>
          36  +
    pub fn status_details(&self) -> ::std::option::Option<&str> {
          37  +
        self.status_details.as_deref()
          38  +
    }
          39  +
    /// <p>The time the maintenance window started running.</p>
          40  +
    pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          41  +
        self.start_time.as_ref()
          42  +
    }
          43  +
    /// <p>The time the maintenance window finished running.</p>
          44  +
    pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          45  +
        self.end_time.as_ref()
          46  +
    }
          47  +
}
          48  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          49  +
    ::aws_smithy_schema::ShapeId::from_parts(
          50  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$WindowExecutionId",
          51  +
        "com.amazonaws.ssm.synthetic",
          52  +
        "GetMaintenanceWindowExecutionOutput",
          53  +
    ),
          54  +
    ::aws_smithy_schema::ShapeType::String,
          55  +
    "WindowExecutionId",
          56  +
    0,
          57  +
);
          58  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_TASK_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdList$member",
          61  +
        "com.amazonaws.ssm",
          62  +
        "MaintenanceWindowExecutionTaskIdList",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::String,
          65  +
    "member",
          66  +
    0,
          67  +
);
          68  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_TASK_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          69  +
    ::aws_smithy_schema::ShapeId::from_parts(
          70  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$TaskIds",
          71  +
        "com.amazonaws.ssm.synthetic",
          72  +
        "GetMaintenanceWindowExecutionOutput",
          73  +
    ),
          74  +
    ::aws_smithy_schema::ShapeType::List,
          75  +
    "TaskIds",
          76  +
    1,
          77  +
)
          78  +
.with_list_member(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_TASK_IDS_MEMBER);
          79  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          80  +
    ::aws_smithy_schema::ShapeId::from_parts(
          81  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$Status",
          82  +
        "com.amazonaws.ssm.synthetic",
          83  +
        "GetMaintenanceWindowExecutionOutput",
          84  +
    ),
          85  +
    ::aws_smithy_schema::ShapeType::String,
          86  +
    "Status",
          87  +
    2,
          88  +
);
          89  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          90  +
    ::aws_smithy_schema::ShapeId::from_parts(
          91  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$StatusDetails",
          92  +
        "com.amazonaws.ssm.synthetic",
          93  +
        "GetMaintenanceWindowExecutionOutput",
          94  +
    ),
          95  +
    ::aws_smithy_schema::ShapeType::String,
          96  +
    "StatusDetails",
          97  +
    3,
          98  +
);
          99  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         100  +
    ::aws_smithy_schema::ShapeId::from_parts(
         101  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$StartTime",
         102  +
        "com.amazonaws.ssm.synthetic",
         103  +
        "GetMaintenanceWindowExecutionOutput",
         104  +
    ),
         105  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         106  +
    "StartTime",
         107  +
    4,
         108  +
);
         109  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         110  +
    ::aws_smithy_schema::ShapeId::from_parts(
         111  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput$EndTime",
         112  +
        "com.amazonaws.ssm.synthetic",
         113  +
        "GetMaintenanceWindowExecutionOutput",
         114  +
    ),
         115  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         116  +
    "EndTime",
         117  +
    5,
         118  +
);
         119  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         120  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         121  +
    ::aws_smithy_schema::ShapeType::String,
         122  +
    "request_id",
         123  +
    6,
         124  +
)
         125  +
.with_http_header("x-amzn-requestid");
         126  +
static GETMAINTENANCEWINDOWEXECUTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         127  +
    ::aws_smithy_schema::ShapeId::from_parts(
         128  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionOutput",
         129  +
        "com.amazonaws.ssm.synthetic",
         130  +
        "GetMaintenanceWindowExecutionOutput",
         131  +
    ),
         132  +
    ::aws_smithy_schema::ShapeType::Structure,
         133  +
    &[
         134  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID,
         135  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_TASK_IDS,
         136  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS,
         137  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS_DETAILS,
         138  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_START_TIME,
         139  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_END_TIME,
         140  +
        &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER__REQUEST_ID,
         141  +
    ],
         142  +
)
         143  +
.with_original_name("GetMaintenanceWindowExecutionResult");
         144  +
impl GetMaintenanceWindowExecutionOutput {
         145  +
    /// The schema for this shape.
         146  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_SCHEMA;
         147  +
}
         148  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionOutput {
         149  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         150  +
    fn serialize_members(
         151  +
        &self,
         152  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         153  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         154  +
        if let Some(ref val) = self.window_execution_id {
         155  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
         156  +
        }
         157  +
        if let Some(ref val) = self.task_ids {
         158  +
            ser.write_list(
         159  +
                &GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_TASK_IDS,
         160  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         161  +
                    for item in val {
         162  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
         163  +
                    }
         164  +
                    Ok(())
         165  +
                },
         166  +
            )?;
         167  +
        }
         168  +
        if let Some(ref val) = self.status {
         169  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS, val.as_str())?;
         170  +
        }
         171  +
        if let Some(ref val) = self.status_details {
         172  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_STATUS_DETAILS, val)?;
         173  +
        }
         174  +
        if let Some(ref val) = self.start_time {
         175  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_START_TIME, val)?;
         176  +
        }
         177  +
        if let Some(ref val) = self.end_time {
         178  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_MEMBER_END_TIME, val)?;
         179  +
        }
         180  +
        Ok(())
         181  +
    }
         182  +
}
         183  +
impl GetMaintenanceWindowExecutionOutput {
         184  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         185  +
    pub fn deserialize(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         187  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         188  +
        #[allow(unused_variables, unused_mut)]
         189  +
        let mut builder = Self::builder();
         190  +
        #[allow(
         191  +
            unused_variables,
         192  +
            unreachable_code,
         193  +
            clippy::single_match,
         194  +
            clippy::match_single_binding,
         195  +
            clippy::diverging_sub_expression
         196  +
        )]
         197  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_SCHEMA, &mut |member, deser| {
         198  +
            match member.member_index() {
         199  +
                Some(0) => {
         200  +
                    if deser.is_null() {
         201  +
                        deser.read_null()?;
         202  +
                    } else {
         203  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         204  +
                    }
         205  +
                }
         206  +
                Some(1) => {
         207  +
                    if deser.is_null() {
         208  +
                        deser.read_null()?;
         209  +
                    } else {
         210  +
                        builder.task_ids = Some(deser.read_string_list(member)?);
         211  +
                    }
         212  +
                }
         213  +
                Some(2) => {
         214  +
                    if deser.is_null() {
         215  +
                        deser.read_null()?;
         216  +
                    } else {
         217  +
                        builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         218  +
                    }
         219  +
                }
         220  +
                Some(3) => {
         221  +
                    if deser.is_null() {
         222  +
                        deser.read_null()?;
         223  +
                    } else {
         224  +
                        builder.status_details = Some(deser.read_string(member)?);
         225  +
                    }
         226  +
                }
         227  +
                Some(4) => {
         228  +
                    if deser.is_null() {
         229  +
                        deser.read_null()?;
         230  +
                    } else {
         231  +
                        builder.start_time = Some(deser.read_timestamp(member)?);
         232  +
                    }
         233  +
                }
         234  +
                Some(5) => {
         235  +
                    if deser.is_null() {
         236  +
                        deser.read_null()?;
         237  +
                    } else {
         238  +
                        builder.end_time = Some(deser.read_timestamp(member)?);
         239  +
                    }
         240  +
                }
         241  +
                Some(6) => {
         242  +
                    builder._request_id = Some(deser.read_string(member)?);
         243  +
                }
         244  +
                _ => {}
         245  +
            }
         246  +
            Ok(())
         247  +
        })?;
         248  +
        Ok(builder.build())
         249  +
    }
         250  +
}
         251  +
impl GetMaintenanceWindowExecutionOutput {
         252  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         253  +
    /// Header-bound members are read directly from headers, avoiding runtime
         254  +
    /// member iteration overhead. Body members are read via the deserializer.
         255  +
    pub fn deserialize_with_response(
         256  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         257  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         258  +
        _status: u16,
         259  +
        _body: &[u8],
         260  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         261  +
        #[allow(unused_variables, unused_mut)]
         262  +
        let mut builder = Self::builder();
         263  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         264  +
            builder._request_id = Some(val.to_string());
         265  +
        }
         266  +
         267  +
        #[allow(
         268  +
            unused_variables,
         269  +
            unreachable_code,
         270  +
            clippy::single_match,
         271  +
            clippy::match_single_binding,
         272  +
            clippy::diverging_sub_expression
         273  +
        )]
         274  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONOUTPUT_SCHEMA, &mut |member, deser| {
         275  +
            match member.member_index() {
         276  +
                Some(0) => {
         277  +
                    builder.window_execution_id = Some(deser.read_string(member)?);
         278  +
                }
         279  +
                Some(1) => {
         280  +
                    builder.task_ids = Some(deser.read_string_list(member)?);
         281  +
                }
         282  +
                Some(2) => {
         283  +
                    builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         284  +
                }
         285  +
                Some(3) => {
         286  +
                    builder.status_details = Some(deser.read_string(member)?);
         287  +
                }
         288  +
                Some(4) => {
         289  +
                    builder.start_time = Some(deser.read_timestamp(member)?);
         290  +
                }
         291  +
                Some(5) => {
         292  +
                    builder.end_time = Some(deser.read_timestamp(member)?);
         293  +
                }
         294  +
                _ => {}
         295  +
            }
         296  +
            Ok(())
         297  +
        })?;
         298  +
        Ok(builder.build())
         299  +
    }
         300  +
}
         301  +
impl ::aws_types::request_id::RequestId for GetMaintenanceWindowExecutionOutput {
         302  +
    fn request_id(&self) -> Option<&str> {
         303  +
        self._request_id.as_deref()
         304  +
    }
         305  +
}
         306  +
impl GetMaintenanceWindowExecutionOutput {
         307  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         308  +
        self._request_id = request_id;
         309  +
        self
         310  +
    }
         311  +
}
         312  +
impl GetMaintenanceWindowExecutionOutput {
         313  +
    /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionOutput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput).
         314  +
    pub fn builder() -> crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionOutputBuilder {
         315  +
        crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionOutputBuilder::default()
         316  +
    }
         317  +
}
         318  +
         319  +
/// A builder for [`GetMaintenanceWindowExecutionOutput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput).
         320  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         321  +
#[non_exhaustive]
         322  +
pub struct GetMaintenanceWindowExecutionOutputBuilder {
         323  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         324  +
    pub(crate) task_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         325  +
    pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
         326  +
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
         327  +
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         328  +
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         329  +
    _request_id: Option<String>,
         330  +
}
         331  +
impl GetMaintenanceWindowExecutionOutputBuilder {
         332  +
    /// <p>The ID of the maintenance window execution.</p>
         333  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         334  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         335  +
        self
         336  +
    }
         337  +
    /// <p>The ID of the maintenance window execution.</p>
         338  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         339  +
        self.window_execution_id = input;
         340  +
        self
         341  +
    }
         342  +
    /// <p>The ID of the maintenance window execution.</p>
         343  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         344  +
        &self.window_execution_id
         345  +
    }
         346  +
    /// Appends an item to `task_ids`.
         347  +
    ///
         348  +
    /// To override the contents of this collection use [`set_task_ids`](Self::set_task_ids).
         349  +
    ///
         350  +
    /// <p>The ID of the task executions from the maintenance window execution.</p>
         351  +
    pub fn task_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         352  +
        let mut v = self.task_ids.unwrap_or_default();
         353  +
        v.push(input.into());
         354  +
        self.task_ids = ::std::option::Option::Some(v);
         355  +
        self
         356  +
    }
         357  +
    /// <p>The ID of the task executions from the maintenance window execution.</p>
         358  +
    pub fn set_task_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         359  +
        self.task_ids = input;
         360  +
        self
         361  +
    }
         362  +
    /// <p>The ID of the task executions from the maintenance window execution.</p>
         363  +
    pub fn get_task_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         364  +
        &self.task_ids
         365  +
    }
         366  +
    /// <p>The status of the maintenance window execution.</p>
         367  +
    pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
         368  +
        self.status = ::std::option::Option::Some(input);
         369  +
        self
         370  +
    }
         371  +
    /// <p>The status of the maintenance window execution.</p>
         372  +
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
         373  +
        self.status = input;
         374  +
        self
         375  +
    }
         376  +
    /// <p>The status of the maintenance window execution.</p>
         377  +
    pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
         378  +
        &self.status
         379  +
    }
         380  +
    /// <p>The details explaining the status. Not available for all status values.</p>
         381  +
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         382  +
        self.status_details = ::std::option::Option::Some(input.into());
         383  +
        self
         384  +
    }
         385  +
    /// <p>The details explaining the status. Not available for all status values.</p>
         386  +
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         387  +
        self.status_details = input;
         388  +
        self
         389  +
    }
         390  +
    /// <p>The details explaining the status. Not available for all status values.</p>
         391  +
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
         392  +
        &self.status_details
         393  +
    }
         394  +
    /// <p>The time the maintenance window started running.</p>
         395  +
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         396  +
        self.start_time = ::std::option::Option::Some(input);
         397  +
        self
         398  +
    }
         399  +
    /// <p>The time the maintenance window started running.</p>
         400  +
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         401  +
        self.start_time = input;
         402  +
        self
         403  +
    }
         404  +
    /// <p>The time the maintenance window started running.</p>
         405  +
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         406  +
        &self.start_time
         407  +
    }
         408  +
    /// <p>The time the maintenance window finished running.</p>
         409  +
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         410  +
        self.end_time = ::std::option::Option::Some(input);
         411  +
        self
         412  +
    }
         413  +
    /// <p>The time the maintenance window finished running.</p>
         414  +
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         415  +
        self.end_time = input;
         416  +
        self
         417  +
    }
         418  +
    /// <p>The time the maintenance window finished running.</p>
         419  +
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         420  +
        &self.end_time
         421  +
    }
         422  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         423  +
        self._request_id = Some(request_id.into());
         424  +
        self
         425  +
    }
         426  +
         427  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         428  +
        self._request_id = request_id;
         429  +
        self
         430  +
    }
         431  +
    /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionOutput`](crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput).
         432  +
    pub fn build(self) -> crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput {
         433  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput {
         434  +
            window_execution_id: self.window_execution_id,
         435  +
            task_ids: self.task_ids,
         436  +
            status: self.status,
         437  +
            status_details: self.status_details,
         438  +
            start_time: self.start_time,
         439  +
            end_time: self.end_time,
         440  +
            _request_id: self._request_id,
         441  +
        }
         442  +
    }
         443  +
}

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

@@ -0,1 +0,125 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::get_maintenance_window_execution::_get_maintenance_window_execution_input::GetMaintenanceWindowExecutionInputBuilder;
           3  +
           4  +
pub use crate::operation::get_maintenance_window_execution::_get_maintenance_window_execution_output::GetMaintenanceWindowExecutionOutputBuilder;
           5  +
           6  +
impl crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionInputBuilder {
           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::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.get_maintenance_window_execution();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `GetMaintenanceWindowExecution`.
          24  +
///
          25  +
/// <p>Retrieves details about a specific a maintenance window execution.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct GetMaintenanceWindowExecutionFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          35  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          36  +
    > for GetMaintenanceWindowExecutionFluentBuilder
          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::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          44  +
            crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl GetMaintenanceWindowExecutionFluentBuilder {
          51  +
    /// Creates a new `GetMaintenanceWindowExecutionFluentBuilder`.
          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 GetMaintenanceWindowExecution as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::get_maintenance_window_execution::builders::GetMaintenanceWindowExecutionInputBuilder {
          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::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          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::get_maintenance_window_execution::GetMaintenanceWindowExecution::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecution::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::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          97  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         112  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.window_execution_id(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         117  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_window_execution_id(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         122  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_window_execution_id()
         124  +
    }
         125  +
}

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

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