54 54 | "com.amazonaws.iam.synthetic",
|
55 55 | "UpdateSAMLProviderInput",
|
56 56 | );
|
57 57 | static UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
58 58 | ::aws_smithy_schema::ShapeId::from_static(
|
59 59 | "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$SAMLMetadataDocument",
|
60 60 | "com.amazonaws.iam.synthetic",
|
61 61 | "UpdateSAMLProviderInput",
|
62 62 | ),
|
63 63 | ::aws_smithy_schema::ShapeType::String,
|
64 - | "saml_metadata_document",
|
64 + | "SAMLMetadataDocument",
|
65 65 | 0,
|
66 66 | );
|
67 67 | static UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
68 68 | ::aws_smithy_schema::ShapeId::from_static(
|
69 69 | "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$SAMLProviderArn",
|
70 70 | "com.amazonaws.iam.synthetic",
|
71 71 | "UpdateSAMLProviderInput",
|
72 72 | ),
|
73 73 | ::aws_smithy_schema::ShapeType::String,
|
74 - | "saml_provider_arn",
|
74 + | "SAMLProviderArn",
|
75 75 | 1,
|
76 76 | );
|
77 77 | static UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
78 78 | ::aws_smithy_schema::ShapeId::from_static(
|
79 79 | "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$AssertionEncryptionMode",
|
80 80 | "com.amazonaws.iam.synthetic",
|
81 81 | "UpdateSAMLProviderInput",
|
82 82 | ),
|
83 83 | ::aws_smithy_schema::ShapeType::String,
|
84 - | "assertion_encryption_mode",
|
84 + | "AssertionEncryptionMode",
|
85 85 | 2,
|
86 86 | );
|
87 87 | static UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
88 88 | ::aws_smithy_schema::ShapeId::from_static(
|
89 89 | "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$AddPrivateKey",
|
90 90 | "com.amazonaws.iam.synthetic",
|
91 91 | "UpdateSAMLProviderInput",
|
92 92 | ),
|
93 93 | ::aws_smithy_schema::ShapeType::String,
|
94 - | "add_private_key",
|
94 + | "AddPrivateKey",
|
95 95 | 3,
|
96 96 | );
|
97 97 | static UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
98 98 | ::aws_smithy_schema::ShapeId::from_static(
|
99 99 | "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$RemovePrivateKey",
|
100 100 | "com.amazonaws.iam.synthetic",
|
101 101 | "UpdateSAMLProviderInput",
|
102 102 | ),
|
103 103 | ::aws_smithy_schema::ShapeType::String,
|
104 - | "remove_private_key",
|
104 + | "RemovePrivateKey",
|
105 105 | 4,
|
106 106 | );
|
107 107 | static UPDATESAMLPROVIDERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
108 108 | UPDATESAMLPROVIDERINPUT_SCHEMA_ID,
|
109 109 | ::aws_smithy_schema::ShapeType::Structure,
|
110 110 | &[
|
111 111 | &UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT,
|
112 112 | &UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN,
|
113 113 | &UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE,
|
114 114 | &UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY,
|
115 115 | &UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY,
|
116 116 | ],
|
117 117 | );
|
118 118 | impl UpdateSamlProviderInput {
|
119 119 | /// The schema for this shape.
|
120 120 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATESAMLPROVIDERINPUT_SCHEMA;
|
121 121 | }
|
122 122 | impl ::aws_smithy_schema::serde::SerializableStruct for UpdateSamlProviderInput {
|
123 123 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
124 124 | fn serialize_members(
|
125 125 | &self,
|
126 126 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
127 127 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
128 128 | if let Some(ref val) = self.saml_metadata_document {
|
129 129 | ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT, val)?;
|
130 130 | }
|
131 131 | if let Some(ref val) = self.saml_provider_arn {
|
132 132 | ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN, val)?;
|
133 133 | }
|
134 134 | if let Some(ref val) = self.assertion_encryption_mode {
|
135 135 | ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE, val.as_str())?;
|
136 136 | }
|
137 137 | if let Some(ref val) = self.add_private_key {
|
138 138 | ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY, val)?;
|
139 139 | }
|
140 140 | if let Some(ref val) = self.remove_private_key {
|
141 141 | ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY, val)?;
|
142 142 | }
|
143 143 | Ok(())
|
144 144 | }
|
145 145 | }
|
146 146 | impl UpdateSamlProviderInput {
|
147 147 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
148 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
149 - | deserializer: &mut D,
|
148 + | pub fn deserialize(
|
149 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
150 150 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
151 151 | #[allow(unused_variables, unused_mut)]
|
152 152 | let mut builder = Self::builder();
|
153 153 | #[allow(
|
154 154 | unused_variables,
|
155 155 | unreachable_code,
|
156 156 | clippy::single_match,
|
157 157 | clippy::match_single_binding,
|
158 158 | clippy::diverging_sub_expression
|
159 159 | )]
|
160 - | deserializer.read_struct(&UPDATESAMLPROVIDERINPUT_SCHEMA, (), |_, member, deser| {
|
160 + | deserializer.read_struct(&UPDATESAMLPROVIDERINPUT_SCHEMA, &mut |member, deser| {
|
161 161 | match member.member_index() {
|
162 162 | Some(0) => {
|
163 163 | builder.saml_metadata_document = Some(deser.read_string(member)?);
|
164 164 | }
|
165 165 | Some(1) => {
|
166 166 | builder.saml_provider_arn = Some(deser.read_string(member)?);
|
167 167 | }
|
168 168 | Some(2) => {
|
169 169 | builder.assertion_encryption_mode = Some(crate::types::AssertionEncryptionModeType::from(deser.read_string(member)?.as_str()));
|
170 170 | }
|
171 171 | Some(3) => {
|
172 172 | builder.add_private_key = Some(deser.read_string(member)?);
|
173 173 | }
|
174 174 | Some(4) => {
|
175 175 | builder.remove_private_key = Some(deser.read_string(member)?);
|
176 176 | }
|
177 177 | _ => {}
|
178 178 | }
|
179 179 | Ok(())
|
180 180 | })?;
|
181 + | builder.saml_provider_arn = builder.saml_provider_arn.or(Some(String::new()));
|
181 182 | builder
|
182 183 | .build()
|
183 184 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
184 185 | }
|
185 186 | }
|
187 + | impl UpdateSamlProviderInput {
|
188 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
189 + | pub fn deserialize_with_response(
|
190 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
191 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
192 + | _status: u16,
|
193 + | _body: &[u8],
|
194 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
195 + | Self::deserialize(deserializer)
|
196 + | }
|
197 + | }
|
186 198 | impl UpdateSamlProviderInput {
|
187 199 | /// Creates a new builder-style object to manufacture [`UpdateSamlProviderInput`](crate::operation::update_saml_provider::UpdateSamlProviderInput).
|
188 200 | pub fn builder() -> crate::operation::update_saml_provider::builders::UpdateSamlProviderInputBuilder {
|
189 201 | crate::operation::update_saml_provider::builders::UpdateSamlProviderInputBuilder::default()
|
190 202 | }
|
191 203 | }
|
192 204 |
|
193 205 | /// A builder for [`UpdateSamlProviderInput`](crate::operation::update_saml_provider::UpdateSamlProviderInput).
|
194 206 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
195 207 | #[non_exhaustive]
|
196 208 | pub struct UpdateSamlProviderInputBuilder {
|
197 209 | pub(crate) saml_metadata_document: ::std::option::Option<::std::string::String>,
|
198 210 | pub(crate) saml_provider_arn: ::std::option::Option<::std::string::String>,
|
199 211 | pub(crate) assertion_encryption_mode: ::std::option::Option<crate::types::AssertionEncryptionModeType>,
|
200 212 | pub(crate) add_private_key: ::std::option::Option<::std::string::String>,
|
201 213 | pub(crate) remove_private_key: ::std::option::Option<::std::string::String>,
|
202 214 | }
|
203 215 | impl UpdateSamlProviderInputBuilder {
|
204 216 | /// <p>An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your IdP.</p>
|
205 217 | pub fn saml_metadata_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
206 218 | self.saml_metadata_document = ::std::option::Option::Some(input.into());
|
207 219 | self
|
208 220 | }
|
209 221 | /// <p>An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your IdP.</p>
|
210 222 | pub fn set_saml_metadata_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
211 223 | self.saml_metadata_document = input;
|
212 224 | self
|
213 225 | }
|
214 226 | /// <p>An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your IdP.</p>
|
215 227 | pub fn get_saml_metadata_document(&self) -> &::std::option::Option<::std::string::String> {
|