AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578

Files changed:

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

@@ -0,1 +0,261 @@
           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 DescribeAssociationInput {
           6  +
    /// <p>The name of the SSM document.</p>
           7  +
    pub name: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The managed node ID.</p>
           9  +
    pub instance_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The association ID for which you want information.</p>
          11  +
    pub association_id: ::std::option::Option<::std::string::String>,
          12  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
          13  +
    pub association_version: ::std::option::Option<::std::string::String>,
          14  +
}
          15  +
impl DescribeAssociationInput {
          16  +
    /// <p>The name of the SSM document.</p>
          17  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          18  +
        self.name.as_deref()
          19  +
    }
          20  +
    /// <p>The managed node ID.</p>
          21  +
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
          22  +
        self.instance_id.as_deref()
          23  +
    }
          24  +
    /// <p>The association ID for which you want information.</p>
          25  +
    pub fn association_id(&self) -> ::std::option::Option<&str> {
          26  +
        self.association_id.as_deref()
          27  +
    }
          28  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
          29  +
    pub fn association_version(&self) -> ::std::option::Option<&str> {
          30  +
        self.association_version.as_deref()
          31  +
    }
          32  +
}
          33  +
static DESCRIBEASSOCIATIONINPUT_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#DescribeAssociationInput$Name",
          36  +
        "com.amazonaws.ssm.synthetic",
          37  +
        "DescribeAssociationInput",
          38  +
    ),
          39  +
    ::aws_smithy_schema::ShapeType::String,
          40  +
    "Name",
          41  +
    0,
          42  +
);
          43  +
static DESCRIBEASSOCIATIONINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          44  +
    ::aws_smithy_schema::ShapeId::from_parts(
          45  +
        "com.amazonaws.ssm.synthetic#DescribeAssociationInput$InstanceId",
          46  +
        "com.amazonaws.ssm.synthetic",
          47  +
        "DescribeAssociationInput",
          48  +
    ),
          49  +
    ::aws_smithy_schema::ShapeType::String,
          50  +
    "InstanceId",
          51  +
    1,
          52  +
);
          53  +
static DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          54  +
    ::aws_smithy_schema::ShapeId::from_parts(
          55  +
        "com.amazonaws.ssm.synthetic#DescribeAssociationInput$AssociationId",
          56  +
        "com.amazonaws.ssm.synthetic",
          57  +
        "DescribeAssociationInput",
          58  +
    ),
          59  +
    ::aws_smithy_schema::ShapeType::String,
          60  +
    "AssociationId",
          61  +
    2,
          62  +
);
          63  +
static DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          64  +
    ::aws_smithy_schema::ShapeId::from_parts(
          65  +
        "com.amazonaws.ssm.synthetic#DescribeAssociationInput$AssociationVersion",
          66  +
        "com.amazonaws.ssm.synthetic",
          67  +
        "DescribeAssociationInput",
          68  +
    ),
          69  +
    ::aws_smithy_schema::ShapeType::String,
          70  +
    "AssociationVersion",
          71  +
    3,
          72  +
);
          73  +
static DESCRIBEASSOCIATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          74  +
    ::aws_smithy_schema::ShapeId::from_parts(
          75  +
        "com.amazonaws.ssm.synthetic#DescribeAssociationInput",
          76  +
        "com.amazonaws.ssm.synthetic",
          77  +
        "DescribeAssociationInput",
          78  +
    ),
          79  +
    ::aws_smithy_schema::ShapeType::Structure,
          80  +
    &[
          81  +
        &DESCRIBEASSOCIATIONINPUT_MEMBER_NAME,
          82  +
        &DESCRIBEASSOCIATIONINPUT_MEMBER_INSTANCE_ID,
          83  +
        &DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_ID,
          84  +
        &DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_VERSION,
          85  +
    ],
          86  +
)
          87  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          88  +
.with_original_name("DescribeAssociationRequest");
          89  +
impl DescribeAssociationInput {
          90  +
    /// The schema for this shape.
          91  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEASSOCIATIONINPUT_SCHEMA;
          92  +
}
          93  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAssociationInput {
          94  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          95  +
    fn serialize_members(
          96  +
        &self,
          97  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          98  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          99  +
        if let Some(ref val) = self.name {
         100  +
            ser.write_string(&DESCRIBEASSOCIATIONINPUT_MEMBER_NAME, val)?;
         101  +
        }
         102  +
        if let Some(ref val) = self.instance_id {
         103  +
            ser.write_string(&DESCRIBEASSOCIATIONINPUT_MEMBER_INSTANCE_ID, val)?;
         104  +
        }
         105  +
        if let Some(ref val) = self.association_id {
         106  +
            ser.write_string(&DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_ID, val)?;
         107  +
        }
         108  +
        if let Some(ref val) = self.association_version {
         109  +
            ser.write_string(&DESCRIBEASSOCIATIONINPUT_MEMBER_ASSOCIATION_VERSION, val)?;
         110  +
        }
         111  +
        Ok(())
         112  +
    }
         113  +
}
         114  +
impl DescribeAssociationInput {
         115  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         116  +
    pub fn deserialize(
         117  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         118  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         119  +
        #[allow(unused_variables, unused_mut)]
         120  +
        let mut builder = Self::builder();
         121  +
        #[allow(
         122  +
            unused_variables,
         123  +
            unreachable_code,
         124  +
            clippy::single_match,
         125  +
            clippy::match_single_binding,
         126  +
            clippy::diverging_sub_expression
         127  +
        )]
         128  +
        deserializer.read_struct(&DESCRIBEASSOCIATIONINPUT_SCHEMA, &mut |member, deser| {
         129  +
            match member.member_index() {
         130  +
                Some(0) => {
         131  +
                    if deser.is_null() {
         132  +
                        deser.read_null()?;
         133  +
                    } else {
         134  +
                        builder.name = Some(deser.read_string(member)?);
         135  +
                    }
         136  +
                }
         137  +
                Some(1) => {
         138  +
                    if deser.is_null() {
         139  +
                        deser.read_null()?;
         140  +
                    } else {
         141  +
                        builder.instance_id = Some(deser.read_string(member)?);
         142  +
                    }
         143  +
                }
         144  +
                Some(2) => {
         145  +
                    if deser.is_null() {
         146  +
                        deser.read_null()?;
         147  +
                    } else {
         148  +
                        builder.association_id = Some(deser.read_string(member)?);
         149  +
                    }
         150  +
                }
         151  +
                Some(3) => {
         152  +
                    if deser.is_null() {
         153  +
                        deser.read_null()?;
         154  +
                    } else {
         155  +
                        builder.association_version = Some(deser.read_string(member)?);
         156  +
                    }
         157  +
                }
         158  +
                _ => {}
         159  +
            }
         160  +
            Ok(())
         161  +
        })?;
         162  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         163  +
    }
         164  +
}
         165  +
impl DescribeAssociationInput {
         166  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         167  +
    pub fn deserialize_with_response(
         168  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         169  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         170  +
        _status: u16,
         171  +
        _body: &[u8],
         172  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         173  +
        Self::deserialize(deserializer)
         174  +
    }
         175  +
}
         176  +
impl DescribeAssociationInput {
         177  +
    /// Creates a new builder-style object to manufacture [`DescribeAssociationInput`](crate::operation::describe_association::DescribeAssociationInput).
         178  +
    pub fn builder() -> crate::operation::describe_association::builders::DescribeAssociationInputBuilder {
         179  +
        crate::operation::describe_association::builders::DescribeAssociationInputBuilder::default()
         180  +
    }
         181  +
}
         182  +
         183  +
/// A builder for [`DescribeAssociationInput`](crate::operation::describe_association::DescribeAssociationInput).
         184  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         185  +
#[non_exhaustive]
         186  +
pub struct DescribeAssociationInputBuilder {
         187  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         188  +
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
         189  +
    pub(crate) association_id: ::std::option::Option<::std::string::String>,
         190  +
    pub(crate) association_version: ::std::option::Option<::std::string::String>,
         191  +
}
         192  +
impl DescribeAssociationInputBuilder {
         193  +
    /// <p>The name of the SSM document.</p>
         194  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         195  +
        self.name = ::std::option::Option::Some(input.into());
         196  +
        self
         197  +
    }
         198  +
    /// <p>The name of the SSM document.</p>
         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 name of the SSM document.</p>
         204  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         205  +
        &self.name
         206  +
    }
         207  +
    /// <p>The managed node ID.</p>
         208  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         209  +
        self.instance_id = ::std::option::Option::Some(input.into());
         210  +
        self
         211  +
    }
         212  +
    /// <p>The managed node ID.</p>
         213  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         214  +
        self.instance_id = input;
         215  +
        self
         216  +
    }
         217  +
    /// <p>The managed node ID.</p>
         218  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         219  +
        &self.instance_id
         220  +
    }
         221  +
    /// <p>The association ID for which you want information.</p>
         222  +
    pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         223  +
        self.association_id = ::std::option::Option::Some(input.into());
         224  +
        self
         225  +
    }
         226  +
    /// <p>The association ID for which you want information.</p>
         227  +
    pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         228  +
        self.association_id = input;
         229  +
        self
         230  +
    }
         231  +
    /// <p>The association ID for which you want information.</p>
         232  +
    pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
         233  +
        &self.association_id
         234  +
    }
         235  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         236  +
    pub fn association_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         237  +
        self.association_version = ::std::option::Option::Some(input.into());
         238  +
        self
         239  +
    }
         240  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         241  +
    pub fn set_association_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         242  +
        self.association_version = input;
         243  +
        self
         244  +
    }
         245  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         246  +
    pub fn get_association_version(&self) -> &::std::option::Option<::std::string::String> {
         247  +
        &self.association_version
         248  +
    }
         249  +
    /// Consumes the builder and constructs a [`DescribeAssociationInput`](crate::operation::describe_association::DescribeAssociationInput).
         250  +
    pub fn build(
         251  +
        self,
         252  +
    ) -> ::std::result::Result<crate::operation::describe_association::DescribeAssociationInput, ::aws_smithy_types::error::operation::BuildError>
         253  +
    {
         254  +
        ::std::result::Result::Ok(crate::operation::describe_association::DescribeAssociationInput {
         255  +
            name: self.name,
         256  +
            instance_id: self.instance_id,
         257  +
            association_id: self.association_id,
         258  +
            association_version: self.association_version,
         259  +
        })
         260  +
    }
         261  +
}

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

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

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

@@ -0,1 +0,167 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_association::_describe_association_input::DescribeAssociationInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_association::_describe_association_output::DescribeAssociationOutputBuilder;
           5  +
           6  +
impl crate::operation::describe_association::builders::DescribeAssociationInputBuilder {
           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_association::DescribeAssociationOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::describe_association::DescribeAssociationError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.describe_association();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DescribeAssociation`.
          24  +
///
          25  +
/// <p>Describes the association for the specified target or managed node. If you created the association by using the <code>Targets</code> parameter, then you must retrieve the association by using the association ID.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct DescribeAssociationFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::describe_association::builders::DescribeAssociationInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::describe_association::DescribeAssociationOutput,
          35  +
        crate::operation::describe_association::DescribeAssociationError,
          36  +
    > for DescribeAssociationFluentBuilder
          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_association::DescribeAssociationOutput,
          44  +
            crate::operation::describe_association::DescribeAssociationError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl DescribeAssociationFluentBuilder {
          51  +
    /// Creates a new `DescribeAssociationFluentBuilder`.
          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 DescribeAssociation as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::describe_association::builders::DescribeAssociationInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::describe_association::DescribeAssociationOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::describe_association::DescribeAssociationError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::describe_association::DescribeAssociation::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::describe_association::DescribeAssociation::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::describe_association::DescribeAssociationOutput,
          97  +
        crate::operation::describe_association::DescribeAssociationError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// <p>The name of the SSM document.</p>
         112  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.name(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The name of the SSM document.</p>
         117  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_name(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The name of the SSM document.</p>
         122  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_name()
         124  +
    }
         125  +
    /// <p>The managed node ID.</p>
         126  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         127  +
        self.inner = self.inner.instance_id(input.into());
         128  +
        self
         129  +
    }
         130  +
    /// <p>The managed node ID.</p>
         131  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         132  +
        self.inner = self.inner.set_instance_id(input);
         133  +
        self
         134  +
    }
         135  +
    /// <p>The managed node ID.</p>
         136  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         137  +
        self.inner.get_instance_id()
         138  +
    }
         139  +
    /// <p>The association ID for which you want information.</p>
         140  +
    pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         141  +
        self.inner = self.inner.association_id(input.into());
         142  +
        self
         143  +
    }
         144  +
    /// <p>The association ID for which you want information.</p>
         145  +
    pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         146  +
        self.inner = self.inner.set_association_id(input);
         147  +
        self
         148  +
    }
         149  +
    /// <p>The association ID for which you want information.</p>
         150  +
    pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
         151  +
        self.inner.get_association_id()
         152  +
    }
         153  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         154  +
    pub fn association_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         155  +
        self.inner = self.inner.association_version(input.into());
         156  +
        self
         157  +
    }
         158  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         159  +
    pub fn set_association_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         160  +
        self.inner = self.inner.set_association_version(input);
         161  +
        self
         162  +
    }
         163  +
    /// <p>Specify the association version to retrieve. To view the latest version, either specify <code>$LATEST</code> for this parameter, or omit this parameter. To view a list of all associations for a managed node, use <code>ListAssociations</code>. To get a list of versions for a specific association, use <code>ListAssociationVersions</code>.</p>
         164  +
    pub fn get_association_version(&self) -> &::std::option::Option<::std::string::String> {
         165  +
        self.inner.get_association_version()
         166  +
    }
         167  +
}

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

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