aws-sdk-cloudfront 1.146.0 → 1.148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/client.rbs CHANGED
@@ -143,7 +143,7 @@ module Aws
143
143
  {
144
144
  key: ::String,
145
145
  value: ::String?
146
- },
146
+ }
147
147
  ]?
148
148
  },
149
149
  ?ip_address_type: ("ipv4" | "ipv6" | "dualstack"),
@@ -153,7 +153,7 @@ module Aws
153
153
  ipam_pool_arn: ::String,
154
154
  anycast_ip: ::String?,
155
155
  status: ("provisioned" | "failed-provision" | "provisioning" | "deprovisioned" | "failed-deprovision" | "deprovisioning" | "advertised" | "failed-advertise" | "advertising" | "withdrawn" | "failed-withdraw" | "withdrawing")?
156
- },
156
+ }
157
157
  ]
158
158
  ) -> _CreateAnycastIpListResponseSuccess
159
159
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAnycastIpListResponseSuccess
@@ -166,38 +166,7 @@ module Aws
166
166
  end
167
167
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_cache_policy-instance_method
168
168
  def create_cache_policy: (
169
- cache_policy_config: {
170
- comment: ::String?,
171
- name: ::String,
172
- default_ttl: ::Integer?,
173
- max_ttl: ::Integer?,
174
- min_ttl: ::Integer,
175
- parameters_in_cache_key_and_forwarded_to_origin: {
176
- enable_accept_encoding_gzip: bool,
177
- enable_accept_encoding_brotli: bool?,
178
- headers_config: {
179
- header_behavior: ("none" | "whitelist"),
180
- headers: {
181
- quantity: ::Integer,
182
- items: Array[::String]?
183
- }?
184
- },
185
- cookies_config: {
186
- cookie_behavior: ("none" | "whitelist" | "allExcept" | "all"),
187
- cookies: {
188
- quantity: ::Integer,
189
- items: Array[::String]?
190
- }?
191
- },
192
- query_strings_config: {
193
- query_string_behavior: ("none" | "whitelist" | "allExcept" | "all"),
194
- query_strings: {
195
- quantity: ::Integer,
196
- items: Array[::String]?
197
- }?
198
- }
199
- }?
200
- }
169
+ cache_policy_config: Params::cache_policy_config
201
170
  ) -> _CreateCachePolicyResponseSuccess
202
171
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCachePolicyResponseSuccess
203
172
 
@@ -225,25 +194,14 @@ module Aws
225
194
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_connection_function-instance_method
226
195
  def create_connection_function: (
227
196
  name: ::String,
228
- connection_function_config: {
229
- comment: ::String,
230
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
231
- key_value_store_associations: {
232
- quantity: ::Integer,
233
- items: Array[
234
- {
235
- key_value_store_arn: ::String
236
- },
237
- ]?
238
- }?
239
- },
197
+ connection_function_config: Params::function_config,
240
198
  connection_function_code: ::String,
241
199
  ?tags: {
242
200
  items: Array[
243
201
  {
244
202
  key: ::String,
245
203
  value: ::String?
246
- },
204
+ }
247
205
  ]?
248
206
  }
249
207
  ) -> _CreateConnectionFunctionResponseSuccess
@@ -263,7 +221,7 @@ module Aws
263
221
  {
264
222
  key: ::String,
265
223
  value: ::String?
266
- },
224
+ }
267
225
  ]?
268
226
  },
269
227
  ?anycast_ip_list_id: ::String,
@@ -279,27 +237,7 @@ module Aws
279
237
  end
280
238
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_continuous_deployment_policy-instance_method
281
239
  def create_continuous_deployment_policy: (
282
- continuous_deployment_policy_config: {
283
- staging_distribution_dns_names: {
284
- quantity: ::Integer,
285
- items: Array[::String]?
286
- },
287
- enabled: bool,
288
- traffic_config: {
289
- single_weight_config: {
290
- weight: ::Float,
291
- session_stickiness_config: {
292
- idle_ttl: ::Integer,
293
- maximum_ttl: ::Integer
294
- }?
295
- }?,
296
- single_header_config: {
297
- header: ::String,
298
- value: ::String
299
- }?,
300
- type: ("SingleWeight" | "SingleHeader")
301
- }?
302
- }
240
+ continuous_deployment_policy_config: Params::continuous_deployment_policy_config
303
241
  ) -> _CreateContinuousDeploymentPolicyResponseSuccess
304
242
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateContinuousDeploymentPolicyResponseSuccess
305
243
 
@@ -311,310 +249,7 @@ module Aws
311
249
  end
312
250
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_distribution-instance_method
313
251
  def create_distribution: (
314
- distribution_config: {
315
- caller_reference: ::String,
316
- aliases: {
317
- quantity: ::Integer,
318
- items: Array[::String]?
319
- }?,
320
- default_root_object: ::String?,
321
- origins: {
322
- quantity: ::Integer,
323
- items: Array[
324
- {
325
- id: ::String,
326
- domain_name: ::String,
327
- origin_path: ::String?,
328
- custom_headers: {
329
- quantity: ::Integer,
330
- items: Array[
331
- {
332
- header_name: ::String,
333
- header_value: ::String
334
- },
335
- ]?
336
- }?,
337
- s3_origin_config: {
338
- origin_access_identity: ::String,
339
- origin_read_timeout: ::Integer?
340
- }?,
341
- custom_origin_config: {
342
- http_port: ::Integer,
343
- https_port: ::Integer,
344
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
345
- origin_ssl_protocols: {
346
- quantity: ::Integer,
347
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
348
- }?,
349
- origin_read_timeout: ::Integer?,
350
- origin_keepalive_timeout: ::Integer?,
351
- ip_address_type: ("ipv4" | "ipv6" | "dualstack")?,
352
- origin_mtls_config: {
353
- client_certificate_arn: ::String
354
- }?
355
- }?,
356
- vpc_origin_config: {
357
- vpc_origin_id: ::String,
358
- owner_account_id: ::String?,
359
- origin_read_timeout: ::Integer?,
360
- origin_keepalive_timeout: ::Integer?
361
- }?,
362
- connection_attempts: ::Integer?,
363
- connection_timeout: ::Integer?,
364
- response_completion_timeout: ::Integer?,
365
- origin_shield: {
366
- enabled: bool,
367
- origin_shield_region: ::String?
368
- }?,
369
- origin_access_control_id: ::String?
370
- },
371
- ]
372
- },
373
- origin_groups: {
374
- quantity: ::Integer,
375
- items: Array[
376
- {
377
- id: ::String,
378
- failover_criteria: {
379
- status_codes: {
380
- quantity: ::Integer,
381
- items: Array[::Integer]
382
- }
383
- },
384
- members: {
385
- quantity: ::Integer,
386
- items: Array[
387
- {
388
- origin_id: ::String
389
- },
390
- ]
391
- },
392
- selection_criteria: ("default" | "media-quality-based")?
393
- },
394
- ]?
395
- }?,
396
- default_cache_behavior: {
397
- target_origin_id: ::String,
398
- trusted_signers: {
399
- enabled: bool,
400
- quantity: ::Integer,
401
- items: Array[::String]?
402
- }?,
403
- trusted_key_groups: {
404
- enabled: bool,
405
- quantity: ::Integer,
406
- items: Array[::String]?
407
- }?,
408
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
409
- allowed_methods: {
410
- quantity: ::Integer,
411
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
412
- cached_methods: {
413
- quantity: ::Integer,
414
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
415
- }?
416
- }?,
417
- smooth_streaming: bool?,
418
- compress: bool?,
419
- lambda_function_associations: {
420
- quantity: ::Integer,
421
- items: Array[
422
- {
423
- lambda_function_arn: ::String,
424
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
425
- include_body: bool?
426
- },
427
- ]?
428
- }?,
429
- function_associations: {
430
- quantity: ::Integer,
431
- items: Array[
432
- {
433
- function_arn: ::String,
434
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
435
- },
436
- ]?
437
- }?,
438
- field_level_encryption_id: ::String?,
439
- realtime_log_config_arn: ::String?,
440
- cache_policy_id: ::String?,
441
- origin_request_policy_id: ::String?,
442
- response_headers_policy_id: ::String?,
443
- grpc_config: {
444
- enabled: bool
445
- }?,
446
- forwarded_values: {
447
- query_string: bool,
448
- cookies: {
449
- forward: ("none" | "whitelist" | "all"),
450
- whitelisted_names: {
451
- quantity: ::Integer,
452
- items: Array[::String]?
453
- }?
454
- },
455
- headers: {
456
- quantity: ::Integer,
457
- items: Array[::String]?
458
- }?,
459
- query_string_cache_keys: {
460
- quantity: ::Integer,
461
- items: Array[::String]?
462
- }?
463
- }?,
464
- min_ttl: ::Integer?,
465
- default_ttl: ::Integer?,
466
- max_ttl: ::Integer?
467
- },
468
- cache_behaviors: {
469
- quantity: ::Integer,
470
- items: Array[
471
- {
472
- path_pattern: ::String,
473
- target_origin_id: ::String,
474
- trusted_signers: {
475
- enabled: bool,
476
- quantity: ::Integer,
477
- items: Array[::String]?
478
- }?,
479
- trusted_key_groups: {
480
- enabled: bool,
481
- quantity: ::Integer,
482
- items: Array[::String]?
483
- }?,
484
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
485
- allowed_methods: {
486
- quantity: ::Integer,
487
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
488
- cached_methods: {
489
- quantity: ::Integer,
490
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
491
- }?
492
- }?,
493
- smooth_streaming: bool?,
494
- compress: bool?,
495
- lambda_function_associations: {
496
- quantity: ::Integer,
497
- items: Array[
498
- {
499
- lambda_function_arn: ::String,
500
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
501
- include_body: bool?
502
- },
503
- ]?
504
- }?,
505
- function_associations: {
506
- quantity: ::Integer,
507
- items: Array[
508
- {
509
- function_arn: ::String,
510
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
511
- },
512
- ]?
513
- }?,
514
- field_level_encryption_id: ::String?,
515
- realtime_log_config_arn: ::String?,
516
- cache_policy_id: ::String?,
517
- origin_request_policy_id: ::String?,
518
- response_headers_policy_id: ::String?,
519
- grpc_config: {
520
- enabled: bool
521
- }?,
522
- forwarded_values: {
523
- query_string: bool,
524
- cookies: {
525
- forward: ("none" | "whitelist" | "all"),
526
- whitelisted_names: {
527
- quantity: ::Integer,
528
- items: Array[::String]?
529
- }?
530
- },
531
- headers: {
532
- quantity: ::Integer,
533
- items: Array[::String]?
534
- }?,
535
- query_string_cache_keys: {
536
- quantity: ::Integer,
537
- items: Array[::String]?
538
- }?
539
- }?,
540
- min_ttl: ::Integer?,
541
- default_ttl: ::Integer?,
542
- max_ttl: ::Integer?
543
- },
544
- ]?
545
- }?,
546
- custom_error_responses: {
547
- quantity: ::Integer,
548
- items: Array[
549
- {
550
- error_code: ::Integer,
551
- response_page_path: ::String?,
552
- response_code: ::String?,
553
- error_caching_min_ttl: ::Integer?
554
- },
555
- ]?
556
- }?,
557
- comment: ::String,
558
- logging: {
559
- enabled: bool?,
560
- include_cookies: bool?,
561
- bucket: ::String?,
562
- prefix: ::String?
563
- }?,
564
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
565
- enabled: bool,
566
- viewer_certificate: {
567
- cloud_front_default_certificate: bool?,
568
- iam_certificate_id: ::String?,
569
- acm_certificate_arn: ::String?,
570
- ssl_support_method: ("sni-only" | "vip" | "static-ip")?,
571
- minimum_protocol_version: ("SSLv3" | "TLSv1" | "TLSv1_2016" | "TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021" | "TLSv1.3_2025" | "TLSv1.2_2025")?,
572
- certificate: ::String?,
573
- certificate_source: ("cloudfront" | "iam" | "acm")?
574
- }?,
575
- restrictions: {
576
- geo_restriction: {
577
- restriction_type: ("blacklist" | "whitelist" | "none"),
578
- quantity: ::Integer,
579
- items: Array[::String]?
580
- }
581
- }?,
582
- web_acl_id: ::String?,
583
- http_version: ("http1.1" | "http2" | "http3" | "http2and3")?,
584
- is_ipv6_enabled: bool?,
585
- continuous_deployment_policy_id: ::String?,
586
- staging: bool?,
587
- anycast_ip_list_id: ::String?,
588
- tenant_config: {
589
- parameter_definitions: Array[
590
- {
591
- name: ::String,
592
- definition: {
593
- string_schema: {
594
- comment: ::String?,
595
- default_value: ::String?,
596
- required: bool
597
- }?
598
- }
599
- },
600
- ]?
601
- }?,
602
- connection_mode: ("direct" | "tenant-only")?,
603
- viewer_mtls_config: {
604
- mode: ("required" | "optional")?,
605
- trust_store_config: {
606
- trust_store_id: ::String,
607
- advertise_trust_store_ca_names: bool?,
608
- ignore_certificate_expiry: bool?
609
- }?
610
- }?,
611
- connection_function_association: {
612
- id: ::String
613
- }?,
614
- cache_tag_config: {
615
- header_name: ::String
616
- }?
617
- }
252
+ distribution_config: Params::distribution_config
618
253
  ) -> _CreateDistributionResponseSuccess
619
254
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDistributionResponseSuccess
620
255
 
@@ -630,34 +265,22 @@ module Aws
630
265
  domains: Array[
631
266
  {
632
267
  domain: ::String
633
- },
268
+ }
634
269
  ],
635
270
  ?tags: {
636
271
  items: Array[
637
272
  {
638
273
  key: ::String,
639
274
  value: ::String?
640
- },
275
+ }
641
276
  ]?
642
277
  },
643
- ?customizations: {
644
- web_acl: {
645
- action: ("override" | "disable"),
646
- arn: ::String?
647
- }?,
648
- certificate: {
649
- arn: ::String
650
- }?,
651
- geo_restrictions: {
652
- restriction_type: ("blacklist" | "whitelist" | "none"),
653
- locations: Array[::String]?
654
- }?
655
- },
278
+ ?customizations: Params::customizations,
656
279
  ?parameters: Array[
657
280
  {
658
281
  name: ::String,
659
282
  value: ::String
660
- },
283
+ }
661
284
  ],
662
285
  ?connection_group_id: ::String,
663
286
  ?managed_certificate_request: {
@@ -678,316 +301,13 @@ module Aws
678
301
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_distribution_with_tags-instance_method
679
302
  def create_distribution_with_tags: (
680
303
  distribution_config_with_tags: {
681
- distribution_config: {
682
- caller_reference: ::String,
683
- aliases: {
684
- quantity: ::Integer,
685
- items: Array[::String]?
686
- }?,
687
- default_root_object: ::String?,
688
- origins: {
689
- quantity: ::Integer,
690
- items: Array[
691
- {
692
- id: ::String,
693
- domain_name: ::String,
694
- origin_path: ::String?,
695
- custom_headers: {
696
- quantity: ::Integer,
697
- items: Array[
698
- {
699
- header_name: ::String,
700
- header_value: ::String
701
- },
702
- ]?
703
- }?,
704
- s3_origin_config: {
705
- origin_access_identity: ::String,
706
- origin_read_timeout: ::Integer?
707
- }?,
708
- custom_origin_config: {
709
- http_port: ::Integer,
710
- https_port: ::Integer,
711
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
712
- origin_ssl_protocols: {
713
- quantity: ::Integer,
714
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
715
- }?,
716
- origin_read_timeout: ::Integer?,
717
- origin_keepalive_timeout: ::Integer?,
718
- ip_address_type: ("ipv4" | "ipv6" | "dualstack")?,
719
- origin_mtls_config: {
720
- client_certificate_arn: ::String
721
- }?
722
- }?,
723
- vpc_origin_config: {
724
- vpc_origin_id: ::String,
725
- owner_account_id: ::String?,
726
- origin_read_timeout: ::Integer?,
727
- origin_keepalive_timeout: ::Integer?
728
- }?,
729
- connection_attempts: ::Integer?,
730
- connection_timeout: ::Integer?,
731
- response_completion_timeout: ::Integer?,
732
- origin_shield: {
733
- enabled: bool,
734
- origin_shield_region: ::String?
735
- }?,
736
- origin_access_control_id: ::String?
737
- },
738
- ]
739
- },
740
- origin_groups: {
741
- quantity: ::Integer,
742
- items: Array[
743
- {
744
- id: ::String,
745
- failover_criteria: {
746
- status_codes: {
747
- quantity: ::Integer,
748
- items: Array[::Integer]
749
- }
750
- },
751
- members: {
752
- quantity: ::Integer,
753
- items: Array[
754
- {
755
- origin_id: ::String
756
- },
757
- ]
758
- },
759
- selection_criteria: ("default" | "media-quality-based")?
760
- },
761
- ]?
762
- }?,
763
- default_cache_behavior: {
764
- target_origin_id: ::String,
765
- trusted_signers: {
766
- enabled: bool,
767
- quantity: ::Integer,
768
- items: Array[::String]?
769
- }?,
770
- trusted_key_groups: {
771
- enabled: bool,
772
- quantity: ::Integer,
773
- items: Array[::String]?
774
- }?,
775
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
776
- allowed_methods: {
777
- quantity: ::Integer,
778
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
779
- cached_methods: {
780
- quantity: ::Integer,
781
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
782
- }?
783
- }?,
784
- smooth_streaming: bool?,
785
- compress: bool?,
786
- lambda_function_associations: {
787
- quantity: ::Integer,
788
- items: Array[
789
- {
790
- lambda_function_arn: ::String,
791
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
792
- include_body: bool?
793
- },
794
- ]?
795
- }?,
796
- function_associations: {
797
- quantity: ::Integer,
798
- items: Array[
799
- {
800
- function_arn: ::String,
801
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
802
- },
803
- ]?
804
- }?,
805
- field_level_encryption_id: ::String?,
806
- realtime_log_config_arn: ::String?,
807
- cache_policy_id: ::String?,
808
- origin_request_policy_id: ::String?,
809
- response_headers_policy_id: ::String?,
810
- grpc_config: {
811
- enabled: bool
812
- }?,
813
- forwarded_values: {
814
- query_string: bool,
815
- cookies: {
816
- forward: ("none" | "whitelist" | "all"),
817
- whitelisted_names: {
818
- quantity: ::Integer,
819
- items: Array[::String]?
820
- }?
821
- },
822
- headers: {
823
- quantity: ::Integer,
824
- items: Array[::String]?
825
- }?,
826
- query_string_cache_keys: {
827
- quantity: ::Integer,
828
- items: Array[::String]?
829
- }?
830
- }?,
831
- min_ttl: ::Integer?,
832
- default_ttl: ::Integer?,
833
- max_ttl: ::Integer?
834
- },
835
- cache_behaviors: {
836
- quantity: ::Integer,
837
- items: Array[
838
- {
839
- path_pattern: ::String,
840
- target_origin_id: ::String,
841
- trusted_signers: {
842
- enabled: bool,
843
- quantity: ::Integer,
844
- items: Array[::String]?
845
- }?,
846
- trusted_key_groups: {
847
- enabled: bool,
848
- quantity: ::Integer,
849
- items: Array[::String]?
850
- }?,
851
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
852
- allowed_methods: {
853
- quantity: ::Integer,
854
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
855
- cached_methods: {
856
- quantity: ::Integer,
857
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
858
- }?
859
- }?,
860
- smooth_streaming: bool?,
861
- compress: bool?,
862
- lambda_function_associations: {
863
- quantity: ::Integer,
864
- items: Array[
865
- {
866
- lambda_function_arn: ::String,
867
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
868
- include_body: bool?
869
- },
870
- ]?
871
- }?,
872
- function_associations: {
873
- quantity: ::Integer,
874
- items: Array[
875
- {
876
- function_arn: ::String,
877
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
878
- },
879
- ]?
880
- }?,
881
- field_level_encryption_id: ::String?,
882
- realtime_log_config_arn: ::String?,
883
- cache_policy_id: ::String?,
884
- origin_request_policy_id: ::String?,
885
- response_headers_policy_id: ::String?,
886
- grpc_config: {
887
- enabled: bool
888
- }?,
889
- forwarded_values: {
890
- query_string: bool,
891
- cookies: {
892
- forward: ("none" | "whitelist" | "all"),
893
- whitelisted_names: {
894
- quantity: ::Integer,
895
- items: Array[::String]?
896
- }?
897
- },
898
- headers: {
899
- quantity: ::Integer,
900
- items: Array[::String]?
901
- }?,
902
- query_string_cache_keys: {
903
- quantity: ::Integer,
904
- items: Array[::String]?
905
- }?
906
- }?,
907
- min_ttl: ::Integer?,
908
- default_ttl: ::Integer?,
909
- max_ttl: ::Integer?
910
- },
911
- ]?
912
- }?,
913
- custom_error_responses: {
914
- quantity: ::Integer,
915
- items: Array[
916
- {
917
- error_code: ::Integer,
918
- response_page_path: ::String?,
919
- response_code: ::String?,
920
- error_caching_min_ttl: ::Integer?
921
- },
922
- ]?
923
- }?,
924
- comment: ::String,
925
- logging: {
926
- enabled: bool?,
927
- include_cookies: bool?,
928
- bucket: ::String?,
929
- prefix: ::String?
930
- }?,
931
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
932
- enabled: bool,
933
- viewer_certificate: {
934
- cloud_front_default_certificate: bool?,
935
- iam_certificate_id: ::String?,
936
- acm_certificate_arn: ::String?,
937
- ssl_support_method: ("sni-only" | "vip" | "static-ip")?,
938
- minimum_protocol_version: ("SSLv3" | "TLSv1" | "TLSv1_2016" | "TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021" | "TLSv1.3_2025" | "TLSv1.2_2025")?,
939
- certificate: ::String?,
940
- certificate_source: ("cloudfront" | "iam" | "acm")?
941
- }?,
942
- restrictions: {
943
- geo_restriction: {
944
- restriction_type: ("blacklist" | "whitelist" | "none"),
945
- quantity: ::Integer,
946
- items: Array[::String]?
947
- }
948
- }?,
949
- web_acl_id: ::String?,
950
- http_version: ("http1.1" | "http2" | "http3" | "http2and3")?,
951
- is_ipv6_enabled: bool?,
952
- continuous_deployment_policy_id: ::String?,
953
- staging: bool?,
954
- anycast_ip_list_id: ::String?,
955
- tenant_config: {
956
- parameter_definitions: Array[
957
- {
958
- name: ::String,
959
- definition: {
960
- string_schema: {
961
- comment: ::String?,
962
- default_value: ::String?,
963
- required: bool
964
- }?
965
- }
966
- },
967
- ]?
968
- }?,
969
- connection_mode: ("direct" | "tenant-only")?,
970
- viewer_mtls_config: {
971
- mode: ("required" | "optional")?,
972
- trust_store_config: {
973
- trust_store_id: ::String,
974
- advertise_trust_store_ca_names: bool?,
975
- ignore_certificate_expiry: bool?
976
- }?
977
- }?,
978
- connection_function_association: {
979
- id: ::String
980
- }?,
981
- cache_tag_config: {
982
- header_name: ::String
983
- }?
984
- },
304
+ distribution_config: Params::distribution_config,
985
305
  tags: {
986
306
  items: Array[
987
307
  {
988
308
  key: ::String,
989
309
  value: ::String?
990
- },
310
+ }
991
311
  ]?
992
312
  }
993
313
  }
@@ -1002,35 +322,7 @@ module Aws
1002
322
  end
1003
323
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_field_level_encryption_config-instance_method
1004
324
  def create_field_level_encryption_config: (
1005
- field_level_encryption_config: {
1006
- caller_reference: ::String,
1007
- comment: ::String?,
1008
- query_arg_profile_config: {
1009
- forward_when_query_arg_profile_is_unknown: bool,
1010
- query_arg_profiles: {
1011
- quantity: ::Integer,
1012
- items: Array[
1013
- {
1014
- query_arg: ::String,
1015
- profile_id: ::String
1016
- },
1017
- ]?
1018
- }?
1019
- }?,
1020
- content_type_profile_config: {
1021
- forward_when_content_type_is_unknown: bool,
1022
- content_type_profiles: {
1023
- quantity: ::Integer,
1024
- items: Array[
1025
- {
1026
- format: ("URLEncoded"),
1027
- profile_id: ::String?,
1028
- content_type: ::String
1029
- },
1030
- ]?
1031
- }?
1032
- }?
1033
- }
325
+ field_level_encryption_config: Params::field_level_encryption_config
1034
326
  ) -> _CreateFieldLevelEncryptionConfigResponseSuccess
1035
327
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFieldLevelEncryptionConfigResponseSuccess
1036
328
 
@@ -1042,24 +334,7 @@ module Aws
1042
334
  end
1043
335
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_field_level_encryption_profile-instance_method
1044
336
  def create_field_level_encryption_profile: (
1045
- field_level_encryption_profile_config: {
1046
- name: ::String,
1047
- caller_reference: ::String,
1048
- comment: ::String?,
1049
- encryption_entities: {
1050
- quantity: ::Integer,
1051
- items: Array[
1052
- {
1053
- public_key_id: ::String,
1054
- provider_id: ::String,
1055
- field_patterns: {
1056
- quantity: ::Integer,
1057
- items: Array[::String]?
1058
- }
1059
- },
1060
- ]?
1061
- }
1062
- }
337
+ field_level_encryption_profile_config: Params::field_level_encryption_profile_config
1063
338
  ) -> _CreateFieldLevelEncryptionProfileResponseSuccess
1064
339
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFieldLevelEncryptionProfileResponseSuccess
1065
340
 
@@ -1072,25 +347,14 @@ module Aws
1072
347
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_function-instance_method
1073
348
  def create_function: (
1074
349
  name: ::String,
1075
- function_config: {
1076
- comment: ::String,
1077
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
1078
- key_value_store_associations: {
1079
- quantity: ::Integer,
1080
- items: Array[
1081
- {
1082
- key_value_store_arn: ::String
1083
- },
1084
- ]?
1085
- }?
1086
- },
350
+ function_config: Params::function_config,
1087
351
  function_code: ::String,
1088
352
  ?tags: {
1089
353
  items: Array[
1090
354
  {
1091
355
  key: ::String,
1092
356
  value: ::String?
1093
- },
357
+ }
1094
358
  ]?
1095
359
  }
1096
360
  ) -> _CreateFunctionResponseSuccess
@@ -1167,7 +431,7 @@ module Aws
1167
431
  {
1168
432
  key: ::String,
1169
433
  value: ::String?
1170
- },
434
+ }
1171
435
  ]?
1172
436
  }
1173
437
  ) -> _CreateKeyValueStoreResponseSuccess
@@ -1214,31 +478,7 @@ module Aws
1214
478
  end
1215
479
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_origin_request_policy-instance_method
1216
480
  def create_origin_request_policy: (
1217
- origin_request_policy_config: {
1218
- comment: ::String?,
1219
- name: ::String,
1220
- headers_config: {
1221
- header_behavior: ("none" | "whitelist" | "allViewer" | "allViewerAndWhitelistCloudFront" | "allExcept"),
1222
- headers: {
1223
- quantity: ::Integer,
1224
- items: Array[::String]?
1225
- }?
1226
- },
1227
- cookies_config: {
1228
- cookie_behavior: ("none" | "whitelist" | "all" | "allExcept"),
1229
- cookies: {
1230
- quantity: ::Integer,
1231
- items: Array[::String]?
1232
- }?
1233
- },
1234
- query_strings_config: {
1235
- query_string_behavior: ("none" | "whitelist" | "all" | "allExcept"),
1236
- query_strings: {
1237
- quantity: ::Integer,
1238
- items: Array[::String]?
1239
- }?
1240
- }
1241
- }
481
+ origin_request_policy_config: Params::origin_request_policy_config
1242
482
  ) -> _CreateOriginRequestPolicyResponseSuccess
1243
483
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateOriginRequestPolicyResponseSuccess
1244
484
 
@@ -1272,7 +512,7 @@ module Aws
1272
512
  role_arn: ::String,
1273
513
  stream_arn: ::String
1274
514
  }?
1275
- },
515
+ }
1276
516
  ],
1277
517
  fields: Array[::String],
1278
518
  name: ::String,
@@ -1288,82 +528,7 @@ module Aws
1288
528
  end
1289
529
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_response_headers_policy-instance_method
1290
530
  def create_response_headers_policy: (
1291
- response_headers_policy_config: {
1292
- comment: ::String?,
1293
- name: ::String,
1294
- cors_config: {
1295
- access_control_allow_origins: {
1296
- quantity: ::Integer,
1297
- items: Array[::String]
1298
- },
1299
- access_control_allow_headers: {
1300
- quantity: ::Integer,
1301
- items: Array[::String]
1302
- },
1303
- access_control_allow_methods: {
1304
- quantity: ::Integer,
1305
- items: Array[("GET" | "POST" | "OPTIONS" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "ALL")]
1306
- },
1307
- access_control_allow_credentials: bool,
1308
- access_control_expose_headers: {
1309
- quantity: ::Integer,
1310
- items: Array[::String]?
1311
- }?,
1312
- access_control_max_age_sec: ::Integer?,
1313
- origin_override: bool
1314
- }?,
1315
- security_headers_config: {
1316
- xss_protection: {
1317
- override: bool,
1318
- protection: bool,
1319
- mode_block: bool?,
1320
- report_uri: ::String?
1321
- }?,
1322
- frame_options: {
1323
- override: bool,
1324
- frame_option: ("DENY" | "SAMEORIGIN")
1325
- }?,
1326
- referrer_policy: {
1327
- override: bool,
1328
- referrer_policy: ("no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url")
1329
- }?,
1330
- content_security_policy: {
1331
- override: bool,
1332
- content_security_policy: ::String
1333
- }?,
1334
- content_type_options: {
1335
- override: bool
1336
- }?,
1337
- strict_transport_security: {
1338
- override: bool,
1339
- include_subdomains: bool?,
1340
- preload: bool?,
1341
- access_control_max_age_sec: ::Integer
1342
- }?
1343
- }?,
1344
- server_timing_headers_config: {
1345
- enabled: bool,
1346
- sampling_rate: ::Float?
1347
- }?,
1348
- custom_headers_config: {
1349
- quantity: ::Integer,
1350
- items: Array[
1351
- {
1352
- header: ::String,
1353
- value: ::String,
1354
- override: bool
1355
- },
1356
- ]?
1357
- }?,
1358
- remove_headers_config: {
1359
- quantity: ::Integer,
1360
- items: Array[
1361
- {
1362
- header: ::String
1363
- },
1364
- ]?
1365
- }?
1366
- }
531
+ response_headers_policy_config: Params::response_headers_policy_config
1367
532
  ) -> _CreateResponseHeadersPolicyResponseSuccess
1368
533
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateResponseHeadersPolicyResponseSuccess
1369
534
 
@@ -1375,30 +540,7 @@ module Aws
1375
540
  end
1376
541
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_streaming_distribution-instance_method
1377
542
  def create_streaming_distribution: (
1378
- streaming_distribution_config: {
1379
- caller_reference: ::String,
1380
- s3_origin: {
1381
- domain_name: ::String,
1382
- origin_access_identity: ::String
1383
- },
1384
- aliases: {
1385
- quantity: ::Integer,
1386
- items: Array[::String]?
1387
- }?,
1388
- comment: ::String,
1389
- logging: {
1390
- enabled: bool,
1391
- bucket: ::String,
1392
- prefix: ::String
1393
- }?,
1394
- trusted_signers: {
1395
- enabled: bool,
1396
- quantity: ::Integer,
1397
- items: Array[::String]?
1398
- },
1399
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
1400
- enabled: bool
1401
- }
543
+ streaming_distribution_config: Params::streaming_distribution_config
1402
544
  ) -> _CreateStreamingDistributionResponseSuccess
1403
545
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateStreamingDistributionResponseSuccess
1404
546
 
@@ -1411,36 +553,13 @@ module Aws
1411
553
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_streaming_distribution_with_tags-instance_method
1412
554
  def create_streaming_distribution_with_tags: (
1413
555
  streaming_distribution_config_with_tags: {
1414
- streaming_distribution_config: {
1415
- caller_reference: ::String,
1416
- s3_origin: {
1417
- domain_name: ::String,
1418
- origin_access_identity: ::String
1419
- },
1420
- aliases: {
1421
- quantity: ::Integer,
1422
- items: Array[::String]?
1423
- }?,
1424
- comment: ::String,
1425
- logging: {
1426
- enabled: bool,
1427
- bucket: ::String,
1428
- prefix: ::String
1429
- }?,
1430
- trusted_signers: {
1431
- enabled: bool,
1432
- quantity: ::Integer,
1433
- items: Array[::String]?
1434
- },
1435
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
1436
- enabled: bool
1437
- },
556
+ streaming_distribution_config: Params::streaming_distribution_config,
1438
557
  tags: {
1439
558
  items: Array[
1440
559
  {
1441
560
  key: ::String,
1442
561
  value: ::String?
1443
- },
562
+ }
1444
563
  ]?
1445
564
  }
1446
565
  }
@@ -1455,20 +574,14 @@ module Aws
1455
574
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_trust_store-instance_method
1456
575
  def create_trust_store: (
1457
576
  name: ::String,
1458
- ca_certificates_bundle_source: {
1459
- ca_certificates_bundle_s3_location: {
1460
- bucket: ::String,
1461
- key: ::String,
1462
- region: ::String,
1463
- version: ::String?
1464
- }?
1465
- },
577
+ ca_certificates_bundle_source: Params::ca_certificates_bundle_source,
578
+ ?use_client_certificate_ocsp_endpoint: bool,
1466
579
  ?tags: {
1467
580
  items: Array[
1468
581
  {
1469
582
  key: ::String,
1470
583
  value: ::String?
1471
- },
584
+ }
1472
585
  ]?
1473
586
  }
1474
587
  ) -> _CreateTrustStoreResponseSuccess
@@ -1482,23 +595,13 @@ module Aws
1482
595
  end
1483
596
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_vpc_origin-instance_method
1484
597
  def create_vpc_origin: (
1485
- vpc_origin_endpoint_config: {
1486
- name: ::String,
1487
- arn: ::String,
1488
- http_port: ::Integer,
1489
- https_port: ::Integer,
1490
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
1491
- origin_ssl_protocols: {
1492
- quantity: ::Integer,
1493
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
1494
- }?
1495
- },
598
+ vpc_origin_endpoint_config: Params::vpc_origin_endpoint_config,
1496
599
  ?tags: {
1497
600
  items: Array[
1498
601
  {
1499
602
  key: ::String,
1500
603
  value: ::String?
1501
- },
604
+ }
1502
605
  ]?
1503
606
  }
1504
607
  ) -> _CreateVpcOriginResponseSuccess
@@ -2673,7 +1776,7 @@ module Aws
2673
1776
  {
2674
1777
  key: ::String,
2675
1778
  value: ::String?
2676
- },
1779
+ }
2677
1780
  ]?
2678
1781
  }
2679
1782
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
@@ -2729,7 +1832,7 @@ module Aws
2729
1832
  ipam_pool_arn: ::String,
2730
1833
  anycast_ip: ::String?,
2731
1834
  status: ("provisioned" | "failed-provision" | "provisioning" | "deprovisioned" | "failed-deprovision" | "deprovisioning" | "advertised" | "failed-advertise" | "advertising" | "withdrawn" | "failed-withdraw" | "withdrawing")?
2732
- },
1835
+ }
2733
1836
  ],
2734
1837
  if_match: ::String
2735
1838
  ) -> _UpdateAnycastIpListResponseSuccess
@@ -2742,38 +1845,7 @@ module Aws
2742
1845
  end
2743
1846
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_cache_policy-instance_method
2744
1847
  def update_cache_policy: (
2745
- cache_policy_config: {
2746
- comment: ::String?,
2747
- name: ::String,
2748
- default_ttl: ::Integer?,
2749
- max_ttl: ::Integer?,
2750
- min_ttl: ::Integer,
2751
- parameters_in_cache_key_and_forwarded_to_origin: {
2752
- enable_accept_encoding_gzip: bool,
2753
- enable_accept_encoding_brotli: bool?,
2754
- headers_config: {
2755
- header_behavior: ("none" | "whitelist"),
2756
- headers: {
2757
- quantity: ::Integer,
2758
- items: Array[::String]?
2759
- }?
2760
- },
2761
- cookies_config: {
2762
- cookie_behavior: ("none" | "whitelist" | "allExcept" | "all"),
2763
- cookies: {
2764
- quantity: ::Integer,
2765
- items: Array[::String]?
2766
- }?
2767
- },
2768
- query_strings_config: {
2769
- query_string_behavior: ("none" | "whitelist" | "allExcept" | "all"),
2770
- query_strings: {
2771
- quantity: ::Integer,
2772
- items: Array[::String]?
2773
- }?
2774
- }
2775
- }?
2776
- },
1848
+ cache_policy_config: Params::cache_policy_config,
2777
1849
  id: ::String,
2778
1850
  ?if_match: ::String
2779
1851
  ) -> _UpdateCachePolicyResponseSuccess
@@ -2804,18 +1876,7 @@ module Aws
2804
1876
  def update_connection_function: (
2805
1877
  id: ::String,
2806
1878
  if_match: ::String,
2807
- connection_function_config: {
2808
- comment: ::String,
2809
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
2810
- key_value_store_associations: {
2811
- quantity: ::Integer,
2812
- items: Array[
2813
- {
2814
- key_value_store_arn: ::String
2815
- },
2816
- ]?
2817
- }?
2818
- },
1879
+ connection_function_config: Params::function_config,
2819
1880
  connection_function_code: ::String
2820
1881
  ) -> _UpdateConnectionFunctionResponseSuccess
2821
1882
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConnectionFunctionResponseSuccess
@@ -2842,27 +1903,7 @@ module Aws
2842
1903
  end
2843
1904
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_continuous_deployment_policy-instance_method
2844
1905
  def update_continuous_deployment_policy: (
2845
- continuous_deployment_policy_config: {
2846
- staging_distribution_dns_names: {
2847
- quantity: ::Integer,
2848
- items: Array[::String]?
2849
- },
2850
- enabled: bool,
2851
- traffic_config: {
2852
- single_weight_config: {
2853
- weight: ::Float,
2854
- session_stickiness_config: {
2855
- idle_ttl: ::Integer,
2856
- maximum_ttl: ::Integer
2857
- }?
2858
- }?,
2859
- single_header_config: {
2860
- header: ::String,
2861
- value: ::String
2862
- }?,
2863
- type: ("SingleWeight" | "SingleHeader")
2864
- }?
2865
- },
1906
+ continuous_deployment_policy_config: Params::continuous_deployment_policy_config,
2866
1907
  id: ::String,
2867
1908
  ?if_match: ::String
2868
1909
  ) -> _UpdateContinuousDeploymentPolicyResponseSuccess
@@ -2875,310 +1916,7 @@ module Aws
2875
1916
  end
2876
1917
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_distribution-instance_method
2877
1918
  def update_distribution: (
2878
- distribution_config: {
2879
- caller_reference: ::String,
2880
- aliases: {
2881
- quantity: ::Integer,
2882
- items: Array[::String]?
2883
- }?,
2884
- default_root_object: ::String?,
2885
- origins: {
2886
- quantity: ::Integer,
2887
- items: Array[
2888
- {
2889
- id: ::String,
2890
- domain_name: ::String,
2891
- origin_path: ::String?,
2892
- custom_headers: {
2893
- quantity: ::Integer,
2894
- items: Array[
2895
- {
2896
- header_name: ::String,
2897
- header_value: ::String
2898
- },
2899
- ]?
2900
- }?,
2901
- s3_origin_config: {
2902
- origin_access_identity: ::String,
2903
- origin_read_timeout: ::Integer?
2904
- }?,
2905
- custom_origin_config: {
2906
- http_port: ::Integer,
2907
- https_port: ::Integer,
2908
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
2909
- origin_ssl_protocols: {
2910
- quantity: ::Integer,
2911
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
2912
- }?,
2913
- origin_read_timeout: ::Integer?,
2914
- origin_keepalive_timeout: ::Integer?,
2915
- ip_address_type: ("ipv4" | "ipv6" | "dualstack")?,
2916
- origin_mtls_config: {
2917
- client_certificate_arn: ::String
2918
- }?
2919
- }?,
2920
- vpc_origin_config: {
2921
- vpc_origin_id: ::String,
2922
- owner_account_id: ::String?,
2923
- origin_read_timeout: ::Integer?,
2924
- origin_keepalive_timeout: ::Integer?
2925
- }?,
2926
- connection_attempts: ::Integer?,
2927
- connection_timeout: ::Integer?,
2928
- response_completion_timeout: ::Integer?,
2929
- origin_shield: {
2930
- enabled: bool,
2931
- origin_shield_region: ::String?
2932
- }?,
2933
- origin_access_control_id: ::String?
2934
- },
2935
- ]
2936
- },
2937
- origin_groups: {
2938
- quantity: ::Integer,
2939
- items: Array[
2940
- {
2941
- id: ::String,
2942
- failover_criteria: {
2943
- status_codes: {
2944
- quantity: ::Integer,
2945
- items: Array[::Integer]
2946
- }
2947
- },
2948
- members: {
2949
- quantity: ::Integer,
2950
- items: Array[
2951
- {
2952
- origin_id: ::String
2953
- },
2954
- ]
2955
- },
2956
- selection_criteria: ("default" | "media-quality-based")?
2957
- },
2958
- ]?
2959
- }?,
2960
- default_cache_behavior: {
2961
- target_origin_id: ::String,
2962
- trusted_signers: {
2963
- enabled: bool,
2964
- quantity: ::Integer,
2965
- items: Array[::String]?
2966
- }?,
2967
- trusted_key_groups: {
2968
- enabled: bool,
2969
- quantity: ::Integer,
2970
- items: Array[::String]?
2971
- }?,
2972
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
2973
- allowed_methods: {
2974
- quantity: ::Integer,
2975
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
2976
- cached_methods: {
2977
- quantity: ::Integer,
2978
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
2979
- }?
2980
- }?,
2981
- smooth_streaming: bool?,
2982
- compress: bool?,
2983
- lambda_function_associations: {
2984
- quantity: ::Integer,
2985
- items: Array[
2986
- {
2987
- lambda_function_arn: ::String,
2988
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
2989
- include_body: bool?
2990
- },
2991
- ]?
2992
- }?,
2993
- function_associations: {
2994
- quantity: ::Integer,
2995
- items: Array[
2996
- {
2997
- function_arn: ::String,
2998
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
2999
- },
3000
- ]?
3001
- }?,
3002
- field_level_encryption_id: ::String?,
3003
- realtime_log_config_arn: ::String?,
3004
- cache_policy_id: ::String?,
3005
- origin_request_policy_id: ::String?,
3006
- response_headers_policy_id: ::String?,
3007
- grpc_config: {
3008
- enabled: bool
3009
- }?,
3010
- forwarded_values: {
3011
- query_string: bool,
3012
- cookies: {
3013
- forward: ("none" | "whitelist" | "all"),
3014
- whitelisted_names: {
3015
- quantity: ::Integer,
3016
- items: Array[::String]?
3017
- }?
3018
- },
3019
- headers: {
3020
- quantity: ::Integer,
3021
- items: Array[::String]?
3022
- }?,
3023
- query_string_cache_keys: {
3024
- quantity: ::Integer,
3025
- items: Array[::String]?
3026
- }?
3027
- }?,
3028
- min_ttl: ::Integer?,
3029
- default_ttl: ::Integer?,
3030
- max_ttl: ::Integer?
3031
- },
3032
- cache_behaviors: {
3033
- quantity: ::Integer,
3034
- items: Array[
3035
- {
3036
- path_pattern: ::String,
3037
- target_origin_id: ::String,
3038
- trusted_signers: {
3039
- enabled: bool,
3040
- quantity: ::Integer,
3041
- items: Array[::String]?
3042
- }?,
3043
- trusted_key_groups: {
3044
- enabled: bool,
3045
- quantity: ::Integer,
3046
- items: Array[::String]?
3047
- }?,
3048
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
3049
- allowed_methods: {
3050
- quantity: ::Integer,
3051
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
3052
- cached_methods: {
3053
- quantity: ::Integer,
3054
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
3055
- }?
3056
- }?,
3057
- smooth_streaming: bool?,
3058
- compress: bool?,
3059
- lambda_function_associations: {
3060
- quantity: ::Integer,
3061
- items: Array[
3062
- {
3063
- lambda_function_arn: ::String,
3064
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
3065
- include_body: bool?
3066
- },
3067
- ]?
3068
- }?,
3069
- function_associations: {
3070
- quantity: ::Integer,
3071
- items: Array[
3072
- {
3073
- function_arn: ::String,
3074
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
3075
- },
3076
- ]?
3077
- }?,
3078
- field_level_encryption_id: ::String?,
3079
- realtime_log_config_arn: ::String?,
3080
- cache_policy_id: ::String?,
3081
- origin_request_policy_id: ::String?,
3082
- response_headers_policy_id: ::String?,
3083
- grpc_config: {
3084
- enabled: bool
3085
- }?,
3086
- forwarded_values: {
3087
- query_string: bool,
3088
- cookies: {
3089
- forward: ("none" | "whitelist" | "all"),
3090
- whitelisted_names: {
3091
- quantity: ::Integer,
3092
- items: Array[::String]?
3093
- }?
3094
- },
3095
- headers: {
3096
- quantity: ::Integer,
3097
- items: Array[::String]?
3098
- }?,
3099
- query_string_cache_keys: {
3100
- quantity: ::Integer,
3101
- items: Array[::String]?
3102
- }?
3103
- }?,
3104
- min_ttl: ::Integer?,
3105
- default_ttl: ::Integer?,
3106
- max_ttl: ::Integer?
3107
- },
3108
- ]?
3109
- }?,
3110
- custom_error_responses: {
3111
- quantity: ::Integer,
3112
- items: Array[
3113
- {
3114
- error_code: ::Integer,
3115
- response_page_path: ::String?,
3116
- response_code: ::String?,
3117
- error_caching_min_ttl: ::Integer?
3118
- },
3119
- ]?
3120
- }?,
3121
- comment: ::String,
3122
- logging: {
3123
- enabled: bool?,
3124
- include_cookies: bool?,
3125
- bucket: ::String?,
3126
- prefix: ::String?
3127
- }?,
3128
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
3129
- enabled: bool,
3130
- viewer_certificate: {
3131
- cloud_front_default_certificate: bool?,
3132
- iam_certificate_id: ::String?,
3133
- acm_certificate_arn: ::String?,
3134
- ssl_support_method: ("sni-only" | "vip" | "static-ip")?,
3135
- minimum_protocol_version: ("SSLv3" | "TLSv1" | "TLSv1_2016" | "TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021" | "TLSv1.3_2025" | "TLSv1.2_2025")?,
3136
- certificate: ::String?,
3137
- certificate_source: ("cloudfront" | "iam" | "acm")?
3138
- }?,
3139
- restrictions: {
3140
- geo_restriction: {
3141
- restriction_type: ("blacklist" | "whitelist" | "none"),
3142
- quantity: ::Integer,
3143
- items: Array[::String]?
3144
- }
3145
- }?,
3146
- web_acl_id: ::String?,
3147
- http_version: ("http1.1" | "http2" | "http3" | "http2and3")?,
3148
- is_ipv6_enabled: bool?,
3149
- continuous_deployment_policy_id: ::String?,
3150
- staging: bool?,
3151
- anycast_ip_list_id: ::String?,
3152
- tenant_config: {
3153
- parameter_definitions: Array[
3154
- {
3155
- name: ::String,
3156
- definition: {
3157
- string_schema: {
3158
- comment: ::String?,
3159
- default_value: ::String?,
3160
- required: bool
3161
- }?
3162
- }
3163
- },
3164
- ]?
3165
- }?,
3166
- connection_mode: ("direct" | "tenant-only")?,
3167
- viewer_mtls_config: {
3168
- mode: ("required" | "optional")?,
3169
- trust_store_config: {
3170
- trust_store_id: ::String,
3171
- advertise_trust_store_ca_names: bool?,
3172
- ignore_certificate_expiry: bool?
3173
- }?
3174
- }?,
3175
- connection_function_association: {
3176
- id: ::String
3177
- }?,
3178
- cache_tag_config: {
3179
- header_name: ::String
3180
- }?
3181
- },
1919
+ distribution_config: Params::distribution_config,
3182
1920
  id: ::String,
3183
1921
  ?if_match: ::String
3184
1922
  ) -> _UpdateDistributionResponseSuccess
@@ -3196,26 +1934,14 @@ module Aws
3196
1934
  ?domains: Array[
3197
1935
  {
3198
1936
  domain: ::String
3199
- },
1937
+ }
3200
1938
  ],
3201
- ?customizations: {
3202
- web_acl: {
3203
- action: ("override" | "disable"),
3204
- arn: ::String?
3205
- }?,
3206
- certificate: {
3207
- arn: ::String
3208
- }?,
3209
- geo_restrictions: {
3210
- restriction_type: ("blacklist" | "whitelist" | "none"),
3211
- locations: Array[::String]?
3212
- }?
3213
- },
1939
+ ?customizations: Params::customizations,
3214
1940
  ?parameters: Array[
3215
1941
  {
3216
1942
  name: ::String,
3217
1943
  value: ::String
3218
- },
1944
+ }
3219
1945
  ],
3220
1946
  ?connection_group_id: ::String,
3221
1947
  if_match: ::String,
@@ -3265,35 +1991,7 @@ module Aws
3265
1991
  end
3266
1992
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_field_level_encryption_config-instance_method
3267
1993
  def update_field_level_encryption_config: (
3268
- field_level_encryption_config: {
3269
- caller_reference: ::String,
3270
- comment: ::String?,
3271
- query_arg_profile_config: {
3272
- forward_when_query_arg_profile_is_unknown: bool,
3273
- query_arg_profiles: {
3274
- quantity: ::Integer,
3275
- items: Array[
3276
- {
3277
- query_arg: ::String,
3278
- profile_id: ::String
3279
- },
3280
- ]?
3281
- }?
3282
- }?,
3283
- content_type_profile_config: {
3284
- forward_when_content_type_is_unknown: bool,
3285
- content_type_profiles: {
3286
- quantity: ::Integer,
3287
- items: Array[
3288
- {
3289
- format: ("URLEncoded"),
3290
- profile_id: ::String?,
3291
- content_type: ::String
3292
- },
3293
- ]?
3294
- }?
3295
- }?
3296
- },
1994
+ field_level_encryption_config: Params::field_level_encryption_config,
3297
1995
  id: ::String,
3298
1996
  ?if_match: ::String
3299
1997
  ) -> _UpdateFieldLevelEncryptionConfigResponseSuccess
@@ -3306,24 +2004,7 @@ module Aws
3306
2004
  end
3307
2005
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_field_level_encryption_profile-instance_method
3308
2006
  def update_field_level_encryption_profile: (
3309
- field_level_encryption_profile_config: {
3310
- name: ::String,
3311
- caller_reference: ::String,
3312
- comment: ::String?,
3313
- encryption_entities: {
3314
- quantity: ::Integer,
3315
- items: Array[
3316
- {
3317
- public_key_id: ::String,
3318
- provider_id: ::String,
3319
- field_patterns: {
3320
- quantity: ::Integer,
3321
- items: Array[::String]?
3322
- }
3323
- },
3324
- ]?
3325
- }
3326
- },
2007
+ field_level_encryption_profile_config: Params::field_level_encryption_profile_config,
3327
2008
  id: ::String,
3328
2009
  ?if_match: ::String
3329
2010
  ) -> _UpdateFieldLevelEncryptionProfileResponseSuccess
@@ -3338,18 +2019,7 @@ module Aws
3338
2019
  def update_function: (
3339
2020
  name: ::String,
3340
2021
  if_match: ::String,
3341
- function_config: {
3342
- comment: ::String,
3343
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
3344
- key_value_store_associations: {
3345
- quantity: ::Integer,
3346
- items: Array[
3347
- {
3348
- key_value_store_arn: ::String
3349
- },
3350
- ]?
3351
- }?
3352
- },
2022
+ function_config: Params::function_config,
3353
2023
  function_code: ::String
3354
2024
  ) -> _UpdateFunctionResponseSuccess
3355
2025
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFunctionResponseSuccess
@@ -3410,31 +2080,7 @@ module Aws
3410
2080
  end
3411
2081
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_origin_request_policy-instance_method
3412
2082
  def update_origin_request_policy: (
3413
- origin_request_policy_config: {
3414
- comment: ::String?,
3415
- name: ::String,
3416
- headers_config: {
3417
- header_behavior: ("none" | "whitelist" | "allViewer" | "allViewerAndWhitelistCloudFront" | "allExcept"),
3418
- headers: {
3419
- quantity: ::Integer,
3420
- items: Array[::String]?
3421
- }?
3422
- },
3423
- cookies_config: {
3424
- cookie_behavior: ("none" | "whitelist" | "all" | "allExcept"),
3425
- cookies: {
3426
- quantity: ::Integer,
3427
- items: Array[::String]?
3428
- }?
3429
- },
3430
- query_strings_config: {
3431
- query_string_behavior: ("none" | "whitelist" | "all" | "allExcept"),
3432
- query_strings: {
3433
- quantity: ::Integer,
3434
- items: Array[::String]?
3435
- }?
3436
- }
3437
- },
2083
+ origin_request_policy_config: Params::origin_request_policy_config,
3438
2084
  id: ::String,
3439
2085
  ?if_match: ::String
3440
2086
  ) -> _UpdateOriginRequestPolicyResponseSuccess
@@ -3471,7 +2117,7 @@ module Aws
3471
2117
  role_arn: ::String,
3472
2118
  stream_arn: ::String
3473
2119
  }?
3474
- },
2120
+ }
3475
2121
  ],
3476
2122
  ?fields: Array[::String],
3477
2123
  ?name: ::String,
@@ -3487,82 +2133,7 @@ module Aws
3487
2133
  end
3488
2134
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_response_headers_policy-instance_method
3489
2135
  def update_response_headers_policy: (
3490
- response_headers_policy_config: {
3491
- comment: ::String?,
3492
- name: ::String,
3493
- cors_config: {
3494
- access_control_allow_origins: {
3495
- quantity: ::Integer,
3496
- items: Array[::String]
3497
- },
3498
- access_control_allow_headers: {
3499
- quantity: ::Integer,
3500
- items: Array[::String]
3501
- },
3502
- access_control_allow_methods: {
3503
- quantity: ::Integer,
3504
- items: Array[("GET" | "POST" | "OPTIONS" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "ALL")]
3505
- },
3506
- access_control_allow_credentials: bool,
3507
- access_control_expose_headers: {
3508
- quantity: ::Integer,
3509
- items: Array[::String]?
3510
- }?,
3511
- access_control_max_age_sec: ::Integer?,
3512
- origin_override: bool
3513
- }?,
3514
- security_headers_config: {
3515
- xss_protection: {
3516
- override: bool,
3517
- protection: bool,
3518
- mode_block: bool?,
3519
- report_uri: ::String?
3520
- }?,
3521
- frame_options: {
3522
- override: bool,
3523
- frame_option: ("DENY" | "SAMEORIGIN")
3524
- }?,
3525
- referrer_policy: {
3526
- override: bool,
3527
- referrer_policy: ("no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url")
3528
- }?,
3529
- content_security_policy: {
3530
- override: bool,
3531
- content_security_policy: ::String
3532
- }?,
3533
- content_type_options: {
3534
- override: bool
3535
- }?,
3536
- strict_transport_security: {
3537
- override: bool,
3538
- include_subdomains: bool?,
3539
- preload: bool?,
3540
- access_control_max_age_sec: ::Integer
3541
- }?
3542
- }?,
3543
- server_timing_headers_config: {
3544
- enabled: bool,
3545
- sampling_rate: ::Float?
3546
- }?,
3547
- custom_headers_config: {
3548
- quantity: ::Integer,
3549
- items: Array[
3550
- {
3551
- header: ::String,
3552
- value: ::String,
3553
- override: bool
3554
- },
3555
- ]?
3556
- }?,
3557
- remove_headers_config: {
3558
- quantity: ::Integer,
3559
- items: Array[
3560
- {
3561
- header: ::String
3562
- },
3563
- ]?
3564
- }?
3565
- },
2136
+ response_headers_policy_config: Params::response_headers_policy_config,
3566
2137
  id: ::String,
3567
2138
  ?if_match: ::String
3568
2139
  ) -> _UpdateResponseHeadersPolicyResponseSuccess
@@ -3575,30 +2146,7 @@ module Aws
3575
2146
  end
3576
2147
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_streaming_distribution-instance_method
3577
2148
  def update_streaming_distribution: (
3578
- streaming_distribution_config: {
3579
- caller_reference: ::String,
3580
- s3_origin: {
3581
- domain_name: ::String,
3582
- origin_access_identity: ::String
3583
- },
3584
- aliases: {
3585
- quantity: ::Integer,
3586
- items: Array[::String]?
3587
- }?,
3588
- comment: ::String,
3589
- logging: {
3590
- enabled: bool,
3591
- bucket: ::String,
3592
- prefix: ::String
3593
- }?,
3594
- trusted_signers: {
3595
- enabled: bool,
3596
- quantity: ::Integer,
3597
- items: Array[::String]?
3598
- },
3599
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
3600
- enabled: bool
3601
- },
2149
+ streaming_distribution_config: Params::streaming_distribution_config,
3602
2150
  id: ::String,
3603
2151
  ?if_match: ::String
3604
2152
  ) -> _UpdateStreamingDistributionResponseSuccess
@@ -3612,14 +2160,8 @@ module Aws
3612
2160
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_trust_store-instance_method
3613
2161
  def update_trust_store: (
3614
2162
  id: ::String,
3615
- ca_certificates_bundle_source: {
3616
- ca_certificates_bundle_s3_location: {
3617
- bucket: ::String,
3618
- key: ::String,
3619
- region: ::String,
3620
- version: ::String?
3621
- }?
3622
- },
2163
+ ?ca_certificates_bundle_source: Params::ca_certificates_bundle_source,
2164
+ ?use_client_certificate_ocsp_endpoint: bool,
3623
2165
  if_match: ::String
3624
2166
  ) -> _UpdateTrustStoreResponseSuccess
3625
2167
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTrustStoreResponseSuccess
@@ -3631,17 +2173,7 @@ module Aws
3631
2173
  end
3632
2174
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_vpc_origin-instance_method
3633
2175
  def update_vpc_origin: (
3634
- vpc_origin_endpoint_config: {
3635
- name: ::String,
3636
- arn: ::String,
3637
- http_port: ::Integer,
3638
- https_port: ::Integer,
3639
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
3640
- origin_ssl_protocols: {
3641
- quantity: ::Integer,
3642
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
3643
- }?
3644
- },
2176
+ vpc_origin_endpoint_config: Params::vpc_origin_endpoint_config,
3645
2177
  id: ::String,
3646
2178
  if_match: ::String
3647
2179
  ) -> _UpdateVpcOriginResponseSuccess