package smaws-clients

  1. Overview
  2. Docs
Amazon Web Services SDK clients using EIO

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.preview1.tar.gz
md5=18fb70dbc45e8d81a341b9bed6871bab
sha512=7607dc98acaeed5803b44c9ca32d90c88e7813d4b3e3ae4ec661a0bad16c88dc1476bc780877527ea4cd5a4b7398453c1bb600ce0db14d39afa05dc4762b5ba5

doc/src/smaws-clients.shield/builders.ml.html

Source file builders.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
[@@@warning "-39"]
open Types
let make_validation_exception_field  ~(message : string) ~(name : string) ()
: validation_exception_field = { message; name; 
}

let make_update_subscription_response  () : update_subscription_response =
()

let make_update_subscription_request  ?(auto_renew : auto_renew option) ()
: update_subscription_request = { auto_renew; 
}

let make_update_protection_group_response  ()
: update_protection_group_response =
()

let make_update_protection_group_request 
  ?(members : string list option)
  ?(resource_type : protected_resource_type option)
  ~(pattern : protection_group_pattern)
  ~(aggregation : protection_group_aggregation)
  ~(protection_group_id : string)
  () : update_protection_group_request = {
  members; resource_type; pattern; aggregation; protection_group_id; 
}

let make_update_emergency_contact_settings_response  ()
: update_emergency_contact_settings_response = ()

let make_emergency_contact 
  ?(contact_notes : string option)
  ?(phone_number : string option)
  ~(email_address : string)
  () : emergency_contact = { contact_notes; phone_number; email_address; 
}

let make_update_emergency_contact_settings_request 
  ?(emergency_contact_list : emergency_contact list option) ()
: update_emergency_contact_settings_request = { emergency_contact_list; 
}

let make_update_application_layer_automatic_response_response  ()
: update_application_layer_automatic_response_response =
()

let make_block_action  () : block_action = ()

let make_count_action  () : count_action = ()

let make_response_action 
  ?(count : count_action option) ?(block : block_action option) ()
: response_action = { count; block; 
}

let make_update_application_layer_automatic_response_request 
  ~(action : response_action) ~(resource_arn : string) ()
: update_application_layer_automatic_response_request = {
  action; resource_arn;  }

let make_untag_resource_response  () : untag_resource_response =
()

let make_untag_resource_request 
  ~(tag_keys : string list) ~(resource_ar_n : string) ()
: untag_resource_request = { tag_keys; resource_ar_n;  }

let make_contributor  ?(value : int option) ?(name : string option) ()
: contributor = { value; name;  }

let make_time_range 
  ?(to_exclusive : float option) ?(from_inclusive : float option) ()
: time_range = { to_exclusive; from_inclusive; 
}

let make_tag_resource_response  () : tag_resource_response = ()

let make_tag  ?(value : string option) ?(key : string option) () : tag = {
  value; key;  }

let make_tag_resource_request 
  ~(tags : tag list) ~(resource_ar_n : string) () : tag_resource_request = {
  tags; resource_ar_n;  }

let make_summarized_counter 
  ?(unit_ : string option)
  ?(n : int option)
  ?(sum : float option)
  ?(average : float option)
  ?(max : float option)
  ?(name : string option)
  () : summarized_counter = { unit_; n; sum; average; max; name; 
}

let make_summarized_attack_vector 
  ?(vector_counters : summarized_counter list option)
  ~(vector_type : string)
  () : summarized_attack_vector = { vector_counters; vector_type; 
}

let make_limit  ?(max : int option) ?(type_ : string option) () : limit = {
  max; type_;  }

let make_protection_limits  ~(protected_resource_type_limits : limit list) ()
: protection_limits = { protected_resource_type_limits; 
}

let make_protection_group_arbitrary_pattern_limits  ~(max_members : int) ()
: protection_group_arbitrary_pattern_limits = { max_members; 
}

let make_protection_group_pattern_type_limits 
  ~(arbitrary_pattern_limits : protection_group_arbitrary_pattern_limits) ()
: protection_group_pattern_type_limits = { arbitrary_pattern_limits; 
}

let make_protection_group_limits 
  ~(pattern_type_limits : protection_group_pattern_type_limits)
  ~(max_protection_groups : int)
  () : protection_group_limits = {
  pattern_type_limits; max_protection_groups;  }

let make_subscription_limits 
  ~(protection_group_limits : protection_group_limits)
  ~(protection_limits : protection_limits)
  () : subscription_limits = { protection_group_limits; protection_limits; 
}

let make_subscription 
  ?(subscription_arn : string option)
  ?(proactive_engagement_status : proactive_engagement_status option)
  ?(limits : limit list option)
  ?(auto_renew : auto_renew option)
  ?(time_commitment_in_seconds : int option)
  ?(end_time : float option)
  ?(start_time : float option)
  ~(subscription_limits : subscription_limits)
  () : subscription = {
  subscription_arn;
  subscription_limits;
  proactive_engagement_status;
  limits;
  auto_renew;
  time_commitment_in_seconds;
  end_time;
  start_time;
   }

let make_sub_resource_summary 
  ?(counters : summarized_counter list option)
  ?(attack_vectors : summarized_attack_vector list option)
  ?(id : string option)
  ?(type_ : sub_resource_type option)
  () : sub_resource_summary = { counters; attack_vectors; id; type_; 
}

let make_application_layer_automatic_response_configuration 
  ~(action : response_action)
  ~(status : application_layer_automatic_response_status)
  () : application_layer_automatic_response_configuration = {
  action; status;  }

let make_protection 
  ?(application_layer_automatic_response_configuration : application_layer_automatic_response_configuration option)
  ?(protection_arn : string option)
  ?(health_check_ids : string list option)
  ?(resource_arn : string option)
  ?(name : string option)
  ?(id : string option)
  () : protection = {
  application_layer_automatic_response_configuration;
  protection_arn;
  health_check_ids;
  resource_arn;
  name;
  id;
   }

let make_protection_group 
  ?(protection_group_arn : string option)
  ?(resource_type : protected_resource_type option)
  ~(members : string list)
  ~(pattern : protection_group_pattern)
  ~(aggregation : protection_group_aggregation)
  ~(protection_group_id : string)
  () : protection_group = {
  protection_group_arn;
  members;
  resource_type;
  pattern;
  aggregation;
  protection_group_id;
   }

let make_mitigation  ?(mitigation_name : string option) () : mitigation = {
  mitigation_name;  }

let make_list_tags_for_resource_response  ?(tags : tag list option) ()
: list_tags_for_resource_response = { tags; 
}

let make_list_tags_for_resource_request  ~(resource_ar_n : string) ()
: list_tags_for_resource_request = { resource_ar_n; 
}

let make_list_resources_in_protection_group_response 
  ?(next_token : string option) ~(resource_arns : string list) ()
: list_resources_in_protection_group_response = { next_token; resource_arns; 
}

let make_list_resources_in_protection_group_request 
  ?(max_results : int option)
  ?(next_token : string option)
  ~(protection_group_id : string)
  () : list_resources_in_protection_group_request = {
  max_results; next_token; protection_group_id; 
}

let make_list_protections_response 
  ?(next_token : string option) ?(protections : protection list option) ()
: list_protections_response = { next_token; protections; 
}

let make_inclusion_protection_filters 
  ?(resource_types : protected_resource_type list option)
  ?(protection_names : string list option)
  ?(resource_arns : string list option)
  () : inclusion_protection_filters = {
  resource_types; protection_names; resource_arns; 
}

let make_list_protections_request 
  ?(inclusion_filters : inclusion_protection_filters option)
  ?(max_results : int option)
  ?(next_token : string option)
  () : list_protections_request = {
  inclusion_filters; max_results; next_token; 
}

let make_list_protection_groups_response 
  ?(next_token : string option)
  ~(protection_groups : protection_group list)
  () : list_protection_groups_response = { next_token; protection_groups; 
}

let make_inclusion_protection_group_filters 
  ?(aggregations : protection_group_aggregation list option)
  ?(resource_types : protected_resource_type list option)
  ?(patterns : protection_group_pattern list option)
  ?(protection_group_ids : string list option)
  () : inclusion_protection_group_filters = {
  aggregations; resource_types; patterns; protection_group_ids; 
}

let make_list_protection_groups_request 
  ?(inclusion_filters : inclusion_protection_group_filters option)
  ?(max_results : int option)
  ?(next_token : string option)
  () : list_protection_groups_request = {
  inclusion_filters; max_results; next_token; 
}

let make_attack_vector_description  ~(vector_type : string) ()
: attack_vector_description = { vector_type;  }

let make_attack_summary 
  ?(attack_vectors : attack_vector_description list option)
  ?(end_time : float option)
  ?(start_time : float option)
  ?(resource_arn : string option)
  ?(attack_id : string option)
  () : attack_summary = {
  attack_vectors; end_time; start_time; resource_arn; attack_id; 
}

let make_list_attacks_response 
  ?(next_token : string option)
  ?(attack_summaries : attack_summary list option)
  () : list_attacks_response = { next_token; attack_summaries; 
}

let make_list_attacks_request 
  ?(max_results : int option)
  ?(next_token : string option)
  ?(end_time : time_range option)
  ?(start_time : time_range option)
  ?(resource_arns : string list option)
  () : list_attacks_request = {
  max_results; next_token; end_time; start_time; resource_arns; 
}

let make_get_subscription_state_response 
  ~(subscription_state : subscription_state) ()
: get_subscription_state_response = { subscription_state; 
}

let make_get_subscription_state_request  () : get_subscription_state_request
= ()

let make_enable_proactive_engagement_response  ()
: enable_proactive_engagement_response =
()

let make_enable_proactive_engagement_request  ()
: enable_proactive_engagement_request =
()

let make_enable_application_layer_automatic_response_response  ()
: enable_application_layer_automatic_response_response =
()

let make_enable_application_layer_automatic_response_request 
  ~(action : response_action) ~(resource_arn : string) ()
: enable_application_layer_automatic_response_request = {
  action; resource_arn;  }

let make_disassociate_health_check_response  ()
: disassociate_health_check_response =
()

let make_disassociate_health_check_request 
  ~(health_check_arn : string) ~(protection_id : string) ()
: disassociate_health_check_request = { health_check_arn; protection_id; 
}

let make_disassociate_drt_role_response  () : disassociate_drt_role_response
= ()

let make_disassociate_drt_role_request  () : disassociate_drt_role_request =
()

let make_disassociate_drt_log_bucket_response  ()
: disassociate_drt_log_bucket_response =
()

let make_disassociate_drt_log_bucket_request  ~(log_bucket : string) ()
: disassociate_drt_log_bucket_request = { log_bucket; 
}

let make_disable_proactive_engagement_response  ()
: disable_proactive_engagement_response =
()

let make_disable_proactive_engagement_request  ()
: disable_proactive_engagement_request =
()

let make_disable_application_layer_automatic_response_response  ()
: disable_application_layer_automatic_response_response =
()

let make_disable_application_layer_automatic_response_request 
  ~(resource_arn : string) ()
: disable_application_layer_automatic_response_request = { resource_arn; 
}

let make_describe_subscription_response 
  ?(subscription : subscription option) () : describe_subscription_response =
{ subscription;  }

let make_describe_subscription_request  () : describe_subscription_request =
()

let make_describe_protection_response  ?(protection : protection option) ()
: describe_protection_response = { protection; 
}

let make_describe_protection_request 
  ?(resource_arn : string option) ?(protection_id : string option) ()
: describe_protection_request = { resource_arn; protection_id; 
}

let make_describe_protection_group_response 
  ~(protection_group : protection_group) ()
: describe_protection_group_response = { protection_group; 
}

let make_describe_protection_group_request 
  ~(protection_group_id : string) () : describe_protection_group_request = {
  protection_group_id; 
}

let make_describe_emergency_contact_settings_response 
  ?(emergency_contact_list : emergency_contact list option) ()
: describe_emergency_contact_settings_response = { emergency_contact_list; 
}

let make_describe_emergency_contact_settings_request  ()
: describe_emergency_contact_settings_request =
()

let make_describe_drt_access_response 
  ?(log_bucket_list : string list option) ?(role_arn : string option) ()
: describe_drt_access_response = { log_bucket_list; role_arn; 
}

let make_describe_drt_access_request  () : describe_drt_access_request =
()

let make_attack_volume_statistics  ~(max : float) ()
: attack_volume_statistics = { max;  }

let make_attack_volume 
  ?(requests_per_second : attack_volume_statistics option)
  ?(packets_per_second : attack_volume_statistics option)
  ?(bits_per_second : attack_volume_statistics option)
  () : attack_volume = {
  requests_per_second; packets_per_second; bits_per_second; 
}

let make_attack_statistics_data_item 
  ?(attack_volume : attack_volume option) ~(attack_count : int) ()
: attack_statistics_data_item = { attack_count; attack_volume; 
}

let make_describe_attack_statistics_response 
  ~(data_items : attack_statistics_data_item list)
  ~(time_range : time_range)
  () : describe_attack_statistics_response = { data_items; time_range; 
}

let make_describe_attack_statistics_request  ()
: describe_attack_statistics_request = ()

let make_attack_property 
  ?(total : int option)
  ?(unit_ : unit_ option)
  ?(top_contributors : contributor list option)
  ?(attack_property_identifier : attack_property_identifier option)
  ?(attack_layer : attack_layer option)
  () : attack_property = {
  total; unit_; top_contributors; attack_property_identifier; attack_layer; 
}

let make_attack_detail 
  ?(mitigations : mitigation list option)
  ?(attack_properties : attack_property list option)
  ?(attack_counters : summarized_counter list option)
  ?(end_time : float option)
  ?(start_time : float option)
  ?(sub_resources : sub_resource_summary list option)
  ?(resource_arn : string option)
  ?(attack_id : string option)
  () : attack_detail = {
  mitigations;
  attack_properties;
  attack_counters;
  end_time;
  start_time;
  sub_resources;
  resource_arn;
  attack_id;
   }

let make_describe_attack_response  ?(attack : attack_detail option) ()
: describe_attack_response = { attack;  }

let make_describe_attack_request  ~(attack_id : string) ()
: describe_attack_request = { attack_id; 
}

let make_delete_subscription_response  () : delete_subscription_response =
()

let make_delete_subscription_request  () : delete_subscription_request =
()

let make_delete_protection_response  () : delete_protection_response =
()

let make_delete_protection_request  ~(protection_id : string) ()
: delete_protection_request = { protection_id; 
}

let make_delete_protection_group_response  ()
: delete_protection_group_response =
()

let make_delete_protection_group_request  ~(protection_group_id : string) ()
: delete_protection_group_request = { protection_group_id; 
}

let make_create_subscription_response  () : create_subscription_response =
()

let make_create_subscription_request  () : create_subscription_request =
()

let make_create_protection_response  ?(protection_id : string option) ()
: create_protection_response = { protection_id; 
}

let make_create_protection_request 
  ?(tags : tag list option) ~(resource_arn : string) ~(name : string) ()
: create_protection_request = { tags; resource_arn; name; 
}

let make_create_protection_group_response  ()
: create_protection_group_response =
()

let make_create_protection_group_request 
  ?(tags : tag list option)
  ?(members : string list option)
  ?(resource_type : protected_resource_type option)
  ~(pattern : protection_group_pattern)
  ~(aggregation : protection_group_aggregation)
  ~(protection_group_id : string)
  () : create_protection_group_request = {
  tags; members; resource_type; pattern; aggregation; protection_group_id; 
}

let make_associate_proactive_engagement_details_response  ()
: associate_proactive_engagement_details_response =
()

let make_associate_proactive_engagement_details_request 
  ~(emergency_contact_list : emergency_contact list) ()
: associate_proactive_engagement_details_request = { emergency_contact_list; 
}

let make_associate_health_check_response  ()
: associate_health_check_response =
()

let make_associate_health_check_request 
  ~(health_check_arn : string) ~(protection_id : string) ()
: associate_health_check_request = { health_check_arn; protection_id; 
}

let make_associate_drt_role_response  () : associate_drt_role_response =
()

let make_associate_drt_role_request  ~(role_arn : string) ()
: associate_drt_role_request = { role_arn; 
}

let make_associate_drt_log_bucket_response  ()
: associate_drt_log_bucket_response =
()

let make_associate_drt_log_bucket_request  ~(log_bucket : string) ()
: associate_drt_log_bucket_request = { log_bucket; 
}

OCaml

Innovation. Community. Security.