aws-sdk-cloudfront 1.34.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15db99cc14682373f35aa90f1320584234ae291da8d2a645ffd8b134f11faed5
4
- data.tar.gz: fca0af0c8874617185b879837a05a893f61d10c83d3a4296a00aeb7aa8e2207c
3
+ metadata.gz: a9227c424a2ad96173caee3989a47df53983502a402147a79ec9d7e2b2beddfc
4
+ data.tar.gz: 24c8a7ff58f586488200408c77e19360addf0c0148e02b0ed3dc578cc4b391b0
5
5
  SHA512:
6
- metadata.gz: 9c7304752f85df984824d05a5c769e4b9f0914671ee64531b09b45523f7ce11f468b4145adc27187c3adc93daf4d335c72a03fcb61d9c1b1a807b35e41890de2
7
- data.tar.gz: e73f78a7ff6a6a92fe518a9c82b1d3121be7f167eebec1a3e0492a67c0763703ce394854f6e4eccc5d3663413b1ee60d417fdaf55de5b4ac9f740bc259a39aab
6
+ metadata.gz: e360c0a16fb8edad53a4adeb55ec2edf62afb84e0003b4c5798c2f0a6809b3419284b158f1fa6bed3c16a248494183a19c7bccec2d47a2893148d9136ec556de
7
+ data.tar.gz: d58a74a36eb62fc0ab186d3de1dbac71aeb4bf13ed3c45388ac555f928a164f93d52effb50bb5081295b01f82b31610d9b23578a950526279276e82e5e50068a
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-cloudfront/customizations'
28
28
  # structure.
29
29
  #
30
30
  # cloud_front = Aws::CloudFront::Client.new
31
- # resp = cloud_front.create_cloud_front_origin_access_identity(params)
31
+ # resp = cloud_front.create_cache_policy(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
48
48
  # @service
49
49
  module Aws::CloudFront
50
50
 
51
- GEM_VERSION = '1.34.0'
51
+ GEM_VERSION = '1.35.0'
52
52
 
53
53
  end
@@ -312,6 +312,113 @@ module Aws::CloudFront
312
312
 
313
313
  # @!group API Operations
314
314
 
315
+ # Creates a cache policy.
316
+ #
317
+ # After you create a cache policy, you can attach it to one or more
318
+ # cache behaviors. When it’s attached to a cache behavior, the cache
319
+ # policy determines the following:
320
+ #
321
+ # * The values that CloudFront includes in the *cache key*. These values
322
+ # can include HTTP headers, cookies, and URL query strings. CloudFront
323
+ # uses the cache key to find an object in its cache that it can return
324
+ # to the viewer.
325
+ #
326
+ # * The default, minimum, and maximum time to live (TTL) values that you
327
+ # want objects to stay in the CloudFront cache.
328
+ #
329
+ # The headers, cookies, and query strings that are included in the cache
330
+ # key are automatically included in requests that CloudFront sends to
331
+ # the origin. CloudFront sends a request when it can’t find an object in
332
+ # its cache that matches the request’s cache key. If you want to send
333
+ # values to the origin but *not* include them in the cache key, use
334
+ # `CreateOriginRequestPolicy`.
335
+ #
336
+ # For more information about cache policies, see [Controlling the cache
337
+ # key][1] in the *Amazon CloudFront Developer Guide*.
338
+ #
339
+ #
340
+ #
341
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html
342
+ #
343
+ # @option params [required, Types::CachePolicyConfig] :cache_policy_config
344
+ # A cache policy configuration.
345
+ #
346
+ # @return [Types::CreateCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
347
+ #
348
+ # * {Types::CreateCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy
349
+ # * {Types::CreateCachePolicyResult#location #location} => String
350
+ # * {Types::CreateCachePolicyResult#etag #etag} => String
351
+ #
352
+ # @example Request syntax with placeholder values
353
+ #
354
+ # resp = client.create_cache_policy({
355
+ # cache_policy_config: { # required
356
+ # comment: "string",
357
+ # name: "string", # required
358
+ # default_ttl: 1,
359
+ # max_ttl: 1,
360
+ # min_ttl: 1, # required
361
+ # parameters_in_cache_key_and_forwarded_to_origin: {
362
+ # enable_accept_encoding_gzip: false, # required
363
+ # headers_config: { # required
364
+ # header_behavior: "none", # required, accepts none, whitelist
365
+ # headers: {
366
+ # quantity: 1, # required
367
+ # items: ["string"],
368
+ # },
369
+ # },
370
+ # cookies_config: { # required
371
+ # cookie_behavior: "none", # required, accepts none, whitelist, allExcept, all
372
+ # cookies: {
373
+ # quantity: 1, # required
374
+ # items: ["string"],
375
+ # },
376
+ # },
377
+ # query_strings_config: { # required
378
+ # query_string_behavior: "none", # required, accepts none, whitelist, allExcept, all
379
+ # query_strings: {
380
+ # quantity: 1, # required
381
+ # items: ["string"],
382
+ # },
383
+ # },
384
+ # },
385
+ # },
386
+ # })
387
+ #
388
+ # @example Response structure
389
+ #
390
+ # resp.cache_policy.id #=> String
391
+ # resp.cache_policy.last_modified_time #=> Time
392
+ # resp.cache_policy.cache_policy_config.comment #=> String
393
+ # resp.cache_policy.cache_policy_config.name #=> String
394
+ # resp.cache_policy.cache_policy_config.default_ttl #=> Integer
395
+ # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
396
+ # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
397
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
398
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
399
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
400
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
401
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String
402
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
403
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer
404
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array
405
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String
406
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
407
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer
408
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array
409
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String
410
+ # resp.location #=> String
411
+ # resp.etag #=> String
412
+ #
413
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy2020_05_31 AWS API Documentation
414
+ #
415
+ # @overload create_cache_policy(params = {})
416
+ # @param [Hash] params ({})
417
+ def create_cache_policy(params = {}, options = {})
418
+ req = build_request(:create_cache_policy, params)
419
+ req.send_request(options)
420
+ end
421
+
315
422
  # Creates a new origin access identity. If you're using Amazon S3 for
316
423
  # your origin, you can use an origin access identity to require users to
317
424
  # access your content using a CloudFront URL instead of the Amazon S3
@@ -350,7 +457,7 @@ module Aws::CloudFront
350
457
  # resp.location #=> String
351
458
  # resp.etag #=> String
352
459
  #
353
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation
460
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation
354
461
  #
355
462
  # @overload create_cloud_front_origin_access_identity(params = {})
356
463
  # @param [Hash] params ({})
@@ -457,31 +564,12 @@ module Aws::CloudFront
457
564
  # },
458
565
  # default_cache_behavior: { # required
459
566
  # target_origin_id: "string", # required
460
- # forwarded_values: { # required
461
- # query_string: false, # required
462
- # cookies: { # required
463
- # forward: "none", # required, accepts none, whitelist, all
464
- # whitelisted_names: {
465
- # quantity: 1, # required
466
- # items: ["string"],
467
- # },
468
- # },
469
- # headers: {
470
- # quantity: 1, # required
471
- # items: ["string"],
472
- # },
473
- # query_string_cache_keys: {
474
- # quantity: 1, # required
475
- # items: ["string"],
476
- # },
477
- # },
478
567
  # trusted_signers: { # required
479
568
  # enabled: false, # required
480
569
  # quantity: 1, # required
481
570
  # items: ["string"],
482
571
  # },
483
572
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
484
- # min_ttl: 1, # required
485
573
  # allowed_methods: {
486
574
  # quantity: 1, # required
487
575
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -491,8 +579,6 @@ module Aws::CloudFront
491
579
  # },
492
580
  # },
493
581
  # smooth_streaming: false,
494
- # default_ttl: 1,
495
- # max_ttl: 1,
496
582
  # compress: false,
497
583
  # lambda_function_associations: {
498
584
  # quantity: 1, # required
@@ -505,6 +591,29 @@ module Aws::CloudFront
505
591
  # ],
506
592
  # },
507
593
  # field_level_encryption_id: "string",
594
+ # cache_policy_id: "string",
595
+ # origin_request_policy_id: "string",
596
+ # forwarded_values: {
597
+ # query_string: false, # required
598
+ # cookies: { # required
599
+ # forward: "none", # required, accepts none, whitelist, all
600
+ # whitelisted_names: {
601
+ # quantity: 1, # required
602
+ # items: ["string"],
603
+ # },
604
+ # },
605
+ # headers: {
606
+ # quantity: 1, # required
607
+ # items: ["string"],
608
+ # },
609
+ # query_string_cache_keys: {
610
+ # quantity: 1, # required
611
+ # items: ["string"],
612
+ # },
613
+ # },
614
+ # min_ttl: 1,
615
+ # default_ttl: 1,
616
+ # max_ttl: 1,
508
617
  # },
509
618
  # cache_behaviors: {
510
619
  # quantity: 1, # required
@@ -512,31 +621,12 @@ module Aws::CloudFront
512
621
  # {
513
622
  # path_pattern: "string", # required
514
623
  # target_origin_id: "string", # required
515
- # forwarded_values: { # required
516
- # query_string: false, # required
517
- # cookies: { # required
518
- # forward: "none", # required, accepts none, whitelist, all
519
- # whitelisted_names: {
520
- # quantity: 1, # required
521
- # items: ["string"],
522
- # },
523
- # },
524
- # headers: {
525
- # quantity: 1, # required
526
- # items: ["string"],
527
- # },
528
- # query_string_cache_keys: {
529
- # quantity: 1, # required
530
- # items: ["string"],
531
- # },
532
- # },
533
624
  # trusted_signers: { # required
534
625
  # enabled: false, # required
535
626
  # quantity: 1, # required
536
627
  # items: ["string"],
537
628
  # },
538
629
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
539
- # min_ttl: 1, # required
540
630
  # allowed_methods: {
541
631
  # quantity: 1, # required
542
632
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -546,8 +636,6 @@ module Aws::CloudFront
546
636
  # },
547
637
  # },
548
638
  # smooth_streaming: false,
549
- # default_ttl: 1,
550
- # max_ttl: 1,
551
639
  # compress: false,
552
640
  # lambda_function_associations: {
553
641
  # quantity: 1, # required
@@ -560,6 +648,29 @@ module Aws::CloudFront
560
648
  # ],
561
649
  # },
562
650
  # field_level_encryption_id: "string",
651
+ # cache_policy_id: "string",
652
+ # origin_request_policy_id: "string",
653
+ # forwarded_values: {
654
+ # query_string: false, # required
655
+ # cookies: { # required
656
+ # forward: "none", # required, accepts none, whitelist, all
657
+ # whitelisted_names: {
658
+ # quantity: 1, # required
659
+ # items: ["string"],
660
+ # },
661
+ # },
662
+ # headers: {
663
+ # quantity: 1, # required
664
+ # items: ["string"],
665
+ # },
666
+ # query_string_cache_keys: {
667
+ # quantity: 1, # required
668
+ # items: ["string"],
669
+ # },
670
+ # },
671
+ # min_ttl: 1,
672
+ # default_ttl: 1,
673
+ # max_ttl: 1,
563
674
  # },
564
675
  # ],
565
676
  # },
@@ -655,23 +766,11 @@ module Aws::CloudFront
655
766
  # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array
656
767
  # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String
657
768
  # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String
658
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
659
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
660
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
661
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
662
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
663
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
664
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
665
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
666
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
667
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
668
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
669
769
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean
670
770
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer
671
771
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array
672
772
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String
673
773
  # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
674
- # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
675
774
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer
676
775
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array
677
776
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -679,8 +778,6 @@ module Aws::CloudFront
679
778
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array
680
779
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
681
780
  # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean
682
- # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
683
- # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
684
781
  # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
685
782
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
686
783
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
@@ -688,27 +785,31 @@ module Aws::CloudFront
688
785
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
689
786
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
690
787
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
788
+ # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
789
+ # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
790
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
791
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
792
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
793
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
794
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
795
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
796
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
797
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
798
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
799
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
800
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
801
+ # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
802
+ # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
803
+ # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
691
804
  # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
692
805
  # resp.distribution.distribution_config.cache_behaviors.items #=> Array
693
806
  # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
694
807
  # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
695
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
696
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
697
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
698
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
699
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
700
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
701
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
702
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
703
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
704
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
705
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
706
808
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
707
809
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer
708
810
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array
709
811
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String
710
812
  # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
711
- # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
712
813
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer
713
814
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array
714
815
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -716,8 +817,6 @@ module Aws::CloudFront
716
817
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
717
818
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
718
819
  # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean
719
- # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
720
- # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
721
820
  # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
722
821
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
723
822
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -725,6 +824,22 @@ module Aws::CloudFront
725
824
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
726
825
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
727
826
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
827
+ # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
828
+ # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
829
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
830
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
831
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
832
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
833
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
834
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
835
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
836
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
837
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
838
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
839
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
840
+ # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
841
+ # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
842
+ # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
728
843
  # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
729
844
  # resp.distribution.distribution_config.custom_error_responses.items #=> Array
730
845
  # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
@@ -758,7 +873,7 @@ module Aws::CloudFront
758
873
  # resp.location #=> String
759
874
  # resp.etag #=> String
760
875
  #
761
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateDistribution2019_03_26 AWS API Documentation
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution2020_05_31 AWS API Documentation
762
877
  #
763
878
  # @overload create_distribution(params = {})
764
879
  # @param [Hash] params ({})
@@ -848,31 +963,12 @@ module Aws::CloudFront
848
963
  # },
849
964
  # default_cache_behavior: { # required
850
965
  # target_origin_id: "string", # required
851
- # forwarded_values: { # required
852
- # query_string: false, # required
853
- # cookies: { # required
854
- # forward: "none", # required, accepts none, whitelist, all
855
- # whitelisted_names: {
856
- # quantity: 1, # required
857
- # items: ["string"],
858
- # },
859
- # },
860
- # headers: {
861
- # quantity: 1, # required
862
- # items: ["string"],
863
- # },
864
- # query_string_cache_keys: {
865
- # quantity: 1, # required
866
- # items: ["string"],
867
- # },
868
- # },
869
966
  # trusted_signers: { # required
870
967
  # enabled: false, # required
871
968
  # quantity: 1, # required
872
969
  # items: ["string"],
873
970
  # },
874
971
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
875
- # min_ttl: 1, # required
876
972
  # allowed_methods: {
877
973
  # quantity: 1, # required
878
974
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -882,8 +978,6 @@ module Aws::CloudFront
882
978
  # },
883
979
  # },
884
980
  # smooth_streaming: false,
885
- # default_ttl: 1,
886
- # max_ttl: 1,
887
981
  # compress: false,
888
982
  # lambda_function_associations: {
889
983
  # quantity: 1, # required
@@ -896,6 +990,29 @@ module Aws::CloudFront
896
990
  # ],
897
991
  # },
898
992
  # field_level_encryption_id: "string",
993
+ # cache_policy_id: "string",
994
+ # origin_request_policy_id: "string",
995
+ # forwarded_values: {
996
+ # query_string: false, # required
997
+ # cookies: { # required
998
+ # forward: "none", # required, accepts none, whitelist, all
999
+ # whitelisted_names: {
1000
+ # quantity: 1, # required
1001
+ # items: ["string"],
1002
+ # },
1003
+ # },
1004
+ # headers: {
1005
+ # quantity: 1, # required
1006
+ # items: ["string"],
1007
+ # },
1008
+ # query_string_cache_keys: {
1009
+ # quantity: 1, # required
1010
+ # items: ["string"],
1011
+ # },
1012
+ # },
1013
+ # min_ttl: 1,
1014
+ # default_ttl: 1,
1015
+ # max_ttl: 1,
899
1016
  # },
900
1017
  # cache_behaviors: {
901
1018
  # quantity: 1, # required
@@ -903,31 +1020,12 @@ module Aws::CloudFront
903
1020
  # {
904
1021
  # path_pattern: "string", # required
905
1022
  # target_origin_id: "string", # required
906
- # forwarded_values: { # required
907
- # query_string: false, # required
908
- # cookies: { # required
909
- # forward: "none", # required, accepts none, whitelist, all
910
- # whitelisted_names: {
911
- # quantity: 1, # required
912
- # items: ["string"],
913
- # },
914
- # },
915
- # headers: {
916
- # quantity: 1, # required
917
- # items: ["string"],
918
- # },
919
- # query_string_cache_keys: {
920
- # quantity: 1, # required
921
- # items: ["string"],
922
- # },
923
- # },
924
1023
  # trusted_signers: { # required
925
1024
  # enabled: false, # required
926
1025
  # quantity: 1, # required
927
1026
  # items: ["string"],
928
1027
  # },
929
1028
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
930
- # min_ttl: 1, # required
931
1029
  # allowed_methods: {
932
1030
  # quantity: 1, # required
933
1031
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -937,8 +1035,6 @@ module Aws::CloudFront
937
1035
  # },
938
1036
  # },
939
1037
  # smooth_streaming: false,
940
- # default_ttl: 1,
941
- # max_ttl: 1,
942
1038
  # compress: false,
943
1039
  # lambda_function_associations: {
944
1040
  # quantity: 1, # required
@@ -951,6 +1047,29 @@ module Aws::CloudFront
951
1047
  # ],
952
1048
  # },
953
1049
  # field_level_encryption_id: "string",
1050
+ # cache_policy_id: "string",
1051
+ # origin_request_policy_id: "string",
1052
+ # forwarded_values: {
1053
+ # query_string: false, # required
1054
+ # cookies: { # required
1055
+ # forward: "none", # required, accepts none, whitelist, all
1056
+ # whitelisted_names: {
1057
+ # quantity: 1, # required
1058
+ # items: ["string"],
1059
+ # },
1060
+ # },
1061
+ # headers: {
1062
+ # quantity: 1, # required
1063
+ # items: ["string"],
1064
+ # },
1065
+ # query_string_cache_keys: {
1066
+ # quantity: 1, # required
1067
+ # items: ["string"],
1068
+ # },
1069
+ # },
1070
+ # min_ttl: 1,
1071
+ # default_ttl: 1,
1072
+ # max_ttl: 1,
954
1073
  # },
955
1074
  # ],
956
1075
  # },
@@ -1055,23 +1174,11 @@ module Aws::CloudFront
1055
1174
  # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array
1056
1175
  # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String
1057
1176
  # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String
1058
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
1059
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1060
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1061
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
1062
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
1063
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
1064
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
1065
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
1066
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
1067
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
1068
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
1069
1177
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean
1070
1178
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer
1071
1179
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array
1072
1180
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String
1073
1181
  # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
1074
- # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
1075
1182
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer
1076
1183
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array
1077
1184
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -1079,8 +1186,6 @@ module Aws::CloudFront
1079
1186
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array
1080
1187
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
1081
1188
  # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean
1082
- # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
1083
- # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
1084
1189
  # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
1085
1190
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
1086
1191
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
@@ -1088,27 +1193,31 @@ module Aws::CloudFront
1088
1193
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
1089
1194
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
1090
1195
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
1196
+ # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
1197
+ # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
1198
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
1199
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1200
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1201
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
1202
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
1203
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
1204
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
1205
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
1206
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
1207
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
1208
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
1209
+ # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
1210
+ # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
1211
+ # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
1091
1212
  # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
1092
1213
  # resp.distribution.distribution_config.cache_behaviors.items #=> Array
1093
1214
  # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
1094
1215
  # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
1095
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
1096
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1097
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1098
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
1099
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
1100
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
1101
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
1102
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
1103
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
1104
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
1105
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
1106
1216
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
1107
1217
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer
1108
1218
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array
1109
1219
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String
1110
1220
  # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
1111
- # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
1112
1221
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer
1113
1222
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array
1114
1223
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -1116,8 +1225,6 @@ module Aws::CloudFront
1116
1225
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
1117
1226
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
1118
1227
  # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean
1119
- # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
1120
- # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
1121
1228
  # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
1122
1229
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
1123
1230
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -1125,6 +1232,22 @@ module Aws::CloudFront
1125
1232
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
1126
1233
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
1127
1234
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
1235
+ # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
1236
+ # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
1237
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
1238
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1239
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1240
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
1241
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
1242
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
1243
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
1244
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
1245
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
1246
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
1247
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
1248
+ # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
1249
+ # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
1250
+ # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
1128
1251
  # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
1129
1252
  # resp.distribution.distribution_config.custom_error_responses.items #=> Array
1130
1253
  # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
@@ -1158,7 +1281,7 @@ module Aws::CloudFront
1158
1281
  # resp.location #=> String
1159
1282
  # resp.etag #=> String
1160
1283
  #
1161
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateDistributionWithTags2019_03_26 AWS API Documentation
1284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags2020_05_31 AWS API Documentation
1162
1285
  #
1163
1286
  # @overload create_distribution_with_tags(params = {})
1164
1287
  # @param [Hash] params ({})
@@ -1232,7 +1355,7 @@ module Aws::CloudFront
1232
1355
  # resp.location #=> String
1233
1356
  # resp.etag #=> String
1234
1357
  #
1235
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateFieldLevelEncryptionConfig2019_03_26 AWS API Documentation
1358
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig2020_05_31 AWS API Documentation
1236
1359
  #
1237
1360
  # @overload create_field_level_encryption_config(params = {})
1238
1361
  # @param [Hash] params ({})
@@ -1292,7 +1415,7 @@ module Aws::CloudFront
1292
1415
  # resp.location #=> String
1293
1416
  # resp.etag #=> String
1294
1417
  #
1295
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateFieldLevelEncryptionProfile2019_03_26 AWS API Documentation
1418
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile2020_05_31 AWS API Documentation
1296
1419
  #
1297
1420
  # @overload create_field_level_encryption_profile(params = {})
1298
1421
  # @param [Hash] params ({})
@@ -1338,7 +1461,7 @@ module Aws::CloudFront
1338
1461
  # resp.invalidation.invalidation_batch.paths.items[0] #=> String
1339
1462
  # resp.invalidation.invalidation_batch.caller_reference #=> String
1340
1463
  #
1341
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateInvalidation2019_03_26 AWS API Documentation
1464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation2020_05_31 AWS API Documentation
1342
1465
  #
1343
1466
  # @overload create_invalidation(params = {})
1344
1467
  # @param [Hash] params ({})
@@ -1347,6 +1470,106 @@ module Aws::CloudFront
1347
1470
  req.send_request(options)
1348
1471
  end
1349
1472
 
1473
+ # Creates an origin request policy.
1474
+ #
1475
+ # After you create an origin request policy, you can attach it to one or
1476
+ # more cache behaviors. When it’s attached to a cache behavior, the
1477
+ # origin request policy determines the values that CloudFront includes
1478
+ # in requests that it sends to the origin. Each request that CloudFront
1479
+ # sends to the origin includes the following:
1480
+ #
1481
+ # * The request body and the URL path (without the domain name) from the
1482
+ # viewer request.
1483
+ #
1484
+ # * The headers that CloudFront automatically includes in every origin
1485
+ # request, including `Host`, `User-Agent`, and `X-Amz-Cf-Id`.
1486
+ #
1487
+ # * All HTTP headers, cookies, and URL query strings that are specified
1488
+ # in the cache policy or the origin request policy. These can include
1489
+ # items from the viewer request and, in the case of headers,
1490
+ # additional ones that are added by CloudFront.
1491
+ #
1492
+ # CloudFront sends a request when it can’t find a valid object in its
1493
+ # cache that matches the request. If you want to send values to the
1494
+ # origin and also include them in the cache key, use
1495
+ # `CreateCachePolicy`.
1496
+ #
1497
+ # For more information about origin request policies, see [Controlling
1498
+ # origin requests][1] in the *Amazon CloudFront Developer Guide*.
1499
+ #
1500
+ #
1501
+ #
1502
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html
1503
+ #
1504
+ # @option params [required, Types::OriginRequestPolicyConfig] :origin_request_policy_config
1505
+ # An origin request policy configuration.
1506
+ #
1507
+ # @return [Types::CreateOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1508
+ #
1509
+ # * {Types::CreateOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy
1510
+ # * {Types::CreateOriginRequestPolicyResult#location #location} => String
1511
+ # * {Types::CreateOriginRequestPolicyResult#etag #etag} => String
1512
+ #
1513
+ # @example Request syntax with placeholder values
1514
+ #
1515
+ # resp = client.create_origin_request_policy({
1516
+ # origin_request_policy_config: { # required
1517
+ # comment: "string",
1518
+ # name: "string", # required
1519
+ # headers_config: { # required
1520
+ # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
1521
+ # headers: {
1522
+ # quantity: 1, # required
1523
+ # items: ["string"],
1524
+ # },
1525
+ # },
1526
+ # cookies_config: { # required
1527
+ # cookie_behavior: "none", # required, accepts none, whitelist, all
1528
+ # cookies: {
1529
+ # quantity: 1, # required
1530
+ # items: ["string"],
1531
+ # },
1532
+ # },
1533
+ # query_strings_config: { # required
1534
+ # query_string_behavior: "none", # required, accepts none, whitelist, all
1535
+ # query_strings: {
1536
+ # quantity: 1, # required
1537
+ # items: ["string"],
1538
+ # },
1539
+ # },
1540
+ # },
1541
+ # })
1542
+ #
1543
+ # @example Response structure
1544
+ #
1545
+ # resp.origin_request_policy.id #=> String
1546
+ # resp.origin_request_policy.last_modified_time #=> Time
1547
+ # resp.origin_request_policy.origin_request_policy_config.comment #=> String
1548
+ # resp.origin_request_policy.origin_request_policy_config.name #=> String
1549
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
1550
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
1551
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
1552
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
1553
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
1554
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
1555
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
1556
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
1557
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
1558
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
1559
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
1560
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
1561
+ # resp.location #=> String
1562
+ # resp.etag #=> String
1563
+ #
1564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy2020_05_31 AWS API Documentation
1565
+ #
1566
+ # @overload create_origin_request_policy(params = {})
1567
+ # @param [Hash] params ({})
1568
+ def create_origin_request_policy(params = {}, options = {})
1569
+ req = build_request(:create_origin_request_policy, params)
1570
+ req.send_request(options)
1571
+ end
1572
+
1350
1573
  # Add a new public key to CloudFront to use, for example, for
1351
1574
  # field-level encryption. You can add a maximum of 10 public keys with
1352
1575
  # one AWS account.
@@ -1382,7 +1605,7 @@ module Aws::CloudFront
1382
1605
  # resp.location #=> String
1383
1606
  # resp.etag #=> String
1384
1607
  #
1385
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreatePublicKey2019_03_26 AWS API Documentation
1608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey2020_05_31 AWS API Documentation
1386
1609
  #
1387
1610
  # @overload create_public_key(params = {})
1388
1611
  # @param [Hash] params ({})
@@ -1497,7 +1720,7 @@ module Aws::CloudFront
1497
1720
  # resp.location #=> String
1498
1721
  # resp.etag #=> String
1499
1722
  #
1500
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateStreamingDistribution2019_03_26 AWS API Documentation
1723
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution2020_05_31 AWS API Documentation
1501
1724
  #
1502
1725
  # @overload create_streaming_distribution(params = {})
1503
1726
  # @param [Hash] params ({})
@@ -1589,7 +1812,7 @@ module Aws::CloudFront
1589
1812
  # resp.location #=> String
1590
1813
  # resp.etag #=> String
1591
1814
  #
1592
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateStreamingDistributionWithTags2019_03_26 AWS API Documentation
1815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags2020_05_31 AWS API Documentation
1593
1816
  #
1594
1817
  # @overload create_streaming_distribution_with_tags(params = {})
1595
1818
  # @param [Hash] params ({})
@@ -1598,6 +1821,43 @@ module Aws::CloudFront
1598
1821
  req.send_request(options)
1599
1822
  end
1600
1823
 
1824
+ # Deletes a cache policy.
1825
+ #
1826
+ # You cannot delete a cache policy if it’s attached to a cache behavior.
1827
+ # First update your distributions to remove the cache policy from all
1828
+ # cache behaviors, then delete the cache policy.
1829
+ #
1830
+ # To delete a cache policy, you must provide the policy’s identifier and
1831
+ # version. To get these values, you can use `ListCachePolicies` or
1832
+ # `GetCachePolicy`.
1833
+ #
1834
+ # @option params [required, String] :id
1835
+ # The unique identifier for the cache policy that you are deleting. To
1836
+ # get the identifier, you can use `ListCachePolicies`.
1837
+ #
1838
+ # @option params [String] :if_match
1839
+ # The version of the cache policy that you are deleting. The version is
1840
+ # the cache policy’s `ETag` value, which you can get using
1841
+ # `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`.
1842
+ #
1843
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1844
+ #
1845
+ # @example Request syntax with placeholder values
1846
+ #
1847
+ # resp = client.delete_cache_policy({
1848
+ # id: "string", # required
1849
+ # if_match: "string",
1850
+ # })
1851
+ #
1852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy2020_05_31 AWS API Documentation
1853
+ #
1854
+ # @overload delete_cache_policy(params = {})
1855
+ # @param [Hash] params ({})
1856
+ def delete_cache_policy(params = {}, options = {})
1857
+ req = build_request(:delete_cache_policy, params)
1858
+ req.send_request(options)
1859
+ end
1860
+
1601
1861
  # Delete an origin access identity.
1602
1862
  #
1603
1863
  # @option params [required, String] :id
@@ -1616,7 +1876,7 @@ module Aws::CloudFront
1616
1876
  # if_match: "string",
1617
1877
  # })
1618
1878
  #
1619
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation
1879
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation
1620
1880
  #
1621
1881
  # @overload delete_cloud_front_origin_access_identity(params = {})
1622
1882
  # @param [Hash] params ({})
@@ -1643,7 +1903,7 @@ module Aws::CloudFront
1643
1903
  # if_match: "string",
1644
1904
  # })
1645
1905
  #
1646
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteDistribution2019_03_26 AWS API Documentation
1906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution2020_05_31 AWS API Documentation
1647
1907
  #
1648
1908
  # @overload delete_distribution(params = {})
1649
1909
  # @param [Hash] params ({})
@@ -1670,7 +1930,7 @@ module Aws::CloudFront
1670
1930
  # if_match: "string",
1671
1931
  # })
1672
1932
  #
1673
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteFieldLevelEncryptionConfig2019_03_26 AWS API Documentation
1933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig2020_05_31 AWS API Documentation
1674
1934
  #
1675
1935
  # @overload delete_field_level_encryption_config(params = {})
1676
1936
  # @param [Hash] params ({})
@@ -1697,7 +1957,7 @@ module Aws::CloudFront
1697
1957
  # if_match: "string",
1698
1958
  # })
1699
1959
  #
1700
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteFieldLevelEncryptionProfile2019_03_26 AWS API Documentation
1960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile2020_05_31 AWS API Documentation
1701
1961
  #
1702
1962
  # @overload delete_field_level_encryption_profile(params = {})
1703
1963
  # @param [Hash] params ({})
@@ -1706,6 +1966,46 @@ module Aws::CloudFront
1706
1966
  req.send_request(options)
1707
1967
  end
1708
1968
 
1969
+ # Deletes an origin request policy.
1970
+ #
1971
+ # You cannot delete an origin request policy if it’s attached to any
1972
+ # cache behaviors. First update your distributions to remove the origin
1973
+ # request policy from all cache behaviors, then delete the origin
1974
+ # request policy.
1975
+ #
1976
+ # To delete an origin request policy, you must provide the policy’s
1977
+ # identifier and version. To get the identifier, you can use
1978
+ # `ListOriginRequestPolicies` or `GetOriginRequestPolicy`.
1979
+ #
1980
+ # @option params [required, String] :id
1981
+ # The unique identifier for the origin request policy that you are
1982
+ # deleting. To get the identifier, you can use
1983
+ # `ListOriginRequestPolicies`.
1984
+ #
1985
+ # @option params [String] :if_match
1986
+ # The version of the origin request policy that you are deleting. The
1987
+ # version is the origin request policy’s `ETag` value, which you can get
1988
+ # using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or
1989
+ # `GetOriginRequestPolicyConfig`.
1990
+ #
1991
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1992
+ #
1993
+ # @example Request syntax with placeholder values
1994
+ #
1995
+ # resp = client.delete_origin_request_policy({
1996
+ # id: "string", # required
1997
+ # if_match: "string",
1998
+ # })
1999
+ #
2000
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy2020_05_31 AWS API Documentation
2001
+ #
2002
+ # @overload delete_origin_request_policy(params = {})
2003
+ # @param [Hash] params ({})
2004
+ def delete_origin_request_policy(params = {}, options = {})
2005
+ req = build_request(:delete_origin_request_policy, params)
2006
+ req.send_request(options)
2007
+ end
2008
+
1709
2009
  # Remove a public key you previously added to CloudFront.
1710
2010
  #
1711
2011
  # @option params [required, String] :id
@@ -1724,7 +2024,7 @@ module Aws::CloudFront
1724
2024
  # if_match: "string",
1725
2025
  # })
1726
2026
  #
1727
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeletePublicKey2019_03_26 AWS API Documentation
2027
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey2020_05_31 AWS API Documentation
1728
2028
  #
1729
2029
  # @overload delete_public_key(params = {})
1730
2030
  # @param [Hash] params ({})
@@ -1794,7 +2094,7 @@ module Aws::CloudFront
1794
2094
  # if_match: "string",
1795
2095
  # })
1796
2096
  #
1797
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteStreamingDistribution2019_03_26 AWS API Documentation
2097
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution2020_05_31 AWS API Documentation
1798
2098
  #
1799
2099
  # @overload delete_streaming_distribution(params = {})
1800
2100
  # @param [Hash] params ({})
@@ -1803,6 +2103,127 @@ module Aws::CloudFront
1803
2103
  req.send_request(options)
1804
2104
  end
1805
2105
 
2106
+ # Gets a cache policy, including the following metadata:
2107
+ #
2108
+ # * The policy’s identifier.
2109
+ #
2110
+ # * The date and time when the policy was last modified.
2111
+ #
2112
+ # To get a cache policy, you must provide the policy’s identifier. If
2113
+ # the cache policy is attached to a distribution’s cache behavior, you
2114
+ # can get the policy’s identifier using `ListDistributions` or
2115
+ # `GetDistribution`. If the cache policy is not attached to a cache
2116
+ # behavior, you can get the identifier using `ListCachePolicies`.
2117
+ #
2118
+ # @option params [required, String] :id
2119
+ # The unique identifier for the cache policy. If the cache policy is
2120
+ # attached to a distribution’s cache behavior, you can get the policy’s
2121
+ # identifier using `ListDistributions` or `GetDistribution`. If the
2122
+ # cache policy is not attached to a cache behavior, you can get the
2123
+ # identifier using `ListCachePolicies`.
2124
+ #
2125
+ # @return [Types::GetCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2126
+ #
2127
+ # * {Types::GetCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy
2128
+ # * {Types::GetCachePolicyResult#etag #etag} => String
2129
+ #
2130
+ # @example Request syntax with placeholder values
2131
+ #
2132
+ # resp = client.get_cache_policy({
2133
+ # id: "string", # required
2134
+ # })
2135
+ #
2136
+ # @example Response structure
2137
+ #
2138
+ # resp.cache_policy.id #=> String
2139
+ # resp.cache_policy.last_modified_time #=> Time
2140
+ # resp.cache_policy.cache_policy_config.comment #=> String
2141
+ # resp.cache_policy.cache_policy_config.name #=> String
2142
+ # resp.cache_policy.cache_policy_config.default_ttl #=> Integer
2143
+ # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
2144
+ # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
2145
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
2146
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
2147
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
2148
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
2149
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String
2150
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
2151
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer
2152
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array
2153
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String
2154
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
2155
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer
2156
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array
2157
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String
2158
+ # resp.etag #=> String
2159
+ #
2160
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy2020_05_31 AWS API Documentation
2161
+ #
2162
+ # @overload get_cache_policy(params = {})
2163
+ # @param [Hash] params ({})
2164
+ def get_cache_policy(params = {}, options = {})
2165
+ req = build_request(:get_cache_policy, params)
2166
+ req.send_request(options)
2167
+ end
2168
+
2169
+ # Gets a cache policy configuration.
2170
+ #
2171
+ # To get a cache policy configuration, you must provide the policy’s
2172
+ # identifier. If the cache policy is attached to a distribution’s cache
2173
+ # behavior, you can get the policy’s identifier using
2174
+ # `ListDistributions` or `GetDistribution`. If the cache policy is not
2175
+ # attached to a cache behavior, you can get the identifier using
2176
+ # `ListCachePolicies`.
2177
+ #
2178
+ # @option params [required, String] :id
2179
+ # The unique identifier for the cache policy. If the cache policy is
2180
+ # attached to a distribution’s cache behavior, you can get the policy’s
2181
+ # identifier using `ListDistributions` or `GetDistribution`. If the
2182
+ # cache policy is not attached to a cache behavior, you can get the
2183
+ # identifier using `ListCachePolicies`.
2184
+ #
2185
+ # @return [Types::GetCachePolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2186
+ #
2187
+ # * {Types::GetCachePolicyConfigResult#cache_policy_config #cache_policy_config} => Types::CachePolicyConfig
2188
+ # * {Types::GetCachePolicyConfigResult#etag #etag} => String
2189
+ #
2190
+ # @example Request syntax with placeholder values
2191
+ #
2192
+ # resp = client.get_cache_policy_config({
2193
+ # id: "string", # required
2194
+ # })
2195
+ #
2196
+ # @example Response structure
2197
+ #
2198
+ # resp.cache_policy_config.comment #=> String
2199
+ # resp.cache_policy_config.name #=> String
2200
+ # resp.cache_policy_config.default_ttl #=> Integer
2201
+ # resp.cache_policy_config.max_ttl #=> Integer
2202
+ # resp.cache_policy_config.min_ttl #=> Integer
2203
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
2204
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
2205
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
2206
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
2207
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String
2208
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
2209
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer
2210
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array
2211
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String
2212
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
2213
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer
2214
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array
2215
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String
2216
+ # resp.etag #=> String
2217
+ #
2218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig2020_05_31 AWS API Documentation
2219
+ #
2220
+ # @overload get_cache_policy_config(params = {})
2221
+ # @param [Hash] params ({})
2222
+ def get_cache_policy_config(params = {}, options = {})
2223
+ req = build_request(:get_cache_policy_config, params)
2224
+ req.send_request(options)
2225
+ end
2226
+
1806
2227
  # Get the information about an origin access identity.
1807
2228
  #
1808
2229
  # @option params [required, String] :id
@@ -1827,7 +2248,7 @@ module Aws::CloudFront
1827
2248
  # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String
1828
2249
  # resp.etag #=> String
1829
2250
  #
1830
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation
2251
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation
1831
2252
  #
1832
2253
  # @overload get_cloud_front_origin_access_identity(params = {})
1833
2254
  # @param [Hash] params ({})
@@ -1858,7 +2279,7 @@ module Aws::CloudFront
1858
2279
  # resp.cloud_front_origin_access_identity_config.comment #=> String
1859
2280
  # resp.etag #=> String
1860
2281
  #
1861
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetCloudFrontOriginAccessIdentityConfig2019_03_26 AWS API Documentation
2282
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig2020_05_31 AWS API Documentation
1862
2283
  #
1863
2284
  # @overload get_cloud_front_origin_access_identity_config(params = {})
1864
2285
  # @param [Hash] params ({})
@@ -1934,23 +2355,11 @@ module Aws::CloudFront
1934
2355
  # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array
1935
2356
  # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String
1936
2357
  # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String
1937
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
1938
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1939
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1940
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
1941
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
1942
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
1943
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
1944
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
1945
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
1946
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
1947
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
1948
2358
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean
1949
2359
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer
1950
2360
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array
1951
2361
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String
1952
2362
  # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
1953
- # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
1954
2363
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer
1955
2364
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array
1956
2365
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -1958,8 +2367,6 @@ module Aws::CloudFront
1958
2367
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array
1959
2368
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
1960
2369
  # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean
1961
- # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
1962
- # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
1963
2370
  # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
1964
2371
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
1965
2372
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
@@ -1967,27 +2374,31 @@ module Aws::CloudFront
1967
2374
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
1968
2375
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
1969
2376
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
2377
+ # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
2378
+ # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
2379
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
2380
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2381
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2382
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
2383
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
2384
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
2385
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
2386
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
2387
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
2388
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
2389
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
2390
+ # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
2391
+ # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
2392
+ # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
1970
2393
  # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
1971
2394
  # resp.distribution.distribution_config.cache_behaviors.items #=> Array
1972
2395
  # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
1973
2396
  # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
1974
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
1975
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
1976
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
1977
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
1978
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
1979
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
1980
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
1981
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
1982
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
1983
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
1984
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
1985
2397
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
1986
2398
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer
1987
2399
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array
1988
2400
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String
1989
2401
  # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
1990
- # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
1991
2402
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer
1992
2403
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array
1993
2404
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -1995,8 +2406,6 @@ module Aws::CloudFront
1995
2406
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
1996
2407
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
1997
2408
  # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean
1998
- # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
1999
- # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
2000
2409
  # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
2001
2410
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
2002
2411
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -2004,6 +2413,22 @@ module Aws::CloudFront
2004
2413
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2005
2414
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2006
2415
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
2416
+ # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
2417
+ # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
2418
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
2419
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2420
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2421
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
2422
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
2423
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
2424
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
2425
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
2426
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
2427
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
2428
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
2429
+ # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
2430
+ # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
2431
+ # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
2007
2432
  # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
2008
2433
  # resp.distribution.distribution_config.custom_error_responses.items #=> Array
2009
2434
  # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
@@ -2041,7 +2466,7 @@ module Aws::CloudFront
2041
2466
  #
2042
2467
  # * distribution_deployed
2043
2468
  #
2044
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetDistribution2019_03_26 AWS API Documentation
2469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution2020_05_31 AWS API Documentation
2045
2470
  #
2046
2471
  # @overload get_distribution(params = {})
2047
2472
  # @param [Hash] params ({})
@@ -2104,23 +2529,11 @@ module Aws::CloudFront
2104
2529
  # resp.distribution_config.origin_groups.items[0].members.items #=> Array
2105
2530
  # resp.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String
2106
2531
  # resp.distribution_config.default_cache_behavior.target_origin_id #=> String
2107
- # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
2108
- # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2109
- # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2110
- # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
2111
- # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
2112
- # resp.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
2113
- # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
2114
- # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
2115
- # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
2116
- # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
2117
- # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
2118
2532
  # resp.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean
2119
2533
  # resp.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer
2120
2534
  # resp.distribution_config.default_cache_behavior.trusted_signers.items #=> Array
2121
2535
  # resp.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String
2122
2536
  # resp.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2123
- # resp.distribution_config.default_cache_behavior.min_ttl #=> Integer
2124
2537
  # resp.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer
2125
2538
  # resp.distribution_config.default_cache_behavior.allowed_methods.items #=> Array
2126
2539
  # resp.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2128,8 +2541,6 @@ module Aws::CloudFront
2128
2541
  # resp.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array
2129
2542
  # resp.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2130
2543
  # resp.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean
2131
- # resp.distribution_config.default_cache_behavior.default_ttl #=> Integer
2132
- # resp.distribution_config.default_cache_behavior.max_ttl #=> Integer
2133
2544
  # resp.distribution_config.default_cache_behavior.compress #=> Boolean
2134
2545
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
2135
2546
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
@@ -2137,27 +2548,31 @@ module Aws::CloudFront
2137
2548
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2138
2549
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
2139
2550
  # resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
2551
+ # resp.distribution_config.default_cache_behavior.cache_policy_id #=> String
2552
+ # resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
2553
+ # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
2554
+ # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2555
+ # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2556
+ # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
2557
+ # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
2558
+ # resp.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
2559
+ # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
2560
+ # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
2561
+ # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
2562
+ # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
2563
+ # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
2564
+ # resp.distribution_config.default_cache_behavior.min_ttl #=> Integer
2565
+ # resp.distribution_config.default_cache_behavior.default_ttl #=> Integer
2566
+ # resp.distribution_config.default_cache_behavior.max_ttl #=> Integer
2140
2567
  # resp.distribution_config.cache_behaviors.quantity #=> Integer
2141
2568
  # resp.distribution_config.cache_behaviors.items #=> Array
2142
2569
  # resp.distribution_config.cache_behaviors.items[0].path_pattern #=> String
2143
2570
  # resp.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
2144
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
2145
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2146
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2147
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
2148
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
2149
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
2150
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
2151
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
2152
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
2153
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
2154
- # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
2155
2571
  # resp.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
2156
2572
  # resp.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer
2157
2573
  # resp.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array
2158
2574
  # resp.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String
2159
2575
  # resp.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2160
- # resp.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
2161
2576
  # resp.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer
2162
2577
  # resp.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array
2163
2578
  # resp.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2165,8 +2580,6 @@ module Aws::CloudFront
2165
2580
  # resp.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
2166
2581
  # resp.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2167
2582
  # resp.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean
2168
- # resp.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
2169
- # resp.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
2170
2583
  # resp.distribution_config.cache_behaviors.items[0].compress #=> Boolean
2171
2584
  # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
2172
2585
  # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -2174,6 +2587,22 @@ module Aws::CloudFront
2174
2587
  # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2175
2588
  # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2176
2589
  # resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
2590
+ # resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
2591
+ # resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
2592
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
2593
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2594
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2595
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
2596
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
2597
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
2598
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
2599
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
2600
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
2601
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
2602
+ # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
2603
+ # resp.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
2604
+ # resp.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
2605
+ # resp.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
2177
2606
  # resp.distribution_config.custom_error_responses.quantity #=> Integer
2178
2607
  # resp.distribution_config.custom_error_responses.items #=> Array
2179
2608
  # resp.distribution_config.custom_error_responses.items[0].error_code #=> Integer
@@ -2203,7 +2632,7 @@ module Aws::CloudFront
2203
2632
  # resp.distribution_config.is_ipv6_enabled #=> Boolean
2204
2633
  # resp.etag #=> String
2205
2634
  #
2206
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetDistributionConfig2019_03_26 AWS API Documentation
2635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig2020_05_31 AWS API Documentation
2207
2636
  #
2208
2637
  # @overload get_distribution_config(params = {})
2209
2638
  # @param [Hash] params ({})
@@ -2248,7 +2677,7 @@ module Aws::CloudFront
2248
2677
  # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
2249
2678
  # resp.etag #=> String
2250
2679
  #
2251
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryption2019_03_26 AWS API Documentation
2680
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption2020_05_31 AWS API Documentation
2252
2681
  #
2253
2682
  # @overload get_field_level_encryption(params = {})
2254
2683
  # @param [Hash] params ({})
@@ -2291,7 +2720,7 @@ module Aws::CloudFront
2291
2720
  # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
2292
2721
  # resp.etag #=> String
2293
2722
  #
2294
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionConfig2019_03_26 AWS API Documentation
2723
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig2020_05_31 AWS API Documentation
2295
2724
  #
2296
2725
  # @overload get_field_level_encryption_config(params = {})
2297
2726
  # @param [Hash] params ({})
@@ -2332,7 +2761,7 @@ module Aws::CloudFront
2332
2761
  # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
2333
2762
  # resp.etag #=> String
2334
2763
  #
2335
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionProfile2019_03_26 AWS API Documentation
2764
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile2020_05_31 AWS API Documentation
2336
2765
  #
2337
2766
  # @overload get_field_level_encryption_profile(params = {})
2338
2767
  # @param [Hash] params ({})
@@ -2372,7 +2801,7 @@ module Aws::CloudFront
2372
2801
  # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
2373
2802
  # resp.etag #=> String
2374
2803
  #
2375
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionProfileConfig2019_03_26 AWS API Documentation
2804
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig2020_05_31 AWS API Documentation
2376
2805
  #
2377
2806
  # @overload get_field_level_encryption_profile_config(params = {})
2378
2807
  # @param [Hash] params ({})
@@ -2416,7 +2845,7 @@ module Aws::CloudFront
2416
2845
  #
2417
2846
  # * invalidation_completed
2418
2847
  #
2419
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetInvalidation2019_03_26 AWS API Documentation
2848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation2020_05_31 AWS API Documentation
2420
2849
  #
2421
2850
  # @overload get_invalidation(params = {})
2422
2851
  # @param [Hash] params ({})
@@ -2425,6 +2854,122 @@ module Aws::CloudFront
2425
2854
  req.send_request(options)
2426
2855
  end
2427
2856
 
2857
+ # Gets an origin request policy, including the following metadata:
2858
+ #
2859
+ # * The policy’s identifier.
2860
+ #
2861
+ # * The date and time when the policy was last modified.
2862
+ #
2863
+ # To get an origin request policy, you must provide the policy’s
2864
+ # identifier. If the origin request policy is attached to a
2865
+ # distribution’s cache behavior, you can get the policy’s identifier
2866
+ # using `ListDistributions` or `GetDistribution`. If the origin request
2867
+ # policy is not attached to a cache behavior, you can get the identifier
2868
+ # using `ListOriginRequestPolicies`.
2869
+ #
2870
+ # @option params [required, String] :id
2871
+ # The unique identifier for the origin request policy. If the origin
2872
+ # request policy is attached to a distribution’s cache behavior, you can
2873
+ # get the policy’s identifier using `ListDistributions` or
2874
+ # `GetDistribution`. If the origin request policy is not attached to a
2875
+ # cache behavior, you can get the identifier using
2876
+ # `ListOriginRequestPolicies`.
2877
+ #
2878
+ # @return [Types::GetOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2879
+ #
2880
+ # * {Types::GetOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy
2881
+ # * {Types::GetOriginRequestPolicyResult#etag #etag} => String
2882
+ #
2883
+ # @example Request syntax with placeholder values
2884
+ #
2885
+ # resp = client.get_origin_request_policy({
2886
+ # id: "string", # required
2887
+ # })
2888
+ #
2889
+ # @example Response structure
2890
+ #
2891
+ # resp.origin_request_policy.id #=> String
2892
+ # resp.origin_request_policy.last_modified_time #=> Time
2893
+ # resp.origin_request_policy.origin_request_policy_config.comment #=> String
2894
+ # resp.origin_request_policy.origin_request_policy_config.name #=> String
2895
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
2896
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
2897
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
2898
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
2899
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
2900
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
2901
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
2902
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
2903
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
2904
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
2905
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
2906
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
2907
+ # resp.etag #=> String
2908
+ #
2909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy2020_05_31 AWS API Documentation
2910
+ #
2911
+ # @overload get_origin_request_policy(params = {})
2912
+ # @param [Hash] params ({})
2913
+ def get_origin_request_policy(params = {}, options = {})
2914
+ req = build_request(:get_origin_request_policy, params)
2915
+ req.send_request(options)
2916
+ end
2917
+
2918
+ # Gets an origin request policy configuration.
2919
+ #
2920
+ # To get an origin request policy configuration, you must provide the
2921
+ # policy’s identifier. If the origin request policy is attached to a
2922
+ # distribution’s cache behavior, you can get the policy’s identifier
2923
+ # using `ListDistributions` or `GetDistribution`. If the origin request
2924
+ # policy is not attached to a cache behavior, you can get the identifier
2925
+ # using `ListOriginRequestPolicies`.
2926
+ #
2927
+ # @option params [required, String] :id
2928
+ # The unique identifier for the origin request policy. If the origin
2929
+ # request policy is attached to a distribution’s cache behavior, you can
2930
+ # get the policy’s identifier using `ListDistributions` or
2931
+ # `GetDistribution`. If the origin request policy is not attached to a
2932
+ # cache behavior, you can get the identifier using
2933
+ # `ListOriginRequestPolicies`.
2934
+ #
2935
+ # @return [Types::GetOriginRequestPolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2936
+ #
2937
+ # * {Types::GetOriginRequestPolicyConfigResult#origin_request_policy_config #origin_request_policy_config} => Types::OriginRequestPolicyConfig
2938
+ # * {Types::GetOriginRequestPolicyConfigResult#etag #etag} => String
2939
+ #
2940
+ # @example Request syntax with placeholder values
2941
+ #
2942
+ # resp = client.get_origin_request_policy_config({
2943
+ # id: "string", # required
2944
+ # })
2945
+ #
2946
+ # @example Response structure
2947
+ #
2948
+ # resp.origin_request_policy_config.comment #=> String
2949
+ # resp.origin_request_policy_config.name #=> String
2950
+ # resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
2951
+ # resp.origin_request_policy_config.headers_config.headers.quantity #=> Integer
2952
+ # resp.origin_request_policy_config.headers_config.headers.items #=> Array
2953
+ # resp.origin_request_policy_config.headers_config.headers.items[0] #=> String
2954
+ # resp.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
2955
+ # resp.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
2956
+ # resp.origin_request_policy_config.cookies_config.cookies.items #=> Array
2957
+ # resp.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
2958
+ # resp.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
2959
+ # resp.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
2960
+ # resp.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
2961
+ # resp.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
2962
+ # resp.etag #=> String
2963
+ #
2964
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig2020_05_31 AWS API Documentation
2965
+ #
2966
+ # @overload get_origin_request_policy_config(params = {})
2967
+ # @param [Hash] params ({})
2968
+ def get_origin_request_policy_config(params = {}, options = {})
2969
+ req = build_request(:get_origin_request_policy_config, params)
2970
+ req.send_request(options)
2971
+ end
2972
+
2428
2973
  # Get the public key information.
2429
2974
  #
2430
2975
  # @option params [required, String] :id
@@ -2451,7 +2996,7 @@ module Aws::CloudFront
2451
2996
  # resp.public_key.public_key_config.comment #=> String
2452
2997
  # resp.etag #=> String
2453
2998
  #
2454
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetPublicKey2019_03_26 AWS API Documentation
2999
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey2020_05_31 AWS API Documentation
2455
3000
  #
2456
3001
  # @overload get_public_key(params = {})
2457
3002
  # @param [Hash] params ({})
@@ -2484,7 +3029,7 @@ module Aws::CloudFront
2484
3029
  # resp.public_key_config.comment #=> String
2485
3030
  # resp.etag #=> String
2486
3031
  #
2487
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetPublicKeyConfig2019_03_26 AWS API Documentation
3032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig2020_05_31 AWS API Documentation
2488
3033
  #
2489
3034
  # @overload get_public_key_config(params = {})
2490
3035
  # @param [Hash] params ({})
@@ -2547,7 +3092,7 @@ module Aws::CloudFront
2547
3092
  #
2548
3093
  # * streaming_distribution_deployed
2549
3094
  #
2550
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetStreamingDistribution2019_03_26 AWS API Documentation
3095
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution2020_05_31 AWS API Documentation
2551
3096
  #
2552
3097
  # @overload get_streaming_distribution(params = {})
2553
3098
  # @param [Hash] params ({})
@@ -2592,7 +3137,7 @@ module Aws::CloudFront
2592
3137
  # resp.streaming_distribution_config.enabled #=> Boolean
2593
3138
  # resp.etag #=> String
2594
3139
  #
2595
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetStreamingDistributionConfig2019_03_26 AWS API Documentation
3140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig2020_05_31 AWS API Documentation
2596
3141
  #
2597
3142
  # @overload get_streaming_distribution_config(params = {})
2598
3143
  # @param [Hash] params ({})
@@ -2601,6 +3146,87 @@ module Aws::CloudFront
2601
3146
  req.send_request(options)
2602
3147
  end
2603
3148
 
3149
+ # Gets a list of cache policies.
3150
+ #
3151
+ # You can optionally apply a filter to return only the managed policies
3152
+ # created by AWS, or only the custom policies created in your AWS
3153
+ # account.
3154
+ #
3155
+ # You can optionally specify the maximum number of items to receive in
3156
+ # the response. If the total number of items in the list exceeds the
3157
+ # maximum that you specify, or the default maximum, the response is
3158
+ # paginated. To get the next page of items, send a subsequent request
3159
+ # that specifies the `NextMarker` value from the current response as the
3160
+ # `Marker` value in the subsequent request.
3161
+ #
3162
+ # @option params [String] :type
3163
+ # A filter to return only the specified kinds of cache policies. Valid
3164
+ # values are:
3165
+ #
3166
+ # * `managed` – Returns only the managed policies created by AWS.
3167
+ #
3168
+ # * `custom` – Returns only the custom policies created in your AWS
3169
+ # account.
3170
+ #
3171
+ # @option params [String] :marker
3172
+ # Use this field when paginating results to indicate where to begin in
3173
+ # your list of cache policies. The response includes cache policies in
3174
+ # the list that occur after the marker. To get the next page of the
3175
+ # list, set this field’s value to the value of `NextMarker` from the
3176
+ # current page’s response.
3177
+ #
3178
+ # @option params [Integer] :max_items
3179
+ # The maximum number of cache policies that you want in the response.
3180
+ #
3181
+ # @return [Types::ListCachePoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3182
+ #
3183
+ # * {Types::ListCachePoliciesResult#cache_policy_list #cache_policy_list} => Types::CachePolicyList
3184
+ #
3185
+ # @example Request syntax with placeholder values
3186
+ #
3187
+ # resp = client.list_cache_policies({
3188
+ # type: "managed", # accepts managed, custom
3189
+ # marker: "string",
3190
+ # max_items: 1,
3191
+ # })
3192
+ #
3193
+ # @example Response structure
3194
+ #
3195
+ # resp.cache_policy_list.next_marker #=> String
3196
+ # resp.cache_policy_list.max_items #=> Integer
3197
+ # resp.cache_policy_list.quantity #=> Integer
3198
+ # resp.cache_policy_list.items #=> Array
3199
+ # resp.cache_policy_list.items[0].type #=> String, one of "managed", "custom"
3200
+ # resp.cache_policy_list.items[0].cache_policy.id #=> String
3201
+ # resp.cache_policy_list.items[0].cache_policy.last_modified_time #=> Time
3202
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.comment #=> String
3203
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.name #=> String
3204
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.default_ttl #=> Integer
3205
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.max_ttl #=> Integer
3206
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.min_ttl #=> Integer
3207
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
3208
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
3209
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
3210
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
3211
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String
3212
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
3213
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer
3214
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array
3215
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String
3216
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
3217
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer
3218
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array
3219
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String
3220
+ #
3221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies2020_05_31 AWS API Documentation
3222
+ #
3223
+ # @overload list_cache_policies(params = {})
3224
+ # @param [Hash] params ({})
3225
+ def list_cache_policies(params = {}, options = {})
3226
+ req = build_request(:list_cache_policies, params)
3227
+ req.send_request(options)
3228
+ end
3229
+
2604
3230
  # Lists origin access identities.
2605
3231
  #
2606
3232
  # @option params [String] :marker
@@ -2640,7 +3266,7 @@ module Aws::CloudFront
2640
3266
  # resp.cloud_front_origin_access_identity_list.items[0].s3_canonical_user_id #=> String
2641
3267
  # resp.cloud_front_origin_access_identity_list.items[0].comment #=> String
2642
3268
  #
2643
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListCloudFrontOriginAccessIdentities2019_03_26 AWS API Documentation
3269
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities2020_05_31 AWS API Documentation
2644
3270
  #
2645
3271
  # @overload list_cloud_front_origin_access_identities(params = {})
2646
3272
  # @param [Hash] params ({})
@@ -2720,23 +3346,11 @@ module Aws::CloudFront
2720
3346
  # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array
2721
3347
  # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String
2722
3348
  # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String
2723
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
2724
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2725
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2726
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
2727
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
2728
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer
2729
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array
2730
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String
2731
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
2732
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
2733
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
2734
3349
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean
2735
3350
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer
2736
3351
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array
2737
3352
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String
2738
3353
  # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2739
- # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer
2740
3354
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer
2741
3355
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array
2742
3356
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2744,8 +3358,6 @@ module Aws::CloudFront
2744
3358
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array
2745
3359
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2746
3360
  # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean
2747
- # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer
2748
- # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer
2749
3361
  # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean
2750
3362
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer
2751
3363
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array
@@ -2753,27 +3365,31 @@ module Aws::CloudFront
2753
3365
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2754
3366
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
2755
3367
  # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
3368
+ # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
3369
+ # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
3370
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
3371
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3372
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3373
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
3374
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
3375
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer
3376
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array
3377
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String
3378
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
3379
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
3380
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
3381
+ # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer
3382
+ # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer
3383
+ # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer
2756
3384
  # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer
2757
3385
  # resp.distribution_list.items[0].cache_behaviors.items #=> Array
2758
3386
  # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String
2759
3387
  # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String
2760
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
2761
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2762
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2763
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
2764
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
2765
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
2766
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array
2767
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
2768
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
2769
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
2770
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
2771
3388
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
2772
3389
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer
2773
3390
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array
2774
3391
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String
2775
3392
  # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2776
- # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer
2777
3393
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer
2778
3394
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array
2779
3395
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2781,8 +3397,6 @@ module Aws::CloudFront
2781
3397
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
2782
3398
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2783
3399
  # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean
2784
- # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer
2785
- # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer
2786
3400
  # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
2787
3401
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
2788
3402
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -2790,6 +3404,22 @@ module Aws::CloudFront
2790
3404
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2791
3405
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2792
3406
  # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
3407
+ # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
3408
+ # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
3409
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
3410
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3411
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3412
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
3413
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
3414
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
3415
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array
3416
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
3417
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
3418
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
3419
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
3420
+ # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer
3421
+ # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer
3422
+ # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer
2793
3423
  # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer
2794
3424
  # resp.distribution_list.items[0].custom_error_responses.items #=> Array
2795
3425
  # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer
@@ -2817,7 +3447,7 @@ module Aws::CloudFront
2817
3447
  # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
2818
3448
  # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING"
2819
3449
  #
2820
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListDistributions2019_03_26 AWS API Documentation
3450
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions2020_05_31 AWS API Documentation
2821
3451
  #
2822
3452
  # @overload list_distributions(params = {})
2823
3453
  # @param [Hash] params ({})
@@ -2826,6 +3456,116 @@ module Aws::CloudFront
2826
3456
  req.send_request(options)
2827
3457
  end
2828
3458
 
3459
+ # Gets a list of distribution IDs for distributions that have a cache
3460
+ # behavior that’s associated with the specified cache policy.
3461
+ #
3462
+ # You can optionally specify the maximum number of items to receive in
3463
+ # the response. If the total number of items in the list exceeds the
3464
+ # maximum that you specify, or the default maximum, the response is
3465
+ # paginated. To get the next page of items, send a subsequent request
3466
+ # that specifies the `NextMarker` value from the current response as the
3467
+ # `Marker` value in the subsequent request.
3468
+ #
3469
+ # @option params [String] :marker
3470
+ # Use this field when paginating results to indicate where to begin in
3471
+ # your list of distribution IDs. The response includes distribution IDs
3472
+ # in the list that occur after the marker. To get the next page of the
3473
+ # list, set this field’s value to the value of `NextMarker` from the
3474
+ # current page’s response.
3475
+ #
3476
+ # @option params [Integer] :max_items
3477
+ # The maximum number of distribution IDs that you want in the response.
3478
+ #
3479
+ # @option params [required, String] :cache_policy_id
3480
+ # The ID of the cache policy whose associated distribution IDs you want
3481
+ # to list.
3482
+ #
3483
+ # @return [Types::ListDistributionsByCachePolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3484
+ #
3485
+ # * {Types::ListDistributionsByCachePolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList
3486
+ #
3487
+ # @example Request syntax with placeholder values
3488
+ #
3489
+ # resp = client.list_distributions_by_cache_policy_id({
3490
+ # marker: "string",
3491
+ # max_items: 1,
3492
+ # cache_policy_id: "string", # required
3493
+ # })
3494
+ #
3495
+ # @example Response structure
3496
+ #
3497
+ # resp.distribution_id_list.marker #=> String
3498
+ # resp.distribution_id_list.next_marker #=> String
3499
+ # resp.distribution_id_list.max_items #=> Integer
3500
+ # resp.distribution_id_list.is_truncated #=> Boolean
3501
+ # resp.distribution_id_list.quantity #=> Integer
3502
+ # resp.distribution_id_list.items #=> Array
3503
+ # resp.distribution_id_list.items[0] #=> String
3504
+ #
3505
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId2020_05_31 AWS API Documentation
3506
+ #
3507
+ # @overload list_distributions_by_cache_policy_id(params = {})
3508
+ # @param [Hash] params ({})
3509
+ def list_distributions_by_cache_policy_id(params = {}, options = {})
3510
+ req = build_request(:list_distributions_by_cache_policy_id, params)
3511
+ req.send_request(options)
3512
+ end
3513
+
3514
+ # Gets a list of distribution IDs for distributions that have a cache
3515
+ # behavior that’s associated with the specified origin request policy.
3516
+ #
3517
+ # You can optionally specify the maximum number of items to receive in
3518
+ # the response. If the total number of items in the list exceeds the
3519
+ # maximum that you specify, or the default maximum, the response is
3520
+ # paginated. To get the next page of items, send a subsequent request
3521
+ # that specifies the `NextMarker` value from the current response as the
3522
+ # `Marker` value in the subsequent request.
3523
+ #
3524
+ # @option params [String] :marker
3525
+ # Use this field when paginating results to indicate where to begin in
3526
+ # your list of distribution IDs. The response includes distribution IDs
3527
+ # in the list that occur after the marker. To get the next page of the
3528
+ # list, set this field’s value to the value of `NextMarker` from the
3529
+ # current page’s response.
3530
+ #
3531
+ # @option params [Integer] :max_items
3532
+ # The maximum number of distribution IDs that you want in the response.
3533
+ #
3534
+ # @option params [required, String] :origin_request_policy_id
3535
+ # The ID of the origin request policy whose associated distribution IDs
3536
+ # you want to list.
3537
+ #
3538
+ # @return [Types::ListDistributionsByOriginRequestPolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3539
+ #
3540
+ # * {Types::ListDistributionsByOriginRequestPolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList
3541
+ #
3542
+ # @example Request syntax with placeholder values
3543
+ #
3544
+ # resp = client.list_distributions_by_origin_request_policy_id({
3545
+ # marker: "string",
3546
+ # max_items: 1,
3547
+ # origin_request_policy_id: "string", # required
3548
+ # })
3549
+ #
3550
+ # @example Response structure
3551
+ #
3552
+ # resp.distribution_id_list.marker #=> String
3553
+ # resp.distribution_id_list.next_marker #=> String
3554
+ # resp.distribution_id_list.max_items #=> Integer
3555
+ # resp.distribution_id_list.is_truncated #=> Boolean
3556
+ # resp.distribution_id_list.quantity #=> Integer
3557
+ # resp.distribution_id_list.items #=> Array
3558
+ # resp.distribution_id_list.items[0] #=> String
3559
+ #
3560
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId2020_05_31 AWS API Documentation
3561
+ #
3562
+ # @overload list_distributions_by_origin_request_policy_id(params = {})
3563
+ # @param [Hash] params ({})
3564
+ def list_distributions_by_origin_request_policy_id(params = {}, options = {})
3565
+ req = build_request(:list_distributions_by_origin_request_policy_id, params)
3566
+ req.send_request(options)
3567
+ end
3568
+
2829
3569
  # List the distributions that are associated with a specified AWS WAF
2830
3570
  # web ACL.
2831
3571
  #
@@ -2904,23 +3644,11 @@ module Aws::CloudFront
2904
3644
  # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array
2905
3645
  # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String
2906
3646
  # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String
2907
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
2908
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2909
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2910
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
2911
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
2912
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer
2913
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array
2914
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String
2915
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
2916
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
2917
- # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
2918
3647
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean
2919
3648
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer
2920
3649
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array
2921
3650
  # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String
2922
3651
  # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2923
- # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer
2924
3652
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer
2925
3653
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array
2926
3654
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2928,8 +3656,6 @@ module Aws::CloudFront
2928
3656
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array
2929
3657
  # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2930
3658
  # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean
2931
- # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer
2932
- # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer
2933
3659
  # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean
2934
3660
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer
2935
3661
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array
@@ -2937,27 +3663,31 @@ module Aws::CloudFront
2937
3663
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2938
3664
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
2939
3665
  # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
3666
+ # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
3667
+ # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
3668
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
3669
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3670
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3671
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
3672
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
3673
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer
3674
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array
3675
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String
3676
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
3677
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
3678
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
3679
+ # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer
3680
+ # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer
3681
+ # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer
2940
3682
  # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer
2941
3683
  # resp.distribution_list.items[0].cache_behaviors.items #=> Array
2942
3684
  # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String
2943
3685
  # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String
2944
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
2945
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
2946
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
2947
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
2948
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
2949
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
2950
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array
2951
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
2952
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
2953
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
2954
- # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
2955
3686
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
2956
3687
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer
2957
3688
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array
2958
3689
  # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String
2959
3690
  # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
2960
- # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer
2961
3691
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer
2962
3692
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array
2963
3693
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -2965,15 +3695,29 @@ module Aws::CloudFront
2965
3695
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
2966
3696
  # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
2967
3697
  # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean
3698
+ # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
3699
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
3700
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
3701
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
3702
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
3703
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
3704
+ # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
3705
+ # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
3706
+ # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
3707
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
3708
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3709
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3710
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
3711
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
3712
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
3713
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array
3714
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
3715
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
3716
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
3717
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
3718
+ # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer
2968
3719
  # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer
2969
3720
  # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer
2970
- # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
2971
- # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
2972
- # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
2973
- # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
2974
- # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2975
- # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2976
- # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
2977
3721
  # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer
2978
3722
  # resp.distribution_list.items[0].custom_error_responses.items #=> Array
2979
3723
  # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer
@@ -3001,7 +3745,7 @@ module Aws::CloudFront
3001
3745
  # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
3002
3746
  # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING"
3003
3747
  #
3004
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListDistributionsByWebACLId2019_03_26 AWS API Documentation
3748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId2020_05_31 AWS API Documentation
3005
3749
  #
3006
3750
  # @overload list_distributions_by_web_acl_id(params = {})
3007
3751
  # @param [Hash] params ({})
@@ -3057,7 +3801,7 @@ module Aws::CloudFront
3057
3801
  # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
3058
3802
  # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].content_type #=> String
3059
3803
  #
3060
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListFieldLevelEncryptionConfigs2019_03_26 AWS API Documentation
3804
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs2020_05_31 AWS API Documentation
3061
3805
  #
3062
3806
  # @overload list_field_level_encryption_configs(params = {})
3063
3807
  # @param [Hash] params ({})
@@ -3109,7 +3853,7 @@ module Aws::CloudFront
3109
3853
  # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.items[0] #=> String
3110
3854
  # resp.field_level_encryption_profile_list.items[0].comment #=> String
3111
3855
  #
3112
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListFieldLevelEncryptionProfiles2019_03_26 AWS API Documentation
3856
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles2020_05_31 AWS API Documentation
3113
3857
  #
3114
3858
  # @overload list_field_level_encryption_profiles(params = {})
3115
3859
  # @param [Hash] params ({})
@@ -3163,7 +3907,7 @@ module Aws::CloudFront
3163
3907
  # resp.invalidation_list.items[0].create_time #=> Time
3164
3908
  # resp.invalidation_list.items[0].status #=> String
3165
3909
  #
3166
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListInvalidations2019_03_26 AWS API Documentation
3910
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations2020_05_31 AWS API Documentation
3167
3911
  #
3168
3912
  # @overload list_invalidations(params = {})
3169
3913
  # @param [Hash] params ({})
@@ -3172,6 +3916,84 @@ module Aws::CloudFront
3172
3916
  req.send_request(options)
3173
3917
  end
3174
3918
 
3919
+ # Gets a list of origin request policies.
3920
+ #
3921
+ # You can optionally apply a filter to return only the managed policies
3922
+ # created by AWS, or only the custom policies created in your AWS
3923
+ # account.
3924
+ #
3925
+ # You can optionally specify the maximum number of items to receive in
3926
+ # the response. If the total number of items in the list exceeds the
3927
+ # maximum that you specify, or the default maximum, the response is
3928
+ # paginated. To get the next page of items, send a subsequent request
3929
+ # that specifies the `NextMarker` value from the current response as the
3930
+ # `Marker` value in the subsequent request.
3931
+ #
3932
+ # @option params [String] :type
3933
+ # A filter to return only the specified kinds of origin request
3934
+ # policies. Valid values are:
3935
+ #
3936
+ # * `managed` – Returns only the managed policies created by AWS.
3937
+ #
3938
+ # * `custom` – Returns only the custom policies created in your AWS
3939
+ # account.
3940
+ #
3941
+ # @option params [String] :marker
3942
+ # Use this field when paginating results to indicate where to begin in
3943
+ # your list of origin request policies. The response includes origin
3944
+ # request policies in the list that occur after the marker. To get the
3945
+ # next page of the list, set this field’s value to the value of
3946
+ # `NextMarker` from the current page’s response.
3947
+ #
3948
+ # @option params [Integer] :max_items
3949
+ # The maximum number of origin request policies that you want in the
3950
+ # response.
3951
+ #
3952
+ # @return [Types::ListOriginRequestPoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3953
+ #
3954
+ # * {Types::ListOriginRequestPoliciesResult#origin_request_policy_list #origin_request_policy_list} => Types::OriginRequestPolicyList
3955
+ #
3956
+ # @example Request syntax with placeholder values
3957
+ #
3958
+ # resp = client.list_origin_request_policies({
3959
+ # type: "managed", # accepts managed, custom
3960
+ # marker: "string",
3961
+ # max_items: 1,
3962
+ # })
3963
+ #
3964
+ # @example Response structure
3965
+ #
3966
+ # resp.origin_request_policy_list.next_marker #=> String
3967
+ # resp.origin_request_policy_list.max_items #=> Integer
3968
+ # resp.origin_request_policy_list.quantity #=> Integer
3969
+ # resp.origin_request_policy_list.items #=> Array
3970
+ # resp.origin_request_policy_list.items[0].type #=> String, one of "managed", "custom"
3971
+ # resp.origin_request_policy_list.items[0].origin_request_policy.id #=> String
3972
+ # resp.origin_request_policy_list.items[0].origin_request_policy.last_modified_time #=> Time
3973
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.comment #=> String
3974
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.name #=> String
3975
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
3976
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
3977
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
3978
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
3979
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
3980
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
3981
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
3982
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
3983
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
3984
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
3985
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
3986
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
3987
+ #
3988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies2020_05_31 AWS API Documentation
3989
+ #
3990
+ # @overload list_origin_request_policies(params = {})
3991
+ # @param [Hash] params ({})
3992
+ def list_origin_request_policies(params = {}, options = {})
3993
+ req = build_request(:list_origin_request_policies, params)
3994
+ req.send_request(options)
3995
+ end
3996
+
3175
3997
  # List all public keys that have been added to CloudFront for this
3176
3998
  # account.
3177
3999
  #
@@ -3208,7 +4030,7 @@ module Aws::CloudFront
3208
4030
  # resp.public_key_list.items[0].encoded_key #=> String
3209
4031
  # resp.public_key_list.items[0].comment #=> String
3210
4032
  #
3211
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListPublicKeys2019_03_26 AWS API Documentation
4033
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys2020_05_31 AWS API Documentation
3212
4034
  #
3213
4035
  # @overload list_public_keys(params = {})
3214
4036
  # @param [Hash] params ({})
@@ -3264,7 +4086,7 @@ module Aws::CloudFront
3264
4086
  # resp.streaming_distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
3265
4087
  # resp.streaming_distribution_list.items[0].enabled #=> Boolean
3266
4088
  #
3267
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListStreamingDistributions2019_03_26 AWS API Documentation
4089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions2020_05_31 AWS API Documentation
3268
4090
  #
3269
4091
  # @overload list_streaming_distributions(params = {})
3270
4092
  # @param [Hash] params ({})
@@ -3294,7 +4116,7 @@ module Aws::CloudFront
3294
4116
  # resp.tags.items[0].key #=> String
3295
4117
  # resp.tags.items[0].value #=> String
3296
4118
  #
3297
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListTagsForResource2019_03_26 AWS API Documentation
4119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource2020_05_31 AWS API Documentation
3298
4120
  #
3299
4121
  # @overload list_tags_for_resource(params = {})
3300
4122
  # @param [Hash] params ({})
@@ -3327,7 +4149,7 @@ module Aws::CloudFront
3327
4149
  # },
3328
4150
  # })
3329
4151
  #
3330
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/TagResource2019_03_26 AWS API Documentation
4152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource2020_05_31 AWS API Documentation
3331
4153
  #
3332
4154
  # @overload tag_resource(params = {})
3333
4155
  # @param [Hash] params ({})
@@ -3355,7 +4177,7 @@ module Aws::CloudFront
3355
4177
  # },
3356
4178
  # })
3357
4179
  #
3358
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UntagResource2019_03_26 AWS API Documentation
4180
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource2020_05_31 AWS API Documentation
3359
4181
  #
3360
4182
  # @overload untag_resource(params = {})
3361
4183
  # @param [Hash] params ({})
@@ -3364,6 +4186,111 @@ module Aws::CloudFront
3364
4186
  req.send_request(options)
3365
4187
  end
3366
4188
 
4189
+ # Updates a cache policy configuration.
4190
+ #
4191
+ # When you update a cache policy configuration, all the fields are
4192
+ # updated with the values provided in the request. You cannot update
4193
+ # some fields independent of others. To update a cache policy
4194
+ # configuration:
4195
+ #
4196
+ # 1. Use `GetCachePolicyConfig` to get the current configuration.
4197
+ #
4198
+ # 2. Locally modify the fields in the cache policy configuration that
4199
+ # you want to update.
4200
+ #
4201
+ # 3. Call `UpdateCachePolicy` by providing the entire cache policy
4202
+ # configuration, including the fields that you modified and those
4203
+ # that you didn’t.
4204
+ #
4205
+ # @option params [required, Types::CachePolicyConfig] :cache_policy_config
4206
+ # A cache policy configuration.
4207
+ #
4208
+ # @option params [required, String] :id
4209
+ # The unique identifier for the cache policy that you are updating. The
4210
+ # identifier is returned in a cache behavior’s `CachePolicyId` field in
4211
+ # the response to `GetDistributionConfig`.
4212
+ #
4213
+ # @option params [String] :if_match
4214
+ # The version of the cache policy that you are updating. The version is
4215
+ # returned in the cache policy’s `ETag` field in the response to
4216
+ # `GetCachePolicyConfig`.
4217
+ #
4218
+ # @return [Types::UpdateCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4219
+ #
4220
+ # * {Types::UpdateCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy
4221
+ # * {Types::UpdateCachePolicyResult#etag #etag} => String
4222
+ #
4223
+ # @example Request syntax with placeholder values
4224
+ #
4225
+ # resp = client.update_cache_policy({
4226
+ # cache_policy_config: { # required
4227
+ # comment: "string",
4228
+ # name: "string", # required
4229
+ # default_ttl: 1,
4230
+ # max_ttl: 1,
4231
+ # min_ttl: 1, # required
4232
+ # parameters_in_cache_key_and_forwarded_to_origin: {
4233
+ # enable_accept_encoding_gzip: false, # required
4234
+ # headers_config: { # required
4235
+ # header_behavior: "none", # required, accepts none, whitelist
4236
+ # headers: {
4237
+ # quantity: 1, # required
4238
+ # items: ["string"],
4239
+ # },
4240
+ # },
4241
+ # cookies_config: { # required
4242
+ # cookie_behavior: "none", # required, accepts none, whitelist, allExcept, all
4243
+ # cookies: {
4244
+ # quantity: 1, # required
4245
+ # items: ["string"],
4246
+ # },
4247
+ # },
4248
+ # query_strings_config: { # required
4249
+ # query_string_behavior: "none", # required, accepts none, whitelist, allExcept, all
4250
+ # query_strings: {
4251
+ # quantity: 1, # required
4252
+ # items: ["string"],
4253
+ # },
4254
+ # },
4255
+ # },
4256
+ # },
4257
+ # id: "string", # required
4258
+ # if_match: "string",
4259
+ # })
4260
+ #
4261
+ # @example Response structure
4262
+ #
4263
+ # resp.cache_policy.id #=> String
4264
+ # resp.cache_policy.last_modified_time #=> Time
4265
+ # resp.cache_policy.cache_policy_config.comment #=> String
4266
+ # resp.cache_policy.cache_policy_config.name #=> String
4267
+ # resp.cache_policy.cache_policy_config.default_ttl #=> Integer
4268
+ # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
4269
+ # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
4270
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
4271
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
4272
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
4273
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
4274
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String
4275
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
4276
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer
4277
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array
4278
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String
4279
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all"
4280
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer
4281
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array
4282
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String
4283
+ # resp.etag #=> String
4284
+ #
4285
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy2020_05_31 AWS API Documentation
4286
+ #
4287
+ # @overload update_cache_policy(params = {})
4288
+ # @param [Hash] params ({})
4289
+ def update_cache_policy(params = {}, options = {})
4290
+ req = build_request(:update_cache_policy, params)
4291
+ req.send_request(options)
4292
+ end
4293
+
3367
4294
  # Update an origin access identity.
3368
4295
  #
3369
4296
  # @option params [required, Types::CloudFrontOriginAccessIdentityConfig] :cloud_front_origin_access_identity_config
@@ -3400,7 +4327,7 @@ module Aws::CloudFront
3400
4327
  # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String
3401
4328
  # resp.etag #=> String
3402
4329
  #
3403
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation
4330
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation
3404
4331
  #
3405
4332
  # @overload update_cloud_front_origin_access_identity(params = {})
3406
4333
  # @param [Hash] params ({})
@@ -3570,31 +4497,12 @@ module Aws::CloudFront
3570
4497
  # },
3571
4498
  # default_cache_behavior: { # required
3572
4499
  # target_origin_id: "string", # required
3573
- # forwarded_values: { # required
3574
- # query_string: false, # required
3575
- # cookies: { # required
3576
- # forward: "none", # required, accepts none, whitelist, all
3577
- # whitelisted_names: {
3578
- # quantity: 1, # required
3579
- # items: ["string"],
3580
- # },
3581
- # },
3582
- # headers: {
3583
- # quantity: 1, # required
3584
- # items: ["string"],
3585
- # },
3586
- # query_string_cache_keys: {
3587
- # quantity: 1, # required
3588
- # items: ["string"],
3589
- # },
3590
- # },
3591
4500
  # trusted_signers: { # required
3592
4501
  # enabled: false, # required
3593
4502
  # quantity: 1, # required
3594
4503
  # items: ["string"],
3595
4504
  # },
3596
4505
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
3597
- # min_ttl: 1, # required
3598
4506
  # allowed_methods: {
3599
4507
  # quantity: 1, # required
3600
4508
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -3604,8 +4512,6 @@ module Aws::CloudFront
3604
4512
  # },
3605
4513
  # },
3606
4514
  # smooth_streaming: false,
3607
- # default_ttl: 1,
3608
- # max_ttl: 1,
3609
4515
  # compress: false,
3610
4516
  # lambda_function_associations: {
3611
4517
  # quantity: 1, # required
@@ -3618,6 +4524,29 @@ module Aws::CloudFront
3618
4524
  # ],
3619
4525
  # },
3620
4526
  # field_level_encryption_id: "string",
4527
+ # cache_policy_id: "string",
4528
+ # origin_request_policy_id: "string",
4529
+ # forwarded_values: {
4530
+ # query_string: false, # required
4531
+ # cookies: { # required
4532
+ # forward: "none", # required, accepts none, whitelist, all
4533
+ # whitelisted_names: {
4534
+ # quantity: 1, # required
4535
+ # items: ["string"],
4536
+ # },
4537
+ # },
4538
+ # headers: {
4539
+ # quantity: 1, # required
4540
+ # items: ["string"],
4541
+ # },
4542
+ # query_string_cache_keys: {
4543
+ # quantity: 1, # required
4544
+ # items: ["string"],
4545
+ # },
4546
+ # },
4547
+ # min_ttl: 1,
4548
+ # default_ttl: 1,
4549
+ # max_ttl: 1,
3621
4550
  # },
3622
4551
  # cache_behaviors: {
3623
4552
  # quantity: 1, # required
@@ -3625,31 +4554,12 @@ module Aws::CloudFront
3625
4554
  # {
3626
4555
  # path_pattern: "string", # required
3627
4556
  # target_origin_id: "string", # required
3628
- # forwarded_values: { # required
3629
- # query_string: false, # required
3630
- # cookies: { # required
3631
- # forward: "none", # required, accepts none, whitelist, all
3632
- # whitelisted_names: {
3633
- # quantity: 1, # required
3634
- # items: ["string"],
3635
- # },
3636
- # },
3637
- # headers: {
3638
- # quantity: 1, # required
3639
- # items: ["string"],
3640
- # },
3641
- # query_string_cache_keys: {
3642
- # quantity: 1, # required
3643
- # items: ["string"],
3644
- # },
3645
- # },
3646
4557
  # trusted_signers: { # required
3647
4558
  # enabled: false, # required
3648
4559
  # quantity: 1, # required
3649
4560
  # items: ["string"],
3650
4561
  # },
3651
4562
  # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
3652
- # min_ttl: 1, # required
3653
4563
  # allowed_methods: {
3654
4564
  # quantity: 1, # required
3655
4565
  # items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
@@ -3659,8 +4569,6 @@ module Aws::CloudFront
3659
4569
  # },
3660
4570
  # },
3661
4571
  # smooth_streaming: false,
3662
- # default_ttl: 1,
3663
- # max_ttl: 1,
3664
4572
  # compress: false,
3665
4573
  # lambda_function_associations: {
3666
4574
  # quantity: 1, # required
@@ -3673,6 +4581,29 @@ module Aws::CloudFront
3673
4581
  # ],
3674
4582
  # },
3675
4583
  # field_level_encryption_id: "string",
4584
+ # cache_policy_id: "string",
4585
+ # origin_request_policy_id: "string",
4586
+ # forwarded_values: {
4587
+ # query_string: false, # required
4588
+ # cookies: { # required
4589
+ # forward: "none", # required, accepts none, whitelist, all
4590
+ # whitelisted_names: {
4591
+ # quantity: 1, # required
4592
+ # items: ["string"],
4593
+ # },
4594
+ # },
4595
+ # headers: {
4596
+ # quantity: 1, # required
4597
+ # items: ["string"],
4598
+ # },
4599
+ # query_string_cache_keys: {
4600
+ # quantity: 1, # required
4601
+ # items: ["string"],
4602
+ # },
4603
+ # },
4604
+ # min_ttl: 1,
4605
+ # default_ttl: 1,
4606
+ # max_ttl: 1,
3676
4607
  # },
3677
4608
  # ],
3678
4609
  # },
@@ -3770,23 +4701,11 @@ module Aws::CloudFront
3770
4701
  # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array
3771
4702
  # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String
3772
4703
  # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String
3773
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
3774
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3775
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3776
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
3777
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
3778
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
3779
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
3780
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
3781
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
3782
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
3783
- # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
3784
4704
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean
3785
4705
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer
3786
4706
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array
3787
4707
  # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String
3788
4708
  # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
3789
- # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
3790
4709
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer
3791
4710
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array
3792
4711
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -3794,8 +4713,6 @@ module Aws::CloudFront
3794
4713
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array
3795
4714
  # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
3796
4715
  # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean
3797
- # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
3798
- # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
3799
4716
  # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
3800
4717
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
3801
4718
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
@@ -3803,27 +4720,31 @@ module Aws::CloudFront
3803
4720
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
3804
4721
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
3805
4722
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
4723
+ # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
4724
+ # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
4725
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
4726
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
4727
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
4728
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
4729
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
4730
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer
4731
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array
4732
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String
4733
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
4734
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
4735
+ # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
4736
+ # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer
4737
+ # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer
4738
+ # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer
3806
4739
  # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
3807
4740
  # resp.distribution.distribution_config.cache_behaviors.items #=> Array
3808
4741
  # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
3809
4742
  # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
3810
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
3811
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3812
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3813
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
3814
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
3815
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
3816
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
3817
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
3818
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
3819
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
3820
- # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
3821
4743
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
3822
4744
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer
3823
4745
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array
3824
4746
  # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String
3825
4747
  # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
3826
- # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
3827
4748
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer
3828
4749
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array
3829
4750
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
@@ -3831,8 +4752,6 @@ module Aws::CloudFront
3831
4752
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
3832
4753
  # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
3833
4754
  # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean
3834
- # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
3835
- # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
3836
4755
  # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
3837
4756
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
3838
4757
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
@@ -3840,6 +4759,22 @@ module Aws::CloudFront
3840
4759
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
3841
4760
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
3842
4761
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
4762
+ # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
4763
+ # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
4764
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
4765
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
4766
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
4767
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
4768
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
4769
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
4770
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array
4771
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
4772
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
4773
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
4774
+ # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
4775
+ # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer
4776
+ # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer
4777
+ # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer
3843
4778
  # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
3844
4779
  # resp.distribution.distribution_config.custom_error_responses.items #=> Array
3845
4780
  # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
@@ -3872,7 +4807,7 @@ module Aws::CloudFront
3872
4807
  # resp.distribution.alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING"
3873
4808
  # resp.etag #=> String
3874
4809
  #
3875
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateDistribution2019_03_26 AWS API Documentation
4810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution2020_05_31 AWS API Documentation
3876
4811
  #
3877
4812
  # @overload update_distribution(params = {})
3878
4813
  # @param [Hash] params ({})
@@ -3953,7 +4888,7 @@ module Aws::CloudFront
3953
4888
  # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
3954
4889
  # resp.etag #=> String
3955
4890
  #
3956
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateFieldLevelEncryptionConfig2019_03_26 AWS API Documentation
4891
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig2020_05_31 AWS API Documentation
3957
4892
  #
3958
4893
  # @overload update_field_level_encryption_config(params = {})
3959
4894
  # @param [Hash] params ({})
@@ -4020,7 +4955,7 @@ module Aws::CloudFront
4020
4955
  # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
4021
4956
  # resp.etag #=> String
4022
4957
  #
4023
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateFieldLevelEncryptionProfile2019_03_26 AWS API Documentation
4958
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile2020_05_31 AWS API Documentation
4024
4959
  #
4025
4960
  # @overload update_field_level_encryption_profile(params = {})
4026
4961
  # @param [Hash] params ({})
@@ -4029,6 +4964,103 @@ module Aws::CloudFront
4029
4964
  req.send_request(options)
4030
4965
  end
4031
4966
 
4967
+ # Updates an origin request policy configuration.
4968
+ #
4969
+ # When you update an origin request policy configuration, all the fields
4970
+ # are updated with the values provided in the request. You cannot update
4971
+ # some fields independent of others. To update an origin request policy
4972
+ # configuration:
4973
+ #
4974
+ # 1. Use `GetOriginRequestPolicyConfig` to get the current
4975
+ # configuration.
4976
+ #
4977
+ # 2. Locally modify the fields in the origin request policy
4978
+ # configuration that you want to update.
4979
+ #
4980
+ # 3. Call `UpdateOriginRequestPolicy` by providing the entire origin
4981
+ # request policy configuration, including the fields that you
4982
+ # modified and those that you didn’t.
4983
+ #
4984
+ # @option params [required, Types::OriginRequestPolicyConfig] :origin_request_policy_config
4985
+ # An origin request policy configuration.
4986
+ #
4987
+ # @option params [required, String] :id
4988
+ # The unique identifier for the origin request policy that you are
4989
+ # updating. The identifier is returned in a cache behavior’s
4990
+ # `OriginRequestPolicyId` field in the response to
4991
+ # `GetDistributionConfig`.
4992
+ #
4993
+ # @option params [String] :if_match
4994
+ # The version of the origin request policy that you are updating. The
4995
+ # version is returned in the origin request policy’s `ETag` field in the
4996
+ # response to `GetOriginRequestPolicyConfig`.
4997
+ #
4998
+ # @return [Types::UpdateOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4999
+ #
5000
+ # * {Types::UpdateOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy
5001
+ # * {Types::UpdateOriginRequestPolicyResult#etag #etag} => String
5002
+ #
5003
+ # @example Request syntax with placeholder values
5004
+ #
5005
+ # resp = client.update_origin_request_policy({
5006
+ # origin_request_policy_config: { # required
5007
+ # comment: "string",
5008
+ # name: "string", # required
5009
+ # headers_config: { # required
5010
+ # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
5011
+ # headers: {
5012
+ # quantity: 1, # required
5013
+ # items: ["string"],
5014
+ # },
5015
+ # },
5016
+ # cookies_config: { # required
5017
+ # cookie_behavior: "none", # required, accepts none, whitelist, all
5018
+ # cookies: {
5019
+ # quantity: 1, # required
5020
+ # items: ["string"],
5021
+ # },
5022
+ # },
5023
+ # query_strings_config: { # required
5024
+ # query_string_behavior: "none", # required, accepts none, whitelist, all
5025
+ # query_strings: {
5026
+ # quantity: 1, # required
5027
+ # items: ["string"],
5028
+ # },
5029
+ # },
5030
+ # },
5031
+ # id: "string", # required
5032
+ # if_match: "string",
5033
+ # })
5034
+ #
5035
+ # @example Response structure
5036
+ #
5037
+ # resp.origin_request_policy.id #=> String
5038
+ # resp.origin_request_policy.last_modified_time #=> Time
5039
+ # resp.origin_request_policy.origin_request_policy_config.comment #=> String
5040
+ # resp.origin_request_policy.origin_request_policy_config.name #=> String
5041
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
5042
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
5043
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
5044
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
5045
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
5046
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
5047
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
5048
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
5049
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
5050
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
5051
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
5052
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
5053
+ # resp.etag #=> String
5054
+ #
5055
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy2020_05_31 AWS API Documentation
5056
+ #
5057
+ # @overload update_origin_request_policy(params = {})
5058
+ # @param [Hash] params ({})
5059
+ def update_origin_request_policy(params = {}, options = {})
5060
+ req = build_request(:update_origin_request_policy, params)
5061
+ req.send_request(options)
5062
+ end
5063
+
4032
5064
  # Update public key information. Note that the only value you can change
4033
5065
  # is the comment.
4034
5066
  #
@@ -4070,7 +5102,7 @@ module Aws::CloudFront
4070
5102
  # resp.public_key.public_key_config.comment #=> String
4071
5103
  # resp.etag #=> String
4072
5104
  #
4073
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdatePublicKey2019_03_26 AWS API Documentation
5105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey2020_05_31 AWS API Documentation
4074
5106
  #
4075
5107
  # @overload update_public_key(params = {})
4076
5108
  # @param [Hash] params ({})
@@ -4160,7 +5192,7 @@ module Aws::CloudFront
4160
5192
  # resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
4161
5193
  # resp.etag #=> String
4162
5194
  #
4163
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateStreamingDistribution2019_03_26 AWS API Documentation
5195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution2020_05_31 AWS API Documentation
4164
5196
  #
4165
5197
  # @overload update_streaming_distribution(params = {})
4166
5198
  # @param [Hash] params ({})
@@ -4182,7 +5214,7 @@ module Aws::CloudFront
4182
5214
  params: params,
4183
5215
  config: config)
4184
5216
  context[:gem_name] = 'aws-sdk-cloudfront'
4185
- context[:gem_version] = '1.34.0'
5217
+ context[:gem_version] = '1.35.0'
4186
5218
  Seahorse::Client::Request.new(handlers, context)
4187
5219
  end
4188
5220