AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,254 @@
           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 LabelParameterVersionInput {
           6  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
           7  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
           8  +
    /// </note>
           9  +
    pub name: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
          11  +
    pub parameter_version: ::std::option::Option<i64>,
          12  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
          13  +
    pub labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          14  +
}
          15  +
impl LabelParameterVersionInput {
          16  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
          17  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
          18  +
    /// </note>
          19  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          20  +
        self.name.as_deref()
          21  +
    }
          22  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
          23  +
    pub fn parameter_version(&self) -> ::std::option::Option<i64> {
          24  +
        self.parameter_version
          25  +
    }
          26  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
          27  +
    ///
          28  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.labels.is_none()`.
          29  +
    pub fn labels(&self) -> &[::std::string::String] {
          30  +
        self.labels.as_deref().unwrap_or_default()
          31  +
    }
          32  +
}
          33  +
static LABELPARAMETERVERSIONINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          34  +
    ::aws_smithy_schema::ShapeId::from_parts(
          35  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionInput$Name",
          36  +
        "com.amazonaws.ssm.synthetic",
          37  +
        "LabelParameterVersionInput",
          38  +
    ),
          39  +
    ::aws_smithy_schema::ShapeType::String,
          40  +
    "Name",
          41  +
    0,
          42  +
);
          43  +
static LABELPARAMETERVERSIONINPUT_MEMBER_PARAMETER_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          44  +
    ::aws_smithy_schema::ShapeId::from_parts(
          45  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionInput$ParameterVersion",
          46  +
        "com.amazonaws.ssm.synthetic",
          47  +
        "LabelParameterVersionInput",
          48  +
    ),
          49  +
    ::aws_smithy_schema::ShapeType::Long,
          50  +
    "ParameterVersion",
          51  +
    1,
          52  +
);
          53  +
static LABELPARAMETERVERSIONINPUT_MEMBER_LABELS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          54  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#ParameterLabelList$member", "com.amazonaws.ssm", "ParameterLabelList"),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "member",
          57  +
    0,
          58  +
);
          59  +
static LABELPARAMETERVERSIONINPUT_MEMBER_LABELS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          60  +
    ::aws_smithy_schema::ShapeId::from_parts(
          61  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionInput$Labels",
          62  +
        "com.amazonaws.ssm.synthetic",
          63  +
        "LabelParameterVersionInput",
          64  +
    ),
          65  +
    ::aws_smithy_schema::ShapeType::List,
          66  +
    "Labels",
          67  +
    2,
          68  +
)
          69  +
.with_list_member(&LABELPARAMETERVERSIONINPUT_MEMBER_LABELS_MEMBER);
          70  +
static LABELPARAMETERVERSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          71  +
    ::aws_smithy_schema::ShapeId::from_parts(
          72  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionInput",
          73  +
        "com.amazonaws.ssm.synthetic",
          74  +
        "LabelParameterVersionInput",
          75  +
    ),
          76  +
    ::aws_smithy_schema::ShapeType::Structure,
          77  +
    &[
          78  +
        &LABELPARAMETERVERSIONINPUT_MEMBER_NAME,
          79  +
        &LABELPARAMETERVERSIONINPUT_MEMBER_PARAMETER_VERSION,
          80  +
        &LABELPARAMETERVERSIONINPUT_MEMBER_LABELS,
          81  +
    ],
          82  +
)
          83  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          84  +
.with_original_name("LabelParameterVersionRequest");
          85  +
impl LabelParameterVersionInput {
          86  +
    /// The schema for this shape.
          87  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &LABELPARAMETERVERSIONINPUT_SCHEMA;
          88  +
}
          89  +
impl ::aws_smithy_schema::serde::SerializableStruct for LabelParameterVersionInput {
          90  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          91  +
    fn serialize_members(
          92  +
        &self,
          93  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          94  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          95  +
        if let Some(ref val) = self.name {
          96  +
            ser.write_string(&LABELPARAMETERVERSIONINPUT_MEMBER_NAME, val)?;
          97  +
        }
          98  +
        if let Some(ref val) = self.parameter_version {
          99  +
            ser.write_long(&LABELPARAMETERVERSIONINPUT_MEMBER_PARAMETER_VERSION, *val)?;
         100  +
        }
         101  +
        if let Some(ref val) = self.labels {
         102  +
            ser.write_list(
         103  +
                &LABELPARAMETERVERSIONINPUT_MEMBER_LABELS,
         104  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         105  +
                    for item in val {
         106  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
         107  +
                    }
         108  +
                    Ok(())
         109  +
                },
         110  +
            )?;
         111  +
        }
         112  +
        Ok(())
         113  +
    }
         114  +
}
         115  +
impl LabelParameterVersionInput {
         116  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         117  +
    pub fn deserialize(
         118  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         119  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         120  +
        #[allow(unused_variables, unused_mut)]
         121  +
        let mut builder = Self::builder();
         122  +
        #[allow(
         123  +
            unused_variables,
         124  +
            unreachable_code,
         125  +
            clippy::single_match,
         126  +
            clippy::match_single_binding,
         127  +
            clippy::diverging_sub_expression
         128  +
        )]
         129  +
        deserializer.read_struct(&LABELPARAMETERVERSIONINPUT_SCHEMA, &mut |member, deser| {
         130  +
            match member.member_index() {
         131  +
                Some(0) => {
         132  +
                    if deser.is_null() {
         133  +
                        deser.read_null()?;
         134  +
                    } else {
         135  +
                        builder.name = Some(deser.read_string(member)?);
         136  +
                    }
         137  +
                }
         138  +
                Some(1) => {
         139  +
                    if deser.is_null() {
         140  +
                        deser.read_null()?;
         141  +
                    } else {
         142  +
                        builder.parameter_version = Some(deser.read_long(member)?);
         143  +
                    }
         144  +
                }
         145  +
                Some(2) => {
         146  +
                    if deser.is_null() {
         147  +
                        deser.read_null()?;
         148  +
                    } else {
         149  +
                        builder.labels = Some(deser.read_string_list(member)?);
         150  +
                    }
         151  +
                }
         152  +
                _ => {}
         153  +
            }
         154  +
            Ok(())
         155  +
        })?;
         156  +
        builder.name = builder.name.or(Some(String::new()));
         157  +
        builder.labels = builder.labels.or(Some(Vec::new()));
         158  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         159  +
    }
         160  +
}
         161  +
impl LabelParameterVersionInput {
         162  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         163  +
    pub fn deserialize_with_response(
         164  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         165  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         166  +
        _status: u16,
         167  +
        _body: &[u8],
         168  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         169  +
        Self::deserialize(deserializer)
         170  +
    }
         171  +
}
         172  +
impl LabelParameterVersionInput {
         173  +
    /// Creates a new builder-style object to manufacture [`LabelParameterVersionInput`](crate::operation::label_parameter_version::LabelParameterVersionInput).
         174  +
    pub fn builder() -> crate::operation::label_parameter_version::builders::LabelParameterVersionInputBuilder {
         175  +
        crate::operation::label_parameter_version::builders::LabelParameterVersionInputBuilder::default()
         176  +
    }
         177  +
}
         178  +
         179  +
/// A builder for [`LabelParameterVersionInput`](crate::operation::label_parameter_version::LabelParameterVersionInput).
         180  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         181  +
#[non_exhaustive]
         182  +
pub struct LabelParameterVersionInputBuilder {
         183  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         184  +
    pub(crate) parameter_version: ::std::option::Option<i64>,
         185  +
    pub(crate) labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         186  +
}
         187  +
impl LabelParameterVersionInputBuilder {
         188  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         189  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         190  +
    /// </note>
         191  +
    /// This field is required.
         192  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         193  +
        self.name = ::std::option::Option::Some(input.into());
         194  +
        self
         195  +
    }
         196  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         197  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         198  +
    /// </note>
         199  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         200  +
        self.name = input;
         201  +
        self
         202  +
    }
         203  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         204  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         205  +
    /// </note>
         206  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         207  +
        &self.name
         208  +
    }
         209  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         210  +
    pub fn parameter_version(mut self, input: i64) -> Self {
         211  +
        self.parameter_version = ::std::option::Option::Some(input);
         212  +
        self
         213  +
    }
         214  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         215  +
    pub fn set_parameter_version(mut self, input: ::std::option::Option<i64>) -> Self {
         216  +
        self.parameter_version = input;
         217  +
        self
         218  +
    }
         219  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         220  +
    pub fn get_parameter_version(&self) -> &::std::option::Option<i64> {
         221  +
        &self.parameter_version
         222  +
    }
         223  +
    /// Appends an item to `labels`.
         224  +
    ///
         225  +
    /// To override the contents of this collection use [`set_labels`](Self::set_labels).
         226  +
    ///
         227  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         228  +
    pub fn labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         229  +
        let mut v = self.labels.unwrap_or_default();
         230  +
        v.push(input.into());
         231  +
        self.labels = ::std::option::Option::Some(v);
         232  +
        self
         233  +
    }
         234  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         235  +
    pub fn set_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         236  +
        self.labels = input;
         237  +
        self
         238  +
    }
         239  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         240  +
    pub fn get_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         241  +
        &self.labels
         242  +
    }
         243  +
    /// Consumes the builder and constructs a [`LabelParameterVersionInput`](crate::operation::label_parameter_version::LabelParameterVersionInput).
         244  +
    pub fn build(
         245  +
        self,
         246  +
    ) -> ::std::result::Result<crate::operation::label_parameter_version::LabelParameterVersionInput, ::aws_smithy_types::error::operation::BuildError>
         247  +
    {
         248  +
        ::std::result::Result::Ok(crate::operation::label_parameter_version::LabelParameterVersionInput {
         249  +
            name: self.name,
         250  +
            parameter_version: self.parameter_version,
         251  +
            labels: self.labels,
         252  +
        })
         253  +
    }
         254  +
}

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

@@ -0,1 +0,252 @@
           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 LabelParameterVersionOutput {
           6  +
    /// <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
           7  +
    pub invalid_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
           8  +
    /// <p>The version of the parameter that has been labeled.</p>
           9  +
    pub parameter_version: i64,
          10  +
    _request_id: Option<String>,
          11  +
}
          12  +
impl LabelParameterVersionOutput {
          13  +
    /// <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</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 `.invalid_labels.is_none()`.
          16  +
    pub fn invalid_labels(&self) -> &[::std::string::String] {
          17  +
        self.invalid_labels.as_deref().unwrap_or_default()
          18  +
    }
          19  +
    /// <p>The version of the parameter that has been labeled.</p>
          20  +
    pub fn parameter_version(&self) -> i64 {
          21  +
        self.parameter_version
          22  +
    }
          23  +
}
          24  +
static LABELPARAMETERVERSIONOUTPUT_MEMBER_INVALID_LABELS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#ParameterLabelList$member", "com.amazonaws.ssm", "ParameterLabelList"),
          26  +
    ::aws_smithy_schema::ShapeType::String,
          27  +
    "member",
          28  +
    0,
          29  +
);
          30  +
static LABELPARAMETERVERSIONOUTPUT_MEMBER_INVALID_LABELS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          31  +
    ::aws_smithy_schema::ShapeId::from_parts(
          32  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionOutput$InvalidLabels",
          33  +
        "com.amazonaws.ssm.synthetic",
          34  +
        "LabelParameterVersionOutput",
          35  +
    ),
          36  +
    ::aws_smithy_schema::ShapeType::List,
          37  +
    "InvalidLabels",
          38  +
    0,
          39  +
)
          40  +
.with_list_member(&LABELPARAMETERVERSIONOUTPUT_MEMBER_INVALID_LABELS_MEMBER);
          41  +
static LABELPARAMETERVERSIONOUTPUT_MEMBER_PARAMETER_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          42  +
    ::aws_smithy_schema::ShapeId::from_parts(
          43  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionOutput$ParameterVersion",
          44  +
        "com.amazonaws.ssm.synthetic",
          45  +
        "LabelParameterVersionOutput",
          46  +
    ),
          47  +
    ::aws_smithy_schema::ShapeType::Long,
          48  +
    "ParameterVersion",
          49  +
    1,
          50  +
);
          51  +
static LABELPARAMETERVERSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          53  +
    ::aws_smithy_schema::ShapeType::String,
          54  +
    "request_id",
          55  +
    2,
          56  +
)
          57  +
.with_http_header("x-amzn-requestid");
          58  +
static LABELPARAMETERVERSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm.synthetic#LabelParameterVersionOutput",
          61  +
        "com.amazonaws.ssm.synthetic",
          62  +
        "LabelParameterVersionOutput",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &LABELPARAMETERVERSIONOUTPUT_MEMBER_INVALID_LABELS,
          67  +
        &LABELPARAMETERVERSIONOUTPUT_MEMBER_PARAMETER_VERSION,
          68  +
        &LABELPARAMETERVERSIONOUTPUT_MEMBER__REQUEST_ID,
          69  +
    ],
          70  +
)
          71  +
.with_original_name("LabelParameterVersionResult");
          72  +
impl LabelParameterVersionOutput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &LABELPARAMETERVERSIONOUTPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for LabelParameterVersionOutput {
          77  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          78  +
    fn serialize_members(
          79  +
        &self,
          80  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          81  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          82  +
        if let Some(ref val) = self.invalid_labels {
          83  +
            ser.write_list(
          84  +
                &LABELPARAMETERVERSIONOUTPUT_MEMBER_INVALID_LABELS,
          85  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          86  +
                    for item in val {
          87  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
          88  +
                    }
          89  +
                    Ok(())
          90  +
                },
          91  +
            )?;
          92  +
        }
          93  +
        {
          94  +
            let val = &self.parameter_version;
          95  +
            ser.write_long(&LABELPARAMETERVERSIONOUTPUT_MEMBER_PARAMETER_VERSION, *val)?;
          96  +
        }
          97  +
        Ok(())
          98  +
    }
          99  +
}
         100  +
impl LabelParameterVersionOutput {
         101  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         102  +
    pub fn deserialize(
         103  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         104  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         105  +
        #[allow(unused_variables, unused_mut)]
         106  +
        let mut builder = Self::builder();
         107  +
        #[allow(
         108  +
            unused_variables,
         109  +
            unreachable_code,
         110  +
            clippy::single_match,
         111  +
            clippy::match_single_binding,
         112  +
            clippy::diverging_sub_expression
         113  +
        )]
         114  +
        deserializer.read_struct(&LABELPARAMETERVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
         115  +
            match member.member_index() {
         116  +
                Some(0) => {
         117  +
                    if deser.is_null() {
         118  +
                        deser.read_null()?;
         119  +
                    } else {
         120  +
                        builder.invalid_labels = Some(deser.read_string_list(member)?);
         121  +
                    }
         122  +
                }
         123  +
                Some(1) => {
         124  +
                    builder.parameter_version = Some(deser.read_long(member)?);
         125  +
                }
         126  +
                Some(2) => {
         127  +
                    builder._request_id = Some(deser.read_string(member)?);
         128  +
                }
         129  +
                _ => {}
         130  +
            }
         131  +
            Ok(())
         132  +
        })?;
         133  +
        Ok(builder.build())
         134  +
    }
         135  +
}
         136  +
impl LabelParameterVersionOutput {
         137  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         138  +
    /// Header-bound members are read directly from headers, avoiding runtime
         139  +
    /// member iteration overhead. Body members are read via the deserializer.
         140  +
    pub fn deserialize_with_response(
         141  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         142  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         143  +
        _status: u16,
         144  +
        _body: &[u8],
         145  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         146  +
        #[allow(unused_variables, unused_mut)]
         147  +
        let mut builder = Self::builder();
         148  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         149  +
            builder._request_id = Some(val.to_string());
         150  +
        }
         151  +
         152  +
        #[allow(
         153  +
            unused_variables,
         154  +
            unreachable_code,
         155  +
            clippy::single_match,
         156  +
            clippy::match_single_binding,
         157  +
            clippy::diverging_sub_expression
         158  +
        )]
         159  +
        deserializer.read_struct(&LABELPARAMETERVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
         160  +
            match member.member_index() {
         161  +
                Some(0) => {
         162  +
                    builder.invalid_labels = Some(deser.read_string_list(member)?);
         163  +
                }
         164  +
                Some(1) => {
         165  +
                    builder.parameter_version = Some(deser.read_long(member)?);
         166  +
                }
         167  +
                _ => {}
         168  +
            }
         169  +
            Ok(())
         170  +
        })?;
         171  +
        Ok(builder.build())
         172  +
    }
         173  +
}
         174  +
impl ::aws_types::request_id::RequestId for LabelParameterVersionOutput {
         175  +
    fn request_id(&self) -> Option<&str> {
         176  +
        self._request_id.as_deref()
         177  +
    }
         178  +
}
         179  +
impl LabelParameterVersionOutput {
         180  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         181  +
        self._request_id = request_id;
         182  +
        self
         183  +
    }
         184  +
}
         185  +
impl LabelParameterVersionOutput {
         186  +
    /// Creates a new builder-style object to manufacture [`LabelParameterVersionOutput`](crate::operation::label_parameter_version::LabelParameterVersionOutput).
         187  +
    pub fn builder() -> crate::operation::label_parameter_version::builders::LabelParameterVersionOutputBuilder {
         188  +
        crate::operation::label_parameter_version::builders::LabelParameterVersionOutputBuilder::default()
         189  +
    }
         190  +
}
         191  +
         192  +
/// A builder for [`LabelParameterVersionOutput`](crate::operation::label_parameter_version::LabelParameterVersionOutput).
         193  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         194  +
#[non_exhaustive]
         195  +
pub struct LabelParameterVersionOutputBuilder {
         196  +
    pub(crate) invalid_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         197  +
    pub(crate) parameter_version: ::std::option::Option<i64>,
         198  +
    _request_id: Option<String>,
         199  +
}
         200  +
impl LabelParameterVersionOutputBuilder {
         201  +
    /// Appends an item to `invalid_labels`.
         202  +
    ///
         203  +
    /// To override the contents of this collection use [`set_invalid_labels`](Self::set_invalid_labels).
         204  +
    ///
         205  +
    /// <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         206  +
    pub fn invalid_labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         207  +
        let mut v = self.invalid_labels.unwrap_or_default();
         208  +
        v.push(input.into());
         209  +
        self.invalid_labels = ::std::option::Option::Some(v);
         210  +
        self
         211  +
    }
         212  +
    /// <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         213  +
    pub fn set_invalid_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         214  +
        self.invalid_labels = input;
         215  +
        self
         216  +
    }
         217  +
    /// <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         218  +
    pub fn get_invalid_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         219  +
        &self.invalid_labels
         220  +
    }
         221  +
    /// <p>The version of the parameter that has been labeled.</p>
         222  +
    pub fn parameter_version(mut self, input: i64) -> Self {
         223  +
        self.parameter_version = ::std::option::Option::Some(input);
         224  +
        self
         225  +
    }
         226  +
    /// <p>The version of the parameter that has been labeled.</p>
         227  +
    pub fn set_parameter_version(mut self, input: ::std::option::Option<i64>) -> Self {
         228  +
        self.parameter_version = input;
         229  +
        self
         230  +
    }
         231  +
    /// <p>The version of the parameter that has been labeled.</p>
         232  +
    pub fn get_parameter_version(&self) -> &::std::option::Option<i64> {
         233  +
        &self.parameter_version
         234  +
    }
         235  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         236  +
        self._request_id = Some(request_id.into());
         237  +
        self
         238  +
    }
         239  +
         240  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         241  +
        self._request_id = request_id;
         242  +
        self
         243  +
    }
         244  +
    /// Consumes the builder and constructs a [`LabelParameterVersionOutput`](crate::operation::label_parameter_version::LabelParameterVersionOutput).
         245  +
    pub fn build(self) -> crate::operation::label_parameter_version::LabelParameterVersionOutput {
         246  +
        crate::operation::label_parameter_version::LabelParameterVersionOutput {
         247  +
            invalid_labels: self.invalid_labels,
         248  +
            parameter_version: self.parameter_version.unwrap_or_default(),
         249  +
            _request_id: self._request_id,
         250  +
        }
         251  +
    }
         252  +
}

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

@@ -0,1 +0,185 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::label_parameter_version::_label_parameter_version_input::LabelParameterVersionInputBuilder;
           3  +
           4  +
pub use crate::operation::label_parameter_version::_label_parameter_version_output::LabelParameterVersionOutputBuilder;
           5  +
           6  +
impl crate::operation::label_parameter_version::builders::LabelParameterVersionInputBuilder {
           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::label_parameter_version::LabelParameterVersionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::label_parameter_version::LabelParameterVersionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.label_parameter_version();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `LabelParameterVersion`.
          24  +
///
          25  +
/// <p>A parameter label is a user-defined alias to help you manage different versions of a parameter. When you modify a parameter, Amazon Web Services Systems Manager automatically saves a new version and increments the version number by one. A label can help you remember the purpose of a parameter when there are multiple versions.</p>
          26  +
/// <p>Parameter labels have the following requirements and restrictions.</p>
          27  +
/// <ul>
          28  +
/// <li>
          29  +
/// <p>A version of a parameter can have a maximum of 10 labels.</p></li>
          30  +
/// <li>
          31  +
/// <p>You can't attach the same label to different versions of the same parameter. For example, if version 1 has the label Production, then you can't attach Production to version 2.</p></li>
          32  +
/// <li>
          33  +
/// <p>You can move a label from one version of a parameter to another.</p></li>
          34  +
/// <li>
          35  +
/// <p>You can't create a label when you create a new parameter. You must attach a label to a specific version of a parameter.</p></li>
          36  +
/// <li>
          37  +
/// <p>If you no longer want to use a parameter label, then you can either delete it or move it to a different version of a parameter.</p></li>
          38  +
/// <li>
          39  +
/// <p>A label can have a maximum of 100 characters.</p></li>
          40  +
/// <li>
          41  +
/// <p>Labels can contain letters (case sensitive), numbers, periods (.), hyphens (-), or underscores (_).</p></li>
          42  +
/// <li>
          43  +
/// <p>Labels can't begin with a number, "<code>aws</code>" or "<code>ssm</code>" (not case sensitive). If a label fails to meet these requirements, then the label isn't associated with a parameter and the system displays it in the list of InvalidLabels.</p></li>
          44  +
/// <li>
          45  +
/// <p>Parameter names can't contain spaces. The service removes any spaces specified for the beginning or end of a parameter name. If the specified name for a parameter contains spaces between characters, the request fails with a <code>ValidationException</code> error.</p></li>
          46  +
/// </ul>
          47  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          48  +
pub struct LabelParameterVersionFluentBuilder {
          49  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          50  +
    inner: crate::operation::label_parameter_version::builders::LabelParameterVersionInputBuilder,
          51  +
    config_override: ::std::option::Option<crate::config::Builder>,
          52  +
}
          53  +
impl
          54  +
    crate::client::customize::internal::CustomizableSend<
          55  +
        crate::operation::label_parameter_version::LabelParameterVersionOutput,
          56  +
        crate::operation::label_parameter_version::LabelParameterVersionError,
          57  +
    > for LabelParameterVersionFluentBuilder
          58  +
{
          59  +
    fn send(
          60  +
        self,
          61  +
        config_override: crate::config::Builder,
          62  +
    ) -> crate::client::customize::internal::BoxFuture<
          63  +
        crate::client::customize::internal::SendResult<
          64  +
            crate::operation::label_parameter_version::LabelParameterVersionOutput,
          65  +
            crate::operation::label_parameter_version::LabelParameterVersionError,
          66  +
        >,
          67  +
    > {
          68  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          69  +
    }
          70  +
}
          71  +
impl LabelParameterVersionFluentBuilder {
          72  +
    /// Creates a new `LabelParameterVersionFluentBuilder`.
          73  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          74  +
        Self {
          75  +
            handle,
          76  +
            inner: ::std::default::Default::default(),
          77  +
            config_override: ::std::option::Option::None,
          78  +
        }
          79  +
    }
          80  +
    /// Access the LabelParameterVersion as a reference.
          81  +
    pub fn as_input(&self) -> &crate::operation::label_parameter_version::builders::LabelParameterVersionInputBuilder {
          82  +
        &self.inner
          83  +
    }
          84  +
    /// Sends the request and returns the response.
          85  +
    ///
          86  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          87  +
    /// can be matched against.
          88  +
    ///
          89  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          90  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          91  +
    /// set when configuring the client.
          92  +
    pub async fn send(
          93  +
        self,
          94  +
    ) -> ::std::result::Result<
          95  +
        crate::operation::label_parameter_version::LabelParameterVersionOutput,
          96  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          97  +
            crate::operation::label_parameter_version::LabelParameterVersionError,
          98  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          99  +
        >,
         100  +
    > {
         101  +
        let input = self
         102  +
            .inner
         103  +
            .build()
         104  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
         105  +
        let runtime_plugins = crate::operation::label_parameter_version::LabelParameterVersion::operation_runtime_plugins(
         106  +
            self.handle.runtime_plugins.clone(),
         107  +
            &self.handle.conf,
         108  +
            self.config_override,
         109  +
        );
         110  +
        crate::operation::label_parameter_version::LabelParameterVersion::orchestrate(&runtime_plugins, input).await
         111  +
    }
         112  +
         113  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
         114  +
    pub fn customize(
         115  +
        self,
         116  +
    ) -> crate::client::customize::CustomizableOperation<
         117  +
        crate::operation::label_parameter_version::LabelParameterVersionOutput,
         118  +
        crate::operation::label_parameter_version::LabelParameterVersionError,
         119  +
        Self,
         120  +
    > {
         121  +
        crate::client::customize::CustomizableOperation::new(self)
         122  +
    }
         123  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         124  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         125  +
        self
         126  +
    }
         127  +
         128  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         129  +
        self.config_override = config_override;
         130  +
        self
         131  +
    }
         132  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         133  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         134  +
    /// </note>
         135  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         136  +
        self.inner = self.inner.name(input.into());
         137  +
        self
         138  +
    }
         139  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         140  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         141  +
    /// </note>
         142  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         143  +
        self.inner = self.inner.set_name(input);
         144  +
        self
         145  +
    }
         146  +
    /// <p>The parameter name on which you want to attach one or more labels.</p><note>
         147  +
    /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
         148  +
    /// </note>
         149  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         150  +
        self.inner.get_name()
         151  +
    }
         152  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         153  +
    pub fn parameter_version(mut self, input: i64) -> Self {
         154  +
        self.inner = self.inner.parameter_version(input);
         155  +
        self
         156  +
    }
         157  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         158  +
    pub fn set_parameter_version(mut self, input: ::std::option::Option<i64>) -> Self {
         159  +
        self.inner = self.inner.set_parameter_version(input);
         160  +
        self
         161  +
    }
         162  +
    /// <p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p>
         163  +
    pub fn get_parameter_version(&self) -> &::std::option::Option<i64> {
         164  +
        self.inner.get_parameter_version()
         165  +
    }
         166  +
    ///
         167  +
    /// Appends an item to `Labels`.
         168  +
    ///
         169  +
    /// To override the contents of this collection use [`set_labels`](Self::set_labels).
         170  +
    ///
         171  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         172  +
    pub fn labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         173  +
        self.inner = self.inner.labels(input.into());
         174  +
        self
         175  +
    }
         176  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         177  +
    pub fn set_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         178  +
        self.inner = self.inner.set_labels(input);
         179  +
        self
         180  +
    }
         181  +
    /// <p>One or more labels to attach to the specified parameter version.</p>
         182  +
    pub fn get_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         183  +
        self.inner.get_labels()
         184  +
    }
         185  +
}

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

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