package smaws-clients

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file deserializers.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
open Smaws_Lib.Json.DeserializeHelpers

open Types

let update_date_time_of_yojson = timestamp_of_yojson

let error_message_of_yojson = string_of_yojson

let unauthorized_operation_of_yojson = 
  fun tree path : unauthorized_operation ->
  let _list = assoc_of_yojson tree path in
  let _res : unauthorized_operation = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let token_of_yojson = string_of_yojson

let retry_after_seconds_of_yojson = int_of_yojson

let throttling_exception_of_yojson = 
  fun tree path : throttling_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : throttling_exception = {
    retry_after_seconds = option_of_yojson (value_for_key (retry_after_seconds_of_yojson) "RetryAfterSeconds") _list path;
    message = value_for_key (error_message_of_yojson) "Message" _list path;
    
  }
  in _res

let base_unit_of_yojson = unit_of_yojson

let status_of_yojson = 
  fun (tree: t) path : status -> match tree with 
    | `String "COMPLETED" -> COMPLETED
    | `String "FAILED" -> FAILED
    | `String "IN_PROGRESS" -> IN_PROGRESS
    | `String "NOT_STARTED" -> NOT_STARTED
    | `String value -> raise (deserialize_unknown_enum_value_error path "Status" value)
    | _ -> raise (deserialize_wrong_type_error path "Status")

let status_detail_of_yojson = string_of_yojson

let progress_percent_of_yojson = int_of_yojson

let task_of_yojson = 
  fun tree path : task ->
  let _list = assoc_of_yojson tree path in
  let _res : task = {
    progress_percent = option_of_yojson (value_for_key (progress_percent_of_yojson) "ProgressPercent") _list path;
    status_detail = option_of_yojson (value_for_key (status_detail_of_yojson) "StatusDetail") _list path;
    status = value_for_key (status_of_yojson) "Status" _list path;
    
  }
  in _res

let service_unavailable_exception_of_yojson = 
  fun tree path : service_unavailable_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : service_unavailable_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let resource_not_found_exception_of_yojson = 
  fun tree path : resource_not_found_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : resource_not_found_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let resource_name_of_yojson = string_of_yojson

let resource_attribute_value_of_yojson = string_of_yojson

let resource_attribute_type_of_yojson = 
  fun (tree: t) path : resource_attribute_type -> match tree with 
    | `String "MOTHERBOARD_SERIAL_NUMBER" -> MOTHERBOARD_SERIAL_NUMBER
    | `String "BIOS_ID" -> BIOS_ID
    | `String "VM_PATH" -> VM_PATH
    | `String "VM_NAME" -> VM_NAME
    | `String "VM_MANAGED_OBJECT_REFERENCE" -> VM_MANAGED_OBJECT_REFERENCE
    | `String "VM_MANAGER_ID" -> VM_MANAGER_ID
    | `String "FQDN" -> FQDN
    | `String "MAC_ADDRESS" -> MAC_ADDRESS
    | `String "IPV6_ADDRESS" -> IPV6_ADDRESS
    | `String "IPV4_ADDRESS" -> IPV4_ADDRESS
    | `String value -> raise (deserialize_unknown_enum_value_error path "ResourceAttributeType" value)
    | _ -> raise (deserialize_wrong_type_error path "ResourceAttributeType")

let resource_attribute_of_yojson = 
  fun tree path : resource_attribute ->
  let _list = assoc_of_yojson tree path in
  let _res : resource_attribute = {
    value = value_for_key (resource_attribute_value_of_yojson) "Value" _list path;
    type_ = value_for_key (resource_attribute_type_of_yojson) "Type" _list path;
    
  }
  in _res

let resource_attribute_list_of_yojson = 
  fun tree path -> list_of_yojson resource_attribute_of_yojson tree path 

let put_resource_attributes_result_of_yojson = 
  fun tree path : put_resource_attributes_result ->
  let _list = assoc_of_yojson tree path in
  let _res : put_resource_attributes_result = ()
  in _res

let progress_update_stream_of_yojson = string_of_yojson

let migration_task_name_of_yojson = string_of_yojson

let dry_run_of_yojson = bool_of_yojson

let put_resource_attributes_request_of_yojson = 
  fun tree path : put_resource_attributes_request ->
  let _list = assoc_of_yojson tree path in
  let _res : put_resource_attributes_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    resource_attribute_list = value_for_key (resource_attribute_list_of_yojson) "ResourceAttributeList" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let invalid_input_exception_of_yojson = 
  fun tree path : invalid_input_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : invalid_input_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let internal_server_error_of_yojson = 
  fun tree path : internal_server_error ->
  let _list = assoc_of_yojson tree path in
  let _res : internal_server_error = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let home_region_not_set_exception_of_yojson = 
  fun tree path : home_region_not_set_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : home_region_not_set_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let dry_run_operation_of_yojson = 
  fun tree path : dry_run_operation ->
  let _list = assoc_of_yojson tree path in
  let _res : dry_run_operation = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let access_denied_exception_of_yojson = 
  fun tree path : access_denied_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : access_denied_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let progress_update_stream_summary_of_yojson = 
  fun tree path : progress_update_stream_summary ->
  let _list = assoc_of_yojson tree path in
  let _res : progress_update_stream_summary = {
    progress_update_stream_name = option_of_yojson (value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStreamName") _list path;
    
  }
  in _res

let progress_update_stream_summary_list_of_yojson = 
  fun tree path -> list_of_yojson progress_update_stream_summary_of_yojson tree path 

let policy_error_exception_of_yojson = 
  fun tree path : policy_error_exception ->
  let _list = assoc_of_yojson tree path in
  let _res : policy_error_exception = {
    message = option_of_yojson (value_for_key (error_message_of_yojson) "Message") _list path;
    
  }
  in _res

let notify_migration_task_state_result_of_yojson = 
  fun tree path : notify_migration_task_state_result ->
  let _list = assoc_of_yojson tree path in
  let _res : notify_migration_task_state_result = ()
  in _res

let next_update_seconds_of_yojson = int_of_yojson

let notify_migration_task_state_request_of_yojson = 
  fun tree path : notify_migration_task_state_request ->
  let _list = assoc_of_yojson tree path in
  let _res : notify_migration_task_state_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    next_update_seconds = value_for_key (next_update_seconds_of_yojson) "NextUpdateSeconds" _list path;
    update_date_time = value_for_key (update_date_time_of_yojson) "UpdateDateTime" _list path;
    task = value_for_key (task_of_yojson) "Task" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let notify_application_state_result_of_yojson = 
  fun tree path : notify_application_state_result ->
  let _list = assoc_of_yojson tree path in
  let _res : notify_application_state_result = ()
  in _res

let application_id_of_yojson = string_of_yojson

let application_status_of_yojson = 
  fun (tree: t) path : application_status -> match tree with 
    | `String "COMPLETED" -> COMPLETED
    | `String "IN_PROGRESS" -> IN_PROGRESS
    | `String "NOT_STARTED" -> NOT_STARTED
    | `String value -> raise (deserialize_unknown_enum_value_error path "ApplicationStatus" value)
    | _ -> raise (deserialize_wrong_type_error path "ApplicationStatus")

let notify_application_state_request_of_yojson = 
  fun tree path : notify_application_state_request ->
  let _list = assoc_of_yojson tree path in
  let _res : notify_application_state_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    update_date_time = option_of_yojson (value_for_key (update_date_time_of_yojson) "UpdateDateTime") _list path;
    status = value_for_key (application_status_of_yojson) "Status" _list path;
    application_id = value_for_key (application_id_of_yojson) "ApplicationId" _list path;
    
  }
  in _res

let migration_task_summary_of_yojson = 
  fun tree path : migration_task_summary ->
  let _list = assoc_of_yojson tree path in
  let _res : migration_task_summary = {
    update_date_time = option_of_yojson (value_for_key (update_date_time_of_yojson) "UpdateDateTime") _list path;
    status_detail = option_of_yojson (value_for_key (status_detail_of_yojson) "StatusDetail") _list path;
    progress_percent = option_of_yojson (value_for_key (progress_percent_of_yojson) "ProgressPercent") _list path;
    status = option_of_yojson (value_for_key (status_of_yojson) "Status") _list path;
    migration_task_name = option_of_yojson (value_for_key (migration_task_name_of_yojson) "MigrationTaskName") _list path;
    progress_update_stream = option_of_yojson (value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream") _list path;
    
  }
  in _res

let migration_task_summary_list_of_yojson = 
  fun tree path -> list_of_yojson migration_task_summary_of_yojson tree path 

let latest_resource_attribute_list_of_yojson = 
  fun tree path -> list_of_yojson resource_attribute_of_yojson tree path 

let migration_task_of_yojson = 
  fun tree path : migration_task ->
  let _list = assoc_of_yojson tree path in
  let _res : migration_task = {
    resource_attribute_list = option_of_yojson (value_for_key (latest_resource_attribute_list_of_yojson) "ResourceAttributeList") _list path;
    update_date_time = option_of_yojson (value_for_key (update_date_time_of_yojson) "UpdateDateTime") _list path;
    task = option_of_yojson (value_for_key (task_of_yojson) "Task") _list path;
    migration_task_name = option_of_yojson (value_for_key (migration_task_name_of_yojson) "MigrationTaskName") _list path;
    progress_update_stream = option_of_yojson (value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream") _list path;
    
  }
  in _res

let max_results_resources_of_yojson = int_of_yojson

let max_results_created_artifacts_of_yojson = int_of_yojson

let max_results_of_yojson = int_of_yojson

let list_progress_update_streams_result_of_yojson = 
  fun tree path : list_progress_update_streams_result ->
  let _list = assoc_of_yojson tree path in
  let _res : list_progress_update_streams_result = {
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    progress_update_stream_summary_list = option_of_yojson (value_for_key (progress_update_stream_summary_list_of_yojson) "ProgressUpdateStreamSummaryList") _list path;
    
  }
  in _res

let list_progress_update_streams_request_of_yojson = 
  fun tree path : list_progress_update_streams_request ->
  let _list = assoc_of_yojson tree path in
  let _res : list_progress_update_streams_request = {
    max_results = option_of_yojson (value_for_key (max_results_of_yojson) "MaxResults") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    
  }
  in _res

let list_migration_tasks_result_of_yojson = 
  fun tree path : list_migration_tasks_result ->
  let _list = assoc_of_yojson tree path in
  let _res : list_migration_tasks_result = {
    migration_task_summary_list = option_of_yojson (value_for_key (migration_task_summary_list_of_yojson) "MigrationTaskSummaryList") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    
  }
  in _res

let list_migration_tasks_request_of_yojson = 
  fun tree path : list_migration_tasks_request ->
  let _list = assoc_of_yojson tree path in
  let _res : list_migration_tasks_request = {
    resource_name = option_of_yojson (value_for_key (resource_name_of_yojson) "ResourceName") _list path;
    max_results = option_of_yojson (value_for_key (max_results_of_yojson) "MaxResults") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    
  }
  in _res

let configuration_id_of_yojson = string_of_yojson

let discovered_resource_description_of_yojson = string_of_yojson

let discovered_resource_of_yojson = 
  fun tree path : discovered_resource ->
  let _list = assoc_of_yojson tree path in
  let _res : discovered_resource = {
    description = option_of_yojson (value_for_key (discovered_resource_description_of_yojson) "Description") _list path;
    configuration_id = value_for_key (configuration_id_of_yojson) "ConfigurationId" _list path;
    
  }
  in _res

let discovered_resource_list_of_yojson = 
  fun tree path -> list_of_yojson discovered_resource_of_yojson tree path 

let list_discovered_resources_result_of_yojson = 
  fun tree path : list_discovered_resources_result ->
  let _list = assoc_of_yojson tree path in
  let _res : list_discovered_resources_result = {
    discovered_resource_list = option_of_yojson (value_for_key (discovered_resource_list_of_yojson) "DiscoveredResourceList") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    
  }
  in _res

let list_discovered_resources_request_of_yojson = 
  fun tree path : list_discovered_resources_request ->
  let _list = assoc_of_yojson tree path in
  let _res : list_discovered_resources_request = {
    max_results = option_of_yojson (value_for_key (max_results_resources_of_yojson) "MaxResults") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let created_artifact_name_of_yojson = string_of_yojson

let created_artifact_description_of_yojson = string_of_yojson

let created_artifact_of_yojson = 
  fun tree path : created_artifact ->
  let _list = assoc_of_yojson tree path in
  let _res : created_artifact = {
    description = option_of_yojson (value_for_key (created_artifact_description_of_yojson) "Description") _list path;
    name = value_for_key (created_artifact_name_of_yojson) "Name" _list path;
    
  }
  in _res

let created_artifact_list_of_yojson = 
  fun tree path -> list_of_yojson created_artifact_of_yojson tree path 

let list_created_artifacts_result_of_yojson = 
  fun tree path : list_created_artifacts_result ->
  let _list = assoc_of_yojson tree path in
  let _res : list_created_artifacts_result = {
    created_artifact_list = option_of_yojson (value_for_key (created_artifact_list_of_yojson) "CreatedArtifactList") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    
  }
  in _res

let list_created_artifacts_request_of_yojson = 
  fun tree path : list_created_artifacts_request ->
  let _list = assoc_of_yojson tree path in
  let _res : list_created_artifacts_request = {
    max_results = option_of_yojson (value_for_key (max_results_created_artifacts_of_yojson) "MaxResults") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let application_state_of_yojson = 
  fun tree path : application_state ->
  let _list = assoc_of_yojson tree path in
  let _res : application_state = {
    last_updated_time = option_of_yojson (value_for_key (update_date_time_of_yojson) "LastUpdatedTime") _list path;
    application_status = option_of_yojson (value_for_key (application_status_of_yojson) "ApplicationStatus") _list path;
    application_id = option_of_yojson (value_for_key (application_id_of_yojson) "ApplicationId") _list path;
    
  }
  in _res

let application_state_list_of_yojson = 
  fun tree path -> list_of_yojson application_state_of_yojson tree path 

let list_application_states_result_of_yojson = 
  fun tree path : list_application_states_result ->
  let _list = assoc_of_yojson tree path in
  let _res : list_application_states_result = {
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    application_state_list = option_of_yojson (value_for_key (application_state_list_of_yojson) "ApplicationStateList") _list path;
    
  }
  in _res

let application_ids_of_yojson = 
  fun tree path -> list_of_yojson application_id_of_yojson tree path 

let list_application_states_request_of_yojson = 
  fun tree path : list_application_states_request ->
  let _list = assoc_of_yojson tree path in
  let _res : list_application_states_request = {
    max_results = option_of_yojson (value_for_key (max_results_of_yojson) "MaxResults") _list path;
    next_token = option_of_yojson (value_for_key (token_of_yojson) "NextToken") _list path;
    application_ids = option_of_yojson (value_for_key (application_ids_of_yojson) "ApplicationIds") _list path;
    
  }
  in _res

let import_migration_task_result_of_yojson = 
  fun tree path : import_migration_task_result ->
  let _list = assoc_of_yojson tree path in
  let _res : import_migration_task_result = ()
  in _res

let import_migration_task_request_of_yojson = 
  fun tree path : import_migration_task_request ->
  let _list = assoc_of_yojson tree path in
  let _res : import_migration_task_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let disassociate_discovered_resource_result_of_yojson = 
  fun tree path : disassociate_discovered_resource_result ->
  let _list = assoc_of_yojson tree path in
  let _res : disassociate_discovered_resource_result = ()
  in _res

let disassociate_discovered_resource_request_of_yojson = 
  fun tree path : disassociate_discovered_resource_request ->
  let _list = assoc_of_yojson tree path in
  let _res : disassociate_discovered_resource_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    configuration_id = value_for_key (configuration_id_of_yojson) "ConfigurationId" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let disassociate_created_artifact_result_of_yojson = 
  fun tree path : disassociate_created_artifact_result ->
  let _list = assoc_of_yojson tree path in
  let _res : disassociate_created_artifact_result = ()
  in _res

let disassociate_created_artifact_request_of_yojson = 
  fun tree path : disassociate_created_artifact_request ->
  let _list = assoc_of_yojson tree path in
  let _res : disassociate_created_artifact_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    created_artifact_name = value_for_key (created_artifact_name_of_yojson) "CreatedArtifactName" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let describe_migration_task_result_of_yojson = 
  fun tree path : describe_migration_task_result ->
  let _list = assoc_of_yojson tree path in
  let _res : describe_migration_task_result = {
    migration_task = option_of_yojson (value_for_key (migration_task_of_yojson) "MigrationTask") _list path;
    
  }
  in _res

let describe_migration_task_request_of_yojson = 
  fun tree path : describe_migration_task_request ->
  let _list = assoc_of_yojson tree path in
  let _res : describe_migration_task_request = {
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let describe_application_state_result_of_yojson = 
  fun tree path : describe_application_state_result ->
  let _list = assoc_of_yojson tree path in
  let _res : describe_application_state_result = {
    last_updated_time = option_of_yojson (value_for_key (update_date_time_of_yojson) "LastUpdatedTime") _list path;
    application_status = option_of_yojson (value_for_key (application_status_of_yojson) "ApplicationStatus") _list path;
    
  }
  in _res

let describe_application_state_request_of_yojson = 
  fun tree path : describe_application_state_request ->
  let _list = assoc_of_yojson tree path in
  let _res : describe_application_state_request = {
    application_id = value_for_key (application_id_of_yojson) "ApplicationId" _list path;
    
  }
  in _res

let delete_progress_update_stream_result_of_yojson = 
  fun tree path : delete_progress_update_stream_result ->
  let _list = assoc_of_yojson tree path in
  let _res : delete_progress_update_stream_result = ()
  in _res

let delete_progress_update_stream_request_of_yojson = 
  fun tree path : delete_progress_update_stream_request ->
  let _list = assoc_of_yojson tree path in
  let _res : delete_progress_update_stream_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    progress_update_stream_name = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStreamName" _list path;
    
  }
  in _res

let create_progress_update_stream_result_of_yojson = 
  fun tree path : create_progress_update_stream_result ->
  let _list = assoc_of_yojson tree path in
  let _res : create_progress_update_stream_result = ()
  in _res

let create_progress_update_stream_request_of_yojson = 
  fun tree path : create_progress_update_stream_request ->
  let _list = assoc_of_yojson tree path in
  let _res : create_progress_update_stream_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    progress_update_stream_name = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStreamName" _list path;
    
  }
  in _res

let associate_discovered_resource_result_of_yojson = 
  fun tree path : associate_discovered_resource_result ->
  let _list = assoc_of_yojson tree path in
  let _res : associate_discovered_resource_result = ()
  in _res

let associate_discovered_resource_request_of_yojson = 
  fun tree path : associate_discovered_resource_request ->
  let _list = assoc_of_yojson tree path in
  let _res : associate_discovered_resource_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    discovered_resource = value_for_key (discovered_resource_of_yojson) "DiscoveredResource" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let associate_created_artifact_result_of_yojson = 
  fun tree path : associate_created_artifact_result ->
  let _list = assoc_of_yojson tree path in
  let _res : associate_created_artifact_result = ()
  in _res

let associate_created_artifact_request_of_yojson = 
  fun tree path : associate_created_artifact_request ->
  let _list = assoc_of_yojson tree path in
  let _res : associate_created_artifact_request = {
    dry_run = option_of_yojson (value_for_key (dry_run_of_yojson) "DryRun") _list path;
    created_artifact = value_for_key (created_artifact_of_yojson) "CreatedArtifact" _list path;
    migration_task_name = value_for_key (migration_task_name_of_yojson) "MigrationTaskName" _list path;
    progress_update_stream = value_for_key (progress_update_stream_of_yojson) "ProgressUpdateStream" _list path;
    
  }
  in _res

let base_string_of_yojson = string_of_yojson

let base_boolean_of_yojson = bool_of_yojson

let base_integer_of_yojson = int_of_yojson

let base_timestamp_of_yojson = timestamp_of_yojson

let base_long_of_yojson = long_of_yojson

let base_document_of_yojson = 
  json_of_yojson

OCaml

Innovation. Community. Security.