AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

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

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

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

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

@@ -0,1 +0,187 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_maintenance_window_execution_tasks::_describe_maintenance_window_execution_tasks_input::DescribeMaintenanceWindowExecutionTasksInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_maintenance_window_execution_tasks::_describe_maintenance_window_execution_tasks_output::DescribeMaintenanceWindowExecutionTasksOutputBuilder;
           5  +
           6  +
impl crate::operation::describe_maintenance_window_execution_tasks::builders::DescribeMaintenanceWindowExecutionTasksInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.describe_maintenance_window_execution_tasks();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DescribeMaintenanceWindowExecutionTasks`.
          24  +
///
          25  +
/// <p>For a given maintenance window execution, lists the tasks that were run.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct DescribeMaintenanceWindowExecutionTasksFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::describe_maintenance_window_execution_tasks::builders::DescribeMaintenanceWindowExecutionTasksInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksOutput,
          35  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksError,
          36  +
    > for DescribeMaintenanceWindowExecutionTasksFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksOutput,
          44  +
            crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl DescribeMaintenanceWindowExecutionTasksFluentBuilder {
          51  +
    /// Creates a new `DescribeMaintenanceWindowExecutionTasksFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the DescribeMaintenanceWindowExecutionTasks as a reference.
          60  +
    pub fn as_input(
          61  +
        &self,
          62  +
    ) -> &crate::operation::describe_maintenance_window_execution_tasks::builders::DescribeMaintenanceWindowExecutionTasksInputBuilder {
          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_tasks::DescribeMaintenanceWindowExecutionTasksOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksError,
          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 =
          87  +
            crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasks::operation_runtime_plugins(
          88  +
                self.handle.runtime_plugins.clone(),
          89  +
                &self.handle.conf,
          90  +
                self.config_override,
          91  +
            );
          92  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasks::orchestrate(&runtime_plugins, input)
          93  +
            .await
          94  +
    }
          95  +
          96  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          97  +
    pub fn customize(
          98  +
        self,
          99  +
    ) -> crate::client::customize::CustomizableOperation<
         100  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksOutput,
         101  +
        crate::operation::describe_maintenance_window_execution_tasks::DescribeMaintenanceWindowExecutionTasksError,
         102  +
        Self,
         103  +
    > {
         104  +
        crate::client::customize::CustomizableOperation::new(self)
         105  +
    }
         106  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         107  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         108  +
        self
         109  +
    }
         110  +
         111  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         112  +
        self.config_override = config_override;
         113  +
        self
         114  +
    }
         115  +
    /// Create a paginator for this request
         116  +
    ///
         117  +
    /// Paginators are used by calling [`send().await`](crate::operation::describe_maintenance_window_execution_tasks::paginator::DescribeMaintenanceWindowExecutionTasksPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         118  +
    pub fn into_paginator(
         119  +
        self,
         120  +
    ) -> crate::operation::describe_maintenance_window_execution_tasks::paginator::DescribeMaintenanceWindowExecutionTasksPaginator {
         121  +
        crate::operation::describe_maintenance_window_execution_tasks::paginator::DescribeMaintenanceWindowExecutionTasksPaginator::new(
         122  +
            self.handle,
         123  +
            self.inner,
         124  +
        )
         125  +
    }
         126  +
    /// <p>The ID of the maintenance window execution whose task executions should be retrieved.</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 whose task executions should be retrieved.</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 whose task executions should be retrieved.</p>
         137  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         138  +
        self.inner.get_window_execution_id()
         139  +
    }
         140  +
    ///
         141  +
    /// Appends an item to `Filters`.
         142  +
    ///
         143  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         144  +
    ///
         145  +
    /// <p>Optional filters used to scope down the returned tasks. 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>
         146  +
    pub fn filters(mut self, input: crate::types::MaintenanceWindowFilter) -> Self {
         147  +
        self.inner = self.inner.filters(input);
         148  +
        self
         149  +
    }
         150  +
    /// <p>Optional filters used to scope down the returned tasks. 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>
         151  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>>) -> Self {
         152  +
        self.inner = self.inner.set_filters(input);
         153  +
        self
         154  +
    }
         155  +
    /// <p>Optional filters used to scope down the returned tasks. 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>
         156  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MaintenanceWindowFilter>> {
         157  +
        self.inner.get_filters()
         158  +
    }
         159  +
    /// <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>
         160  +
    pub fn max_results(mut self, input: i32) -> Self {
         161  +
        self.inner = self.inner.max_results(input);
         162  +
        self
         163  +
    }
         164  +
    /// <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>
         165  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         166  +
        self.inner = self.inner.set_max_results(input);
         167  +
        self
         168  +
    }
         169  +
    /// <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>
         170  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         171  +
        self.inner.get_max_results()
         172  +
    }
         173  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         174  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         175  +
        self.inner = self.inner.next_token(input.into());
         176  +
        self
         177  +
    }
         178  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         179  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         180  +
        self.inner = self.inner.set_next_token(input);
         181  +
        self
         182  +
    }
         183  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         184  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         185  +
        self.inner.get_next_token()
         186  +
    }
         187  +
}

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

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

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

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