AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,352 @@
           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 DescribeMaintenanceWindowExecutionTaskInvocationsInput {
           6  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
           7  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
           9  +
    pub task_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
          11  +
    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>>,
          12  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
          13  +
    pub max_results: ::std::option::Option<i32>,
          14  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          15  +
    pub next_token: ::std::option::Option<::std::string::String>,
          16  +
}
          17  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInput {
          18  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
          19  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          20  +
        self.window_execution_id.as_deref()
          21  +
    }
          22  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
          23  +
    pub fn task_id(&self) -> ::std::option::Option<&str> {
          24  +
        self.task_id.as_deref()
          25  +
    }
          26  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
          27  +
    ///
          28  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
          29  +
    pub fn filters(&self) -> &[crate::types::MaintenanceWindowFilter] {
          30  +
        self.filters.as_deref().unwrap_or_default()
          31  +
    }
          32  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
          33  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          34  +
        self.max_results
          35  +
    }
          36  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          37  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          38  +
        self.next_token.as_deref()
          39  +
    }
          40  +
}
          41  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
          42  +
    ::aws_smithy_schema::Schema::new_member(
          43  +
        ::aws_smithy_schema::ShapeId::from_parts(
          44  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput$WindowExecutionId",
          45  +
            "com.amazonaws.ssm.synthetic",
          46  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
          47  +
        ),
          48  +
        ::aws_smithy_schema::ShapeType::String,
          49  +
        "WindowExecutionId",
          50  +
        0,
          51  +
    );
          52  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_TASK_ID: ::aws_smithy_schema::Schema<'static> =
          53  +
    ::aws_smithy_schema::Schema::new_member(
          54  +
        ::aws_smithy_schema::ShapeId::from_parts(
          55  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput$TaskId",
          56  +
            "com.amazonaws.ssm.synthetic",
          57  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
          58  +
        ),
          59  +
        ::aws_smithy_schema::ShapeType::String,
          60  +
        "TaskId",
          61  +
        1,
          62  +
    );
          63  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> =
          64  +
    ::aws_smithy_schema::Schema::new_member(
          65  +
        ::aws_smithy_schema::ShapeId::from_parts(
          66  +
            "com.amazonaws.ssm#MaintenanceWindowFilterList$member",
          67  +
            "com.amazonaws.ssm",
          68  +
            "MaintenanceWindowFilterList",
          69  +
        ),
          70  +
        ::aws_smithy_schema::ShapeType::Structure,
          71  +
        "member",
          72  +
        0,
          73  +
    );
          74  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> =
          75  +
    ::aws_smithy_schema::Schema::new_member(
          76  +
        ::aws_smithy_schema::ShapeId::from_parts(
          77  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput$Filters",
          78  +
            "com.amazonaws.ssm.synthetic",
          79  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
          80  +
        ),
          81  +
        ::aws_smithy_schema::ShapeType::List,
          82  +
        "Filters",
          83  +
        2,
          84  +
    )
          85  +
    .with_list_member(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_FILTERS_MEMBER);
          86  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> =
          87  +
    ::aws_smithy_schema::Schema::new_member(
          88  +
        ::aws_smithy_schema::ShapeId::from_parts(
          89  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput$MaxResults",
          90  +
            "com.amazonaws.ssm.synthetic",
          91  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
          92  +
        ),
          93  +
        ::aws_smithy_schema::ShapeType::Integer,
          94  +
        "MaxResults",
          95  +
        3,
          96  +
    );
          97  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> =
          98  +
    ::aws_smithy_schema::Schema::new_member(
          99  +
        ::aws_smithy_schema::ShapeId::from_parts(
         100  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput$NextToken",
         101  +
            "com.amazonaws.ssm.synthetic",
         102  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
         103  +
        ),
         104  +
        ::aws_smithy_schema::ShapeType::String,
         105  +
        "NextToken",
         106  +
        4,
         107  +
    );
         108  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         109  +
    ::aws_smithy_schema::ShapeId::from_parts(
         110  +
        "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsInput",
         111  +
        "com.amazonaws.ssm.synthetic",
         112  +
        "DescribeMaintenanceWindowExecutionTaskInvocationsInput",
         113  +
    ),
         114  +
    ::aws_smithy_schema::ShapeType::Structure,
         115  +
    &[
         116  +
        &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_WINDOW_EXECUTION_ID,
         117  +
        &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_TASK_ID,
         118  +
        &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_FILTERS,
         119  +
        &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_MAX_RESULTS,
         120  +
        &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_NEXT_TOKEN,
         121  +
    ],
         122  +
)
         123  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         124  +
.with_original_name("DescribeMaintenanceWindowExecutionTaskInvocationsRequest");
         125  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         126  +
    /// The schema for this shape.
         127  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_SCHEMA;
         128  +
}
         129  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         130  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         131  +
    fn serialize_members(
         132  +
        &self,
         133  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         134  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         135  +
        if let Some(ref val) = self.window_execution_id {
         136  +
            ser.write_string(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
         137  +
        }
         138  +
        if let Some(ref val) = self.task_id {
         139  +
            ser.write_string(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_TASK_ID, val)?;
         140  +
        }
         141  +
        if let Some(ref val) = self.filters {
         142  +
            ser.write_list(
         143  +
                &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_FILTERS,
         144  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         145  +
                    for item in val {
         146  +
                        ser.write_struct(crate::types::MaintenanceWindowFilter::SCHEMA, item)?;
         147  +
                    }
         148  +
                    Ok(())
         149  +
                },
         150  +
            )?;
         151  +
        }
         152  +
        if let Some(ref val) = self.max_results {
         153  +
            ser.write_integer(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_MAX_RESULTS, *val)?;
         154  +
        }
         155  +
        if let Some(ref val) = self.next_token {
         156  +
            ser.write_string(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_MEMBER_NEXT_TOKEN, val)?;
         157  +
        }
         158  +
        Ok(())
         159  +
    }
         160  +
}
         161  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         162  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         163  +
    pub fn deserialize(
         164  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         165  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         166  +
        #[allow(unused_variables, unused_mut)]
         167  +
        let mut builder = Self::builder();
         168  +
        #[allow(
         169  +
            unused_variables,
         170  +
            unreachable_code,
         171  +
            clippy::single_match,
         172  +
            clippy::match_single_binding,
         173  +
            clippy::diverging_sub_expression
         174  +
        )]
         175  +
        deserializer.read_struct(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSINPUT_SCHEMA, &mut |member, deser| {
         176  +
            match member.member_index() {
         177  +
                Some(0) => {
         178  +
                    if deser.is_null() {
         179  +
                        deser.read_null()?;
         180  +
                    } else {
         181  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         182  +
                    }
         183  +
                }
         184  +
                Some(1) => {
         185  +
                    if deser.is_null() {
         186  +
                        deser.read_null()?;
         187  +
                    } else {
         188  +
                        builder.task_id = Some(deser.read_string(member)?);
         189  +
                    }
         190  +
                }
         191  +
                Some(2) => {
         192  +
                    if deser.is_null() {
         193  +
                        deser.read_null()?;
         194  +
                    } else {
         195  +
                        builder.filters = Some({
         196  +
                            let mut container = Vec::new();
         197  +
                            deser.read_list(member, &mut |deser| {
         198  +
                                container.push(crate::types::MaintenanceWindowFilter::deserialize(deser)?);
         199  +
                                Ok(())
         200  +
                            })?;
         201  +
                            container
         202  +
                        });
         203  +
                    }
         204  +
                }
         205  +
                Some(3) => {
         206  +
                    if deser.is_null() {
         207  +
                        deser.read_null()?;
         208  +
                    } else {
         209  +
                        builder.max_results = Some(deser.read_integer(member)?);
         210  +
                    }
         211  +
                }
         212  +
                Some(4) => {
         213  +
                    if deser.is_null() {
         214  +
                        deser.read_null()?;
         215  +
                    } else {
         216  +
                        builder.next_token = Some(deser.read_string(member)?);
         217  +
                    }
         218  +
                }
         219  +
                _ => {}
         220  +
            }
         221  +
            Ok(())
         222  +
        })?;
         223  +
        builder.window_execution_id = builder.window_execution_id.or(Some(String::new()));
         224  +
        builder.task_id = builder.task_id.or(Some(String::new()));
         225  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         226  +
    }
         227  +
}
         228  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         229  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         230  +
    pub fn deserialize_with_response(
         231  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         232  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         233  +
        _status: u16,
         234  +
        _body: &[u8],
         235  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         236  +
        Self::deserialize(deserializer)
         237  +
    }
         238  +
}
         239  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         240  +
    /// Creates a new builder-style object to manufacture [`DescribeMaintenanceWindowExecutionTaskInvocationsInput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsInput).
         241  +
    pub fn builder() -> crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder{
         242  +
        crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder::default()
         243  +
    }
         244  +
}
         245  +
         246  +
/// A builder for [`DescribeMaintenanceWindowExecutionTaskInvocationsInput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsInput).
         247  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         248  +
#[non_exhaustive]
         249  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder {
         250  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         251  +
    pub(crate) task_id: ::std::option::Option<::std::string::String>,
         252  +
    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>>,
         253  +
    pub(crate) max_results: ::std::option::Option<i32>,
         254  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         255  +
}
         256  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder {
         257  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         258  +
    /// This field is required.
         259  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         260  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         261  +
        self
         262  +
    }
         263  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         264  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         265  +
        self.window_execution_id = input;
         266  +
        self
         267  +
    }
         268  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         269  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         270  +
        &self.window_execution_id
         271  +
    }
         272  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         273  +
    /// This field is required.
         274  +
    pub fn task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         275  +
        self.task_id = ::std::option::Option::Some(input.into());
         276  +
        self
         277  +
    }
         278  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         279  +
    pub fn set_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         280  +
        self.task_id = input;
         281  +
        self
         282  +
    }
         283  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         284  +
    pub fn get_task_id(&self) -> &::std::option::Option<::std::string::String> {
         285  +
        &self.task_id
         286  +
    }
         287  +
    /// Appends an item to `filters`.
         288  +
    ///
         289  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         290  +
    ///
         291  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         292  +
    pub fn filters(mut self, input: crate::types::MaintenanceWindowFilter) -> Self {
         293  +
        let mut v = self.filters.unwrap_or_default();
         294  +
        v.push(input);
         295  +
        self.filters = ::std::option::Option::Some(v);
         296  +
        self
         297  +
    }
         298  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         299  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>>) -> Self {
         300  +
        self.filters = input;
         301  +
        self
         302  +
    }
         303  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         304  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>> {
         305  +
        &self.filters
         306  +
    }
         307  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         308  +
    pub fn max_results(mut self, input: i32) -> Self {
         309  +
        self.max_results = ::std::option::Option::Some(input);
         310  +
        self
         311  +
    }
         312  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         313  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         314  +
        self.max_results = input;
         315  +
        self
         316  +
    }
         317  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         318  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         319  +
        &self.max_results
         320  +
    }
         321  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         322  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         323  +
        self.next_token = ::std::option::Option::Some(input.into());
         324  +
        self
         325  +
    }
         326  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         327  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         328  +
        self.next_token = input;
         329  +
        self
         330  +
    }
         331  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         332  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         333  +
        &self.next_token
         334  +
    }
         335  +
    /// Consumes the builder and constructs a [`DescribeMaintenanceWindowExecutionTaskInvocationsInput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsInput).
         336  +
    pub fn build(
         337  +
        self,
         338  +
    ) -> ::std::result::Result<
         339  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsInput,
         340  +
        ::aws_smithy_types::error::operation::BuildError,
         341  +
    > {
         342  +
        ::std::result::Result::Ok(
         343  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsInput {
         344  +
                window_execution_id: self.window_execution_id,
         345  +
                task_id: self.task_id,
         346  +
                filters: self.filters,
         347  +
                max_results: self.max_results,
         348  +
                next_token: self.next_token,
         349  +
            },
         350  +
        )
         351  +
    }
         352  +
}

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

@@ -0,1 +0,288 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
           6  +
    /// <p>Information about the task invocation results per invocation.</p>
           7  +
    pub window_execution_task_invocation_identities:
           8  +
        ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowExecutionTaskInvocationIdentity>>,
           9  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
          10  +
    pub next_token: ::std::option::Option<::std::string::String>,
          11  +
    _request_id: Option<String>,
          12  +
}
          13  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
          14  +
    /// <p>Information about the task invocation results per invocation.</p>
          15  +
    ///
          16  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.window_execution_task_invocation_identities.is_none()`.
          17  +
    pub fn window_execution_task_invocation_identities(&self) -> &[crate::types::MaintenanceWindowExecutionTaskInvocationIdentity] {
          18  +
        self.window_execution_task_invocation_identities.as_deref().unwrap_or_default()
          19  +
    }
          20  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
          21  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          22  +
        self.next_token.as_deref()
          23  +
    }
          24  +
}
          25  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_WINDOW_EXECUTION_TASK_INVOCATION_IDENTITIES_MEMBER:
          26  +
    ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          27  +
    ::aws_smithy_schema::ShapeId::from_parts(
          28  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentityList$member",
          29  +
        "com.amazonaws.ssm",
          30  +
        "MaintenanceWindowExecutionTaskInvocationIdentityList",
          31  +
    ),
          32  +
    ::aws_smithy_schema::ShapeType::Structure,
          33  +
    "member",
          34  +
    0,
          35  +
);
          36  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_WINDOW_EXECUTION_TASK_INVOCATION_IDENTITIES: ::aws_smithy_schema::Schema<
          37  +
    'static,
          38  +
> = ::aws_smithy_schema::Schema::new_member(
          39  +
    ::aws_smithy_schema::ShapeId::from_parts(
          40  +
        "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsOutput$WindowExecutionTaskInvocationIdentities",
          41  +
        "com.amazonaws.ssm.synthetic",
          42  +
        "DescribeMaintenanceWindowExecutionTaskInvocationsOutput",
          43  +
    ),
          44  +
    ::aws_smithy_schema::ShapeType::List,
          45  +
    "WindowExecutionTaskInvocationIdentities",
          46  +
    0,
          47  +
)
          48  +
.with_list_member(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_WINDOW_EXECUTION_TASK_INVOCATION_IDENTITIES_MEMBER);
          49  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> =
          50  +
    ::aws_smithy_schema::Schema::new_member(
          51  +
        ::aws_smithy_schema::ShapeId::from_parts(
          52  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsOutput$NextToken",
          53  +
            "com.amazonaws.ssm.synthetic",
          54  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsOutput",
          55  +
        ),
          56  +
        ::aws_smithy_schema::ShapeType::String,
          57  +
        "NextToken",
          58  +
        1,
          59  +
    );
          60  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> =
          61  +
    ::aws_smithy_schema::Schema::new_member(
          62  +
        ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          63  +
        ::aws_smithy_schema::ShapeType::String,
          64  +
        "request_id",
          65  +
        2,
          66  +
    )
          67  +
    .with_http_header("x-amzn-requestid");
          68  +
static DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> =
          69  +
    ::aws_smithy_schema::Schema::new_struct(
          70  +
        ::aws_smithy_schema::ShapeId::from_parts(
          71  +
            "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowExecutionTaskInvocationsOutput",
          72  +
            "com.amazonaws.ssm.synthetic",
          73  +
            "DescribeMaintenanceWindowExecutionTaskInvocationsOutput",
          74  +
        ),
          75  +
        ::aws_smithy_schema::ShapeType::Structure,
          76  +
        &[
          77  +
            &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_WINDOW_EXECUTION_TASK_INVOCATION_IDENTITIES,
          78  +
            &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_NEXT_TOKEN,
          79  +
            &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER__REQUEST_ID,
          80  +
        ],
          81  +
    )
          82  +
    .with_original_name("DescribeMaintenanceWindowExecutionTaskInvocationsResult");
          83  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
          84  +
    /// The schema for this shape.
          85  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_SCHEMA;
          86  +
}
          87  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
          88  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          89  +
    fn serialize_members(
          90  +
        &self,
          91  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          92  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          93  +
        if let Some(ref val) = self.window_execution_task_invocation_identities {
          94  +
            ser.write_list(
          95  +
                &DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_WINDOW_EXECUTION_TASK_INVOCATION_IDENTITIES,
          96  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          97  +
                    for item in val {
          98  +
                        ser.write_struct(crate::types::MaintenanceWindowExecutionTaskInvocationIdentity::SCHEMA, item)?;
          99  +
                    }
         100  +
                    Ok(())
         101  +
                },
         102  +
            )?;
         103  +
        }
         104  +
        if let Some(ref val) = self.next_token {
         105  +
            ser.write_string(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
         106  +
        }
         107  +
        Ok(())
         108  +
    }
         109  +
}
         110  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         111  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         112  +
    pub fn deserialize(
         113  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         114  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         115  +
        #[allow(unused_variables, unused_mut)]
         116  +
        let mut builder = Self::builder();
         117  +
        #[allow(
         118  +
            unused_variables,
         119  +
            unreachable_code,
         120  +
            clippy::single_match,
         121  +
            clippy::match_single_binding,
         122  +
            clippy::diverging_sub_expression
         123  +
        )]
         124  +
        deserializer.read_struct(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         125  +
            match member.member_index() {
         126  +
                Some(0) => {
         127  +
                    if deser.is_null() {
         128  +
                        deser.read_null()?;
         129  +
                    } else {
         130  +
                        builder.window_execution_task_invocation_identities = Some({
         131  +
                            let mut container = Vec::new();
         132  +
                            deser.read_list(member, &mut |deser| {
         133  +
                                container.push(crate::types::MaintenanceWindowExecutionTaskInvocationIdentity::deserialize(deser)?);
         134  +
                                Ok(())
         135  +
                            })?;
         136  +
                            container
         137  +
                        });
         138  +
                    }
         139  +
                }
         140  +
                Some(1) => {
         141  +
                    if deser.is_null() {
         142  +
                        deser.read_null()?;
         143  +
                    } else {
         144  +
                        builder.next_token = Some(deser.read_string(member)?);
         145  +
                    }
         146  +
                }
         147  +
                Some(2) => {
         148  +
                    builder._request_id = Some(deser.read_string(member)?);
         149  +
                }
         150  +
                _ => {}
         151  +
            }
         152  +
            Ok(())
         153  +
        })?;
         154  +
        Ok(builder.build())
         155  +
    }
         156  +
}
         157  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         158  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         159  +
    /// Header-bound members are read directly from headers, avoiding runtime
         160  +
    /// member iteration overhead. Body members are read via the deserializer.
         161  +
    pub fn deserialize_with_response(
         162  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         163  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         164  +
        _status: u16,
         165  +
        _body: &[u8],
         166  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         167  +
        #[allow(unused_variables, unused_mut)]
         168  +
        let mut builder = Self::builder();
         169  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         170  +
            builder._request_id = Some(val.to_string());
         171  +
        }
         172  +
         173  +
        #[allow(
         174  +
            unused_variables,
         175  +
            unreachable_code,
         176  +
            clippy::single_match,
         177  +
            clippy::match_single_binding,
         178  +
            clippy::diverging_sub_expression
         179  +
        )]
         180  +
        deserializer.read_struct(&DESCRIBEMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         181  +
            match member.member_index() {
         182  +
                Some(0) => {
         183  +
                    builder.window_execution_task_invocation_identities = Some({
         184  +
                        let mut container = Vec::new();
         185  +
                        deser.read_list(member, &mut |deser| {
         186  +
                            container.push(crate::types::MaintenanceWindowExecutionTaskInvocationIdentity::deserialize(deser)?);
         187  +
                            Ok(())
         188  +
                        })?;
         189  +
                        container
         190  +
                    });
         191  +
                }
         192  +
                Some(1) => {
         193  +
                    builder.next_token = Some(deser.read_string(member)?);
         194  +
                }
         195  +
                _ => {}
         196  +
            }
         197  +
            Ok(())
         198  +
        })?;
         199  +
        Ok(builder.build())
         200  +
    }
         201  +
}
         202  +
impl ::aws_types::request_id::RequestId for DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         203  +
    fn request_id(&self) -> Option<&str> {
         204  +
        self._request_id.as_deref()
         205  +
    }
         206  +
}
         207  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         208  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         209  +
        self._request_id = request_id;
         210  +
        self
         211  +
    }
         212  +
}
         213  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         214  +
    /// Creates a new builder-style object to manufacture [`DescribeMaintenanceWindowExecutionTaskInvocationsOutput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput).
         215  +
    pub fn builder() -> crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsOutputBuilder{
         216  +
        crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsOutputBuilder::default()
         217  +
    }
         218  +
}
         219  +
         220  +
/// A builder for [`DescribeMaintenanceWindowExecutionTaskInvocationsOutput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput).
         221  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         222  +
#[non_exhaustive]
         223  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsOutputBuilder {
         224  +
    pub(crate) window_execution_task_invocation_identities:
         225  +
        ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowExecutionTaskInvocationIdentity>>,
         226  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         227  +
    _request_id: Option<String>,
         228  +
}
         229  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsOutputBuilder {
         230  +
    /// Appends an item to `window_execution_task_invocation_identities`.
         231  +
    ///
         232  +
    /// To override the contents of this collection use [`set_window_execution_task_invocation_identities`](Self::set_window_execution_task_invocation_identities).
         233  +
    ///
         234  +
    /// <p>Information about the task invocation results per invocation.</p>
         235  +
    pub fn window_execution_task_invocation_identities(mut self, input: crate::types::MaintenanceWindowExecutionTaskInvocationIdentity) -> Self {
         236  +
        let mut v = self.window_execution_task_invocation_identities.unwrap_or_default();
         237  +
        v.push(input);
         238  +
        self.window_execution_task_invocation_identities = ::std::option::Option::Some(v);
         239  +
        self
         240  +
    }
         241  +
    /// <p>Information about the task invocation results per invocation.</p>
         242  +
    pub fn set_window_execution_task_invocation_identities(
         243  +
        mut self,
         244  +
        input: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowExecutionTaskInvocationIdentity>>,
         245  +
    ) -> Self {
         246  +
        self.window_execution_task_invocation_identities = input;
         247  +
        self
         248  +
    }
         249  +
    /// <p>Information about the task invocation results per invocation.</p>
         250  +
    pub fn get_window_execution_task_invocation_identities(
         251  +
        &self,
         252  +
    ) -> &::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowExecutionTaskInvocationIdentity>> {
         253  +
        &self.window_execution_task_invocation_identities
         254  +
    }
         255  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
         256  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         257  +
        self.next_token = ::std::option::Option::Some(input.into());
         258  +
        self
         259  +
    }
         260  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
         261  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         262  +
        self.next_token = input;
         263  +
        self
         264  +
    }
         265  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
         266  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         267  +
        &self.next_token
         268  +
    }
         269  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         270  +
        self._request_id = Some(request_id.into());
         271  +
        self
         272  +
    }
         273  +
         274  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         275  +
        self._request_id = request_id;
         276  +
        self
         277  +
    }
         278  +
    /// Consumes the builder and constructs a [`DescribeMaintenanceWindowExecutionTaskInvocationsOutput`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput).
         279  +
    pub fn build(
         280  +
        self,
         281  +
    ) -> crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         282  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput {
         283  +
            window_execution_task_invocation_identities: self.window_execution_task_invocation_identities,
         284  +
            next_token: self.next_token,
         285  +
            _request_id: self._request_id,
         286  +
        }
         287  +
    }
         288  +
}

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

@@ -0,1 +0,201 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_maintenance_window_execution_task_invocations::_describe_maintenance_window_execution_task_invocations_input::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_maintenance_window_execution_task_invocations::_describe_maintenance_window_execution_task_invocations_output::DescribeMaintenanceWindowExecutionTaskInvocationsOutputBuilder;
           5  +
           6  +
impl
           7  +
    crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder
           8  +
{
           9  +
    /// Sends a request with this input using the given client.
          10  +
    pub async fn send_with(
          11  +
        self,
          12  +
        client: &crate::Client,
          13  +
    ) -> ::std::result::Result<
          14  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
          15  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          16  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
          17  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          18  +
        >,
          19  +
    > {
          20  +
        let mut fluent_builder = client.describe_maintenance_window_execution_task_invocations();
          21  +
        fluent_builder.inner = self;
          22  +
        fluent_builder.send().await
          23  +
    }
          24  +
}
          25  +
/// Fluent builder constructing a request to `DescribeMaintenanceWindowExecutionTaskInvocations`.
          26  +
///
          27  +
/// <p>Retrieves the individual task executions (one per target) for a particular task run as part of a maintenance window execution.</p>
          28  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          29  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsFluentBuilder {
          30  +
                handle: ::std::sync::Arc<crate::client::Handle>,
          31  +
                inner: crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder,
          32  +
config_override: ::std::option::Option<crate::config::Builder>,
          33  +
            }
          34  +
impl
          35  +
    crate::client::customize::internal::CustomizableSend<
          36  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
          37  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
          38  +
    > for DescribeMaintenanceWindowExecutionTaskInvocationsFluentBuilder
          39  +
{
          40  +
    fn send(
          41  +
        self,
          42  +
        config_override: crate::config::Builder,
          43  +
    ) -> crate::client::customize::internal::BoxFuture<
          44  +
        crate::client::customize::internal::SendResult<
          45  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
          46  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
          47  +
        >,
          48  +
    > {
          49  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          50  +
    }
          51  +
}
          52  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsFluentBuilder {
          53  +
    /// Creates a new `DescribeMaintenanceWindowExecutionTaskInvocationsFluentBuilder`.
          54  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          55  +
        Self {
          56  +
            handle,
          57  +
            inner: ::std::default::Default::default(),
          58  +
            config_override: ::std::option::Option::None,
          59  +
        }
          60  +
    }
          61  +
    /// Access the DescribeMaintenanceWindowExecutionTaskInvocations as a reference.
          62  +
    pub fn as_input(&self) -> &crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder{
          63  +
        &self.inner
          64  +
    }
          65  +
    /// Sends the request and returns the response.
          66  +
    ///
          67  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          68  +
    /// can be matched against.
          69  +
    ///
          70  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          71  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          72  +
    /// set when configuring the client.
          73  +
    pub async fn send(
          74  +
        self,
          75  +
    ) -> ::std::result::Result<
          76  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
          79  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          80  +
        >,
          81  +
    > {
          82  +
        let input = self
          83  +
            .inner
          84  +
            .build()
          85  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          86  +
        let runtime_plugins = crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocations::operation_runtime_plugins(
          87  +
                            self.handle.runtime_plugins.clone(),
          88  +
                            &self.handle.conf,
          89  +
                            self.config_override,
          90  +
                        );
          91  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocations::orchestrate(
          92  +
            &runtime_plugins,
          93  +
            input,
          94  +
        )
          95  +
        .await
          96  +
    }
          97  +
          98  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          99  +
    pub fn customize(
         100  +
        self,
         101  +
    ) -> crate::client::customize::CustomizableOperation<
         102  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
         103  +
        crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
         104  +
        Self,
         105  +
    > {
         106  +
        crate::client::customize::CustomizableOperation::new(self)
         107  +
    }
         108  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         109  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         110  +
        self
         111  +
    }
         112  +
         113  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         114  +
        self.config_override = config_override;
         115  +
        self
         116  +
    }
         117  +
    /// Create a paginator for this request
         118  +
    ///
         119  +
    /// Paginators are used by calling [`send().await`](crate::operation::describe_maintenance_window_execution_task_invocations::paginator::DescribeMaintenanceWindowExecutionTaskInvocationsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         120  +
    pub fn into_paginator(
         121  +
        self,
         122  +
    ) -> crate::operation::describe_maintenance_window_execution_task_invocations::paginator::DescribeMaintenanceWindowExecutionTaskInvocationsPaginator
         123  +
    {
         124  +
        crate::operation::describe_maintenance_window_execution_task_invocations::paginator::DescribeMaintenanceWindowExecutionTaskInvocationsPaginator::new(self.handle, self.inner)
         125  +
    }
         126  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         127  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         128  +
        self.inner = self.inner.window_execution_id(input.into());
         129  +
        self
         130  +
    }
         131  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         132  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         133  +
        self.inner = self.inner.set_window_execution_id(input);
         134  +
        self
         135  +
    }
         136  +
    /// <p>The ID of the maintenance window execution the task is part of.</p>
         137  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         138  +
        self.inner.get_window_execution_id()
         139  +
    }
         140  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         141  +
    pub fn task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         142  +
        self.inner = self.inner.task_id(input.into());
         143  +
        self
         144  +
    }
         145  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         146  +
    pub fn set_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         147  +
        self.inner = self.inner.set_task_id(input);
         148  +
        self
         149  +
    }
         150  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         151  +
    pub fn get_task_id(&self) -> &::std::option::Option<::std::string::String> {
         152  +
        self.inner.get_task_id()
         153  +
    }
         154  +
    ///
         155  +
    /// Appends an item to `Filters`.
         156  +
    ///
         157  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         158  +
    ///
         159  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         160  +
    pub fn filters(mut self, input: crate::types::MaintenanceWindowFilter) -> Self {
         161  +
        self.inner = self.inner.filters(input);
         162  +
        self
         163  +
    }
         164  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         165  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>>) -> Self {
         166  +
        self.inner = self.inner.set_filters(input);
         167  +
        self
         168  +
    }
         169  +
    /// <p>Optional filters used to scope down the returned task invocations. The supported filter key is <code>STATUS</code> with the corresponding values <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCESS</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, <code>CANCELLING</code>, and <code>CANCELLED</code>.</p>
         170  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>> {
         171  +
        self.inner.get_filters()
         172  +
    }
         173  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         174  +
    pub fn max_results(mut self, input: i32) -> Self {
         175  +
        self.inner = self.inner.max_results(input);
         176  +
        self
         177  +
    }
         178  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         179  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         180  +
        self.inner = self.inner.set_max_results(input);
         181  +
        self
         182  +
    }
         183  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         184  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         185  +
        self.inner.get_max_results()
         186  +
    }
         187  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         188  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         189  +
        self.inner = self.inner.next_token(input.into());
         190  +
        self
         191  +
    }
         192  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         193  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         194  +
        self.inner = self.inner.set_next_token(input);
         195  +
        self
         196  +
    }
         197  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         198  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         199  +
        self.inner.get_next_token()
         200  +
    }
         201  +
}

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

@@ -0,1 +0,148 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Paginator for [`DescribeMaintenanceWindowExecutionTaskInvocations`](crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocations)
           3  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsPaginator {
           4  +
                    handle: std::sync::Arc<crate::client::Handle>,
           5  +
                    builder: crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder,
           6  +
                    stop_on_duplicate_token: bool,
           7  +
                }
           8  +
           9  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsPaginator {
          10  +
    /// Create a new paginator-wrapper
          11  +
    pub(crate) fn new(
          12  +
        handle: std::sync::Arc<crate::client::Handle>,
          13  +
        builder: crate::operation::describe_maintenance_window_execution_task_invocations::builders::DescribeMaintenanceWindowExecutionTaskInvocationsInputBuilder,
          14  +
    ) -> Self {
          15  +
        Self {
          16  +
            handle,
          17  +
            builder,
          18  +
            stop_on_duplicate_token: true,
          19  +
        }
          20  +
    }
          21  +
          22  +
    /// Set the page size
          23  +
    ///
          24  +
    /// _Note: this method will override any previously set value for `max_results`_
          25  +
    pub fn page_size(mut self, limit: i32) -> Self {
          26  +
        self.builder.max_results = ::std::option::Option::Some(limit);
          27  +
        self
          28  +
    }
          29  +
          30  +
    /// Create a flattened paginator
          31  +
    ///
          32  +
    /// This paginator automatically flattens results using `window_execution_task_invocation_identities`. Queries to the underlying service
          33  +
    /// are dispatched lazily.
          34  +
    pub fn items(self) -> crate::operation::describe_maintenance_window_execution_task_invocations::paginator::DescribeMaintenanceWindowExecutionTaskInvocationsPaginatorItems{
          35  +
        crate::operation::describe_maintenance_window_execution_task_invocations::paginator::DescribeMaintenanceWindowExecutionTaskInvocationsPaginatorItems(self)
          36  +
    }
          37  +
          38  +
    /// Stop paginating when the service returns the same pagination token twice in a row.
          39  +
    ///
          40  +
    /// Defaults to true.
          41  +
    ///
          42  +
    /// For certain operations, it may be useful to continue on duplicate token. For example,
          43  +
    /// if an operation is for tailing a log file in real-time, then continuing may be desired.
          44  +
    /// This option can be set to `false` to accommodate these use cases.
          45  +
    pub fn stop_on_duplicate_token(mut self, stop_on_duplicate_token: bool) -> Self {
          46  +
        self.stop_on_duplicate_token = stop_on_duplicate_token;
          47  +
        self
          48  +
    }
          49  +
          50  +
    /// Create the pagination stream
          51  +
    ///
          52  +
    /// _Note:_ No requests will be dispatched until the stream is used
          53  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
          54  +
    pub fn send(
          55  +
        self,
          56  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
          57  +
        ::std::result::Result<
          58  +
            crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsOutput,
          59  +
            ::aws_smithy_runtime_api::client::result::SdkError<
          60  +
                crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
          61  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          62  +
            >,
          63  +
        >,
          64  +
    > {
          65  +
        // Move individual fields out of self for the borrow checker
          66  +
        let builder = self.builder;
          67  +
        let handle = self.handle;
          68  +
        let runtime_plugins = crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocations::operation_runtime_plugins(
          69  +
                                handle.runtime_plugins.clone(),
          70  +
                                &handle.conf,
          71  +
                                ::std::option::Option::None,
          72  +
                            ).with_operation_plugin(crate::sdk_feature_tracker::paginator::PaginatorFeatureTrackerRuntimePlugin::new());
          73  +
        ::aws_smithy_async::future::pagination_stream::PaginationStream::new(::aws_smithy_async::future::pagination_stream::fn_stream::FnStream::new(
          74  +
            move |tx| {
          75  +
                ::std::boxed::Box::pin(async move {
          76  +
                    // Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
          77  +
                    let mut input = match builder
          78  +
                        .build()
          79  +
                        .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)
          80  +
                    {
          81  +
                        ::std::result::Result::Ok(input) => input,
          82  +
                        ::std::result::Result::Err(e) => {
          83  +
                            let _ = tx.send(::std::result::Result::Err(e)).await;
          84  +
                            return;
          85  +
                        }
          86  +
                    };
          87  +
                    loop {
          88  +
                        let resp = crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocations::orchestrate(&runtime_plugins, input.clone()).await;
          89  +
                        // If the input member is None or it was an error
          90  +
                        let done = match resp {
          91  +
                            ::std::result::Result::Ok(ref resp) => {
          92  +
                                let new_token =
          93  +
                                    crate::lens::reflens_describe_maintenance_window_execution_task_invocations_output_output_next_token(resp);
          94  +
                                // Pagination is exhausted when the next token is an empty string
          95  +
                                let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
          96  +
                                if !is_empty && new_token == input.next_token.as_ref() && self.stop_on_duplicate_token {
          97  +
                                    true
          98  +
                                } else {
          99  +
                                    input.next_token = new_token.cloned();
         100  +
                                    is_empty
         101  +
                                }
         102  +
                            }
         103  +
                            ::std::result::Result::Err(_) => true,
         104  +
                        };
         105  +
                        if tx.send(resp).await.is_err() {
         106  +
                            // receiving end was dropped
         107  +
                            return;
         108  +
                        }
         109  +
                        if done {
         110  +
                            return;
         111  +
                        }
         112  +
                    }
         113  +
                })
         114  +
            },
         115  +
        ))
         116  +
    }
         117  +
}
         118  +
         119  +
/// Flattened paginator for `DescribeMaintenanceWindowExecutionTaskInvocationsPaginator`
         120  +
///
         121  +
/// This is created with [`.items()`](DescribeMaintenanceWindowExecutionTaskInvocationsPaginator::items)
         122  +
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsPaginatorItems(DescribeMaintenanceWindowExecutionTaskInvocationsPaginator);
         123  +
         124  +
impl DescribeMaintenanceWindowExecutionTaskInvocationsPaginatorItems {
         125  +
    /// Create the pagination stream
         126  +
    ///
         127  +
    /// _Note_: No requests will be dispatched until the stream is used
         128  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
         129  +
    ///
         130  +
    /// To read the entirety of the paginator, use [`.collect::<Result<Vec<_>, _>()`](aws_smithy_async::future::pagination_stream::PaginationStream::collect).
         131  +
    pub fn send(
         132  +
        self,
         133  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
         134  +
        ::std::result::Result<
         135  +
            crate::types::MaintenanceWindowExecutionTaskInvocationIdentity,
         136  +
            ::aws_smithy_runtime_api::client::result::SdkError<
         137  +
                crate::operation::describe_maintenance_window_execution_task_invocations::DescribeMaintenanceWindowExecutionTaskInvocationsError,
         138  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         139  +
            >,
         140  +
        >,
         141  +
    > {
         142  +
        ::aws_smithy_async::future::pagination_stream::TryFlatMap::new(self.0.send()).flat_map(|page| {
         143  +
            crate::lens::lens_describe_maintenance_window_execution_task_invocations_output_output_window_execution_task_invocation_identities(page)
         144  +
                .unwrap_or_default()
         145  +
                .into_iter()
         146  +
        })
         147  +
    }
         148  +
}

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

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