aws-sdk-cloudfront 1.36.1 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a5af741d1928211c3b73add0a72f52829937fec78d2c0fb48745130ad958d9e
4
- data.tar.gz: a50c48f85dbbfd8f9bafe54f9f63d5d5950c9719eb4bc46f9121e22f2f9993d3
3
+ metadata.gz: 10f16fa5b8262d31438bc6ad4af11cf128ae1c5af53efcc34db3de17c8b343c4
4
+ data.tar.gz: 35dc8fda3ed1547864b76bef4eccd6a80f1b8478179526d8cfb4b07ba1e1f96b
5
5
  SHA512:
6
- metadata.gz: e5799dfa502f5c15bab486494ab9386d57bc835b9b96b4499e32e6afd7f0d8e345fa59725da6714e82bcff95a76d98a12b449ae5293c9e13d342cc2d91be0faf
7
- data.tar.gz: 8e0a78582f8d0cb5785111d31ac77a59f2a4c4984ba8c133a8fa2930ef79016b86ff4779b1128c0902dd084bd549c5b975eb555dbc961f6ac1f4feaf7a9dd2a8
6
+ metadata.gz: cc1e4acff707670965db7bbc4102a0fc41452af75795e7349583c4f3f576557211d28450fca42c4de300ff9a39d985f1680d837fa7c207c322d0558f495812db
7
+ data.tar.gz: fcaffd7cc9f90a23dcf8fb11574b38fd6eb47feb55a3e2f93c518e29bc71b3f6ac780345e63bbdfd7e81865cf99e4483af5600997e05161f7a23379974458f36
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -45,9 +46,9 @@ require_relative 'aws-sdk-cloudfront/customizations'
45
46
  #
46
47
  # See {Errors} for more information.
47
48
  #
48
- # @service
49
+ # @!group service
49
50
  module Aws::CloudFront
50
51
 
51
- GEM_VERSION = '1.36.1'
52
+ GEM_VERSION = '1.41.0'
52
53
 
53
54
  end
@@ -85,13 +85,28 @@ module Aws::CloudFront
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CloudFront
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -331,7 +346,7 @@ module Aws::CloudFront
331
346
  # the origin. CloudFront sends a request when it can’t find an object in
332
347
  # its cache that matches the request’s cache key. If you want to send
333
348
  # values to the origin but *not* include them in the cache key, use
334
- # `CreateOriginRequestPolicy`.
349
+ # `OriginRequestPolicy`.
335
350
  #
336
351
  # For more information about cache policies, see [Controlling the cache
337
352
  # key][1] in the *Amazon CloudFront Developer Guide*.
@@ -360,6 +375,7 @@ module Aws::CloudFront
360
375
  # min_ttl: 1, # required
361
376
  # parameters_in_cache_key_and_forwarded_to_origin: {
362
377
  # enable_accept_encoding_gzip: false, # required
378
+ # enable_accept_encoding_brotli: false,
363
379
  # headers_config: { # required
364
380
  # header_behavior: "none", # required, accepts none, whitelist
365
381
  # headers: {
@@ -395,6 +411,7 @@ module Aws::CloudFront
395
411
  # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
396
412
  # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
397
413
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
414
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_brotli #=> Boolean
398
415
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
399
416
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
400
417
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
@@ -591,6 +608,7 @@ module Aws::CloudFront
591
608
  # ],
592
609
  # },
593
610
  # field_level_encryption_id: "string",
611
+ # realtime_log_config_arn: "string",
594
612
  # cache_policy_id: "string",
595
613
  # origin_request_policy_id: "string",
596
614
  # forwarded_values: {
@@ -648,6 +666,7 @@ module Aws::CloudFront
648
666
  # ],
649
667
  # },
650
668
  # field_level_encryption_id: "string",
669
+ # realtime_log_config_arn: "string",
651
670
  # cache_policy_id: "string",
652
671
  # origin_request_policy_id: "string",
653
672
  # forwarded_values: {
@@ -698,7 +717,7 @@ module Aws::CloudFront
698
717
  # cloud_front_default_certificate: false,
699
718
  # iam_certificate_id: "string",
700
719
  # acm_certificate_arn: "string",
701
- # ssl_support_method: "sni-only", # accepts sni-only, vip
720
+ # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
702
721
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
703
722
  # certificate: "string",
704
723
  # certificate_source: "cloudfront", # accepts cloudfront, iam, acm
@@ -785,6 +804,7 @@ module Aws::CloudFront
785
804
  # 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"
786
805
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
787
806
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
807
+ # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
788
808
  # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
789
809
  # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
790
810
  # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -824,6 +844,7 @@ module Aws::CloudFront
824
844
  # 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"
825
845
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
826
846
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
847
+ # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
827
848
  # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
828
849
  # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
829
850
  # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -856,7 +877,7 @@ module Aws::CloudFront
856
877
  # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean
857
878
  # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
858
879
  # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
859
- # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
880
+ # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
860
881
  # resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
861
882
  # resp.distribution.distribution_config.viewer_certificate.certificate #=> String
862
883
  # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -990,6 +1011,7 @@ module Aws::CloudFront
990
1011
  # ],
991
1012
  # },
992
1013
  # field_level_encryption_id: "string",
1014
+ # realtime_log_config_arn: "string",
993
1015
  # cache_policy_id: "string",
994
1016
  # origin_request_policy_id: "string",
995
1017
  # forwarded_values: {
@@ -1047,6 +1069,7 @@ module Aws::CloudFront
1047
1069
  # ],
1048
1070
  # },
1049
1071
  # field_level_encryption_id: "string",
1072
+ # realtime_log_config_arn: "string",
1050
1073
  # cache_policy_id: "string",
1051
1074
  # origin_request_policy_id: "string",
1052
1075
  # forwarded_values: {
@@ -1097,7 +1120,7 @@ module Aws::CloudFront
1097
1120
  # cloud_front_default_certificate: false,
1098
1121
  # iam_certificate_id: "string",
1099
1122
  # acm_certificate_arn: "string",
1100
- # ssl_support_method: "sni-only", # accepts sni-only, vip
1123
+ # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
1101
1124
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
1102
1125
  # certificate: "string",
1103
1126
  # certificate_source: "cloudfront", # accepts cloudfront, iam, acm
@@ -1193,6 +1216,7 @@ module Aws::CloudFront
1193
1216
  # 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"
1194
1217
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
1195
1218
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
1219
+ # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
1196
1220
  # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
1197
1221
  # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
1198
1222
  # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -1232,6 +1256,7 @@ module Aws::CloudFront
1232
1256
  # 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"
1233
1257
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
1234
1258
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
1259
+ # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
1235
1260
  # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
1236
1261
  # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
1237
1262
  # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -1264,7 +1289,7 @@ module Aws::CloudFront
1264
1289
  # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean
1265
1290
  # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
1266
1291
  # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
1267
- # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
1292
+ # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
1268
1293
  # resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
1269
1294
  # resp.distribution.distribution_config.viewer_certificate.certificate #=> String
1270
1295
  # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -1470,6 +1495,52 @@ module Aws::CloudFront
1470
1495
  req.send_request(options)
1471
1496
  end
1472
1497
 
1498
+ # Enables additional CloudWatch metrics for the specified CloudFront
1499
+ # distribution. The additional metrics incur an additional cost.
1500
+ #
1501
+ # For more information, see [Viewing additional CloudFront distribution
1502
+ # metrics][1] in the *Amazon CloudFront Developer Guide*.
1503
+ #
1504
+ #
1505
+ #
1506
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional
1507
+ #
1508
+ # @option params [required, String] :distribution_id
1509
+ # The ID of the distribution that you are enabling metrics for.
1510
+ #
1511
+ # @option params [required, Types::MonitoringSubscription] :monitoring_subscription
1512
+ # A monitoring subscription. This structure contains information about
1513
+ # whether additional CloudWatch metrics are enabled for a given
1514
+ # CloudFront distribution.
1515
+ #
1516
+ # @return [Types::CreateMonitoringSubscriptionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1517
+ #
1518
+ # * {Types::CreateMonitoringSubscriptionResult#monitoring_subscription #monitoring_subscription} => Types::MonitoringSubscription
1519
+ #
1520
+ # @example Request syntax with placeholder values
1521
+ #
1522
+ # resp = client.create_monitoring_subscription({
1523
+ # distribution_id: "string", # required
1524
+ # monitoring_subscription: { # required
1525
+ # realtime_metrics_subscription_config: {
1526
+ # realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
1527
+ # },
1528
+ # },
1529
+ # })
1530
+ #
1531
+ # @example Response structure
1532
+ #
1533
+ # resp.monitoring_subscription.realtime_metrics_subscription_config.realtime_metrics_subscription_status #=> String, one of "Enabled", "Disabled"
1534
+ #
1535
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription2020_05_31 AWS API Documentation
1536
+ #
1537
+ # @overload create_monitoring_subscription(params = {})
1538
+ # @param [Hash] params ({})
1539
+ def create_monitoring_subscription(params = {}, options = {})
1540
+ req = build_request(:create_monitoring_subscription, params)
1541
+ req.send_request(options)
1542
+ end
1543
+
1473
1544
  # Creates an origin request policy.
1474
1545
  #
1475
1546
  # After you create an origin request policy, you can attach it to one or
@@ -1491,8 +1562,7 @@ module Aws::CloudFront
1491
1562
  #
1492
1563
  # CloudFront sends a request when it can’t find a valid object in its
1493
1564
  # 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`.
1565
+ # origin and also include them in the cache key, use `CachePolicy`.
1496
1566
  #
1497
1567
  # For more information about origin request policies, see [Controlling
1498
1568
  # origin requests][1] in the *Amazon CloudFront Developer Guide*.
@@ -1614,6 +1684,84 @@ module Aws::CloudFront
1614
1684
  req.send_request(options)
1615
1685
  end
1616
1686
 
1687
+ # Creates a real-time log configuration.
1688
+ #
1689
+ # After you create a real-time log configuration, you can attach it to
1690
+ # one or more cache behaviors to send real-time log data to the
1691
+ # specified Amazon Kinesis data stream.
1692
+ #
1693
+ # For more information about real-time log configurations, see
1694
+ # [Real-time logs][1] in the *Amazon CloudFront Developer Guide*.
1695
+ #
1696
+ #
1697
+ #
1698
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html
1699
+ #
1700
+ # @option params [required, Array<Types::EndPoint>] :end_points
1701
+ # Contains information about the Amazon Kinesis data stream where you
1702
+ # are sending real-time log data.
1703
+ #
1704
+ # @option params [required, Array<String>] :fields
1705
+ # A list of fields to include in each real-time log record.
1706
+ #
1707
+ # For more information about fields, see [Real-time log configuration
1708
+ # fields][1] in the *Amazon CloudFront Developer Guide*.
1709
+ #
1710
+ #
1711
+ #
1712
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields
1713
+ #
1714
+ # @option params [required, String] :name
1715
+ # A unique name to identify this real-time log configuration.
1716
+ #
1717
+ # @option params [required, Integer] :sampling_rate
1718
+ # The sampling rate for this real-time log configuration. The sampling
1719
+ # rate determines the percentage of viewer requests that are represented
1720
+ # in the real-time log data. You must provide an integer between 1 and
1721
+ # 100, inclusive.
1722
+ #
1723
+ # @return [Types::CreateRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1724
+ #
1725
+ # * {Types::CreateRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig
1726
+ #
1727
+ # @example Request syntax with placeholder values
1728
+ #
1729
+ # resp = client.create_realtime_log_config({
1730
+ # end_points: [ # required
1731
+ # {
1732
+ # stream_type: "string", # required
1733
+ # kinesis_stream_config: {
1734
+ # role_arn: "string", # required
1735
+ # stream_arn: "string", # required
1736
+ # },
1737
+ # },
1738
+ # ],
1739
+ # fields: ["string"], # required
1740
+ # name: "string", # required
1741
+ # sampling_rate: 1, # required
1742
+ # })
1743
+ #
1744
+ # @example Response structure
1745
+ #
1746
+ # resp.realtime_log_config.arn #=> String
1747
+ # resp.realtime_log_config.name #=> String
1748
+ # resp.realtime_log_config.sampling_rate #=> Integer
1749
+ # resp.realtime_log_config.end_points #=> Array
1750
+ # resp.realtime_log_config.end_points[0].stream_type #=> String
1751
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String
1752
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String
1753
+ # resp.realtime_log_config.fields #=> Array
1754
+ # resp.realtime_log_config.fields[0] #=> String
1755
+ #
1756
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig2020_05_31 AWS API Documentation
1757
+ #
1758
+ # @overload create_realtime_log_config(params = {})
1759
+ # @param [Hash] params ({})
1760
+ def create_realtime_log_config(params = {}, options = {})
1761
+ req = build_request(:create_realtime_log_config, params)
1762
+ req.send_request(options)
1763
+ end
1764
+
1617
1765
  # Creates a new RTMP distribution. An RTMP distribution is similar to a
1618
1766
  # web distribution, but an RTMP distribution streams media files using
1619
1767
  # the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files
@@ -1966,6 +2114,29 @@ module Aws::CloudFront
1966
2114
  req.send_request(options)
1967
2115
  end
1968
2116
 
2117
+ # Disables additional CloudWatch metrics for the specified CloudFront
2118
+ # distribution.
2119
+ #
2120
+ # @option params [required, String] :distribution_id
2121
+ # The ID of the distribution that you are disabling metrics for.
2122
+ #
2123
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2124
+ #
2125
+ # @example Request syntax with placeholder values
2126
+ #
2127
+ # resp = client.delete_monitoring_subscription({
2128
+ # distribution_id: "string", # required
2129
+ # })
2130
+ #
2131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription2020_05_31 AWS API Documentation
2132
+ #
2133
+ # @overload delete_monitoring_subscription(params = {})
2134
+ # @param [Hash] params ({})
2135
+ def delete_monitoring_subscription(params = {}, options = {})
2136
+ req = build_request(:delete_monitoring_subscription, params)
2137
+ req.send_request(options)
2138
+ end
2139
+
1969
2140
  # Deletes an origin request policy.
1970
2141
  #
1971
2142
  # You cannot delete an origin request policy if it’s attached to any
@@ -2033,6 +2204,43 @@ module Aws::CloudFront
2033
2204
  req.send_request(options)
2034
2205
  end
2035
2206
 
2207
+ # Deletes a real-time log configuration.
2208
+ #
2209
+ # You cannot delete a real-time log configuration if it’s attached to a
2210
+ # cache behavior. First update your distributions to remove the
2211
+ # real-time log configuration from all cache behaviors, then delete the
2212
+ # real-time log configuration.
2213
+ #
2214
+ # To delete a real-time log configuration, you can provide the
2215
+ # configuration’s name or its Amazon Resource Name (ARN). You must
2216
+ # provide at least one. If you provide both, CloudFront uses the name to
2217
+ # identify the real-time log configuration to delete.
2218
+ #
2219
+ # @option params [String] :name
2220
+ # The name of the real-time log configuration to delete.
2221
+ #
2222
+ # @option params [String] :arn
2223
+ # The Amazon Resource Name (ARN) of the real-time log configuration to
2224
+ # delete.
2225
+ #
2226
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2227
+ #
2228
+ # @example Request syntax with placeholder values
2229
+ #
2230
+ # resp = client.delete_realtime_log_config({
2231
+ # name: "string",
2232
+ # arn: "string",
2233
+ # })
2234
+ #
2235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig2020_05_31 AWS API Documentation
2236
+ #
2237
+ # @overload delete_realtime_log_config(params = {})
2238
+ # @param [Hash] params ({})
2239
+ def delete_realtime_log_config(params = {}, options = {})
2240
+ req = build_request(:delete_realtime_log_config, params)
2241
+ req.send_request(options)
2242
+ end
2243
+
2036
2244
  # Delete a streaming distribution. To delete an RTMP distribution using
2037
2245
  # the CloudFront API, perform the following steps.
2038
2246
  #
@@ -2143,6 +2351,7 @@ module Aws::CloudFront
2143
2351
  # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
2144
2352
  # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
2145
2353
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
2354
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_brotli #=> Boolean
2146
2355
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
2147
2356
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
2148
2357
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
@@ -2201,6 +2410,7 @@ module Aws::CloudFront
2201
2410
  # resp.cache_policy_config.max_ttl #=> Integer
2202
2411
  # resp.cache_policy_config.min_ttl #=> Integer
2203
2412
  # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
2413
+ # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_brotli #=> Boolean
2204
2414
  # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
2205
2415
  # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
2206
2416
  # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
@@ -2374,6 +2584,7 @@ module Aws::CloudFront
2374
2584
  # 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"
2375
2585
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
2376
2586
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
2587
+ # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
2377
2588
  # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
2378
2589
  # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
2379
2590
  # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -2413,6 +2624,7 @@ module Aws::CloudFront
2413
2624
  # 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"
2414
2625
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2415
2626
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
2627
+ # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
2416
2628
  # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
2417
2629
  # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
2418
2630
  # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -2445,7 +2657,7 @@ module Aws::CloudFront
2445
2657
  # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean
2446
2658
  # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
2447
2659
  # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
2448
- # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
2660
+ # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
2449
2661
  # resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
2450
2662
  # resp.distribution.distribution_config.viewer_certificate.certificate #=> String
2451
2663
  # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -2548,6 +2760,7 @@ module Aws::CloudFront
2548
2760
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
2549
2761
  # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
2550
2762
  # resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
2763
+ # resp.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
2551
2764
  # resp.distribution_config.default_cache_behavior.cache_policy_id #=> String
2552
2765
  # resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
2553
2766
  # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -2587,6 +2800,7 @@ module Aws::CloudFront
2587
2800
  # 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"
2588
2801
  # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
2589
2802
  # resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
2803
+ # resp.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
2590
2804
  # resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
2591
2805
  # resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
2592
2806
  # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -2619,7 +2833,7 @@ module Aws::CloudFront
2619
2833
  # resp.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean
2620
2834
  # resp.distribution_config.viewer_certificate.iam_certificate_id #=> String
2621
2835
  # resp.distribution_config.viewer_certificate.acm_certificate_arn #=> String
2622
- # resp.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
2836
+ # resp.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
2623
2837
  # resp.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
2624
2838
  # resp.distribution_config.viewer_certificate.certificate #=> String
2625
2839
  # resp.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -2854,6 +3068,36 @@ module Aws::CloudFront
2854
3068
  req.send_request(options)
2855
3069
  end
2856
3070
 
3071
+ # Gets information about whether additional CloudWatch metrics are
3072
+ # enabled for the specified CloudFront distribution.
3073
+ #
3074
+ # @option params [required, String] :distribution_id
3075
+ # The ID of the distribution that you are getting metrics information
3076
+ # for.
3077
+ #
3078
+ # @return [Types::GetMonitoringSubscriptionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3079
+ #
3080
+ # * {Types::GetMonitoringSubscriptionResult#monitoring_subscription #monitoring_subscription} => Types::MonitoringSubscription
3081
+ #
3082
+ # @example Request syntax with placeholder values
3083
+ #
3084
+ # resp = client.get_monitoring_subscription({
3085
+ # distribution_id: "string", # required
3086
+ # })
3087
+ #
3088
+ # @example Response structure
3089
+ #
3090
+ # resp.monitoring_subscription.realtime_metrics_subscription_config.realtime_metrics_subscription_status #=> String, one of "Enabled", "Disabled"
3091
+ #
3092
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription2020_05_31 AWS API Documentation
3093
+ #
3094
+ # @overload get_monitoring_subscription(params = {})
3095
+ # @param [Hash] params ({})
3096
+ def get_monitoring_subscription(params = {}, options = {})
3097
+ req = build_request(:get_monitoring_subscription, params)
3098
+ req.send_request(options)
3099
+ end
3100
+
2857
3101
  # Gets an origin request policy, including the following metadata:
2858
3102
  #
2859
3103
  # * The policy’s identifier.
@@ -3038,6 +3282,52 @@ module Aws::CloudFront
3038
3282
  req.send_request(options)
3039
3283
  end
3040
3284
 
3285
+ # Gets a real-time log configuration.
3286
+ #
3287
+ # To get a real-time log configuration, you can provide the
3288
+ # configuration’s name or its Amazon Resource Name (ARN). You must
3289
+ # provide at least one. If you provide both, CloudFront uses the name to
3290
+ # identify the real-time log configuration to get.
3291
+ #
3292
+ # @option params [String] :name
3293
+ # The name of the real-time log configuration to get.
3294
+ #
3295
+ # @option params [String] :arn
3296
+ # The Amazon Resource Name (ARN) of the real-time log configuration to
3297
+ # get.
3298
+ #
3299
+ # @return [Types::GetRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3300
+ #
3301
+ # * {Types::GetRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig
3302
+ #
3303
+ # @example Request syntax with placeholder values
3304
+ #
3305
+ # resp = client.get_realtime_log_config({
3306
+ # name: "string",
3307
+ # arn: "string",
3308
+ # })
3309
+ #
3310
+ # @example Response structure
3311
+ #
3312
+ # resp.realtime_log_config.arn #=> String
3313
+ # resp.realtime_log_config.name #=> String
3314
+ # resp.realtime_log_config.sampling_rate #=> Integer
3315
+ # resp.realtime_log_config.end_points #=> Array
3316
+ # resp.realtime_log_config.end_points[0].stream_type #=> String
3317
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String
3318
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String
3319
+ # resp.realtime_log_config.fields #=> Array
3320
+ # resp.realtime_log_config.fields[0] #=> String
3321
+ #
3322
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig2020_05_31 AWS API Documentation
3323
+ #
3324
+ # @overload get_realtime_log_config(params = {})
3325
+ # @param [Hash] params ({})
3326
+ def get_realtime_log_config(params = {}, options = {})
3327
+ req = build_request(:get_realtime_log_config, params)
3328
+ req.send_request(options)
3329
+ end
3330
+
3041
3331
  # Gets information about a specified RTMP distribution, including the
3042
3332
  # distribution configuration.
3043
3333
  #
@@ -3205,6 +3495,7 @@ module Aws::CloudFront
3205
3495
  # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.max_ttl #=> Integer
3206
3496
  # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.min_ttl #=> Integer
3207
3497
  # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
3498
+ # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_brotli #=> Boolean
3208
3499
  # 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
3500
  # 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
3501
  # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
@@ -3365,6 +3656,7 @@ module Aws::CloudFront
3365
3656
  # 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"
3366
3657
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
3367
3658
  # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
3659
+ # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
3368
3660
  # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
3369
3661
  # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
3370
3662
  # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -3404,6 +3696,7 @@ module Aws::CloudFront
3404
3696
  # 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"
3405
3697
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
3406
3698
  # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
3699
+ # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
3407
3700
  # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
3408
3701
  # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
3409
3702
  # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -3432,7 +3725,7 @@ module Aws::CloudFront
3432
3725
  # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean
3433
3726
  # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
3434
3727
  # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
3435
- # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
3728
+ # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
3436
3729
  # resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
3437
3730
  # resp.distribution_list.items[0].viewer_certificate.certificate #=> String
3438
3731
  # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -3566,6 +3859,210 @@ module Aws::CloudFront
3566
3859
  req.send_request(options)
3567
3860
  end
3568
3861
 
3862
+ # Gets a list of distributions that have a cache behavior that’s
3863
+ # associated with the specified real-time log configuration.
3864
+ #
3865
+ # You can specify the real-time log configuration by its name or its
3866
+ # Amazon Resource Name (ARN). You must provide at least one. If you
3867
+ # provide both, CloudFront uses the name to identify the real-time log
3868
+ # configuration to list distributions for.
3869
+ #
3870
+ # You can optionally specify the maximum number of items to receive in
3871
+ # the response. If the total number of items in the list exceeds the
3872
+ # maximum that you specify, or the default maximum, the response is
3873
+ # paginated. To get the next page of items, send a subsequent request
3874
+ # that specifies the `NextMarker` value from the current response as the
3875
+ # `Marker` value in the subsequent request.
3876
+ #
3877
+ # @option params [String] :marker
3878
+ # Use this field when paginating results to indicate where to begin in
3879
+ # your list of distributions. The response includes distributions in the
3880
+ # list that occur after the marker. To get the next page of the list,
3881
+ # set this field’s value to the value of `NextMarker` from the current
3882
+ # page’s response.
3883
+ #
3884
+ # @option params [Integer] :max_items
3885
+ # The maximum number of distributions that you want in the response.
3886
+ #
3887
+ # @option params [String] :realtime_log_config_name
3888
+ # The name of the real-time log configuration whose associated
3889
+ # distributions you want to list.
3890
+ #
3891
+ # @option params [String] :realtime_log_config_arn
3892
+ # The Amazon Resource Name (ARN) of the real-time log configuration
3893
+ # whose associated distributions you want to list.
3894
+ #
3895
+ # @return [Types::ListDistributionsByRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3896
+ #
3897
+ # * {Types::ListDistributionsByRealtimeLogConfigResult#distribution_list #distribution_list} => Types::DistributionList
3898
+ #
3899
+ # @example Request syntax with placeholder values
3900
+ #
3901
+ # resp = client.list_distributions_by_realtime_log_config({
3902
+ # marker: "string",
3903
+ # max_items: 1,
3904
+ # realtime_log_config_name: "string",
3905
+ # realtime_log_config_arn: "string",
3906
+ # })
3907
+ #
3908
+ # @example Response structure
3909
+ #
3910
+ # resp.distribution_list.marker #=> String
3911
+ # resp.distribution_list.next_marker #=> String
3912
+ # resp.distribution_list.max_items #=> Integer
3913
+ # resp.distribution_list.is_truncated #=> Boolean
3914
+ # resp.distribution_list.quantity #=> Integer
3915
+ # resp.distribution_list.items #=> Array
3916
+ # resp.distribution_list.items[0].id #=> String
3917
+ # resp.distribution_list.items[0].arn #=> String
3918
+ # resp.distribution_list.items[0].status #=> String
3919
+ # resp.distribution_list.items[0].last_modified_time #=> Time
3920
+ # resp.distribution_list.items[0].domain_name #=> String
3921
+ # resp.distribution_list.items[0].aliases.quantity #=> Integer
3922
+ # resp.distribution_list.items[0].aliases.items #=> Array
3923
+ # resp.distribution_list.items[0].aliases.items[0] #=> String
3924
+ # resp.distribution_list.items[0].origins.quantity #=> Integer
3925
+ # resp.distribution_list.items[0].origins.items #=> Array
3926
+ # resp.distribution_list.items[0].origins.items[0].id #=> String
3927
+ # resp.distribution_list.items[0].origins.items[0].domain_name #=> String
3928
+ # resp.distribution_list.items[0].origins.items[0].origin_path #=> String
3929
+ # resp.distribution_list.items[0].origins.items[0].custom_headers.quantity #=> Integer
3930
+ # resp.distribution_list.items[0].origins.items[0].custom_headers.items #=> Array
3931
+ # resp.distribution_list.items[0].origins.items[0].custom_headers.items[0].header_name #=> String
3932
+ # resp.distribution_list.items[0].origins.items[0].custom_headers.items[0].header_value #=> String
3933
+ # resp.distribution_list.items[0].origins.items[0].s3_origin_config.origin_access_identity #=> String
3934
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.http_port #=> Integer
3935
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.https_port #=> Integer
3936
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_protocol_policy #=> String, one of "http-only", "match-viewer", "https-only"
3937
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.quantity #=> Integer
3938
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.items #=> Array
3939
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
3940
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
3941
+ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
3942
+ # resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer
3943
+ # resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer
3944
+ # resp.distribution_list.items[0].origin_groups.quantity #=> Integer
3945
+ # resp.distribution_list.items[0].origin_groups.items #=> Array
3946
+ # resp.distribution_list.items[0].origin_groups.items[0].id #=> String
3947
+ # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer
3948
+ # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items #=> Array
3949
+ # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer
3950
+ # resp.distribution_list.items[0].origin_groups.items[0].members.quantity #=> Integer
3951
+ # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array
3952
+ # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String
3953
+ # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String
3954
+ # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean
3955
+ # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer
3956
+ # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array
3957
+ # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String
3958
+ # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
3959
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer
3960
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array
3961
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
3962
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer
3963
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array
3964
+ # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
3965
+ # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean
3966
+ # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean
3967
+ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer
3968
+ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array
3969
+ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
3970
+ # 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"
3971
+ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
3972
+ # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
3973
+ # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
3974
+ # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
3975
+ # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
3976
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
3977
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
3978
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
3979
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array
3980
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String
3981
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer
3982
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array
3983
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String
3984
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer
3985
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array
3986
+ # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String
3987
+ # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer
3988
+ # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer
3989
+ # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer
3990
+ # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer
3991
+ # resp.distribution_list.items[0].cache_behaviors.items #=> Array
3992
+ # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String
3993
+ # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String
3994
+ # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean
3995
+ # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer
3996
+ # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array
3997
+ # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String
3998
+ # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https"
3999
+ # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer
4000
+ # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array
4001
+ # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"
4002
+ # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer
4003
+ # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array
4004
+ # 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"
4005
+ # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean
4006
+ # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
4007
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
4008
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
4009
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
4010
+ # 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"
4011
+ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
4012
+ # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
4013
+ # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
4014
+ # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
4015
+ # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
4016
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
4017
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
4018
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
4019
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array
4020
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String
4021
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer
4022
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array
4023
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String
4024
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer
4025
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array
4026
+ # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String
4027
+ # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer
4028
+ # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer
4029
+ # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer
4030
+ # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer
4031
+ # resp.distribution_list.items[0].custom_error_responses.items #=> Array
4032
+ # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer
4033
+ # resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String
4034
+ # resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String
4035
+ # resp.distribution_list.items[0].custom_error_responses.items[0].error_caching_min_ttl #=> Integer
4036
+ # resp.distribution_list.items[0].comment #=> String
4037
+ # resp.distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
4038
+ # resp.distribution_list.items[0].enabled #=> Boolean
4039
+ # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean
4040
+ # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
4041
+ # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
4042
+ # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
4043
+ # resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
4044
+ # resp.distribution_list.items[0].viewer_certificate.certificate #=> String
4045
+ # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
4046
+ # resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
4047
+ # resp.distribution_list.items[0].restrictions.geo_restriction.quantity #=> Integer
4048
+ # resp.distribution_list.items[0].restrictions.geo_restriction.items #=> Array
4049
+ # resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
4050
+ # resp.distribution_list.items[0].web_acl_id #=> String
4051
+ # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
4052
+ # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
4053
+ # resp.distribution_list.items[0].alias_icp_recordals #=> Array
4054
+ # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
4055
+ # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING"
4056
+ #
4057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig2020_05_31 AWS API Documentation
4058
+ #
4059
+ # @overload list_distributions_by_realtime_log_config(params = {})
4060
+ # @param [Hash] params ({})
4061
+ def list_distributions_by_realtime_log_config(params = {}, options = {})
4062
+ req = build_request(:list_distributions_by_realtime_log_config, params)
4063
+ req.send_request(options)
4064
+ end
4065
+
3569
4066
  # List the distributions that are associated with a specified AWS WAF
3570
4067
  # web ACL.
3571
4068
  #
@@ -3663,6 +4160,7 @@ module Aws::CloudFront
3663
4160
  # 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"
3664
4161
  # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
3665
4162
  # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
4163
+ # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
3666
4164
  # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
3667
4165
  # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
3668
4166
  # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -3702,6 +4200,7 @@ module Aws::CloudFront
3702
4200
  # 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
4201
  # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
3704
4202
  # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
4203
+ # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
3705
4204
  # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
3706
4205
  # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
3707
4206
  # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -3730,7 +4229,7 @@ module Aws::CloudFront
3730
4229
  # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean
3731
4230
  # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
3732
4231
  # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
3733
- # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
4232
+ # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
3734
4233
  # resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
3735
4234
  # resp.distribution_list.items[0].viewer_certificate.certificate #=> String
3736
4235
  # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -4039,6 +4538,63 @@ module Aws::CloudFront
4039
4538
  req.send_request(options)
4040
4539
  end
4041
4540
 
4541
+ # Gets a list of real-time log configurations.
4542
+ #
4543
+ # You can optionally specify the maximum number of items to receive in
4544
+ # the response. If the total number of items in the list exceeds the
4545
+ # maximum that you specify, or the default maximum, the response is
4546
+ # paginated. To get the next page of items, send a subsequent request
4547
+ # that specifies the `NextMarker` value from the current response as the
4548
+ # `Marker` value in the subsequent request.
4549
+ #
4550
+ # @option params [Integer] :max_items
4551
+ # The maximum number of real-time log configurations that you want in
4552
+ # the response.
4553
+ #
4554
+ # @option params [String] :marker
4555
+ # Use this field when paginating results to indicate where to begin in
4556
+ # your list of real-time log configurations. The response includes
4557
+ # real-time log configurations in the list that occur after the marker.
4558
+ # To get the next page of the list, set this field’s value to the value
4559
+ # of `NextMarker` from the current page’s response.
4560
+ #
4561
+ # @return [Types::ListRealtimeLogConfigsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4562
+ #
4563
+ # * {Types::ListRealtimeLogConfigsResult#realtime_log_configs #realtime_log_configs} => Types::RealtimeLogConfigs
4564
+ #
4565
+ # @example Request syntax with placeholder values
4566
+ #
4567
+ # resp = client.list_realtime_log_configs({
4568
+ # max_items: 1,
4569
+ # marker: "string",
4570
+ # })
4571
+ #
4572
+ # @example Response structure
4573
+ #
4574
+ # resp.realtime_log_configs.max_items #=> Integer
4575
+ # resp.realtime_log_configs.items #=> Array
4576
+ # resp.realtime_log_configs.items[0].arn #=> String
4577
+ # resp.realtime_log_configs.items[0].name #=> String
4578
+ # resp.realtime_log_configs.items[0].sampling_rate #=> Integer
4579
+ # resp.realtime_log_configs.items[0].end_points #=> Array
4580
+ # resp.realtime_log_configs.items[0].end_points[0].stream_type #=> String
4581
+ # resp.realtime_log_configs.items[0].end_points[0].kinesis_stream_config.role_arn #=> String
4582
+ # resp.realtime_log_configs.items[0].end_points[0].kinesis_stream_config.stream_arn #=> String
4583
+ # resp.realtime_log_configs.items[0].fields #=> Array
4584
+ # resp.realtime_log_configs.items[0].fields[0] #=> String
4585
+ # resp.realtime_log_configs.is_truncated #=> Boolean
4586
+ # resp.realtime_log_configs.marker #=> String
4587
+ # resp.realtime_log_configs.next_marker #=> String
4588
+ #
4589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs2020_05_31 AWS API Documentation
4590
+ #
4591
+ # @overload list_realtime_log_configs(params = {})
4592
+ # @param [Hash] params ({})
4593
+ def list_realtime_log_configs(params = {}, options = {})
4594
+ req = build_request(:list_realtime_log_configs, params)
4595
+ req.send_request(options)
4596
+ end
4597
+
4042
4598
  # List streaming distributions.
4043
4599
  #
4044
4600
  # @option params [String] :marker
@@ -4231,6 +4787,7 @@ module Aws::CloudFront
4231
4787
  # min_ttl: 1, # required
4232
4788
  # parameters_in_cache_key_and_forwarded_to_origin: {
4233
4789
  # enable_accept_encoding_gzip: false, # required
4790
+ # enable_accept_encoding_brotli: false,
4234
4791
  # headers_config: { # required
4235
4792
  # header_behavior: "none", # required, accepts none, whitelist
4236
4793
  # headers: {
@@ -4268,6 +4825,7 @@ module Aws::CloudFront
4268
4825
  # resp.cache_policy.cache_policy_config.max_ttl #=> Integer
4269
4826
  # resp.cache_policy.cache_policy_config.min_ttl #=> Integer
4270
4827
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean
4828
+ # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_brotli #=> Boolean
4271
4829
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist"
4272
4830
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer
4273
4831
  # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array
@@ -4524,6 +5082,7 @@ module Aws::CloudFront
4524
5082
  # ],
4525
5083
  # },
4526
5084
  # field_level_encryption_id: "string",
5085
+ # realtime_log_config_arn: "string",
4527
5086
  # cache_policy_id: "string",
4528
5087
  # origin_request_policy_id: "string",
4529
5088
  # forwarded_values: {
@@ -4581,6 +5140,7 @@ module Aws::CloudFront
4581
5140
  # ],
4582
5141
  # },
4583
5142
  # field_level_encryption_id: "string",
5143
+ # realtime_log_config_arn: "string",
4584
5144
  # cache_policy_id: "string",
4585
5145
  # origin_request_policy_id: "string",
4586
5146
  # forwarded_values: {
@@ -4631,7 +5191,7 @@ module Aws::CloudFront
4631
5191
  # cloud_front_default_certificate: false,
4632
5192
  # iam_certificate_id: "string",
4633
5193
  # acm_certificate_arn: "string",
4634
- # ssl_support_method: "sni-only", # accepts sni-only, vip
5194
+ # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
4635
5195
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
4636
5196
  # certificate: "string",
4637
5197
  # certificate_source: "cloudfront", # accepts cloudfront, iam, acm
@@ -4720,6 +5280,7 @@ module Aws::CloudFront
4720
5280
  # 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"
4721
5281
  # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
4722
5282
  # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
5283
+ # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
4723
5284
  # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
4724
5285
  # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
4725
5286
  # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
@@ -4759,6 +5320,7 @@ module Aws::CloudFront
4759
5320
  # 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"
4760
5321
  # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
4761
5322
  # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
5323
+ # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
4762
5324
  # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
4763
5325
  # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
4764
5326
  # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -4791,7 +5353,7 @@ module Aws::CloudFront
4791
5353
  # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean
4792
5354
  # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
4793
5355
  # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
4794
- # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip"
5356
+ # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
4795
5357
  # resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
4796
5358
  # resp.distribution.distribution_config.viewer_certificate.certificate #=> String
4797
5359
  # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
@@ -5111,6 +5673,94 @@ module Aws::CloudFront
5111
5673
  req.send_request(options)
5112
5674
  end
5113
5675
 
5676
+ # Updates a real-time log configuration.
5677
+ #
5678
+ # When you update a real-time log configuration, all the parameters are
5679
+ # updated with the values provided in the request. You cannot update
5680
+ # some parameters independent of others. To update a real-time log
5681
+ # configuration:
5682
+ #
5683
+ # 1. Call `GetRealtimeLogConfig` to get the current real-time log
5684
+ # configuration.
5685
+ #
5686
+ # 2. Locally modify the parameters in the real-time log configuration
5687
+ # that you want to update.
5688
+ #
5689
+ # 3. Call this API (`UpdateRealtimeLogConfig`) by providing the entire
5690
+ # real-time log configuration, including the parameters that you
5691
+ # modified and those that you didn’t.
5692
+ #
5693
+ # You cannot update a real-time log configuration’s `Name` or `ARN`.
5694
+ #
5695
+ # @option params [Array<Types::EndPoint>] :end_points
5696
+ # Contains information about the Amazon Kinesis data stream where you
5697
+ # are sending real-time log data.
5698
+ #
5699
+ # @option params [Array<String>] :fields
5700
+ # A list of fields to include in each real-time log record.
5701
+ #
5702
+ # For more information about fields, see [Real-time log configuration
5703
+ # fields][1] in the *Amazon CloudFront Developer Guide*.
5704
+ #
5705
+ #
5706
+ #
5707
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields
5708
+ #
5709
+ # @option params [String] :name
5710
+ # The name for this real-time log configuration.
5711
+ #
5712
+ # @option params [String] :arn
5713
+ # The Amazon Resource Name (ARN) for this real-time log configuration.
5714
+ #
5715
+ # @option params [Integer] :sampling_rate
5716
+ # The sampling rate for this real-time log configuration. The sampling
5717
+ # rate determines the percentage of viewer requests that are represented
5718
+ # in the real-time log data. You must provide an integer between 1 and
5719
+ # 100, inclusive.
5720
+ #
5721
+ # @return [Types::UpdateRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5722
+ #
5723
+ # * {Types::UpdateRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig
5724
+ #
5725
+ # @example Request syntax with placeholder values
5726
+ #
5727
+ # resp = client.update_realtime_log_config({
5728
+ # end_points: [
5729
+ # {
5730
+ # stream_type: "string", # required
5731
+ # kinesis_stream_config: {
5732
+ # role_arn: "string", # required
5733
+ # stream_arn: "string", # required
5734
+ # },
5735
+ # },
5736
+ # ],
5737
+ # fields: ["string"],
5738
+ # name: "string",
5739
+ # arn: "string",
5740
+ # sampling_rate: 1,
5741
+ # })
5742
+ #
5743
+ # @example Response structure
5744
+ #
5745
+ # resp.realtime_log_config.arn #=> String
5746
+ # resp.realtime_log_config.name #=> String
5747
+ # resp.realtime_log_config.sampling_rate #=> Integer
5748
+ # resp.realtime_log_config.end_points #=> Array
5749
+ # resp.realtime_log_config.end_points[0].stream_type #=> String
5750
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String
5751
+ # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String
5752
+ # resp.realtime_log_config.fields #=> Array
5753
+ # resp.realtime_log_config.fields[0] #=> String
5754
+ #
5755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig2020_05_31 AWS API Documentation
5756
+ #
5757
+ # @overload update_realtime_log_config(params = {})
5758
+ # @param [Hash] params ({})
5759
+ def update_realtime_log_config(params = {}, options = {})
5760
+ req = build_request(:update_realtime_log_config, params)
5761
+ req.send_request(options)
5762
+ end
5763
+
5114
5764
  # Update a streaming distribution.
5115
5765
  #
5116
5766
  # @option params [required, Types::StreamingDistributionConfig] :streaming_distribution_config
@@ -5214,7 +5864,7 @@ module Aws::CloudFront
5214
5864
  params: params,
5215
5865
  config: config)
5216
5866
  context[:gem_name] = 'aws-sdk-cloudfront'
5217
- context[:gem_version] = '1.36.1'
5867
+ context[:gem_version] = '1.41.0'
5218
5868
  Seahorse::Client::Request.new(handlers, context)
5219
5869
  end
5220
5870