aws-sdk-cloudfront 1.147.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" | "passthrough")?,
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" | "passthrough")?,
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,21 +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,
1466
578
  ?use_client_certificate_ocsp_endpoint: bool,
1467
579
  ?tags: {
1468
580
  items: Array[
1469
581
  {
1470
582
  key: ::String,
1471
583
  value: ::String?
1472
- },
584
+ }
1473
585
  ]?
1474
586
  }
1475
587
  ) -> _CreateTrustStoreResponseSuccess
@@ -1483,23 +595,13 @@ module Aws
1483
595
  end
1484
596
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#create_vpc_origin-instance_method
1485
597
  def create_vpc_origin: (
1486
- vpc_origin_endpoint_config: {
1487
- name: ::String,
1488
- arn: ::String,
1489
- http_port: ::Integer,
1490
- https_port: ::Integer,
1491
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
1492
- origin_ssl_protocols: {
1493
- quantity: ::Integer,
1494
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
1495
- }?
1496
- },
598
+ vpc_origin_endpoint_config: Params::vpc_origin_endpoint_config,
1497
599
  ?tags: {
1498
600
  items: Array[
1499
601
  {
1500
602
  key: ::String,
1501
603
  value: ::String?
1502
- },
604
+ }
1503
605
  ]?
1504
606
  }
1505
607
  ) -> _CreateVpcOriginResponseSuccess
@@ -2674,7 +1776,7 @@ module Aws
2674
1776
  {
2675
1777
  key: ::String,
2676
1778
  value: ::String?
2677
- },
1779
+ }
2678
1780
  ]?
2679
1781
  }
2680
1782
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
@@ -2730,7 +1832,7 @@ module Aws
2730
1832
  ipam_pool_arn: ::String,
2731
1833
  anycast_ip: ::String?,
2732
1834
  status: ("provisioned" | "failed-provision" | "provisioning" | "deprovisioned" | "failed-deprovision" | "deprovisioning" | "advertised" | "failed-advertise" | "advertising" | "withdrawn" | "failed-withdraw" | "withdrawing")?
2733
- },
1835
+ }
2734
1836
  ],
2735
1837
  if_match: ::String
2736
1838
  ) -> _UpdateAnycastIpListResponseSuccess
@@ -2743,38 +1845,7 @@ module Aws
2743
1845
  end
2744
1846
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_cache_policy-instance_method
2745
1847
  def update_cache_policy: (
2746
- cache_policy_config: {
2747
- comment: ::String?,
2748
- name: ::String,
2749
- default_ttl: ::Integer?,
2750
- max_ttl: ::Integer?,
2751
- min_ttl: ::Integer,
2752
- parameters_in_cache_key_and_forwarded_to_origin: {
2753
- enable_accept_encoding_gzip: bool,
2754
- enable_accept_encoding_brotli: bool?,
2755
- headers_config: {
2756
- header_behavior: ("none" | "whitelist"),
2757
- headers: {
2758
- quantity: ::Integer,
2759
- items: Array[::String]?
2760
- }?
2761
- },
2762
- cookies_config: {
2763
- cookie_behavior: ("none" | "whitelist" | "allExcept" | "all"),
2764
- cookies: {
2765
- quantity: ::Integer,
2766
- items: Array[::String]?
2767
- }?
2768
- },
2769
- query_strings_config: {
2770
- query_string_behavior: ("none" | "whitelist" | "allExcept" | "all"),
2771
- query_strings: {
2772
- quantity: ::Integer,
2773
- items: Array[::String]?
2774
- }?
2775
- }
2776
- }?
2777
- },
1848
+ cache_policy_config: Params::cache_policy_config,
2778
1849
  id: ::String,
2779
1850
  ?if_match: ::String
2780
1851
  ) -> _UpdateCachePolicyResponseSuccess
@@ -2805,18 +1876,7 @@ module Aws
2805
1876
  def update_connection_function: (
2806
1877
  id: ::String,
2807
1878
  if_match: ::String,
2808
- connection_function_config: {
2809
- comment: ::String,
2810
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
2811
- key_value_store_associations: {
2812
- quantity: ::Integer,
2813
- items: Array[
2814
- {
2815
- key_value_store_arn: ::String
2816
- },
2817
- ]?
2818
- }?
2819
- },
1879
+ connection_function_config: Params::function_config,
2820
1880
  connection_function_code: ::String
2821
1881
  ) -> _UpdateConnectionFunctionResponseSuccess
2822
1882
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConnectionFunctionResponseSuccess
@@ -2843,27 +1903,7 @@ module Aws
2843
1903
  end
2844
1904
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_continuous_deployment_policy-instance_method
2845
1905
  def update_continuous_deployment_policy: (
2846
- continuous_deployment_policy_config: {
2847
- staging_distribution_dns_names: {
2848
- quantity: ::Integer,
2849
- items: Array[::String]?
2850
- },
2851
- enabled: bool,
2852
- traffic_config: {
2853
- single_weight_config: {
2854
- weight: ::Float,
2855
- session_stickiness_config: {
2856
- idle_ttl: ::Integer,
2857
- maximum_ttl: ::Integer
2858
- }?
2859
- }?,
2860
- single_header_config: {
2861
- header: ::String,
2862
- value: ::String
2863
- }?,
2864
- type: ("SingleWeight" | "SingleHeader")
2865
- }?
2866
- },
1906
+ continuous_deployment_policy_config: Params::continuous_deployment_policy_config,
2867
1907
  id: ::String,
2868
1908
  ?if_match: ::String
2869
1909
  ) -> _UpdateContinuousDeploymentPolicyResponseSuccess
@@ -2876,310 +1916,7 @@ module Aws
2876
1916
  end
2877
1917
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_distribution-instance_method
2878
1918
  def update_distribution: (
2879
- distribution_config: {
2880
- caller_reference: ::String,
2881
- aliases: {
2882
- quantity: ::Integer,
2883
- items: Array[::String]?
2884
- }?,
2885
- default_root_object: ::String?,
2886
- origins: {
2887
- quantity: ::Integer,
2888
- items: Array[
2889
- {
2890
- id: ::String,
2891
- domain_name: ::String,
2892
- origin_path: ::String?,
2893
- custom_headers: {
2894
- quantity: ::Integer,
2895
- items: Array[
2896
- {
2897
- header_name: ::String,
2898
- header_value: ::String
2899
- },
2900
- ]?
2901
- }?,
2902
- s3_origin_config: {
2903
- origin_access_identity: ::String,
2904
- origin_read_timeout: ::Integer?
2905
- }?,
2906
- custom_origin_config: {
2907
- http_port: ::Integer,
2908
- https_port: ::Integer,
2909
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
2910
- origin_ssl_protocols: {
2911
- quantity: ::Integer,
2912
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
2913
- }?,
2914
- origin_read_timeout: ::Integer?,
2915
- origin_keepalive_timeout: ::Integer?,
2916
- ip_address_type: ("ipv4" | "ipv6" | "dualstack")?,
2917
- origin_mtls_config: {
2918
- client_certificate_arn: ::String
2919
- }?
2920
- }?,
2921
- vpc_origin_config: {
2922
- vpc_origin_id: ::String,
2923
- owner_account_id: ::String?,
2924
- origin_read_timeout: ::Integer?,
2925
- origin_keepalive_timeout: ::Integer?
2926
- }?,
2927
- connection_attempts: ::Integer?,
2928
- connection_timeout: ::Integer?,
2929
- response_completion_timeout: ::Integer?,
2930
- origin_shield: {
2931
- enabled: bool,
2932
- origin_shield_region: ::String?
2933
- }?,
2934
- origin_access_control_id: ::String?
2935
- },
2936
- ]
2937
- },
2938
- origin_groups: {
2939
- quantity: ::Integer,
2940
- items: Array[
2941
- {
2942
- id: ::String,
2943
- failover_criteria: {
2944
- status_codes: {
2945
- quantity: ::Integer,
2946
- items: Array[::Integer]
2947
- }
2948
- },
2949
- members: {
2950
- quantity: ::Integer,
2951
- items: Array[
2952
- {
2953
- origin_id: ::String
2954
- },
2955
- ]
2956
- },
2957
- selection_criteria: ("default" | "media-quality-based")?
2958
- },
2959
- ]?
2960
- }?,
2961
- default_cache_behavior: {
2962
- target_origin_id: ::String,
2963
- trusted_signers: {
2964
- enabled: bool,
2965
- quantity: ::Integer,
2966
- items: Array[::String]?
2967
- }?,
2968
- trusted_key_groups: {
2969
- enabled: bool,
2970
- quantity: ::Integer,
2971
- items: Array[::String]?
2972
- }?,
2973
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
2974
- allowed_methods: {
2975
- quantity: ::Integer,
2976
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
2977
- cached_methods: {
2978
- quantity: ::Integer,
2979
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
2980
- }?
2981
- }?,
2982
- smooth_streaming: bool?,
2983
- compress: bool?,
2984
- lambda_function_associations: {
2985
- quantity: ::Integer,
2986
- items: Array[
2987
- {
2988
- lambda_function_arn: ::String,
2989
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
2990
- include_body: bool?
2991
- },
2992
- ]?
2993
- }?,
2994
- function_associations: {
2995
- quantity: ::Integer,
2996
- items: Array[
2997
- {
2998
- function_arn: ::String,
2999
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
3000
- },
3001
- ]?
3002
- }?,
3003
- field_level_encryption_id: ::String?,
3004
- realtime_log_config_arn: ::String?,
3005
- cache_policy_id: ::String?,
3006
- origin_request_policy_id: ::String?,
3007
- response_headers_policy_id: ::String?,
3008
- grpc_config: {
3009
- enabled: bool
3010
- }?,
3011
- forwarded_values: {
3012
- query_string: bool,
3013
- cookies: {
3014
- forward: ("none" | "whitelist" | "all"),
3015
- whitelisted_names: {
3016
- quantity: ::Integer,
3017
- items: Array[::String]?
3018
- }?
3019
- },
3020
- headers: {
3021
- quantity: ::Integer,
3022
- items: Array[::String]?
3023
- }?,
3024
- query_string_cache_keys: {
3025
- quantity: ::Integer,
3026
- items: Array[::String]?
3027
- }?
3028
- }?,
3029
- min_ttl: ::Integer?,
3030
- default_ttl: ::Integer?,
3031
- max_ttl: ::Integer?
3032
- },
3033
- cache_behaviors: {
3034
- quantity: ::Integer,
3035
- items: Array[
3036
- {
3037
- path_pattern: ::String,
3038
- target_origin_id: ::String,
3039
- trusted_signers: {
3040
- enabled: bool,
3041
- quantity: ::Integer,
3042
- items: Array[::String]?
3043
- }?,
3044
- trusted_key_groups: {
3045
- enabled: bool,
3046
- quantity: ::Integer,
3047
- items: Array[::String]?
3048
- }?,
3049
- viewer_protocol_policy: ("allow-all" | "https-only" | "redirect-to-https"),
3050
- allowed_methods: {
3051
- quantity: ::Integer,
3052
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")],
3053
- cached_methods: {
3054
- quantity: ::Integer,
3055
- items: Array[("GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "DELETE")]
3056
- }?
3057
- }?,
3058
- smooth_streaming: bool?,
3059
- compress: bool?,
3060
- lambda_function_associations: {
3061
- quantity: ::Integer,
3062
- items: Array[
3063
- {
3064
- lambda_function_arn: ::String,
3065
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response"),
3066
- include_body: bool?
3067
- },
3068
- ]?
3069
- }?,
3070
- function_associations: {
3071
- quantity: ::Integer,
3072
- items: Array[
3073
- {
3074
- function_arn: ::String,
3075
- event_type: ("viewer-request" | "viewer-response" | "origin-request" | "origin-response")
3076
- },
3077
- ]?
3078
- }?,
3079
- field_level_encryption_id: ::String?,
3080
- realtime_log_config_arn: ::String?,
3081
- cache_policy_id: ::String?,
3082
- origin_request_policy_id: ::String?,
3083
- response_headers_policy_id: ::String?,
3084
- grpc_config: {
3085
- enabled: bool
3086
- }?,
3087
- forwarded_values: {
3088
- query_string: bool,
3089
- cookies: {
3090
- forward: ("none" | "whitelist" | "all"),
3091
- whitelisted_names: {
3092
- quantity: ::Integer,
3093
- items: Array[::String]?
3094
- }?
3095
- },
3096
- headers: {
3097
- quantity: ::Integer,
3098
- items: Array[::String]?
3099
- }?,
3100
- query_string_cache_keys: {
3101
- quantity: ::Integer,
3102
- items: Array[::String]?
3103
- }?
3104
- }?,
3105
- min_ttl: ::Integer?,
3106
- default_ttl: ::Integer?,
3107
- max_ttl: ::Integer?
3108
- },
3109
- ]?
3110
- }?,
3111
- custom_error_responses: {
3112
- quantity: ::Integer,
3113
- items: Array[
3114
- {
3115
- error_code: ::Integer,
3116
- response_page_path: ::String?,
3117
- response_code: ::String?,
3118
- error_caching_min_ttl: ::Integer?
3119
- },
3120
- ]?
3121
- }?,
3122
- comment: ::String,
3123
- logging: {
3124
- enabled: bool?,
3125
- include_cookies: bool?,
3126
- bucket: ::String?,
3127
- prefix: ::String?
3128
- }?,
3129
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
3130
- enabled: bool,
3131
- viewer_certificate: {
3132
- cloud_front_default_certificate: bool?,
3133
- iam_certificate_id: ::String?,
3134
- acm_certificate_arn: ::String?,
3135
- ssl_support_method: ("sni-only" | "vip" | "static-ip")?,
3136
- 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")?,
3137
- certificate: ::String?,
3138
- certificate_source: ("cloudfront" | "iam" | "acm")?
3139
- }?,
3140
- restrictions: {
3141
- geo_restriction: {
3142
- restriction_type: ("blacklist" | "whitelist" | "none"),
3143
- quantity: ::Integer,
3144
- items: Array[::String]?
3145
- }
3146
- }?,
3147
- web_acl_id: ::String?,
3148
- http_version: ("http1.1" | "http2" | "http3" | "http2and3")?,
3149
- is_ipv6_enabled: bool?,
3150
- continuous_deployment_policy_id: ::String?,
3151
- staging: bool?,
3152
- anycast_ip_list_id: ::String?,
3153
- tenant_config: {
3154
- parameter_definitions: Array[
3155
- {
3156
- name: ::String,
3157
- definition: {
3158
- string_schema: {
3159
- comment: ::String?,
3160
- default_value: ::String?,
3161
- required: bool
3162
- }?
3163
- }
3164
- },
3165
- ]?
3166
- }?,
3167
- connection_mode: ("direct" | "tenant-only")?,
3168
- viewer_mtls_config: {
3169
- mode: ("required" | "optional" | "passthrough")?,
3170
- trust_store_config: {
3171
- trust_store_id: ::String,
3172
- advertise_trust_store_ca_names: bool?,
3173
- ignore_certificate_expiry: bool?
3174
- }?
3175
- }?,
3176
- connection_function_association: {
3177
- id: ::String
3178
- }?,
3179
- cache_tag_config: {
3180
- header_name: ::String
3181
- }?
3182
- },
1919
+ distribution_config: Params::distribution_config,
3183
1920
  id: ::String,
3184
1921
  ?if_match: ::String
3185
1922
  ) -> _UpdateDistributionResponseSuccess
@@ -3197,26 +1934,14 @@ module Aws
3197
1934
  ?domains: Array[
3198
1935
  {
3199
1936
  domain: ::String
3200
- },
1937
+ }
3201
1938
  ],
3202
- ?customizations: {
3203
- web_acl: {
3204
- action: ("override" | "disable"),
3205
- arn: ::String?
3206
- }?,
3207
- certificate: {
3208
- arn: ::String
3209
- }?,
3210
- geo_restrictions: {
3211
- restriction_type: ("blacklist" | "whitelist" | "none"),
3212
- locations: Array[::String]?
3213
- }?
3214
- },
1939
+ ?customizations: Params::customizations,
3215
1940
  ?parameters: Array[
3216
1941
  {
3217
1942
  name: ::String,
3218
1943
  value: ::String
3219
- },
1944
+ }
3220
1945
  ],
3221
1946
  ?connection_group_id: ::String,
3222
1947
  if_match: ::String,
@@ -3266,35 +1991,7 @@ module Aws
3266
1991
  end
3267
1992
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_field_level_encryption_config-instance_method
3268
1993
  def update_field_level_encryption_config: (
3269
- field_level_encryption_config: {
3270
- caller_reference: ::String,
3271
- comment: ::String?,
3272
- query_arg_profile_config: {
3273
- forward_when_query_arg_profile_is_unknown: bool,
3274
- query_arg_profiles: {
3275
- quantity: ::Integer,
3276
- items: Array[
3277
- {
3278
- query_arg: ::String,
3279
- profile_id: ::String
3280
- },
3281
- ]?
3282
- }?
3283
- }?,
3284
- content_type_profile_config: {
3285
- forward_when_content_type_is_unknown: bool,
3286
- content_type_profiles: {
3287
- quantity: ::Integer,
3288
- items: Array[
3289
- {
3290
- format: ("URLEncoded"),
3291
- profile_id: ::String?,
3292
- content_type: ::String
3293
- },
3294
- ]?
3295
- }?
3296
- }?
3297
- },
1994
+ field_level_encryption_config: Params::field_level_encryption_config,
3298
1995
  id: ::String,
3299
1996
  ?if_match: ::String
3300
1997
  ) -> _UpdateFieldLevelEncryptionConfigResponseSuccess
@@ -3307,24 +2004,7 @@ module Aws
3307
2004
  end
3308
2005
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_field_level_encryption_profile-instance_method
3309
2006
  def update_field_level_encryption_profile: (
3310
- field_level_encryption_profile_config: {
3311
- name: ::String,
3312
- caller_reference: ::String,
3313
- comment: ::String?,
3314
- encryption_entities: {
3315
- quantity: ::Integer,
3316
- items: Array[
3317
- {
3318
- public_key_id: ::String,
3319
- provider_id: ::String,
3320
- field_patterns: {
3321
- quantity: ::Integer,
3322
- items: Array[::String]?
3323
- }
3324
- },
3325
- ]?
3326
- }
3327
- },
2007
+ field_level_encryption_profile_config: Params::field_level_encryption_profile_config,
3328
2008
  id: ::String,
3329
2009
  ?if_match: ::String
3330
2010
  ) -> _UpdateFieldLevelEncryptionProfileResponseSuccess
@@ -3339,18 +2019,7 @@ module Aws
3339
2019
  def update_function: (
3340
2020
  name: ::String,
3341
2021
  if_match: ::String,
3342
- function_config: {
3343
- comment: ::String,
3344
- runtime: ("cloudfront-js-1.0" | "cloudfront-js-2.0"),
3345
- key_value_store_associations: {
3346
- quantity: ::Integer,
3347
- items: Array[
3348
- {
3349
- key_value_store_arn: ::String
3350
- },
3351
- ]?
3352
- }?
3353
- },
2022
+ function_config: Params::function_config,
3354
2023
  function_code: ::String
3355
2024
  ) -> _UpdateFunctionResponseSuccess
3356
2025
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFunctionResponseSuccess
@@ -3411,31 +2080,7 @@ module Aws
3411
2080
  end
3412
2081
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_origin_request_policy-instance_method
3413
2082
  def update_origin_request_policy: (
3414
- origin_request_policy_config: {
3415
- comment: ::String?,
3416
- name: ::String,
3417
- headers_config: {
3418
- header_behavior: ("none" | "whitelist" | "allViewer" | "allViewerAndWhitelistCloudFront" | "allExcept"),
3419
- headers: {
3420
- quantity: ::Integer,
3421
- items: Array[::String]?
3422
- }?
3423
- },
3424
- cookies_config: {
3425
- cookie_behavior: ("none" | "whitelist" | "all" | "allExcept"),
3426
- cookies: {
3427
- quantity: ::Integer,
3428
- items: Array[::String]?
3429
- }?
3430
- },
3431
- query_strings_config: {
3432
- query_string_behavior: ("none" | "whitelist" | "all" | "allExcept"),
3433
- query_strings: {
3434
- quantity: ::Integer,
3435
- items: Array[::String]?
3436
- }?
3437
- }
3438
- },
2083
+ origin_request_policy_config: Params::origin_request_policy_config,
3439
2084
  id: ::String,
3440
2085
  ?if_match: ::String
3441
2086
  ) -> _UpdateOriginRequestPolicyResponseSuccess
@@ -3472,7 +2117,7 @@ module Aws
3472
2117
  role_arn: ::String,
3473
2118
  stream_arn: ::String
3474
2119
  }?
3475
- },
2120
+ }
3476
2121
  ],
3477
2122
  ?fields: Array[::String],
3478
2123
  ?name: ::String,
@@ -3488,82 +2133,7 @@ module Aws
3488
2133
  end
3489
2134
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_response_headers_policy-instance_method
3490
2135
  def update_response_headers_policy: (
3491
- response_headers_policy_config: {
3492
- comment: ::String?,
3493
- name: ::String,
3494
- cors_config: {
3495
- access_control_allow_origins: {
3496
- quantity: ::Integer,
3497
- items: Array[::String]
3498
- },
3499
- access_control_allow_headers: {
3500
- quantity: ::Integer,
3501
- items: Array[::String]
3502
- },
3503
- access_control_allow_methods: {
3504
- quantity: ::Integer,
3505
- items: Array[("GET" | "POST" | "OPTIONS" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "ALL")]
3506
- },
3507
- access_control_allow_credentials: bool,
3508
- access_control_expose_headers: {
3509
- quantity: ::Integer,
3510
- items: Array[::String]?
3511
- }?,
3512
- access_control_max_age_sec: ::Integer?,
3513
- origin_override: bool
3514
- }?,
3515
- security_headers_config: {
3516
- xss_protection: {
3517
- override: bool,
3518
- protection: bool,
3519
- mode_block: bool?,
3520
- report_uri: ::String?
3521
- }?,
3522
- frame_options: {
3523
- override: bool,
3524
- frame_option: ("DENY" | "SAMEORIGIN")
3525
- }?,
3526
- referrer_policy: {
3527
- override: bool,
3528
- referrer_policy: ("no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url")
3529
- }?,
3530
- content_security_policy: {
3531
- override: bool,
3532
- content_security_policy: ::String
3533
- }?,
3534
- content_type_options: {
3535
- override: bool
3536
- }?,
3537
- strict_transport_security: {
3538
- override: bool,
3539
- include_subdomains: bool?,
3540
- preload: bool?,
3541
- access_control_max_age_sec: ::Integer
3542
- }?
3543
- }?,
3544
- server_timing_headers_config: {
3545
- enabled: bool,
3546
- sampling_rate: ::Float?
3547
- }?,
3548
- custom_headers_config: {
3549
- quantity: ::Integer,
3550
- items: Array[
3551
- {
3552
- header: ::String,
3553
- value: ::String,
3554
- override: bool
3555
- },
3556
- ]?
3557
- }?,
3558
- remove_headers_config: {
3559
- quantity: ::Integer,
3560
- items: Array[
3561
- {
3562
- header: ::String
3563
- },
3564
- ]?
3565
- }?
3566
- },
2136
+ response_headers_policy_config: Params::response_headers_policy_config,
3567
2137
  id: ::String,
3568
2138
  ?if_match: ::String
3569
2139
  ) -> _UpdateResponseHeadersPolicyResponseSuccess
@@ -3576,30 +2146,7 @@ module Aws
3576
2146
  end
3577
2147
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_streaming_distribution-instance_method
3578
2148
  def update_streaming_distribution: (
3579
- streaming_distribution_config: {
3580
- caller_reference: ::String,
3581
- s3_origin: {
3582
- domain_name: ::String,
3583
- origin_access_identity: ::String
3584
- },
3585
- aliases: {
3586
- quantity: ::Integer,
3587
- items: Array[::String]?
3588
- }?,
3589
- comment: ::String,
3590
- logging: {
3591
- enabled: bool,
3592
- bucket: ::String,
3593
- prefix: ::String
3594
- }?,
3595
- trusted_signers: {
3596
- enabled: bool,
3597
- quantity: ::Integer,
3598
- items: Array[::String]?
3599
- },
3600
- price_class: ("PriceClass_100" | "PriceClass_200" | "PriceClass_All" | "None")?,
3601
- enabled: bool
3602
- },
2149
+ streaming_distribution_config: Params::streaming_distribution_config,
3603
2150
  id: ::String,
3604
2151
  ?if_match: ::String
3605
2152
  ) -> _UpdateStreamingDistributionResponseSuccess
@@ -3613,14 +2160,7 @@ module Aws
3613
2160
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_trust_store-instance_method
3614
2161
  def update_trust_store: (
3615
2162
  id: ::String,
3616
- ?ca_certificates_bundle_source: {
3617
- ca_certificates_bundle_s3_location: {
3618
- bucket: ::String,
3619
- key: ::String,
3620
- region: ::String,
3621
- version: ::String?
3622
- }?
3623
- },
2163
+ ?ca_certificates_bundle_source: Params::ca_certificates_bundle_source,
3624
2164
  ?use_client_certificate_ocsp_endpoint: bool,
3625
2165
  if_match: ::String
3626
2166
  ) -> _UpdateTrustStoreResponseSuccess
@@ -3633,17 +2173,7 @@ module Aws
3633
2173
  end
3634
2174
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFront/Client.html#update_vpc_origin-instance_method
3635
2175
  def update_vpc_origin: (
3636
- vpc_origin_endpoint_config: {
3637
- name: ::String,
3638
- arn: ::String,
3639
- http_port: ::Integer,
3640
- https_port: ::Integer,
3641
- origin_protocol_policy: ("http-only" | "match-viewer" | "https-only"),
3642
- origin_ssl_protocols: {
3643
- quantity: ::Integer,
3644
- items: Array[("SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2")]
3645
- }?
3646
- },
2176
+ vpc_origin_endpoint_config: Params::vpc_origin_endpoint_config,
3647
2177
  id: ::String,
3648
2178
  if_match: ::String
3649
2179
  ) -> _UpdateVpcOriginResponseSuccess