86 86 | "com.amazonaws.ec2.synthetic",
|
87 87 | "GetDeclarativePoliciesReportSummaryOutput",
|
88 88 | );
|
89 89 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
90 90 | ::aws_smithy_schema::ShapeId::from_static(
|
91 91 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$ReportId",
|
92 92 | "com.amazonaws.ec2.synthetic",
|
93 93 | "GetDeclarativePoliciesReportSummaryOutput",
|
94 94 | ),
|
95 95 | ::aws_smithy_schema::ShapeType::String,
|
96 - | "report_id",
|
96 + | "ReportId",
|
97 97 | 0,
|
98 98 | )
|
99 99 | .with_xml_name("reportId");
|
100 100 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$S3Bucket",
|
103 103 | "com.amazonaws.ec2.synthetic",
|
104 104 | "GetDeclarativePoliciesReportSummaryOutput",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::String,
|
107 - | "s3_bucket",
|
107 + | "S3Bucket",
|
108 108 | 1,
|
109 109 | )
|
110 110 | .with_xml_name("s3Bucket");
|
111 111 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
112 112 | ::aws_smithy_schema::ShapeId::from_static(
|
113 113 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$S3Prefix",
|
114 114 | "com.amazonaws.ec2.synthetic",
|
115 115 | "GetDeclarativePoliciesReportSummaryOutput",
|
116 116 | ),
|
117 117 | ::aws_smithy_schema::ShapeType::String,
|
118 - | "s3_prefix",
|
118 + | "S3Prefix",
|
119 119 | 2,
|
120 120 | )
|
121 121 | .with_xml_name("s3Prefix");
|
122 122 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
123 123 | ::aws_smithy_schema::ShapeId::from_static(
|
124 124 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$TargetId",
|
125 125 | "com.amazonaws.ec2.synthetic",
|
126 126 | "GetDeclarativePoliciesReportSummaryOutput",
|
127 127 | ),
|
128 128 | ::aws_smithy_schema::ShapeType::String,
|
129 - | "target_id",
|
129 + | "TargetId",
|
130 130 | 3,
|
131 131 | )
|
132 132 | .with_xml_name("targetId");
|
133 133 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
134 134 | ::aws_smithy_schema::ShapeId::from_static(
|
135 135 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$StartTime",
|
136 136 | "com.amazonaws.ec2.synthetic",
|
137 137 | "GetDeclarativePoliciesReportSummaryOutput",
|
138 138 | ),
|
139 139 | ::aws_smithy_schema::ShapeType::Timestamp,
|
140 - | "start_time",
|
140 + | "StartTime",
|
141 141 | 4,
|
142 142 | )
|
143 143 | .with_xml_name("startTime");
|
144 144 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
145 145 | ::aws_smithy_schema::ShapeId::from_static(
|
146 146 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$EndTime",
|
147 147 | "com.amazonaws.ec2.synthetic",
|
148 148 | "GetDeclarativePoliciesReportSummaryOutput",
|
149 149 | ),
|
150 150 | ::aws_smithy_schema::ShapeType::Timestamp,
|
151 - | "end_time",
|
151 + | "EndTime",
|
152 152 | 5,
|
153 153 | )
|
154 154 | .with_xml_name("endTime");
|
155 155 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
156 156 | ::aws_smithy_schema::ShapeId::from_static(
|
157 157 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$NumberOfAccounts",
|
158 158 | "com.amazonaws.ec2.synthetic",
|
159 159 | "GetDeclarativePoliciesReportSummaryOutput",
|
160 160 | ),
|
161 161 | ::aws_smithy_schema::ShapeType::Integer,
|
162 - | "number_of_accounts",
|
162 + | "NumberOfAccounts",
|
163 163 | 6,
|
164 164 | )
|
165 165 | .with_xml_name("numberOfAccounts");
|
166 166 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS: ::aws_smithy_schema::Schema =
|
167 167 | ::aws_smithy_schema::Schema::new_member(
|
168 168 | ::aws_smithy_schema::ShapeId::from_static(
|
169 169 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$NumberOfFailedAccounts",
|
170 170 | "com.amazonaws.ec2.synthetic",
|
171 171 | "GetDeclarativePoliciesReportSummaryOutput",
|
172 172 | ),
|
173 173 | ::aws_smithy_schema::ShapeType::Integer,
|
174 - | "number_of_failed_accounts",
|
174 + | "NumberOfFailedAccounts",
|
175 175 | 7,
|
176 176 | )
|
177 177 | .with_xml_name("numberOfFailedAccounts");
|
178 178 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
179 179 | ::aws_smithy_schema::ShapeId::from_static(
|
180 180 | "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$AttributeSummaries",
|
181 181 | "com.amazonaws.ec2.synthetic",
|
182 182 | "GetDeclarativePoliciesReportSummaryOutput",
|
183 183 | ),
|
184 184 | ::aws_smithy_schema::ShapeType::List,
|
185 - | "attribute_summaries",
|
185 + | "AttributeSummaries",
|
186 186 | 8,
|
187 187 | )
|
188 188 | .with_xml_name("attributeSummarySet");
|
189 + | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
190 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
191 + | ::aws_smithy_schema::ShapeType::String,
|
192 + | "request_id",
|
193 + | 9,
|
194 + | )
|
195 + | .with_http_header("x-amzn-requestid");
|
189 196 | static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
190 197 | GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA_ID,
|
191 198 | ::aws_smithy_schema::ShapeType::Structure,
|
192 199 | &[
|
193 200 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID,
|
194 201 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET,
|
195 202 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX,
|
196 203 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID,
|
197 204 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME,
|
198 205 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME,
|
199 206 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS,
|
200 207 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS,
|
201 208 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES,
|
209 + | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER__REQUEST_ID,
|
202 210 | ],
|
203 211 | );
|
204 212 | impl GetDeclarativePoliciesReportSummaryOutput {
|
205 213 | /// The schema for this shape.
|
206 214 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA;
|
207 215 | }
|
208 216 | impl ::aws_smithy_schema::serde::SerializableStruct for GetDeclarativePoliciesReportSummaryOutput {
|
209 217 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
210 218 | fn serialize_members(
|
211 219 | &self,
|
212 220 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
213 221 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
214 222 | if let Some(ref val) = self.report_id {
|
215 223 | ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID, val)?;
|
216 224 | }
|
217 225 | if let Some(ref val) = self.s3_bucket {
|
218 226 | ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET, val)?;
|
219 227 | }
|
220 228 | if let Some(ref val) = self.s3_prefix {
|
221 229 | ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX, val)?;
|
222 230 | }
|
223 231 | if let Some(ref val) = self.target_id {
|
224 232 | ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID, val)?;
|
225 233 | }
|
226 234 | if let Some(ref val) = self.start_time {
|
227 235 | ser.write_timestamp(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME, val)?;
|
228 236 | }
|
229 237 | if let Some(ref val) = self.end_time {
|
230 238 | ser.write_timestamp(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME, val)?;
|
231 239 | }
|
232 240 | if let Some(ref val) = self.number_of_accounts {
|
233 241 | ser.write_integer(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS, *val)?;
|
234 242 | }
|
235 243 | if let Some(ref val) = self.number_of_failed_accounts {
|
236 244 | ser.write_integer(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS, *val)?;
|
237 245 | }
|
238 246 | if let Some(ref val) = self.attribute_summaries {
|
239 247 | ser.write_list(
|
240 248 | &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES,
|
241 249 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
242 250 | for item in val {
|
243 251 | ser.write_struct(crate::types::AttributeSummary::SCHEMA, item)?;
|
244 252 | }
|
245 253 | Ok(())
|
246 254 | },
|
247 255 | )?;
|
248 256 | }
|
249 257 | Ok(())
|
250 258 | }
|
251 259 | }
|
252 260 | impl GetDeclarativePoliciesReportSummaryOutput {
|
253 261 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
254 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
255 - | deserializer: &mut D,
|
262 + | pub fn deserialize(
|
263 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
256 264 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
257 265 | #[allow(unused_variables, unused_mut)]
|
258 266 | let mut builder = Self::builder();
|
259 267 | #[allow(
|
260 268 | unused_variables,
|
261 269 | unreachable_code,
|
262 270 | clippy::single_match,
|
263 271 | clippy::match_single_binding,
|
264 272 | clippy::diverging_sub_expression
|
265 273 | )]
|
266 - | deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, (), |_, member, deser| {
|
274 + | deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
|
267 275 | match member.member_index() {
|
268 276 | Some(0) => {
|
269 277 | builder.report_id = Some(deser.read_string(member)?);
|
270 278 | }
|
271 279 | Some(1) => {
|
272 280 | builder.s3_bucket = Some(deser.read_string(member)?);
|
273 281 | }
|
274 282 | Some(2) => {
|
275 283 | builder.s3_prefix = Some(deser.read_string(member)?);
|
276 284 | }
|
277 285 | Some(3) => {
|
278 286 | builder.target_id = Some(deser.read_string(member)?);
|
279 287 | }
|
280 288 | Some(4) => {
|
281 289 | builder.start_time = Some(deser.read_timestamp(member)?);
|
282 290 | }
|
283 291 | Some(5) => {
|
284 292 | builder.end_time = Some(deser.read_timestamp(member)?);
|
285 293 | }
|
286 294 | Some(6) => {
|
287 295 | builder.number_of_accounts = Some(deser.read_integer(member)?);
|
288 296 | }
|
289 297 | Some(7) => {
|
290 298 | builder.number_of_failed_accounts = Some(deser.read_integer(member)?);
|
291 299 | }
|
292 300 | Some(8) => {
|
293 301 | builder.attribute_summaries = Some({
|
294 - | let container = if let Some(cap) = deser.container_size() {
|
295 - | Vec::with_capacity(cap)
|
296 - | } else {
|
297 - | Vec::new()
|
298 - | };
|
299 - | deser.read_list(member, container, |mut list, deser| {
|
300 - | list.push(crate::types::AttributeSummary::deserialize(deser)?);
|
301 - | Ok(list)
|
302 - | })?
|
302 + | let mut container = Vec::new();
|
303 + | deser.read_list(member, &mut |deser| {
|
304 + | container.push(crate::types::AttributeSummary::deserialize(deser)?);
|
305 + | Ok(())
|
306 + | })?;
|
307 + | container
|
308 + | });
|
309 + | }
|
310 + | Some(9) => {
|
311 + | builder._request_id = Some(deser.read_string(member)?);
|
312 + | }
|
313 + | _ => {}
|
314 + | }
|
315 + | Ok(())
|
316 + | })?;
|
317 + | Ok(builder.build())
|
318 + | }
|
319 + | }
|
320 + | impl GetDeclarativePoliciesReportSummaryOutput {
|
321 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
322 + | /// Header-bound members are read directly from headers, avoiding runtime
|
323 + | /// member iteration overhead. Body members are read via the deserializer.
|
324 + | pub fn deserialize_with_response(
|
325 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
326 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
327 + | _status: u16,
|
328 + | _body: &[u8],
|
329 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
330 + | #[allow(unused_variables, unused_mut)]
|
331 + | let mut builder = Self::builder();
|
332 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
333 + | builder._request_id = Some(val.to_string());
|
334 + | }
|
335 + | #[allow(
|
336 + | unused_variables,
|
337 + | unreachable_code,
|
338 + | clippy::single_match,
|
339 + | clippy::match_single_binding,
|
340 + | clippy::diverging_sub_expression
|
341 + | )]
|
342 + | deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
|
343 + | match member.member_index() {
|
344 + | Some(0) => {
|
345 + | builder.report_id = Some(deser.read_string(member)?);
|
346 + | }
|
347 + | Some(1) => {
|
348 + | builder.s3_bucket = Some(deser.read_string(member)?);
|
349 + | }
|
350 + | Some(2) => {
|
351 + | builder.s3_prefix = Some(deser.read_string(member)?);
|
352 + | }
|
353 + | Some(3) => {
|
354 + | builder.target_id = Some(deser.read_string(member)?);
|
355 + | }
|
356 + | Some(4) => {
|
357 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
358 + | }
|
359 + | Some(5) => {
|
360 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
361 + | }
|
362 + | Some(6) => {
|
363 + | builder.number_of_accounts = Some(deser.read_integer(member)?);
|
364 + | }
|
365 + | Some(7) => {
|
366 + | builder.number_of_failed_accounts = Some(deser.read_integer(member)?);
|
367 + | }
|
368 + | Some(8) => {
|
369 + | builder.attribute_summaries = Some({
|
370 + | let mut container = Vec::new();
|
371 + | deser.read_list(member, &mut |deser| {
|
372 + | container.push(crate::types::AttributeSummary::deserialize(deser)?);
|
373 + | Ok(())
|
374 + | })?;
|
375 + | container
|
303 376 | });
|
304 377 | }
|
305 378 | _ => {}
|
306 379 | }
|
307 380 | Ok(())
|
308 381 | })?;
|
309 382 | Ok(builder.build())
|
310 383 | }
|
311 384 | }
|
312 385 | impl ::aws_types::request_id::RequestId for GetDeclarativePoliciesReportSummaryOutput {
|