77 77 | "com.amazonaws.sts.synthetic",
|
78 78 | "AssumeRoleWithWebIdentityOutput",
|
79 79 | );
|
80 80 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
81 81 | ::aws_smithy_schema::ShapeId::from_static(
|
82 82 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Credentials",
|
83 83 | "com.amazonaws.sts.synthetic",
|
84 84 | "AssumeRoleWithWebIdentityOutput",
|
85 85 | ),
|
86 86 | ::aws_smithy_schema::ShapeType::Structure,
|
87 - | "credentials",
|
87 + | "Credentials",
|
88 88 | 0,
|
89 89 | );
|
90 90 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
91 91 | ::aws_smithy_schema::ShapeId::from_static(
|
92 92 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$SubjectFromWebIdentityToken",
|
93 93 | "com.amazonaws.sts.synthetic",
|
94 94 | "AssumeRoleWithWebIdentityOutput",
|
95 95 | ),
|
96 96 | ::aws_smithy_schema::ShapeType::String,
|
97 - | "subject_from_web_identity_token",
|
97 + | "SubjectFromWebIdentityToken",
|
98 98 | 1,
|
99 99 | );
|
100 100 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$AssumedRoleUser",
|
103 103 | "com.amazonaws.sts.synthetic",
|
104 104 | "AssumeRoleWithWebIdentityOutput",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::Structure,
|
107 - | "assumed_role_user",
|
107 + | "AssumedRoleUser",
|
108 108 | 2,
|
109 109 | );
|
110 110 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
111 111 | ::aws_smithy_schema::ShapeId::from_static(
|
112 112 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$PackedPolicySize",
|
113 113 | "com.amazonaws.sts.synthetic",
|
114 114 | "AssumeRoleWithWebIdentityOutput",
|
115 115 | ),
|
116 116 | ::aws_smithy_schema::ShapeType::Integer,
|
117 - | "packed_policy_size",
|
117 + | "PackedPolicySize",
|
118 118 | 3,
|
119 119 | );
|
120 120 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
121 121 | ::aws_smithy_schema::ShapeId::from_static(
|
122 122 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Provider",
|
123 123 | "com.amazonaws.sts.synthetic",
|
124 124 | "AssumeRoleWithWebIdentityOutput",
|
125 125 | ),
|
126 126 | ::aws_smithy_schema::ShapeType::String,
|
127 - | "provider",
|
127 + | "Provider",
|
128 128 | 4,
|
129 129 | );
|
130 130 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
131 131 | ::aws_smithy_schema::ShapeId::from_static(
|
132 132 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Audience",
|
133 133 | "com.amazonaws.sts.synthetic",
|
134 134 | "AssumeRoleWithWebIdentityOutput",
|
135 135 | ),
|
136 136 | ::aws_smithy_schema::ShapeType::String,
|
137 - | "audience",
|
137 + | "Audience",
|
138 138 | 5,
|
139 139 | );
|
140 140 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
141 141 | ::aws_smithy_schema::ShapeId::from_static(
|
142 142 | "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$SourceIdentity",
|
143 143 | "com.amazonaws.sts.synthetic",
|
144 144 | "AssumeRoleWithWebIdentityOutput",
|
145 145 | ),
|
146 146 | ::aws_smithy_schema::ShapeType::String,
|
147 - | "source_identity",
|
147 + | "SourceIdentity",
|
148 148 | 6,
|
149 149 | );
|
150 + | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
151 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
152 + | ::aws_smithy_schema::ShapeType::String,
|
153 + | "request_id",
|
154 + | 7,
|
155 + | )
|
156 + | .with_http_header("x-amzn-requestid");
|
150 157 | static ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
151 158 | ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA_ID,
|
152 159 | ::aws_smithy_schema::ShapeType::Structure,
|
153 160 | &[
|
154 161 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS,
|
155 162 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN,
|
156 163 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER,
|
157 164 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE,
|
158 165 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER,
|
159 166 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE,
|
160 167 | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY,
|
168 + | &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER__REQUEST_ID,
|
161 169 | ],
|
162 170 | );
|
163 171 | impl AssumeRoleWithWebIdentityOutput {
|
164 172 | /// The schema for this shape.
|
165 173 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA;
|
166 174 | }
|
167 175 | impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRoleWithWebIdentityOutput {
|
168 176 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
169 177 | fn serialize_members(
|
170 178 | &self,
|
171 179 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
172 180 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
173 181 | if let Some(ref val) = self.credentials {
|
174 182 | ser.write_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS, val)?;
|
175 183 | }
|
176 184 | if let Some(ref val) = self.subject_from_web_identity_token {
|
177 185 | ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN, val)?;
|
178 186 | }
|
179 187 | if let Some(ref val) = self.assumed_role_user {
|
180 188 | ser.write_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER, val)?;
|
181 189 | }
|
182 190 | if let Some(ref val) = self.packed_policy_size {
|
183 191 | ser.write_integer(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE, *val)?;
|
184 192 | }
|
185 193 | if let Some(ref val) = self.provider {
|
186 194 | ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER, val)?;
|
187 195 | }
|
188 196 | if let Some(ref val) = self.audience {
|
189 197 | ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE, val)?;
|
190 198 | }
|
191 199 | if let Some(ref val) = self.source_identity {
|
192 200 | ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY, val)?;
|
193 201 | }
|
194 202 | Ok(())
|
195 203 | }
|
196 204 | }
|
197 205 | impl AssumeRoleWithWebIdentityOutput {
|
198 206 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
199 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
200 - | deserializer: &mut D,
|
207 + | pub fn deserialize(
|
208 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
201 209 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
202 210 | #[allow(unused_variables, unused_mut)]
|
203 211 | let mut builder = Self::builder();
|
204 212 | #[allow(
|
205 213 | unused_variables,
|
206 214 | unreachable_code,
|
207 215 | clippy::single_match,
|
208 216 | clippy::match_single_binding,
|
209 217 | clippy::diverging_sub_expression
|
210 218 | )]
|
211 - | deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, (), |_, member, deser| {
|
219 + | deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, &mut |member, deser| {
|
220 + | match member.member_index() {
|
221 + | Some(0) => {
|
222 + | builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
|
223 + | }
|
224 + | Some(1) => {
|
225 + | builder.subject_from_web_identity_token = Some(deser.read_string(member)?);
|
226 + | }
|
227 + | Some(2) => {
|
228 + | builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
|
229 + | }
|
230 + | Some(3) => {
|
231 + | builder.packed_policy_size = Some(deser.read_integer(member)?);
|
232 + | }
|
233 + | Some(4) => {
|
234 + | builder.provider = Some(deser.read_string(member)?);
|
235 + | }
|
236 + | Some(5) => {
|
237 + | builder.audience = Some(deser.read_string(member)?);
|
238 + | }
|
239 + | Some(6) => {
|
240 + | builder.source_identity = Some(deser.read_string(member)?);
|
241 + | }
|
242 + | Some(7) => {
|
243 + | builder._request_id = Some(deser.read_string(member)?);
|
244 + | }
|
245 + | _ => {}
|
246 + | }
|
247 + | Ok(())
|
248 + | })?;
|
249 + | Ok(builder.build())
|
250 + | }
|
251 + | }
|
252 + | impl AssumeRoleWithWebIdentityOutput {
|
253 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
254 + | /// Header-bound members are read directly from headers, avoiding runtime
|
255 + | /// member iteration overhead. Body members are read via the deserializer.
|
256 + | pub fn deserialize_with_response(
|
257 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
258 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
259 + | _status: u16,
|
260 + | _body: &[u8],
|
261 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
262 + | #[allow(unused_variables, unused_mut)]
|
263 + | let mut builder = Self::builder();
|
264 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
265 + | builder._request_id = Some(val.to_string());
|
266 + | }
|
267 + | #[allow(
|
268 + | unused_variables,
|
269 + | unreachable_code,
|
270 + | clippy::single_match,
|
271 + | clippy::match_single_binding,
|
272 + | clippy::diverging_sub_expression
|
273 + | )]
|
274 + | deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, &mut |member, deser| {
|
212 275 | match member.member_index() {
|
213 276 | Some(0) => {
|
214 277 | builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
|
215 278 | }
|
216 279 | Some(1) => {
|
217 280 | builder.subject_from_web_identity_token = Some(deser.read_string(member)?);
|
218 281 | }
|
219 282 | Some(2) => {
|
220 283 | builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
|
221 284 | }
|