lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.38.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.39.0

- old
+ new

@@ -604,10 +604,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -661,10 +662,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -711,11 +713,11 @@ # enabled: false, # required # viewer_certificate: { # cloud_front_default_certificate: false, # iam_certificate_id: "string", # acm_certificate_arn: "string", - # ssl_support_method: "sni-only", # accepts sni-only, vip + # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019 # certificate: "string", # certificate_source: "cloudfront", # accepts cloudfront, iam, acm # }, # restrictions: { @@ -798,10 +800,11 @@ # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -837,10 +840,11 @@ # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -869,11 +873,11 @@ # resp.distribution.distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution.distribution_config.enabled #=> Boolean # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String - # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution.distribution_config.viewer_certificate.certificate #=> String # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution.distribution_config.restrictions.geo_restriction.quantity #=> Integer @@ -1003,10 +1007,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -1060,10 +1065,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -1110,11 +1116,11 @@ # enabled: false, # required # viewer_certificate: { # cloud_front_default_certificate: false, # iam_certificate_id: "string", # acm_certificate_arn: "string", - # ssl_support_method: "sni-only", # accepts sni-only, vip + # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019 # certificate: "string", # certificate_source: "cloudfront", # accepts cloudfront, iam, acm # }, # restrictions: { @@ -1206,10 +1212,11 @@ # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -1245,10 +1252,11 @@ # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -1277,11 +1285,11 @@ # resp.distribution.distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution.distribution_config.enabled #=> Boolean # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String - # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution.distribution_config.viewer_certificate.certificate #=> String # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution.distribution_config.restrictions.geo_restriction.quantity #=> Integer @@ -1673,10 +1681,88 @@ def create_public_key(params = {}, options = {}) req = build_request(:create_public_key, params) req.send_request(options) end + # Creates a real-time log configuration. + # + # After you create a real-time log configuration, you can attach it to + # one or more cache behaviors to send real-time log data to the + # specified Amazon Kinesis data stream. + # + # For more information about real-time log configurations, see + # [Real-time logs][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html + # + # @option params [required, Array<Types::EndPoint>] :end_points + # Contains information about the Amazon Kinesis data stream where you + # are sending real-time log data. + # + # @option params [required, Array<String>] :fields + # A list of fields to include in each real-time log record. + # + # For more information about fields, see [Real-time log configuration + # fields][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields + # + # @option params [required, String] :name + # A unique name to identify this real-time log configuration. + # + # @option params [required, Integer] :sampling_rate + # The sampling rate for this real-time log configuration. The sampling + # rate determines the percentage of viewer requests that are represented + # in the real-time log data. You must provide an integer between 1 and + # 100, inclusive. + # + # @return [Types::CreateRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::CreateRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig + # + # @example Request syntax with placeholder values + # + # resp = client.create_realtime_log_config({ + # end_points: [ # required + # { + # stream_type: "string", # required + # kinesis_stream_config: { + # role_arn: "string", # required + # stream_arn: "string", # required + # }, + # }, + # ], + # fields: ["string"], # required + # name: "string", # required + # sampling_rate: 1, # required + # }) + # + # @example Response structure + # + # resp.realtime_log_config.arn #=> String + # resp.realtime_log_config.name #=> String + # resp.realtime_log_config.sampling_rate #=> Integer + # resp.realtime_log_config.end_points #=> Array + # resp.realtime_log_config.end_points[0].stream_type #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String + # resp.realtime_log_config.fields #=> Array + # resp.realtime_log_config.fields[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig2020_05_31 AWS API Documentation + # + # @overload create_realtime_log_config(params = {}) + # @param [Hash] params ({}) + def create_realtime_log_config(params = {}, options = {}) + req = build_request(:create_realtime_log_config, params) + req.send_request(options) + end + # Creates a new RTMP distribution. An RTMP distribution is similar to a # web distribution, but an RTMP distribution streams media files using # the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files # using HTTP. # @@ -2115,10 +2201,47 @@ def delete_public_key(params = {}, options = {}) req = build_request(:delete_public_key, params) req.send_request(options) end + # Deletes a real-time log configuration. + # + # You cannot delete a real-time log configuration if it’s attached to a + # cache behavior. First update your distributions to remove the + # real-time log configuration from all cache behaviors, then delete the + # real-time log configuration. + # + # To delete a real-time log configuration, you can provide the + # configuration’s name or its Amazon Resource Name (ARN). You must + # provide at least one. If you provide both, CloudFront uses the name to + # identify the real-time log configuration to delete. + # + # @option params [String] :name + # The name of the real-time log configuration to delete. + # + # @option params [String] :arn + # The Amazon Resource Name (ARN) of the real-time log configuration to + # delete. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.delete_realtime_log_config({ + # name: "string", + # arn: "string", + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig2020_05_31 AWS API Documentation + # + # @overload delete_realtime_log_config(params = {}) + # @param [Hash] params ({}) + def delete_realtime_log_config(params = {}, options = {}) + req = build_request(:delete_realtime_log_config, params) + req.send_request(options) + end + # Delete a streaming distribution. To delete an RTMP distribution using # the CloudFront API, perform the following steps. # # **To delete an RTMP distribution using the CloudFront API**\: # @@ -2456,10 +2579,11 @@ # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -2495,10 +2619,11 @@ # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -2527,11 +2652,11 @@ # resp.distribution.distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution.distribution_config.enabled #=> Boolean # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String - # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution.distribution_config.viewer_certificate.certificate #=> String # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution.distribution_config.restrictions.geo_restriction.quantity #=> Integer @@ -2630,10 +2755,11 @@ # resp.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution_config.default_cache_behavior.cache_policy_id #=> String # resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -2669,10 +2795,11 @@ # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -2701,11 +2828,11 @@ # resp.distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution_config.enabled #=> Boolean # resp.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution_config.viewer_certificate.iam_certificate_id #=> String # resp.distribution_config.viewer_certificate.acm_certificate_arn #=> String - # resp.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # resp.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019" # resp.distribution_config.viewer_certificate.certificate #=> String # resp.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution_config.restrictions.geo_restriction.quantity #=> Integer @@ -3150,10 +3277,56 @@ def get_public_key_config(params = {}, options = {}) req = build_request(:get_public_key_config, params) req.send_request(options) end + # Gets a real-time log configuration. + # + # To get a real-time log configuration, you can provide the + # configuration’s name or its Amazon Resource Name (ARN). You must + # provide at least one. If you provide both, CloudFront uses the name to + # identify the real-time log configuration to get. + # + # @option params [String] :name + # The name of the real-time log configuration to get. + # + # @option params [String] :arn + # The Amazon Resource Name (ARN) of the real-time log configuration to + # get. + # + # @return [Types::GetRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig + # + # @example Request syntax with placeholder values + # + # resp = client.get_realtime_log_config({ + # name: "string", + # arn: "string", + # }) + # + # @example Response structure + # + # resp.realtime_log_config.arn #=> String + # resp.realtime_log_config.name #=> String + # resp.realtime_log_config.sampling_rate #=> Integer + # resp.realtime_log_config.end_points #=> Array + # resp.realtime_log_config.end_points[0].stream_type #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String + # resp.realtime_log_config.fields #=> Array + # resp.realtime_log_config.fields[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig2020_05_31 AWS API Documentation + # + # @overload get_realtime_log_config(params = {}) + # @param [Hash] params ({}) + def get_realtime_log_config(params = {}, options = {}) + req = build_request(:get_realtime_log_config, params) + req.send_request(options) + end + # Gets information about a specified RTMP distribution, including the # distribution configuration. # # @option params [required, String] :id # The streaming distribution's ID. @@ -3477,10 +3650,11 @@ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -3516,10 +3690,11 @@ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -3544,11 +3719,11 @@ # resp.distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution_list.items[0].enabled #=> Boolean # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String - # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution_list.items[0].viewer_certificate.certificate #=> String # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution_list.items[0].restrictions.geo_restriction.quantity #=> Integer @@ -3678,10 +3853,214 @@ def list_distributions_by_origin_request_policy_id(params = {}, options = {}) req = build_request(:list_distributions_by_origin_request_policy_id, params) req.send_request(options) end + # Gets a list of distribution that have a cache behavior that’s + # associated with the specified real-time log configuration. + # + # You can specify the real-time log configuration by its name or its + # Amazon Resource Name (ARN). You must provide at least one. If you + # provide both, CloudFront uses the name to identify the real-time log + # configuration to list distributions for. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of distributions. The response includes distributions in the + # list that occur after the marker. To get the next page of the list, + # set this field’s value to the value of `NextMarker` from the current + # page’s response. + # + # @option params [Integer] :max_items + # The maximum number of distributions that you want in the response. + # + # @option params [String] :realtime_log_config_name + # The name of the real-time log configuration whose associated + # distributions you want to list. + # + # @option params [String] :realtime_log_config_arn + # The Amazon Resource Name (ARN) of the real-time log configuration + # whose associated distributions you want to list. + # + # @return [Types::ListDistributionsByRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListDistributionsByRealtimeLogConfigResult#distribution_list #distribution_list} => Types::DistributionList + # + # @example Request syntax with placeholder values + # + # resp = client.list_distributions_by_realtime_log_config({ + # marker: "string", + # max_items: 1, + # realtime_log_config_name: "string", + # realtime_log_config_arn: "string", + # }) + # + # @example Response structure + # + # resp.distribution_list.marker #=> String + # resp.distribution_list.next_marker #=> String + # resp.distribution_list.max_items #=> Integer + # resp.distribution_list.is_truncated #=> Boolean + # resp.distribution_list.quantity #=> Integer + # resp.distribution_list.items #=> Array + # resp.distribution_list.items[0].id #=> String + # resp.distribution_list.items[0].arn #=> String + # resp.distribution_list.items[0].status #=> String + # resp.distribution_list.items[0].last_modified_time #=> Time + # resp.distribution_list.items[0].domain_name #=> String + # resp.distribution_list.items[0].aliases.quantity #=> Integer + # resp.distribution_list.items[0].aliases.items #=> Array + # resp.distribution_list.items[0].aliases.items[0] #=> String + # resp.distribution_list.items[0].origins.quantity #=> Integer + # resp.distribution_list.items[0].origins.items #=> Array + # resp.distribution_list.items[0].origins.items[0].id #=> String + # resp.distribution_list.items[0].origins.items[0].domain_name #=> String + # resp.distribution_list.items[0].origins.items[0].origin_path #=> String + # resp.distribution_list.items[0].origins.items[0].custom_headers.quantity #=> Integer + # resp.distribution_list.items[0].origins.items[0].custom_headers.items #=> Array + # resp.distribution_list.items[0].origins.items[0].custom_headers.items[0].header_name #=> String + # resp.distribution_list.items[0].origins.items[0].custom_headers.items[0].header_value #=> String + # resp.distribution_list.items[0].origins.items[0].s3_origin_config.origin_access_identity #=> String + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.http_port #=> Integer + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.https_port #=> Integer + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_protocol_policy #=> String, one of "http-only", "match-viewer", "https-only" + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.quantity #=> Integer + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.items #=> Array + # 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" + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_read_timeout #=> Integer + # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer + # resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer + # resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer + # resp.distribution_list.items[0].origin_groups.quantity #=> Integer + # resp.distribution_list.items[0].origin_groups.items #=> Array + # resp.distribution_list.items[0].origin_groups.items[0].id #=> String + # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer + # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items #=> Array + # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer + # resp.distribution_list.items[0].origin_groups.items[0].members.quantity #=> Integer + # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array + # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" + # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String + # 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" + # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String + # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" + # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" + # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array + # 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" + # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String + # 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" + # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer + # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer + # resp.distribution_list.items[0].custom_error_responses.items #=> Array + # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer + # resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String + # resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String + # resp.distribution_list.items[0].custom_error_responses.items[0].error_caching_min_ttl #=> Integer + # resp.distribution_list.items[0].comment #=> String + # resp.distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" + # resp.distribution_list.items[0].enabled #=> Boolean + # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean + # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String + # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String + # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" + # 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" + # resp.distribution_list.items[0].viewer_certificate.certificate #=> String + # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" + # resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" + # resp.distribution_list.items[0].restrictions.geo_restriction.quantity #=> Integer + # resp.distribution_list.items[0].restrictions.geo_restriction.items #=> Array + # resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String + # resp.distribution_list.items[0].web_acl_id #=> String + # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2" + # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean + # resp.distribution_list.items[0].alias_icp_recordals #=> Array + # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String + # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig2020_05_31 AWS API Documentation + # + # @overload list_distributions_by_realtime_log_config(params = {}) + # @param [Hash] params ({}) + def list_distributions_by_realtime_log_config(params = {}, options = {}) + req = build_request(:list_distributions_by_realtime_log_config, params) + req.send_request(options) + end + # List the distributions that are associated with a specified AWS WAF # web ACL. # # @option params [String] :marker # Use `Marker` and `MaxItems` to control pagination of results. If you @@ -3775,10 +4154,11 @@ # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -3814,10 +4194,11 @@ # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -3842,11 +4223,11 @@ # resp.distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution_list.items[0].enabled #=> Boolean # resp.distribution_list.items[0].viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String # resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String - # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution_list.items[0].viewer_certificate.certificate #=> String # resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution_list.items[0].restrictions.geo_restriction.quantity #=> Integer @@ -4151,10 +4532,67 @@ def list_public_keys(params = {}, options = {}) req = build_request(:list_public_keys, params) req.send_request(options) end + # Gets a list of real-time log configurations. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [Integer] :max_items + # The maximum number of real-time log configurations that you want in + # the response. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of real-time log configurations. The response includes + # real-time log configurations in the list that occur after the marker. + # To get the next page of the list, set this field’s value to the value + # of `NextMarker` from the current page’s response. + # + # @return [Types::ListRealtimeLogConfigsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListRealtimeLogConfigsResult#realtime_log_configs #realtime_log_configs} => Types::RealtimeLogConfigs + # + # @example Request syntax with placeholder values + # + # resp = client.list_realtime_log_configs({ + # max_items: 1, + # marker: "string", + # }) + # + # @example Response structure + # + # resp.realtime_log_configs.max_items #=> Integer + # resp.realtime_log_configs.items #=> Array + # resp.realtime_log_configs.items[0].arn #=> String + # resp.realtime_log_configs.items[0].name #=> String + # resp.realtime_log_configs.items[0].sampling_rate #=> Integer + # resp.realtime_log_configs.items[0].end_points #=> Array + # resp.realtime_log_configs.items[0].end_points[0].stream_type #=> String + # resp.realtime_log_configs.items[0].end_points[0].kinesis_stream_config.role_arn #=> String + # resp.realtime_log_configs.items[0].end_points[0].kinesis_stream_config.stream_arn #=> String + # resp.realtime_log_configs.items[0].fields #=> Array + # resp.realtime_log_configs.items[0].fields[0] #=> String + # resp.realtime_log_configs.is_truncated #=> Boolean + # resp.realtime_log_configs.marker #=> String + # resp.realtime_log_configs.next_marker #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs2020_05_31 AWS API Documentation + # + # @overload list_realtime_log_configs(params = {}) + # @param [Hash] params ({}) + def list_realtime_log_configs(params = {}, options = {}) + req = build_request(:list_realtime_log_configs, params) + req.send_request(options) + end + # List streaming distributions. # # @option params [String] :marker # The value that you provided for the `Marker` request parameter. # @@ -4636,10 +5074,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -4693,10 +5132,11 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "string", + # realtime_log_config_arn: "string", # cache_policy_id: "string", # origin_request_policy_id: "string", # forwarded_values: { # query_string: false, # required # cookies: { # required @@ -4743,11 +5183,11 @@ # enabled: false, # required # viewer_certificate: { # cloud_front_default_certificate: false, # iam_certificate_id: "string", # acm_certificate_arn: "string", - # ssl_support_method: "sni-only", # accepts sni-only, vip + # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019 # certificate: "string", # certificate_source: "cloudfront", # accepts cloudfront, iam, acm # }, # restrictions: { @@ -4832,10 +5272,11 @@ # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -4871,10 +5312,11 @@ # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # 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" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer @@ -4903,11 +5345,11 @@ # resp.distribution.distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.distribution.distribution_config.enabled #=> Boolean # resp.distribution.distribution_config.viewer_certificate.cloud_front_default_certificate #=> Boolean # resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String # resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String - # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip" + # resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip" # 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" # resp.distribution.distribution_config.viewer_certificate.certificate #=> String # resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm" # resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none" # resp.distribution.distribution_config.restrictions.geo_restriction.quantity #=> Integer @@ -5223,10 +5665,98 @@ def update_public_key(params = {}, options = {}) req = build_request(:update_public_key, params) req.send_request(options) end + # Updates a real-time log configuration. + # + # When you update a real-time log configuration, all the parameters are + # updated with the values provided in the request. You cannot update + # some parameters independent of others. To update a real-time log + # configuration: + # + # 1. Call `GetRealtimeLogConfig` to get the current real-time log + # configuration. + # + # 2. Locally modify the parameters in the real-time log configuration + # that you want to update. + # + # 3. Call this API (`UpdateRealtimeLogConfig`) by providing the entire + # real-time log configuration, including the parameters that you + # modified and those that you didn’t. + # + # You cannot update a real-time log configuration’s `Name` or `ARN`. + # + # @option params [Array<Types::EndPoint>] :end_points + # Contains information about the Amazon Kinesis data stream where you + # are sending real-time log data. + # + # @option params [Array<String>] :fields + # A list of fields to include in each real-time log record. + # + # For more information about fields, see [Real-time log configuration + # fields][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields + # + # @option params [String] :name + # The name for this real-time log configuration. + # + # @option params [String] :arn + # The Amazon Resource Name (ARN) for this real-time log configuration. + # + # @option params [Integer] :sampling_rate + # The sampling rate for this real-time log configuration. The sampling + # rate determines the percentage of viewer requests that are represented + # in the real-time log data. You must provide an integer between 1 and + # 100, inclusive. + # + # @return [Types::UpdateRealtimeLogConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateRealtimeLogConfigResult#realtime_log_config #realtime_log_config} => Types::RealtimeLogConfig + # + # @example Request syntax with placeholder values + # + # resp = client.update_realtime_log_config({ + # end_points: [ + # { + # stream_type: "string", # required + # kinesis_stream_config: { + # role_arn: "string", # required + # stream_arn: "string", # required + # }, + # }, + # ], + # fields: ["string"], + # name: "string", + # arn: "string", + # sampling_rate: 1, + # }) + # + # @example Response structure + # + # resp.realtime_log_config.arn #=> String + # resp.realtime_log_config.name #=> String + # resp.realtime_log_config.sampling_rate #=> Integer + # resp.realtime_log_config.end_points #=> Array + # resp.realtime_log_config.end_points[0].stream_type #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.role_arn #=> String + # resp.realtime_log_config.end_points[0].kinesis_stream_config.stream_arn #=> String + # resp.realtime_log_config.fields #=> Array + # resp.realtime_log_config.fields[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig2020_05_31 AWS API Documentation + # + # @overload update_realtime_log_config(params = {}) + # @param [Hash] params ({}) + def update_realtime_log_config(params = {}, options = {}) + req = build_request(:update_realtime_log_config, params) + req.send_request(options) + end + # Update a streaming distribution. # # @option params [required, Types::StreamingDistributionConfig] :streaming_distribution_config # The streaming distribution's configuration information. # @@ -5326,10 +5856,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-cloudfront' - context[:gem_version] = '1.38.0' + context[:gem_version] = '1.39.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #