128 128 | "com.amazonaws.timestreamquery",
|
129 129 | "ScheduledQueryDescription",
|
130 130 | );
|
131 131 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
132 132 | ::aws_smithy_schema::ShapeId::from_static(
|
133 133 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$Arn",
|
134 134 | "com.amazonaws.timestreamquery",
|
135 135 | "ScheduledQueryDescription",
|
136 136 | ),
|
137 137 | ::aws_smithy_schema::ShapeType::String,
|
138 - | "arn",
|
138 + | "Arn",
|
139 139 | 0,
|
140 140 | );
|
141 141 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
142 142 | ::aws_smithy_schema::ShapeId::from_static(
|
143 143 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$Name",
|
144 144 | "com.amazonaws.timestreamquery",
|
145 145 | "ScheduledQueryDescription",
|
146 146 | ),
|
147 147 | ::aws_smithy_schema::ShapeType::String,
|
148 - | "name",
|
148 + | "Name",
|
149 149 | 1,
|
150 150 | );
|
151 151 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_QUERY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
152 152 | ::aws_smithy_schema::ShapeId::from_static(
|
153 153 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$QueryString",
|
154 154 | "com.amazonaws.timestreamquery",
|
155 155 | "ScheduledQueryDescription",
|
156 156 | ),
|
157 157 | ::aws_smithy_schema::ShapeType::String,
|
158 - | "query_string",
|
158 + | "QueryString",
|
159 159 | 2,
|
160 160 | );
|
161 161 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_CREATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
162 162 | ::aws_smithy_schema::ShapeId::from_static(
|
163 163 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$CreationTime",
|
164 164 | "com.amazonaws.timestreamquery",
|
165 165 | "ScheduledQueryDescription",
|
166 166 | ),
|
167 167 | ::aws_smithy_schema::ShapeType::Timestamp,
|
168 - | "creation_time",
|
168 + | "CreationTime",
|
169 169 | 3,
|
170 170 | );
|
171 171 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
172 172 | ::aws_smithy_schema::ShapeId::from_static(
|
173 173 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$State",
|
174 174 | "com.amazonaws.timestreamquery",
|
175 175 | "ScheduledQueryDescription",
|
176 176 | ),
|
177 177 | ::aws_smithy_schema::ShapeType::String,
|
178 - | "state",
|
178 + | "State",
|
179 179 | 4,
|
180 180 | );
|
181 181 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_PREVIOUS_INVOCATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
182 182 | ::aws_smithy_schema::ShapeId::from_static(
|
183 183 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$PreviousInvocationTime",
|
184 184 | "com.amazonaws.timestreamquery",
|
185 185 | "ScheduledQueryDescription",
|
186 186 | ),
|
187 187 | ::aws_smithy_schema::ShapeType::Timestamp,
|
188 - | "previous_invocation_time",
|
188 + | "PreviousInvocationTime",
|
189 189 | 5,
|
190 190 | );
|
191 191 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_NEXT_INVOCATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
192 192 | ::aws_smithy_schema::ShapeId::from_static(
|
193 193 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$NextInvocationTime",
|
194 194 | "com.amazonaws.timestreamquery",
|
195 195 | "ScheduledQueryDescription",
|
196 196 | ),
|
197 197 | ::aws_smithy_schema::ShapeType::Timestamp,
|
198 - | "next_invocation_time",
|
198 + | "NextInvocationTime",
|
199 199 | 6,
|
200 200 | );
|
201 201 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_SCHEDULE_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
202 202 | ::aws_smithy_schema::ShapeId::from_static(
|
203 203 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$ScheduleConfiguration",
|
204 204 | "com.amazonaws.timestreamquery",
|
205 205 | "ScheduledQueryDescription",
|
206 206 | ),
|
207 207 | ::aws_smithy_schema::ShapeType::Structure,
|
208 - | "schedule_configuration",
|
208 + | "ScheduleConfiguration",
|
209 209 | 7,
|
210 210 | );
|
211 211 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_NOTIFICATION_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
212 212 | ::aws_smithy_schema::ShapeId::from_static(
|
213 213 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$NotificationConfiguration",
|
214 214 | "com.amazonaws.timestreamquery",
|
215 215 | "ScheduledQueryDescription",
|
216 216 | ),
|
217 217 | ::aws_smithy_schema::ShapeType::Structure,
|
218 - | "notification_configuration",
|
218 + | "NotificationConfiguration",
|
219 219 | 8,
|
220 220 | );
|
221 221 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_TARGET_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
222 222 | ::aws_smithy_schema::ShapeId::from_static(
|
223 223 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$TargetConfiguration",
|
224 224 | "com.amazonaws.timestreamquery",
|
225 225 | "ScheduledQueryDescription",
|
226 226 | ),
|
227 227 | ::aws_smithy_schema::ShapeType::Structure,
|
228 - | "target_configuration",
|
228 + | "TargetConfiguration",
|
229 229 | 9,
|
230 230 | );
|
231 231 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_SCHEDULED_QUERY_EXECUTION_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
232 232 | ::aws_smithy_schema::ShapeId::from_static(
|
233 233 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$ScheduledQueryExecutionRoleArn",
|
234 234 | "com.amazonaws.timestreamquery",
|
235 235 | "ScheduledQueryDescription",
|
236 236 | ),
|
237 237 | ::aws_smithy_schema::ShapeType::String,
|
238 - | "scheduled_query_execution_role_arn",
|
238 + | "ScheduledQueryExecutionRoleArn",
|
239 239 | 10,
|
240 240 | );
|
241 241 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
242 242 | ::aws_smithy_schema::ShapeId::from_static(
|
243 243 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$KmsKeyId",
|
244 244 | "com.amazonaws.timestreamquery",
|
245 245 | "ScheduledQueryDescription",
|
246 246 | ),
|
247 247 | ::aws_smithy_schema::ShapeType::String,
|
248 - | "kms_key_id",
|
248 + | "KmsKeyId",
|
249 249 | 11,
|
250 250 | );
|
251 251 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_ERROR_REPORT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
252 252 | ::aws_smithy_schema::ShapeId::from_static(
|
253 253 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$ErrorReportConfiguration",
|
254 254 | "com.amazonaws.timestreamquery",
|
255 255 | "ScheduledQueryDescription",
|
256 256 | ),
|
257 257 | ::aws_smithy_schema::ShapeType::Structure,
|
258 - | "error_report_configuration",
|
258 + | "ErrorReportConfiguration",
|
259 259 | 12,
|
260 260 | );
|
261 261 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_LAST_RUN_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
262 262 | ::aws_smithy_schema::ShapeId::from_static(
|
263 263 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$LastRunSummary",
|
264 264 | "com.amazonaws.timestreamquery",
|
265 265 | "ScheduledQueryDescription",
|
266 266 | ),
|
267 267 | ::aws_smithy_schema::ShapeType::Structure,
|
268 - | "last_run_summary",
|
268 + | "LastRunSummary",
|
269 269 | 13,
|
270 270 | );
|
271 271 | static SCHEDULEDQUERYDESCRIPTION_MEMBER_RECENTLY_FAILED_RUNS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
272 272 | ::aws_smithy_schema::ShapeId::from_static(
|
273 273 | "com.amazonaws.timestreamquery#ScheduledQueryDescription$RecentlyFailedRuns",
|
274 274 | "com.amazonaws.timestreamquery",
|
275 275 | "ScheduledQueryDescription",
|
276 276 | ),
|
277 277 | ::aws_smithy_schema::ShapeType::List,
|
278 - | "recently_failed_runs",
|
278 + | "RecentlyFailedRuns",
|
279 279 | 14,
|
280 280 | );
|
281 281 | static SCHEDULEDQUERYDESCRIPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
282 282 | SCHEDULEDQUERYDESCRIPTION_SCHEMA_ID,
|
283 283 | ::aws_smithy_schema::ShapeType::Structure,
|
284 284 | &[
|
285 285 | &SCHEDULEDQUERYDESCRIPTION_MEMBER_ARN,
|
286 286 | &SCHEDULEDQUERYDESCRIPTION_MEMBER_NAME,
|
287 287 | &SCHEDULEDQUERYDESCRIPTION_MEMBER_QUERY_STRING,
|
288 288 | &SCHEDULEDQUERYDESCRIPTION_MEMBER_CREATION_TIME,
|
364 364 | }
|
365 365 | Ok(())
|
366 366 | },
|
367 367 | )?;
|
368 368 | }
|
369 369 | Ok(())
|
370 370 | }
|
371 371 | }
|
372 372 | impl ScheduledQueryDescription {
|
373 373 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
374 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
375 - | deserializer: &mut D,
|
374 + | pub fn deserialize(
|
375 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
376 376 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
377 377 | #[allow(unused_variables, unused_mut)]
|
378 378 | let mut builder = Self::builder();
|
379 379 | #[allow(
|
380 380 | unused_variables,
|
381 381 | unreachable_code,
|
382 382 | clippy::single_match,
|
383 383 | clippy::match_single_binding,
|
384 384 | clippy::diverging_sub_expression
|
385 385 | )]
|
386 - | deserializer.read_struct(&SCHEDULEDQUERYDESCRIPTION_SCHEMA, (), |_, member, deser| {
|
386 + | deserializer.read_struct(&SCHEDULEDQUERYDESCRIPTION_SCHEMA, &mut |member, deser| {
|
387 387 | match member.member_index() {
|
388 388 | Some(0) => {
|
389 389 | builder.arn = Some(deser.read_string(member)?);
|
390 390 | }
|
391 391 | Some(1) => {
|
392 392 | builder.name = Some(deser.read_string(member)?);
|
393 393 | }
|
394 394 | Some(2) => {
|
395 395 | builder.query_string = Some(deser.read_string(member)?);
|
396 396 | }
|
397 397 | Some(3) => {
|
398 398 | builder.creation_time = Some(deser.read_timestamp(member)?);
|
399 399 | }
|
400 400 | Some(4) => {
|
401 401 | builder.state = Some(crate::types::ScheduledQueryState::from(deser.read_string(member)?.as_str()));
|
402 402 | }
|
403 403 | Some(5) => {
|
404 404 | builder.previous_invocation_time = Some(deser.read_timestamp(member)?);
|
405 405 | }
|
406 406 | Some(6) => {
|
407 407 | builder.next_invocation_time = Some(deser.read_timestamp(member)?);
|
408 408 | }
|
409 409 | Some(7) => {
|
410 410 | builder.schedule_configuration = Some(crate::types::ScheduleConfiguration::deserialize(deser)?);
|
411 411 | }
|
412 412 | Some(8) => {
|
413 413 | builder.notification_configuration = Some(crate::types::NotificationConfiguration::deserialize(deser)?);
|
414 414 | }
|
415 415 | Some(9) => {
|
416 416 | builder.target_configuration = Some(crate::types::TargetConfiguration::deserialize(deser)?);
|
417 417 | }
|
418 418 | Some(10) => {
|
419 419 | builder.scheduled_query_execution_role_arn = Some(deser.read_string(member)?);
|
420 420 | }
|
421 421 | Some(11) => {
|
422 422 | builder.kms_key_id = Some(deser.read_string(member)?);
|
423 423 | }
|
424 424 | Some(12) => {
|
425 425 | builder.error_report_configuration = Some(crate::types::ErrorReportConfiguration::deserialize(deser)?);
|
426 426 | }
|
427 427 | Some(13) => {
|
428 428 | builder.last_run_summary = Some(crate::types::ScheduledQueryRunSummary::deserialize(deser)?);
|
429 429 | }
|
430 430 | Some(14) => {
|
431 431 | builder.recently_failed_runs = Some({
|
432 - | let container = if let Some(cap) = deser.container_size() {
|
433 - | Vec::with_capacity(cap)
|
434 - | } else {
|
435 - | Vec::new()
|
436 - | };
|
437 - | deser.read_list(member, container, |mut list, deser| {
|
438 - | list.push(crate::types::ScheduledQueryRunSummary::deserialize(deser)?);
|
439 - | Ok(list)
|
440 - | })?
|
432 + | let mut container = Vec::new();
|
433 + | deser.read_list(member, &mut |deser| {
|
434 + | container.push(crate::types::ScheduledQueryRunSummary::deserialize(deser)?);
|
435 + | Ok(())
|
436 + | })?;
|
437 + | container
|
441 438 | });
|
442 439 | }
|
443 440 | _ => {}
|
444 441 | }
|
445 442 | Ok(())
|
446 443 | })?;
|
444 + | builder.arn = builder.arn.or(Some(String::new()));
|
445 + | builder.name = builder.name.or(Some(String::new()));
|
446 + | builder.query_string = builder.query_string.or(Some(String::new()));
|
447 447 | builder
|
448 448 | .build()
|
449 449 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
450 450 | }
|
451 451 | }
|
452 + | impl ScheduledQueryDescription {
|
453 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
454 + | pub fn deserialize_with_response(
|
455 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
456 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
457 + | _status: u16,
|
458 + | _body: &[u8],
|
459 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
460 + | Self::deserialize(deserializer)
|
461 + | }
|
462 + | }
|
452 463 | impl ScheduledQueryDescription {
|
453 464 | /// Creates a new builder-style object to manufacture [`ScheduledQueryDescription`](crate::types::ScheduledQueryDescription).
|
454 465 | pub fn builder() -> crate::types::builders::ScheduledQueryDescriptionBuilder {
|
455 466 | crate::types::builders::ScheduledQueryDescriptionBuilder::default()
|
456 467 | }
|
457 468 | }
|
458 469 |
|
459 470 | /// A builder for [`ScheduledQueryDescription`](crate::types::ScheduledQueryDescription).
|
460 471 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
461 472 | #[non_exhaustive]
|