AWS SDK

AWS SDK

rev. 2915cec5ef64cb1ed4992565a748d76a11505b3b

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_ops_metadata.rs

@@ -0,1 +0,276 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Operational metadata for an application in Application Manager.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OpsMetadata {
           7  +
    /// <p>The ID of the Application Manager application.</p>
           8  +
    pub resource_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.</p>
          10  +
    pub ops_metadata_arn: ::std::option::Option<::std::string::String>,
          11  +
    /// <p>The date the OpsMetadata object was last updated.</p>
          12  +
    pub last_modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
          13  +
    /// <p>The user name who last updated the OpsMetadata object.</p>
          14  +
    pub last_modified_user: ::std::option::Option<::std::string::String>,
          15  +
    /// <p>The date the OpsMetadata objects was created.</p>
          16  +
    pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
          17  +
}
          18  +
impl OpsMetadata {
          19  +
    /// <p>The ID of the Application Manager application.</p>
          20  +
    pub fn resource_id(&self) -> ::std::option::Option<&str> {
          21  +
        self.resource_id.as_deref()
          22  +
    }
          23  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.</p>
          24  +
    pub fn ops_metadata_arn(&self) -> ::std::option::Option<&str> {
          25  +
        self.ops_metadata_arn.as_deref()
          26  +
    }
          27  +
    /// <p>The date the OpsMetadata object was last updated.</p>
          28  +
    pub fn last_modified_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          29  +
        self.last_modified_date.as_ref()
          30  +
    }
          31  +
    /// <p>The user name who last updated the OpsMetadata object.</p>
          32  +
    pub fn last_modified_user(&self) -> ::std::option::Option<&str> {
          33  +
        self.last_modified_user.as_deref()
          34  +
    }
          35  +
    /// <p>The date the OpsMetadata objects was created.</p>
          36  +
    pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          37  +
        self.creation_date.as_ref()
          38  +
    }
          39  +
}
          40  +
static OPSMETADATA_MEMBER_RESOURCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata$ResourceId", "com.amazonaws.ssm", "OpsMetadata"),
          42  +
    ::aws_smithy_schema::ShapeType::String,
          43  +
    "ResourceId",
          44  +
    0,
          45  +
);
          46  +
static OPSMETADATA_MEMBER_OPS_METADATA_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          47  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata$OpsMetadataArn", "com.amazonaws.ssm", "OpsMetadata"),
          48  +
    ::aws_smithy_schema::ShapeType::String,
          49  +
    "OpsMetadataArn",
          50  +
    1,
          51  +
);
          52  +
static OPSMETADATA_MEMBER_LAST_MODIFIED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          53  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata$LastModifiedDate", "com.amazonaws.ssm", "OpsMetadata"),
          54  +
    ::aws_smithy_schema::ShapeType::Timestamp,
          55  +
    "LastModifiedDate",
          56  +
    2,
          57  +
);
          58  +
static OPSMETADATA_MEMBER_LAST_MODIFIED_USER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata$LastModifiedUser", "com.amazonaws.ssm", "OpsMetadata"),
          60  +
    ::aws_smithy_schema::ShapeType::String,
          61  +
    "LastModifiedUser",
          62  +
    3,
          63  +
);
          64  +
static OPSMETADATA_MEMBER_CREATION_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          65  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata$CreationDate", "com.amazonaws.ssm", "OpsMetadata"),
          66  +
    ::aws_smithy_schema::ShapeType::Timestamp,
          67  +
    "CreationDate",
          68  +
    4,
          69  +
);
          70  +
static OPSMETADATA_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          71  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadata", "com.amazonaws.ssm", "OpsMetadata"),
          72  +
    ::aws_smithy_schema::ShapeType::Structure,
          73  +
    &[
          74  +
        &OPSMETADATA_MEMBER_RESOURCE_ID,
          75  +
        &OPSMETADATA_MEMBER_OPS_METADATA_ARN,
          76  +
        &OPSMETADATA_MEMBER_LAST_MODIFIED_DATE,
          77  +
        &OPSMETADATA_MEMBER_LAST_MODIFIED_USER,
          78  +
        &OPSMETADATA_MEMBER_CREATION_DATE,
          79  +
    ],
          80  +
);
          81  +
impl OpsMetadata {
          82  +
    /// The schema for this shape.
          83  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OPSMETADATA_SCHEMA;
          84  +
}
          85  +
impl ::aws_smithy_schema::serde::SerializableStruct for OpsMetadata {
          86  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          87  +
    fn serialize_members(
          88  +
        &self,
          89  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          90  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          91  +
        if let Some(ref val) = self.resource_id {
          92  +
            ser.write_string(&OPSMETADATA_MEMBER_RESOURCE_ID, val)?;
          93  +
        }
          94  +
        if let Some(ref val) = self.ops_metadata_arn {
          95  +
            ser.write_string(&OPSMETADATA_MEMBER_OPS_METADATA_ARN, val)?;
          96  +
        }
          97  +
        if let Some(ref val) = self.last_modified_date {
          98  +
            ser.write_timestamp(&OPSMETADATA_MEMBER_LAST_MODIFIED_DATE, val)?;
          99  +
        }
         100  +
        if let Some(ref val) = self.last_modified_user {
         101  +
            ser.write_string(&OPSMETADATA_MEMBER_LAST_MODIFIED_USER, val)?;
         102  +
        }
         103  +
        if let Some(ref val) = self.creation_date {
         104  +
            ser.write_timestamp(&OPSMETADATA_MEMBER_CREATION_DATE, val)?;
         105  +
        }
         106  +
        Ok(())
         107  +
    }
         108  +
}
         109  +
impl OpsMetadata {
         110  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         111  +
    pub fn deserialize(
         112  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        #[allow(unused_variables, unused_mut)]
         115  +
        let mut builder = Self::builder();
         116  +
        #[allow(
         117  +
            unused_variables,
         118  +
            unreachable_code,
         119  +
            clippy::single_match,
         120  +
            clippy::match_single_binding,
         121  +
            clippy::diverging_sub_expression
         122  +
        )]
         123  +
        deserializer.read_struct(&OPSMETADATA_SCHEMA, &mut |member, deser| {
         124  +
            match member.member_index() {
         125  +
                Some(0) => {
         126  +
                    if deser.is_null() {
         127  +
                        deser.read_null()?;
         128  +
                    } else {
         129  +
                        builder.resource_id = Some(deser.read_string(member)?);
         130  +
                    }
         131  +
                }
         132  +
                Some(1) => {
         133  +
                    if deser.is_null() {
         134  +
                        deser.read_null()?;
         135  +
                    } else {
         136  +
                        builder.ops_metadata_arn = Some(deser.read_string(member)?);
         137  +
                    }
         138  +
                }
         139  +
                Some(2) => {
         140  +
                    if deser.is_null() {
         141  +
                        deser.read_null()?;
         142  +
                    } else {
         143  +
                        builder.last_modified_date = Some(deser.read_timestamp(member)?);
         144  +
                    }
         145  +
                }
         146  +
                Some(3) => {
         147  +
                    if deser.is_null() {
         148  +
                        deser.read_null()?;
         149  +
                    } else {
         150  +
                        builder.last_modified_user = Some(deser.read_string(member)?);
         151  +
                    }
         152  +
                }
         153  +
                Some(4) => {
         154  +
                    if deser.is_null() {
         155  +
                        deser.read_null()?;
         156  +
                    } else {
         157  +
                        builder.creation_date = Some(deser.read_timestamp(member)?);
         158  +
                    }
         159  +
                }
         160  +
                _ => {}
         161  +
            }
         162  +
            Ok(())
         163  +
        })?;
         164  +
        Ok(builder.build())
         165  +
    }
         166  +
}
         167  +
impl OpsMetadata {
         168  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         169  +
    pub fn deserialize_with_response(
         170  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         171  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         172  +
        _status: u16,
         173  +
        _body: &[u8],
         174  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         175  +
        Self::deserialize(deserializer)
         176  +
    }
         177  +
}
         178  +
impl OpsMetadata {
         179  +
    /// Creates a new builder-style object to manufacture [`OpsMetadata`](crate::types::OpsMetadata).
         180  +
    pub fn builder() -> crate::types::builders::OpsMetadataBuilder {
         181  +
        crate::types::builders::OpsMetadataBuilder::default()
         182  +
    }
         183  +
}
         184  +
         185  +
/// A builder for [`OpsMetadata`](crate::types::OpsMetadata).
         186  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         187  +
#[non_exhaustive]
         188  +
pub struct OpsMetadataBuilder {
         189  +
    pub(crate) resource_id: ::std::option::Option<::std::string::String>,
         190  +
    pub(crate) ops_metadata_arn: ::std::option::Option<::std::string::String>,
         191  +
    pub(crate) last_modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
         192  +
    pub(crate) last_modified_user: ::std::option::Option<::std::string::String>,
         193  +
    pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
         194  +
}
         195  +
impl OpsMetadataBuilder {
         196  +
    /// <p>The ID of the Application Manager application.</p>
         197  +
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         198  +
        self.resource_id = ::std::option::Option::Some(input.into());
         199  +
        self
         200  +
    }
         201  +
    /// <p>The ID of the Application Manager application.</p>
         202  +
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         203  +
        self.resource_id = input;
         204  +
        self
         205  +
    }
         206  +
    /// <p>The ID of the Application Manager application.</p>
         207  +
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
         208  +
        &self.resource_id
         209  +
    }
         210  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.</p>
         211  +
    pub fn ops_metadata_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         212  +
        self.ops_metadata_arn = ::std::option::Option::Some(input.into());
         213  +
        self
         214  +
    }
         215  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.</p>
         216  +
    pub fn set_ops_metadata_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         217  +
        self.ops_metadata_arn = input;
         218  +
        self
         219  +
    }
         220  +
    /// <p>The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.</p>
         221  +
    pub fn get_ops_metadata_arn(&self) -> &::std::option::Option<::std::string::String> {
         222  +
        &self.ops_metadata_arn
         223  +
    }
         224  +
    /// <p>The date the OpsMetadata object was last updated.</p>
         225  +
    pub fn last_modified_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         226  +
        self.last_modified_date = ::std::option::Option::Some(input);
         227  +
        self
         228  +
    }
         229  +
    /// <p>The date the OpsMetadata object was last updated.</p>
         230  +
    pub fn set_last_modified_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         231  +
        self.last_modified_date = input;
         232  +
        self
         233  +
    }
         234  +
    /// <p>The date the OpsMetadata object was last updated.</p>
         235  +
    pub fn get_last_modified_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         236  +
        &self.last_modified_date
         237  +
    }
         238  +
    /// <p>The user name who last updated the OpsMetadata object.</p>
         239  +
    pub fn last_modified_user(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         240  +
        self.last_modified_user = ::std::option::Option::Some(input.into());
         241  +
        self
         242  +
    }
         243  +
    /// <p>The user name who last updated the OpsMetadata object.</p>
         244  +
    pub fn set_last_modified_user(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         245  +
        self.last_modified_user = input;
         246  +
        self
         247  +
    }
         248  +
    /// <p>The user name who last updated the OpsMetadata object.</p>
         249  +
    pub fn get_last_modified_user(&self) -> &::std::option::Option<::std::string::String> {
         250  +
        &self.last_modified_user
         251  +
    }
         252  +
    /// <p>The date the OpsMetadata objects was created.</p>
         253  +
    pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         254  +
        self.creation_date = ::std::option::Option::Some(input);
         255  +
        self
         256  +
    }
         257  +
    /// <p>The date the OpsMetadata objects was created.</p>
         258  +
    pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         259  +
        self.creation_date = input;
         260  +
        self
         261  +
    }
         262  +
    /// <p>The date the OpsMetadata objects was created.</p>
         263  +
    pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         264  +
        &self.creation_date
         265  +
    }
         266  +
    /// Consumes the builder and constructs a [`OpsMetadata`](crate::types::OpsMetadata).
         267  +
    pub fn build(self) -> crate::types::OpsMetadata {
         268  +
        crate::types::OpsMetadata {
         269  +
            resource_id: self.resource_id,
         270  +
            ops_metadata_arn: self.ops_metadata_arn,
         271  +
            last_modified_date: self.last_modified_date,
         272  +
            last_modified_user: self.last_modified_user,
         273  +
            creation_date: self.creation_date,
         274  +
        }
         275  +
    }
         276  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_ops_metadata_filter.rs

@@ -0,1 +0,194 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>A filter to limit the number of OpsMetadata objects displayed.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OpsMetadataFilter {
           7  +
    /// <p>A filter key.</p>
           8  +
    pub key: ::std::string::String,
           9  +
    /// <p>A filter value.</p>
          10  +
    pub values: ::std::vec::Vec<::std::string::String>,
          11  +
}
          12  +
impl OpsMetadataFilter {
          13  +
    /// <p>A filter key.</p>
          14  +
    pub fn key(&self) -> &str {
          15  +
        use std::ops::Deref;
          16  +
        self.key.deref()
          17  +
    }
          18  +
    /// <p>A filter value.</p>
          19  +
    pub fn values(&self) -> &[::std::string::String] {
          20  +
        use std::ops::Deref;
          21  +
        self.values.deref()
          22  +
    }
          23  +
}
          24  +
static OPSMETADATAFILTER_MEMBER_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadataFilter$Key", "com.amazonaws.ssm", "OpsMetadataFilter"),
          26  +
    ::aws_smithy_schema::ShapeType::String,
          27  +
    "Key",
          28  +
    0,
          29  +
);
          30  +
static OPSMETADATAFILTER_MEMBER_VALUES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          31  +
    ::aws_smithy_schema::ShapeId::from_parts(
          32  +
        "com.amazonaws.ssm#OpsMetadataFilterValueList$member",
          33  +
        "com.amazonaws.ssm",
          34  +
        "OpsMetadataFilterValueList",
          35  +
    ),
          36  +
    ::aws_smithy_schema::ShapeType::String,
          37  +
    "member",
          38  +
    0,
          39  +
);
          40  +
static OPSMETADATAFILTER_MEMBER_VALUES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadataFilter$Values", "com.amazonaws.ssm", "OpsMetadataFilter"),
          42  +
    ::aws_smithy_schema::ShapeType::List,
          43  +
    "Values",
          44  +
    1,
          45  +
)
          46  +
.with_list_member(&OPSMETADATAFILTER_MEMBER_VALUES_MEMBER);
          47  +
static OPSMETADATAFILTER_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          48  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsMetadataFilter", "com.amazonaws.ssm", "OpsMetadataFilter"),
          49  +
    ::aws_smithy_schema::ShapeType::Structure,
          50  +
    &[&OPSMETADATAFILTER_MEMBER_KEY, &OPSMETADATAFILTER_MEMBER_VALUES],
          51  +
);
          52  +
impl OpsMetadataFilter {
          53  +
    /// The schema for this shape.
          54  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OPSMETADATAFILTER_SCHEMA;
          55  +
}
          56  +
impl ::aws_smithy_schema::serde::SerializableStruct for OpsMetadataFilter {
          57  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          58  +
    fn serialize_members(
          59  +
        &self,
          60  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          61  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          62  +
        {
          63  +
            let val = &self.key;
          64  +
            ser.write_string(&OPSMETADATAFILTER_MEMBER_KEY, val)?;
          65  +
        }
          66  +
        {
          67  +
            let val = &self.values;
          68  +
          69  +
            ser.write_list(
          70  +
                &OPSMETADATAFILTER_MEMBER_VALUES,
          71  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          72  +
                    for item in val {
          73  +
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
          74  +
                    }
          75  +
                    Ok(())
          76  +
                },
          77  +
            )?;
          78  +
        }
          79  +
        Ok(())
          80  +
    }
          81  +
}
          82  +
impl OpsMetadataFilter {
          83  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          84  +
    pub fn deserialize(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          86  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          87  +
        #[allow(unused_variables, unused_mut)]
          88  +
        let mut builder = Self::builder();
          89  +
        #[allow(
          90  +
            unused_variables,
          91  +
            unreachable_code,
          92  +
            clippy::single_match,
          93  +
            clippy::match_single_binding,
          94  +
            clippy::diverging_sub_expression
          95  +
        )]
          96  +
        deserializer.read_struct(&OPSMETADATAFILTER_SCHEMA, &mut |member, deser| {
          97  +
            match member.member_index() {
          98  +
                Some(0) => {
          99  +
                    builder.key = Some(deser.read_string(member)?);
         100  +
                }
         101  +
                Some(1) => {
         102  +
                    builder.values = Some(deser.read_string_list(member)?);
         103  +
                }
         104  +
                _ => {}
         105  +
            }
         106  +
            Ok(())
         107  +
        })?;
         108  +
        builder.key = builder.key.or(Some(String::new()));
         109  +
        builder.values = builder.values.or(Some(Vec::new()));
         110  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         111  +
    }
         112  +
}
         113  +
impl OpsMetadataFilter {
         114  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         115  +
    pub fn deserialize_with_response(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         117  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         118  +
        _status: u16,
         119  +
        _body: &[u8],
         120  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         121  +
        Self::deserialize(deserializer)
         122  +
    }
         123  +
}
         124  +
impl OpsMetadataFilter {
         125  +
    /// Creates a new builder-style object to manufacture [`OpsMetadataFilter`](crate::types::OpsMetadataFilter).
         126  +
    pub fn builder() -> crate::types::builders::OpsMetadataFilterBuilder {
         127  +
        crate::types::builders::OpsMetadataFilterBuilder::default()
         128  +
    }
         129  +
}
         130  +
         131  +
/// A builder for [`OpsMetadataFilter`](crate::types::OpsMetadataFilter).
         132  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         133  +
#[non_exhaustive]
         134  +
pub struct OpsMetadataFilterBuilder {
         135  +
    pub(crate) key: ::std::option::Option<::std::string::String>,
         136  +
    pub(crate) values: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         137  +
}
         138  +
impl OpsMetadataFilterBuilder {
         139  +
    /// <p>A filter key.</p>
         140  +
    /// This field is required.
         141  +
    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         142  +
        self.key = ::std::option::Option::Some(input.into());
         143  +
        self
         144  +
    }
         145  +
    /// <p>A filter key.</p>
         146  +
    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         147  +
        self.key = input;
         148  +
        self
         149  +
    }
         150  +
    /// <p>A filter key.</p>
         151  +
    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
         152  +
        &self.key
         153  +
    }
         154  +
    /// Appends an item to `values`.
         155  +
    ///
         156  +
    /// To override the contents of this collection use [`set_values`](Self::set_values).
         157  +
    ///
         158  +
    /// <p>A filter value.</p>
         159  +
    pub fn values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         160  +
        let mut v = self.values.unwrap_or_default();
         161  +
        v.push(input.into());
         162  +
        self.values = ::std::option::Option::Some(v);
         163  +
        self
         164  +
    }
         165  +
    /// <p>A filter value.</p>
         166  +
    pub fn set_values(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         167  +
        self.values = input;
         168  +
        self
         169  +
    }
         170  +
    /// <p>A filter value.</p>
         171  +
    pub fn get_values(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         172  +
        &self.values
         173  +
    }
         174  +
    /// Consumes the builder and constructs a [`OpsMetadataFilter`](crate::types::OpsMetadataFilter).
         175  +
    /// This method will fail if any of the following fields are not set:
         176  +
    /// - [`key`](crate::types::builders::OpsMetadataFilterBuilder::key)
         177  +
    /// - [`values`](crate::types::builders::OpsMetadataFilterBuilder::values)
         178  +
    pub fn build(self) -> ::std::result::Result<crate::types::OpsMetadataFilter, ::aws_smithy_types::error::operation::BuildError> {
         179  +
        ::std::result::Result::Ok(crate::types::OpsMetadataFilter {
         180  +
            key: self.key.ok_or_else(|| {
         181  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
         182  +
                    "key",
         183  +
                    "key was not specified but it is required when building OpsMetadataFilter",
         184  +
                )
         185  +
            })?,
         186  +
            values: self.values.ok_or_else(|| {
         187  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
         188  +
                    "values",
         189  +
                    "values was not specified but it is required when building OpsMetadataFilter",
         190  +
                )
         191  +
            })?,
         192  +
        })
         193  +
    }
         194  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_ops_result_attribute.rs

@@ -0,1 +0,125 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The OpsItem data type to return.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OpsResultAttribute {
           7  +
    /// <p>Name of the data type. Valid value: <code>AWS:OpsItem</code>, <code>AWS:EC2InstanceInformation</code>, <code>AWS:OpsItemTrendline</code>, or <code>AWS:ComplianceSummary</code>.</p>
           8  +
    pub type_name: ::std::string::String,
           9  +
}
          10  +
impl OpsResultAttribute {
          11  +
    /// <p>Name of the data type. Valid value: <code>AWS:OpsItem</code>, <code>AWS:EC2InstanceInformation</code>, <code>AWS:OpsItemTrendline</code>, or <code>AWS:ComplianceSummary</code>.</p>
          12  +
    pub fn type_name(&self) -> &str {
          13  +
        use std::ops::Deref;
          14  +
        self.type_name.deref()
          15  +
    }
          16  +
}
          17  +
static OPSRESULTATTRIBUTE_MEMBER_TYPE_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          18  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsResultAttribute$TypeName", "com.amazonaws.ssm", "OpsResultAttribute"),
          19  +
    ::aws_smithy_schema::ShapeType::String,
          20  +
    "TypeName",
          21  +
    0,
          22  +
);
          23  +
static OPSRESULTATTRIBUTE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          24  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsResultAttribute", "com.amazonaws.ssm", "OpsResultAttribute"),
          25  +
    ::aws_smithy_schema::ShapeType::Structure,
          26  +
    &[&OPSRESULTATTRIBUTE_MEMBER_TYPE_NAME],
          27  +
);
          28  +
impl OpsResultAttribute {
          29  +
    /// The schema for this shape.
          30  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OPSRESULTATTRIBUTE_SCHEMA;
          31  +
}
          32  +
impl ::aws_smithy_schema::serde::SerializableStruct for OpsResultAttribute {
          33  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          34  +
    fn serialize_members(
          35  +
        &self,
          36  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          37  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          38  +
        {
          39  +
            let val = &self.type_name;
          40  +
            ser.write_string(&OPSRESULTATTRIBUTE_MEMBER_TYPE_NAME, val)?;
          41  +
        }
          42  +
        Ok(())
          43  +
    }
          44  +
}
          45  +
impl OpsResultAttribute {
          46  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          47  +
    pub fn deserialize(
          48  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          49  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          50  +
        #[allow(unused_variables, unused_mut)]
          51  +
        let mut builder = Self::builder();
          52  +
        #[allow(
          53  +
            unused_variables,
          54  +
            unreachable_code,
          55  +
            clippy::single_match,
          56  +
            clippy::match_single_binding,
          57  +
            clippy::diverging_sub_expression
          58  +
        )]
          59  +
        deserializer.read_struct(&OPSRESULTATTRIBUTE_SCHEMA, &mut |member, deser| {
          60  +
            match member.member_index() {
          61  +
                Some(0) => {
          62  +
                    builder.type_name = Some(deser.read_string(member)?);
          63  +
                }
          64  +
                _ => {}
          65  +
            }
          66  +
            Ok(())
          67  +
        })?;
          68  +
        builder.type_name = builder.type_name.or(Some(String::new()));
          69  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
          70  +
    }
          71  +
}
          72  +
impl OpsResultAttribute {
          73  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          74  +
    pub fn deserialize_with_response(
          75  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          76  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          77  +
        _status: u16,
          78  +
        _body: &[u8],
          79  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          80  +
        Self::deserialize(deserializer)
          81  +
    }
          82  +
}
          83  +
impl OpsResultAttribute {
          84  +
    /// Creates a new builder-style object to manufacture [`OpsResultAttribute`](crate::types::OpsResultAttribute).
          85  +
    pub fn builder() -> crate::types::builders::OpsResultAttributeBuilder {
          86  +
        crate::types::builders::OpsResultAttributeBuilder::default()
          87  +
    }
          88  +
}
          89  +
          90  +
/// A builder for [`OpsResultAttribute`](crate::types::OpsResultAttribute).
          91  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          92  +
#[non_exhaustive]
          93  +
pub struct OpsResultAttributeBuilder {
          94  +
    pub(crate) type_name: ::std::option::Option<::std::string::String>,
          95  +
}
          96  +
impl OpsResultAttributeBuilder {
          97  +
    /// <p>Name of the data type. Valid value: <code>AWS:OpsItem</code>, <code>AWS:EC2InstanceInformation</code>, <code>AWS:OpsItemTrendline</code>, or <code>AWS:ComplianceSummary</code>.</p>
          98  +
    /// This field is required.
          99  +
    pub fn type_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         100  +
        self.type_name = ::std::option::Option::Some(input.into());
         101  +
        self
         102  +
    }
         103  +
    /// <p>Name of the data type. Valid value: <code>AWS:OpsItem</code>, <code>AWS:EC2InstanceInformation</code>, <code>AWS:OpsItemTrendline</code>, or <code>AWS:ComplianceSummary</code>.</p>
         104  +
    pub fn set_type_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         105  +
        self.type_name = input;
         106  +
        self
         107  +
    }
         108  +
    /// <p>Name of the data type. Valid value: <code>AWS:OpsItem</code>, <code>AWS:EC2InstanceInformation</code>, <code>AWS:OpsItemTrendline</code>, or <code>AWS:ComplianceSummary</code>.</p>
         109  +
    pub fn get_type_name(&self) -> &::std::option::Option<::std::string::String> {
         110  +
        &self.type_name
         111  +
    }
         112  +
    /// Consumes the builder and constructs a [`OpsResultAttribute`](crate::types::OpsResultAttribute).
         113  +
    /// This method will fail if any of the following fields are not set:
         114  +
    /// - [`type_name`](crate::types::builders::OpsResultAttributeBuilder::type_name)
         115  +
    pub fn build(self) -> ::std::result::Result<crate::types::OpsResultAttribute, ::aws_smithy_types::error::operation::BuildError> {
         116  +
        ::std::result::Result::Ok(crate::types::OpsResultAttribute {
         117  +
            type_name: self.type_name.ok_or_else(|| {
         118  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
         119  +
                    "type_name",
         120  +
                    "type_name was not specified but it is required when building OpsResultAttribute",
         121  +
                )
         122  +
            })?,
         123  +
        })
         124  +
    }
         125  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_output_source.rs

@@ -0,1 +0,156 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Information about the source where the association execution details are stored.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OutputSource {
           7  +
    /// <p>The ID of the output source, for example the URL of an S3 bucket.</p>
           8  +
    pub output_source_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The type of source where the association execution details are stored, for example, Amazon S3.</p>
          10  +
    pub output_source_type: ::std::option::Option<::std::string::String>,
          11  +
}
          12  +
impl OutputSource {
          13  +
    /// <p>The ID of the output source, for example the URL of an S3 bucket.</p>
          14  +
    pub fn output_source_id(&self) -> ::std::option::Option<&str> {
          15  +
        self.output_source_id.as_deref()
          16  +
    }
          17  +
    /// <p>The type of source where the association execution details are stored, for example, Amazon S3.</p>
          18  +
    pub fn output_source_type(&self) -> ::std::option::Option<&str> {
          19  +
        self.output_source_type.as_deref()
          20  +
    }
          21  +
}
          22  +
static OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          23  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OutputSource$OutputSourceId", "com.amazonaws.ssm", "OutputSource"),
          24  +
    ::aws_smithy_schema::ShapeType::String,
          25  +
    "OutputSourceId",
          26  +
    0,
          27  +
);
          28  +
static OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          29  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OutputSource$OutputSourceType", "com.amazonaws.ssm", "OutputSource"),
          30  +
    ::aws_smithy_schema::ShapeType::String,
          31  +
    "OutputSourceType",
          32  +
    1,
          33  +
);
          34  +
static OUTPUTSOURCE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          35  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OutputSource", "com.amazonaws.ssm", "OutputSource"),
          36  +
    ::aws_smithy_schema::ShapeType::Structure,
          37  +
    &[&OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_ID, &OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_TYPE],
          38  +
);
          39  +
impl OutputSource {
          40  +
    /// The schema for this shape.
          41  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OUTPUTSOURCE_SCHEMA;
          42  +
}
          43  +
impl ::aws_smithy_schema::serde::SerializableStruct for OutputSource {
          44  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          45  +
    fn serialize_members(
          46  +
        &self,
          47  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          48  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          49  +
        if let Some(ref val) = self.output_source_id {
          50  +
            ser.write_string(&OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_ID, val)?;
          51  +
        }
          52  +
        if let Some(ref val) = self.output_source_type {
          53  +
            ser.write_string(&OUTPUTSOURCE_MEMBER_OUTPUT_SOURCE_TYPE, val)?;
          54  +
        }
          55  +
        Ok(())
          56  +
    }
          57  +
}
          58  +
impl OutputSource {
          59  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          60  +
    pub fn deserialize(
          61  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          62  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          63  +
        #[allow(unused_variables, unused_mut)]
          64  +
        let mut builder = Self::builder();
          65  +
        #[allow(
          66  +
            unused_variables,
          67  +
            unreachable_code,
          68  +
            clippy::single_match,
          69  +
            clippy::match_single_binding,
          70  +
            clippy::diverging_sub_expression
          71  +
        )]
          72  +
        deserializer.read_struct(&OUTPUTSOURCE_SCHEMA, &mut |member, deser| {
          73  +
            match member.member_index() {
          74  +
                Some(0) => {
          75  +
                    if deser.is_null() {
          76  +
                        deser.read_null()?;
          77  +
                    } else {
          78  +
                        builder.output_source_id = Some(deser.read_string(member)?);
          79  +
                    }
          80  +
                }
          81  +
                Some(1) => {
          82  +
                    if deser.is_null() {
          83  +
                        deser.read_null()?;
          84  +
                    } else {
          85  +
                        builder.output_source_type = Some(deser.read_string(member)?);
          86  +
                    }
          87  +
                }
          88  +
                _ => {}
          89  +
            }
          90  +
            Ok(())
          91  +
        })?;
          92  +
        Ok(builder.build())
          93  +
    }
          94  +
}
          95  +
impl OutputSource {
          96  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          97  +
    pub fn deserialize_with_response(
          98  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          99  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         100  +
        _status: u16,
         101  +
        _body: &[u8],
         102  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         103  +
        Self::deserialize(deserializer)
         104  +
    }
         105  +
}
         106  +
impl OutputSource {
         107  +
    /// Creates a new builder-style object to manufacture [`OutputSource`](crate::types::OutputSource).
         108  +
    pub fn builder() -> crate::types::builders::OutputSourceBuilder {
         109  +
        crate::types::builders::OutputSourceBuilder::default()
         110  +
    }
         111  +
}
         112  +
         113  +
/// A builder for [`OutputSource`](crate::types::OutputSource).
         114  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         115  +
#[non_exhaustive]
         116  +
pub struct OutputSourceBuilder {
         117  +
    pub(crate) output_source_id: ::std::option::Option<::std::string::String>,
         118  +
    pub(crate) output_source_type: ::std::option::Option<::std::string::String>,
         119  +
}
         120  +
impl OutputSourceBuilder {
         121  +
    /// <p>The ID of the output source, for example the URL of an S3 bucket.</p>
         122  +
    pub fn output_source_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         123  +
        self.output_source_id = ::std::option::Option::Some(input.into());
         124  +
        self
         125  +
    }
         126  +
    /// <p>The ID of the output source, for example the URL of an S3 bucket.</p>
         127  +
    pub fn set_output_source_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         128  +
        self.output_source_id = input;
         129  +
        self
         130  +
    }
         131  +
    /// <p>The ID of the output source, for example the URL of an S3 bucket.</p>
         132  +
    pub fn get_output_source_id(&self) -> &::std::option::Option<::std::string::String> {
         133  +
        &self.output_source_id
         134  +
    }
         135  +
    /// <p>The type of source where the association execution details are stored, for example, Amazon S3.</p>
         136  +
    pub fn output_source_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         137  +
        self.output_source_type = ::std::option::Option::Some(input.into());
         138  +
        self
         139  +
    }
         140  +
    /// <p>The type of source where the association execution details are stored, for example, Amazon S3.</p>
         141  +
    pub fn set_output_source_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         142  +
        self.output_source_type = input;
         143  +
        self
         144  +
    }
         145  +
    /// <p>The type of source where the association execution details are stored, for example, Amazon S3.</p>
         146  +
    pub fn get_output_source_type(&self) -> &::std::option::Option<::std::string::String> {
         147  +
        &self.output_source_type
         148  +
    }
         149  +
    /// Consumes the builder and constructs a [`OutputSource`](crate::types::OutputSource).
         150  +
    pub fn build(self) -> crate::types::OutputSource {
         151  +
        crate::types::OutputSource {
         152  +
            output_source_id: self.output_source_id,
         153  +
            output_source_type: self.output_source_type,
         154  +
        }
         155  +
    }
         156  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_parameter.rs

@@ -0,1 +0,489 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>An Amazon Web Services Systems Manager parameter in Parameter Store.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
           6  +
pub struct Parameter {
           7  +
    /// <p>The name of the parameter.</p>
           8  +
    pub name: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The type of parameter. Valid values include the following: <code>String</code>, <code>StringList</code>, and <code>SecureString</code>.</p><note>
          10  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
          11  +
    /// </note>
          12  +
    pub r#type: ::std::option::Option<crate::types::ParameterType>,
          13  +
    /// <p>The parameter value.</p><note>
          14  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
          15  +
    /// </note>
          16  +
    pub value: ::std::option::Option<::std::string::String>,
          17  +
    /// <p>The parameter version.</p>
          18  +
    pub version: i64,
          19  +
    /// <p>Either the version number or the label used to retrieve the parameter value. Specify selectors by using one of the following formats:</p>
          20  +
    /// <p>parameter_name:version</p>
          21  +
    /// <p>parameter_name:label</p>
          22  +
    pub selector: ::std::option::Option<::std::string::String>,
          23  +
    /// <p>Applies to parameters that reference information in other Amazon Web Services services. <code>SourceResult</code> is the raw result or response from the source.</p>
          24  +
    pub source_result: ::std::option::Option<::std::string::String>,
          25  +
    /// <p>Date the parameter was last changed or updated and the parameter version was created.</p>
          26  +
    pub last_modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
          27  +
    /// <p>The Amazon Resource Name (ARN) of the parameter.</p>
          28  +
    pub arn: ::std::option::Option<::std::string::String>,
          29  +
    /// <p>The data type of the parameter, such as <code>text</code> or <code>aws:ec2:image</code>. The default is <code>text</code>.</p>
          30  +
    pub data_type: ::std::option::Option<::std::string::String>,
          31  +
}
          32  +
impl Parameter {
          33  +
    /// <p>The name of the parameter.</p>
          34  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          35  +
        self.name.as_deref()
          36  +
    }
          37  +
    /// <p>The type of parameter. Valid values include the following: <code>String</code>, <code>StringList</code>, and <code>SecureString</code>.</p><note>
          38  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
          39  +
    /// </note>
          40  +
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::ParameterType> {
          41  +
        self.r#type.as_ref()
          42  +
    }
          43  +
    /// <p>The parameter value.</p><note>
          44  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
          45  +
    /// </note>
          46  +
    pub fn value(&self) -> ::std::option::Option<&str> {
          47  +
        self.value.as_deref()
          48  +
    }
          49  +
    /// <p>The parameter version.</p>
          50  +
    pub fn version(&self) -> i64 {
          51  +
        self.version
          52  +
    }
          53  +
    /// <p>Either the version number or the label used to retrieve the parameter value. Specify selectors by using one of the following formats:</p>
          54  +
    /// <p>parameter_name:version</p>
          55  +
    /// <p>parameter_name:label</p>
          56  +
    pub fn selector(&self) -> ::std::option::Option<&str> {
          57  +
        self.selector.as_deref()
          58  +
    }
          59  +
    /// <p>Applies to parameters that reference information in other Amazon Web Services services. <code>SourceResult</code> is the raw result or response from the source.</p>
          60  +
    pub fn source_result(&self) -> ::std::option::Option<&str> {
          61  +
        self.source_result.as_deref()
          62  +
    }
          63  +
    /// <p>Date the parameter was last changed or updated and the parameter version was created.</p>
          64  +
    pub fn last_modified_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          65  +
        self.last_modified_date.as_ref()
          66  +
    }
          67  +
    /// <p>The Amazon Resource Name (ARN) of the parameter.</p>
          68  +
    pub fn arn(&self) -> ::std::option::Option<&str> {
          69  +
        self.arn.as_deref()
          70  +
    }
          71  +
    /// <p>The data type of the parameter, such as <code>text</code> or <code>aws:ec2:image</code>. The default is <code>text</code>.</p>
          72  +
    pub fn data_type(&self) -> ::std::option::Option<&str> {
          73  +
        self.data_type.as_deref()
          74  +
    }
          75  +
}
          76  +
impl ::std::fmt::Debug for Parameter {
          77  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          78  +
        let mut formatter = f.debug_struct("Parameter");
          79  +
        formatter.field("name", &self.name);
          80  +
        formatter.field("r#type", &self.r#type);
          81  +
        formatter.field("value", &"*** Sensitive Data Redacted ***");
          82  +
        formatter.field("version", &self.version);
          83  +
        formatter.field("selector", &self.selector);
          84  +
        formatter.field("source_result", &self.source_result);
          85  +
        formatter.field("last_modified_date", &self.last_modified_date);
          86  +
        formatter.field("arn", &self.arn);
          87  +
        formatter.field("data_type", &self.data_type);
          88  +
        formatter.finish()
          89  +
    }
          90  +
}
          91  +
static PARAMETER_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          92  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$Name", "com.amazonaws.ssm", "Parameter"),
          93  +
    ::aws_smithy_schema::ShapeType::String,
          94  +
    "Name",
          95  +
    0,
          96  +
);
          97  +
static PARAMETER_MEMBER_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          98  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$Type", "com.amazonaws.ssm", "Parameter"),
          99  +
    ::aws_smithy_schema::ShapeType::String,
         100  +
    "Type",
         101  +
    1,
         102  +
);
         103  +
static PARAMETER_MEMBER_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         104  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$Value", "com.amazonaws.ssm", "Parameter"),
         105  +
    ::aws_smithy_schema::ShapeType::String,
         106  +
    "Value",
         107  +
    2,
         108  +
);
         109  +
static PARAMETER_MEMBER_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         110  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$Version", "com.amazonaws.ssm", "Parameter"),
         111  +
    ::aws_smithy_schema::ShapeType::Long,
         112  +
    "Version",
         113  +
    3,
         114  +
);
         115  +
static PARAMETER_MEMBER_SELECTOR: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         116  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$Selector", "com.amazonaws.ssm", "Parameter"),
         117  +
    ::aws_smithy_schema::ShapeType::String,
         118  +
    "Selector",
         119  +
    4,
         120  +
);
         121  +
static PARAMETER_MEMBER_SOURCE_RESULT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         122  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$SourceResult", "com.amazonaws.ssm", "Parameter"),
         123  +
    ::aws_smithy_schema::ShapeType::String,
         124  +
    "SourceResult",
         125  +
    5,
         126  +
);
         127  +
static PARAMETER_MEMBER_LAST_MODIFIED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         128  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$LastModifiedDate", "com.amazonaws.ssm", "Parameter"),
         129  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         130  +
    "LastModifiedDate",
         131  +
    6,
         132  +
);
         133  +
static PARAMETER_MEMBER_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         134  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$ARN", "com.amazonaws.ssm", "Parameter"),
         135  +
    ::aws_smithy_schema::ShapeType::String,
         136  +
    "ARN",
         137  +
    7,
         138  +
);
         139  +
static PARAMETER_MEMBER_DATA_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         140  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter$DataType", "com.amazonaws.ssm", "Parameter"),
         141  +
    ::aws_smithy_schema::ShapeType::String,
         142  +
    "DataType",
         143  +
    8,
         144  +
);
         145  +
static PARAMETER_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         146  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Parameter", "com.amazonaws.ssm", "Parameter"),
         147  +
    ::aws_smithy_schema::ShapeType::Structure,
         148  +
    &[
         149  +
        &PARAMETER_MEMBER_NAME,
         150  +
        &PARAMETER_MEMBER_TYPE,
         151  +
        &PARAMETER_MEMBER_VALUE,
         152  +
        &PARAMETER_MEMBER_VERSION,
         153  +
        &PARAMETER_MEMBER_SELECTOR,
         154  +
        &PARAMETER_MEMBER_SOURCE_RESULT,
         155  +
        &PARAMETER_MEMBER_LAST_MODIFIED_DATE,
         156  +
        &PARAMETER_MEMBER_ARN,
         157  +
        &PARAMETER_MEMBER_DATA_TYPE,
         158  +
    ],
         159  +
);
         160  +
impl Parameter {
         161  +
    /// The schema for this shape.
         162  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PARAMETER_SCHEMA;
         163  +
}
         164  +
impl ::aws_smithy_schema::serde::SerializableStruct for Parameter {
         165  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         166  +
    fn serialize_members(
         167  +
        &self,
         168  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         169  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         170  +
        if let Some(ref val) = self.name {
         171  +
            ser.write_string(&PARAMETER_MEMBER_NAME, val)?;
         172  +
        }
         173  +
        if let Some(ref val) = self.r#type {
         174  +
            ser.write_string(&PARAMETER_MEMBER_TYPE, val.as_str())?;
         175  +
        }
         176  +
        if let Some(ref val) = self.value {
         177  +
            ser.write_string(&PARAMETER_MEMBER_VALUE, val)?;
         178  +
        }
         179  +
        {
         180  +
            let val = &self.version;
         181  +
            ser.write_long(&PARAMETER_MEMBER_VERSION, *val)?;
         182  +
        }
         183  +
        if let Some(ref val) = self.selector {
         184  +
            ser.write_string(&PARAMETER_MEMBER_SELECTOR, val)?;
         185  +
        }
         186  +
        if let Some(ref val) = self.source_result {
         187  +
            ser.write_string(&PARAMETER_MEMBER_SOURCE_RESULT, val)?;
         188  +
        }
         189  +
        if let Some(ref val) = self.last_modified_date {
         190  +
            ser.write_timestamp(&PARAMETER_MEMBER_LAST_MODIFIED_DATE, val)?;
         191  +
        }
         192  +
        if let Some(ref val) = self.arn {
         193  +
            ser.write_string(&PARAMETER_MEMBER_ARN, val)?;
         194  +
        }
         195  +
        if let Some(ref val) = self.data_type {
         196  +
            ser.write_string(&PARAMETER_MEMBER_DATA_TYPE, val)?;
         197  +
        }
         198  +
        Ok(())
         199  +
    }
         200  +
}
         201  +
impl Parameter {
         202  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         203  +
    pub fn deserialize(
         204  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         205  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         206  +
        #[allow(unused_variables, unused_mut)]
         207  +
        let mut builder = Self::builder();
         208  +
        #[allow(
         209  +
            unused_variables,
         210  +
            unreachable_code,
         211  +
            clippy::single_match,
         212  +
            clippy::match_single_binding,
         213  +
            clippy::diverging_sub_expression
         214  +
        )]
         215  +
        deserializer.read_struct(&PARAMETER_SCHEMA, &mut |member, deser| {
         216  +
            match member.member_index() {
         217  +
                Some(0) => {
         218  +
                    if deser.is_null() {
         219  +
                        deser.read_null()?;
         220  +
                    } else {
         221  +
                        builder.name = Some(deser.read_string(member)?);
         222  +
                    }
         223  +
                }
         224  +
                Some(1) => {
         225  +
                    if deser.is_null() {
         226  +
                        deser.read_null()?;
         227  +
                    } else {
         228  +
                        builder.r#type = Some(crate::types::ParameterType::from(deser.read_string(member)?.as_str()));
         229  +
                    }
         230  +
                }
         231  +
                Some(2) => {
         232  +
                    if deser.is_null() {
         233  +
                        deser.read_null()?;
         234  +
                    } else {
         235  +
                        builder.value = Some(deser.read_string(member)?);
         236  +
                    }
         237  +
                }
         238  +
                Some(3) => {
         239  +
                    builder.version = Some(deser.read_long(member)?);
         240  +
                }
         241  +
                Some(4) => {
         242  +
                    if deser.is_null() {
         243  +
                        deser.read_null()?;
         244  +
                    } else {
         245  +
                        builder.selector = Some(deser.read_string(member)?);
         246  +
                    }
         247  +
                }
         248  +
                Some(5) => {
         249  +
                    if deser.is_null() {
         250  +
                        deser.read_null()?;
         251  +
                    } else {
         252  +
                        builder.source_result = Some(deser.read_string(member)?);
         253  +
                    }
         254  +
                }
         255  +
                Some(6) => {
         256  +
                    if deser.is_null() {
         257  +
                        deser.read_null()?;
         258  +
                    } else {
         259  +
                        builder.last_modified_date = Some(deser.read_timestamp(member)?);
         260  +
                    }
         261  +
                }
         262  +
                Some(7) => {
         263  +
                    if deser.is_null() {
         264  +
                        deser.read_null()?;
         265  +
                    } else {
         266  +
                        builder.arn = Some(deser.read_string(member)?);
         267  +
                    }
         268  +
                }
         269  +
                Some(8) => {
         270  +
                    if deser.is_null() {
         271  +
                        deser.read_null()?;
         272  +
                    } else {
         273  +
                        builder.data_type = Some(deser.read_string(member)?);
         274  +
                    }
         275  +
                }
         276  +
                _ => {}
         277  +
            }
         278  +
            Ok(())
         279  +
        })?;
         280  +
        Ok(builder.build())
         281  +
    }
         282  +
}
         283  +
impl Parameter {
         284  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         285  +
    pub fn deserialize_with_response(
         286  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         287  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         288  +
        _status: u16,
         289  +
        _body: &[u8],
         290  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         291  +
        Self::deserialize(deserializer)
         292  +
    }
         293  +
}
         294  +
impl Parameter {
         295  +
    /// Creates a new builder-style object to manufacture [`Parameter`](crate::types::Parameter).
         296  +
    pub fn builder() -> crate::types::builders::ParameterBuilder {
         297  +
        crate::types::builders::ParameterBuilder::default()
         298  +
    }
         299  +
}
         300  +
         301  +
/// A builder for [`Parameter`](crate::types::Parameter).
         302  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         303  +
#[non_exhaustive]
         304  +
pub struct ParameterBuilder {
         305  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         306  +
    pub(crate) r#type: ::std::option::Option<crate::types::ParameterType>,
         307  +
    pub(crate) value: ::std::option::Option<::std::string::String>,
         308  +
    pub(crate) version: ::std::option::Option<i64>,
         309  +
    pub(crate) selector: ::std::option::Option<::std::string::String>,
         310  +
    pub(crate) source_result: ::std::option::Option<::std::string::String>,
         311  +
    pub(crate) last_modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
         312  +
    pub(crate) arn: ::std::option::Option<::std::string::String>,
         313  +
    pub(crate) data_type: ::std::option::Option<::std::string::String>,
         314  +
}
         315  +
impl ParameterBuilder {
         316  +
    /// <p>The name of the parameter.</p>
         317  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         318  +
        self.name = ::std::option::Option::Some(input.into());
         319  +
        self
         320  +
    }
         321  +
    /// <p>The name of the parameter.</p>
         322  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         323  +
        self.name = input;
         324  +
        self
         325  +
    }
         326  +
    /// <p>The name of the parameter.</p>
         327  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         328  +
        &self.name
         329  +
    }
         330  +
    /// <p>The type of parameter. Valid values include the following: <code>String</code>, <code>StringList</code>, and <code>SecureString</code>.</p><note>
         331  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         332  +
    /// </note>
         333  +
    pub fn r#type(mut self, input: crate::types::ParameterType) -> Self {
         334  +
        self.r#type = ::std::option::Option::Some(input);
         335  +
        self
         336  +
    }
         337  +
    /// <p>The type of parameter. Valid values include the following: <code>String</code>, <code>StringList</code>, and <code>SecureString</code>.</p><note>
         338  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         339  +
    /// </note>
         340  +
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::ParameterType>) -> Self {
         341  +
        self.r#type = input;
         342  +
        self
         343  +
    }
         344  +
    /// <p>The type of parameter. Valid values include the following: <code>String</code>, <code>StringList</code>, and <code>SecureString</code>.</p><note>
         345  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         346  +
    /// </note>
         347  +
    pub fn get_type(&self) -> &::std::option::Option<crate::types::ParameterType> {
         348  +
        &self.r#type
         349  +
    }
         350  +
    /// <p>The parameter value.</p><note>
         351  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         352  +
    /// </note>
         353  +
    pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         354  +
        self.value = ::std::option::Option::Some(input.into());
         355  +
        self
         356  +
    }
         357  +
    /// <p>The parameter value.</p><note>
         358  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         359  +
    /// </note>
         360  +
    pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         361  +
        self.value = input;
         362  +
        self
         363  +
    }
         364  +
    /// <p>The parameter value.</p><note>
         365  +
    /// <p>If type is <code>StringList</code>, the system returns a comma-separated string with no spaces between commas in the <code>Value</code> field.</p>
         366  +
    /// </note>
         367  +
    pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
         368  +
        &self.value
         369  +
    }
         370  +
    /// <p>The parameter version.</p>
         371  +
    pub fn version(mut self, input: i64) -> Self {
         372  +
        self.version = ::std::option::Option::Some(input);
         373  +
        self
         374  +
    }
         375  +
    /// <p>The parameter version.</p>
         376  +
    pub fn set_version(mut self, input: ::std::option::Option<i64>) -> Self {
         377  +
        self.version = input;
         378  +
        self
         379  +
    }
         380  +
    /// <p>The parameter version.</p>
         381  +
    pub fn get_version(&self) -> &::std::option::Option<i64> {
         382  +
        &self.version
         383  +
    }
         384  +
    /// <p>Either the version number or the label used to retrieve the parameter value. Specify selectors by using one of the following formats:</p>
         385  +
    /// <p>parameter_name:version</p>
         386  +
    /// <p>parameter_name:label</p>
         387  +
    pub fn selector(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         388  +
        self.selector = ::std::option::Option::Some(input.into());
         389  +
        self
         390  +
    }
         391  +
    /// <p>Either the version number or the label used to retrieve the parameter value. Specify selectors by using one of the following formats:</p>
         392  +
    /// <p>parameter_name:version</p>
         393  +
    /// <p>parameter_name:label</p>
         394  +
    pub fn set_selector(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         395  +
        self.selector = input;
         396  +
        self
         397  +
    }
         398  +
    /// <p>Either the version number or the label used to retrieve the parameter value. Specify selectors by using one of the following formats:</p>
         399  +
    /// <p>parameter_name:version</p>
         400  +
    /// <p>parameter_name:label</p>
         401  +
    pub fn get_selector(&self) -> &::std::option::Option<::std::string::String> {
         402  +
        &self.selector
         403  +
    }
         404  +
    /// <p>Applies to parameters that reference information in other Amazon Web Services services. <code>SourceResult</code> is the raw result or response from the source.</p>
         405  +
    pub fn source_result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         406  +
        self.source_result = ::std::option::Option::Some(input.into());
         407  +
        self
         408  +
    }
         409  +
    /// <p>Applies to parameters that reference information in other Amazon Web Services services. <code>SourceResult</code> is the raw result or response from the source.</p>
         410  +
    pub fn set_source_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         411  +
        self.source_result = input;
         412  +
        self
         413  +
    }
         414  +
    /// <p>Applies to parameters that reference information in other Amazon Web Services services. <code>SourceResult</code> is the raw result or response from the source.</p>
         415  +
    pub fn get_source_result(&self) -> &::std::option::Option<::std::string::String> {
         416  +
        &self.source_result
         417  +
    }
         418  +
    /// <p>Date the parameter was last changed or updated and the parameter version was created.</p>
         419  +
    pub fn last_modified_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         420  +
        self.last_modified_date = ::std::option::Option::Some(input);
         421  +
        self
         422  +
    }
         423  +
    /// <p>Date the parameter was last changed or updated and the parameter version was created.</p>
         424  +
    pub fn set_last_modified_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         425  +
        self.last_modified_date = input;
         426  +
        self
         427  +
    }
         428  +
    /// <p>Date the parameter was last changed or updated and the parameter version was created.</p>
         429  +
    pub fn get_last_modified_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         430  +
        &self.last_modified_date
         431  +
    }
         432  +
    /// <p>The Amazon Resource Name (ARN) of the parameter.</p>
         433  +
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         434  +
        self.arn = ::std::option::Option::Some(input.into());
         435  +
        self
         436  +
    }
         437  +
    /// <p>The Amazon Resource Name (ARN) of the parameter.</p>
         438  +
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         439  +
        self.arn = input;
         440  +
        self
         441  +
    }
         442  +
    /// <p>The Amazon Resource Name (ARN) of the parameter.</p>
         443  +
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
         444  +
        &self.arn
         445  +
    }
         446  +
    /// <p>The data type of the parameter, such as <code>text</code> or <code>aws:ec2:image</code>. The default is <code>text</code>.</p>
         447  +
    pub fn data_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         448  +
        self.data_type = ::std::option::Option::Some(input.into());
         449  +
        self
         450  +
    }
         451  +
    /// <p>The data type of the parameter, such as <code>text</code> or <code>aws:ec2:image</code>. The default is <code>text</code>.</p>
         452  +
    pub fn set_data_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         453  +
        self.data_type = input;
         454  +
        self
         455  +
    }
         456  +
    /// <p>The data type of the parameter, such as <code>text</code> or <code>aws:ec2:image</code>. The default is <code>text</code>.</p>
         457  +
    pub fn get_data_type(&self) -> &::std::option::Option<::std::string::String> {
         458  +
        &self.data_type
         459  +
    }
         460  +
    /// Consumes the builder and constructs a [`Parameter`](crate::types::Parameter).
         461  +
    pub fn build(self) -> crate::types::Parameter {
         462  +
        crate::types::Parameter {
         463  +
            name: self.name,
         464  +
            r#type: self.r#type,
         465  +
            value: self.value,
         466  +
            version: self.version.unwrap_or_default(),
         467  +
            selector: self.selector,
         468  +
            source_result: self.source_result,
         469  +
            last_modified_date: self.last_modified_date,
         470  +
            arn: self.arn,
         471  +
            data_type: self.data_type,
         472  +
        }
         473  +
    }
         474  +
}
         475  +
impl ::std::fmt::Debug for ParameterBuilder {
         476  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         477  +
        let mut formatter = f.debug_struct("ParameterBuilder");
         478  +
        formatter.field("name", &self.name);
         479  +
        formatter.field("r#type", &self.r#type);
         480  +
        formatter.field("value", &"*** Sensitive Data Redacted ***");
         481  +
        formatter.field("version", &self.version);
         482  +
        formatter.field("selector", &self.selector);
         483  +
        formatter.field("source_result", &self.source_result);
         484  +
        formatter.field("last_modified_date", &self.last_modified_date);
         485  +
        formatter.field("arn", &self.arn);
         486  +
        formatter.field("data_type", &self.data_type);
         487  +
        formatter.finish()
         488  +
    }
         489  +
}