aws-sdk-cloudfront 1.37.0 → 1.38.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: a7afc43069fedbfca896a1f22a2e6e4f0eda693861507308e2c5982eaf6a9ac2
4
- data.tar.gz: 524e959205d0260e9ca08f18322a89a93025dc2045cc8a8d8b8fb6abc515b3d9
3
+ metadata.gz: 80f91c775fc7695451e46b1afd60d6a3d9a21274478e34cdf73702dadc861a9e
4
+ data.tar.gz: 5aba3807cab92b727132024c6f92341ade514707049be67ed775904652127145
5
5
  SHA512:
6
- metadata.gz: 6ebc4df02084c7303a99d495674f14c077c5c541f58e2319bc5ccc0a329f9fc3a1444307324ea343d22137e832c717675d0313137be61c8e2dd9f8ee26eea66e
7
- data.tar.gz: a065392769bcdd71c3141aa692032c62a505793a5fe612dff2aeb97d6a5543ca3555b2dbd387ef3cf3bbcd2aa38068cada6785d0bb07556737f365efe9c8c649
6
+ metadata.gz: 0a0ac288aa8b402ddb79a5b2418d5c0d773df25d47100e87895ef36b781870f782325fe11c4604f2692f4fe746dd30c1162ce1749cdb76c70434348e64362627
7
+ data.tar.gz: 1dec6fc46bf4803791f888f6516cc9cb0e01b317a29e05e69edc011c8200a265f26f2900ff6e95fa9047de9aa8ab9f246c65dffa8a8a3bf15e060af8dcb42983
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudFront
50
50
 
51
- GEM_VERSION = '1.37.0'
51
+ GEM_VERSION = '1.38.0'
52
52
 
53
53
  end
@@ -1485,6 +1485,52 @@ module Aws::CloudFront
1485
1485
  req.send_request(options)
1486
1486
  end
1487
1487
 
1488
+ # Enables additional CloudWatch metrics for the specified CloudFront
1489
+ # distribution. The additional metrics incur an additional cost.
1490
+ #
1491
+ # For more information, see [Viewing additional CloudFront distribution
1492
+ # metrics][1] in the *Amazon CloudFront Developer Guide*.
1493
+ #
1494
+ #
1495
+ #
1496
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional
1497
+ #
1498
+ # @option params [required, String] :distribution_id
1499
+ # The ID of the distribution that you are enabling metrics for.
1500
+ #
1501
+ # @option params [required, Types::MonitoringSubscription] :monitoring_subscription
1502
+ # A monitoring subscription. This structure contains information about
1503
+ # whether additional CloudWatch metrics are enabled for a given
1504
+ # CloudFront distribution.
1505
+ #
1506
+ # @return [Types::CreateMonitoringSubscriptionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1507
+ #
1508
+ # * {Types::CreateMonitoringSubscriptionResult#monitoring_subscription #monitoring_subscription} => Types::MonitoringSubscription
1509
+ #
1510
+ # @example Request syntax with placeholder values
1511
+ #
1512
+ # resp = client.create_monitoring_subscription({
1513
+ # distribution_id: "string", # required
1514
+ # monitoring_subscription: { # required
1515
+ # realtime_metrics_subscription_config: {
1516
+ # realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
1517
+ # },
1518
+ # },
1519
+ # })
1520
+ #
1521
+ # @example Response structure
1522
+ #
1523
+ # resp.monitoring_subscription.realtime_metrics_subscription_config.realtime_metrics_subscription_status #=> String, one of "Enabled", "Disabled"
1524
+ #
1525
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription2020_05_31 AWS API Documentation
1526
+ #
1527
+ # @overload create_monitoring_subscription(params = {})
1528
+ # @param [Hash] params ({})
1529
+ def create_monitoring_subscription(params = {}, options = {})
1530
+ req = build_request(:create_monitoring_subscription, params)
1531
+ req.send_request(options)
1532
+ end
1533
+
1488
1534
  # Creates an origin request policy.
1489
1535
  #
1490
1536
  # After you create an origin request policy, you can attach it to one or
@@ -1981,6 +2027,29 @@ module Aws::CloudFront
1981
2027
  req.send_request(options)
1982
2028
  end
1983
2029
 
2030
+ # Disables additional CloudWatch metrics for the specified CloudFront
2031
+ # distribution.
2032
+ #
2033
+ # @option params [required, String] :distribution_id
2034
+ # The ID of the distribution that you are disabling metrics for.
2035
+ #
2036
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2037
+ #
2038
+ # @example Request syntax with placeholder values
2039
+ #
2040
+ # resp = client.delete_monitoring_subscription({
2041
+ # distribution_id: "string", # required
2042
+ # })
2043
+ #
2044
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription2020_05_31 AWS API Documentation
2045
+ #
2046
+ # @overload delete_monitoring_subscription(params = {})
2047
+ # @param [Hash] params ({})
2048
+ def delete_monitoring_subscription(params = {}, options = {})
2049
+ req = build_request(:delete_monitoring_subscription, params)
2050
+ req.send_request(options)
2051
+ end
2052
+
1984
2053
  # Deletes an origin request policy.
1985
2054
  #
1986
2055
  # You cannot delete an origin request policy if it’s attached to any
@@ -2869,6 +2938,36 @@ module Aws::CloudFront
2869
2938
  req.send_request(options)
2870
2939
  end
2871
2940
 
2941
+ # Gets information about whether additional CloudWatch metrics are
2942
+ # enabled for the specified CloudFront distribution.
2943
+ #
2944
+ # @option params [required, String] :distribution_id
2945
+ # The ID of the distribution that you are getting metrics information
2946
+ # for.
2947
+ #
2948
+ # @return [Types::GetMonitoringSubscriptionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2949
+ #
2950
+ # * {Types::GetMonitoringSubscriptionResult#monitoring_subscription #monitoring_subscription} => Types::MonitoringSubscription
2951
+ #
2952
+ # @example Request syntax with placeholder values
2953
+ #
2954
+ # resp = client.get_monitoring_subscription({
2955
+ # distribution_id: "string", # required
2956
+ # })
2957
+ #
2958
+ # @example Response structure
2959
+ #
2960
+ # resp.monitoring_subscription.realtime_metrics_subscription_config.realtime_metrics_subscription_status #=> String, one of "Enabled", "Disabled"
2961
+ #
2962
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription2020_05_31 AWS API Documentation
2963
+ #
2964
+ # @overload get_monitoring_subscription(params = {})
2965
+ # @param [Hash] params ({})
2966
+ def get_monitoring_subscription(params = {}, options = {})
2967
+ req = build_request(:get_monitoring_subscription, params)
2968
+ req.send_request(options)
2969
+ end
2970
+
2872
2971
  # Gets an origin request policy, including the following metadata:
2873
2972
  #
2874
2973
  # * The policy’s identifier.
@@ -5229,7 +5328,7 @@ module Aws::CloudFront
5229
5328
  params: params,
5230
5329
  config: config)
5231
5330
  context[:gem_name] = 'aws-sdk-cloudfront'
5232
- context[:gem_version] = '1.37.0'
5331
+ context[:gem_version] = '1.38.0'
5233
5332
  Seahorse::Client::Request.new(handlers, context)
5234
5333
  end
5235
5334
 
@@ -72,6 +72,8 @@ module Aws::CloudFront
72
72
  CreateFieldLevelEncryptionProfileResult = Shapes::StructureShape.new(name: 'CreateFieldLevelEncryptionProfileResult')
73
73
  CreateInvalidationRequest = Shapes::StructureShape.new(name: 'CreateInvalidationRequest')
74
74
  CreateInvalidationResult = Shapes::StructureShape.new(name: 'CreateInvalidationResult')
75
+ CreateMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'CreateMonitoringSubscriptionRequest')
76
+ CreateMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'CreateMonitoringSubscriptionResult')
75
77
  CreateOriginRequestPolicyRequest = Shapes::StructureShape.new(name: 'CreateOriginRequestPolicyRequest')
76
78
  CreateOriginRequestPolicyResult = Shapes::StructureShape.new(name: 'CreateOriginRequestPolicyResult')
77
79
  CreatePublicKeyRequest = Shapes::StructureShape.new(name: 'CreatePublicKeyRequest')
@@ -91,6 +93,8 @@ module Aws::CloudFront
91
93
  DeleteDistributionRequest = Shapes::StructureShape.new(name: 'DeleteDistributionRequest')
92
94
  DeleteFieldLevelEncryptionConfigRequest = Shapes::StructureShape.new(name: 'DeleteFieldLevelEncryptionConfigRequest')
93
95
  DeleteFieldLevelEncryptionProfileRequest = Shapes::StructureShape.new(name: 'DeleteFieldLevelEncryptionProfileRequest')
96
+ DeleteMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionRequest')
97
+ DeleteMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionResult')
94
98
  DeleteOriginRequestPolicyRequest = Shapes::StructureShape.new(name: 'DeleteOriginRequestPolicyRequest')
95
99
  DeletePublicKeyRequest = Shapes::StructureShape.new(name: 'DeletePublicKeyRequest')
96
100
  DeleteStreamingDistributionRequest = Shapes::StructureShape.new(name: 'DeleteStreamingDistributionRequest')
@@ -151,6 +155,8 @@ module Aws::CloudFront
151
155
  GetFieldLevelEncryptionResult = Shapes::StructureShape.new(name: 'GetFieldLevelEncryptionResult')
152
156
  GetInvalidationRequest = Shapes::StructureShape.new(name: 'GetInvalidationRequest')
153
157
  GetInvalidationResult = Shapes::StructureShape.new(name: 'GetInvalidationResult')
158
+ GetMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'GetMonitoringSubscriptionRequest')
159
+ GetMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'GetMonitoringSubscriptionResult')
154
160
  GetOriginRequestPolicyConfigRequest = Shapes::StructureShape.new(name: 'GetOriginRequestPolicyConfigRequest')
155
161
  GetOriginRequestPolicyConfigResult = Shapes::StructureShape.new(name: 'GetOriginRequestPolicyConfigResult')
156
162
  GetOriginRequestPolicyRequest = Shapes::StructureShape.new(name: 'GetOriginRequestPolicyRequest')
@@ -238,6 +244,7 @@ module Aws::CloudFront
238
244
  MethodsList = Shapes::ListShape.new(name: 'MethodsList')
239
245
  MinimumProtocolVersion = Shapes::StringShape.new(name: 'MinimumProtocolVersion')
240
246
  MissingBody = Shapes::StructureShape.new(name: 'MissingBody')
247
+ MonitoringSubscription = Shapes::StructureShape.new(name: 'MonitoringSubscription')
241
248
  NoSuchCachePolicy = Shapes::StructureShape.new(name: 'NoSuchCachePolicy')
242
249
  NoSuchCloudFrontOriginAccessIdentity = Shapes::StructureShape.new(name: 'NoSuchCloudFrontOriginAccessIdentity')
243
250
  NoSuchDistribution = Shapes::StructureShape.new(name: 'NoSuchDistribution')
@@ -298,6 +305,8 @@ module Aws::CloudFront
298
305
  QueryStringCacheKeysList = Shapes::ListShape.new(name: 'QueryStringCacheKeysList')
299
306
  QueryStringNames = Shapes::StructureShape.new(name: 'QueryStringNames')
300
307
  QueryStringNamesList = Shapes::ListShape.new(name: 'QueryStringNamesList')
308
+ RealtimeMetricsSubscriptionConfig = Shapes::StructureShape.new(name: 'RealtimeMetricsSubscriptionConfig')
309
+ RealtimeMetricsSubscriptionStatus = Shapes::StringShape.new(name: 'RealtimeMetricsSubscriptionStatus')
301
310
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
302
311
  Restrictions = Shapes::StructureShape.new(name: 'Restrictions')
303
312
  S3Origin = Shapes::StructureShape.new(name: 'S3Origin')
@@ -634,6 +643,17 @@ module Aws::CloudFront
634
643
  CreateInvalidationResult[:payload] = :invalidation
635
644
  CreateInvalidationResult[:payload_member] = CreateInvalidationResult.member(:invalidation)
636
645
 
646
+ CreateMonitoringSubscriptionRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
647
+ CreateMonitoringSubscriptionRequest.add_member(:monitoring_subscription, Shapes::ShapeRef.new(shape: MonitoringSubscription, required: true, location_name: "MonitoringSubscription", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
648
+ CreateMonitoringSubscriptionRequest.struct_class = Types::CreateMonitoringSubscriptionRequest
649
+ CreateMonitoringSubscriptionRequest[:payload] = :monitoring_subscription
650
+ CreateMonitoringSubscriptionRequest[:payload_member] = CreateMonitoringSubscriptionRequest.member(:monitoring_subscription)
651
+
652
+ CreateMonitoringSubscriptionResult.add_member(:monitoring_subscription, Shapes::ShapeRef.new(shape: MonitoringSubscription, location_name: "MonitoringSubscription"))
653
+ CreateMonitoringSubscriptionResult.struct_class = Types::CreateMonitoringSubscriptionResult
654
+ CreateMonitoringSubscriptionResult[:payload] = :monitoring_subscription
655
+ CreateMonitoringSubscriptionResult[:payload_member] = CreateMonitoringSubscriptionResult.member(:monitoring_subscription)
656
+
637
657
  CreateOriginRequestPolicyRequest.add_member(:origin_request_policy_config, Shapes::ShapeRef.new(shape: OriginRequestPolicyConfig, required: true, location_name: "OriginRequestPolicyConfig", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
638
658
  CreateOriginRequestPolicyRequest.struct_class = Types::CreateOriginRequestPolicyRequest
639
659
  CreateOriginRequestPolicyRequest[:payload] = :origin_request_policy_config
@@ -742,6 +762,11 @@ module Aws::CloudFront
742
762
  DeleteFieldLevelEncryptionProfileRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
743
763
  DeleteFieldLevelEncryptionProfileRequest.struct_class = Types::DeleteFieldLevelEncryptionProfileRequest
744
764
 
765
+ DeleteMonitoringSubscriptionRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
766
+ DeleteMonitoringSubscriptionRequest.struct_class = Types::DeleteMonitoringSubscriptionRequest
767
+
768
+ DeleteMonitoringSubscriptionResult.struct_class = Types::DeleteMonitoringSubscriptionResult
769
+
745
770
  DeleteOriginRequestPolicyRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
746
771
  DeleteOriginRequestPolicyRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
747
772
  DeleteOriginRequestPolicyRequest.struct_class = Types::DeleteOriginRequestPolicyRequest
@@ -1030,6 +1055,14 @@ module Aws::CloudFront
1030
1055
  GetInvalidationResult[:payload] = :invalidation
1031
1056
  GetInvalidationResult[:payload_member] = GetInvalidationResult.member(:invalidation)
1032
1057
 
1058
+ GetMonitoringSubscriptionRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
1059
+ GetMonitoringSubscriptionRequest.struct_class = Types::GetMonitoringSubscriptionRequest
1060
+
1061
+ GetMonitoringSubscriptionResult.add_member(:monitoring_subscription, Shapes::ShapeRef.new(shape: MonitoringSubscription, location_name: "MonitoringSubscription"))
1062
+ GetMonitoringSubscriptionResult.struct_class = Types::GetMonitoringSubscriptionResult
1063
+ GetMonitoringSubscriptionResult[:payload] = :monitoring_subscription
1064
+ GetMonitoringSubscriptionResult[:payload_member] = GetMonitoringSubscriptionResult.member(:monitoring_subscription)
1065
+
1033
1066
  GetOriginRequestPolicyConfigRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
1034
1067
  GetOriginRequestPolicyConfigRequest.struct_class = Types::GetOriginRequestPolicyConfigRequest
1035
1068
 
@@ -1348,6 +1381,9 @@ module Aws::CloudFront
1348
1381
  MissingBody.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1349
1382
  MissingBody.struct_class = Types::MissingBody
1350
1383
 
1384
+ MonitoringSubscription.add_member(:realtime_metrics_subscription_config, Shapes::ShapeRef.new(shape: RealtimeMetricsSubscriptionConfig, location_name: "RealtimeMetricsSubscriptionConfig"))
1385
+ MonitoringSubscription.struct_class = Types::MonitoringSubscription
1386
+
1351
1387
  NoSuchCachePolicy.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1352
1388
  NoSuchCachePolicy.struct_class = Types::NoSuchCachePolicy
1353
1389
 
@@ -1548,6 +1584,9 @@ module Aws::CloudFront
1548
1584
 
1549
1585
  QueryStringNamesList.member = Shapes::ShapeRef.new(shape: string, location_name: "Name")
1550
1586
 
1587
+ RealtimeMetricsSubscriptionConfig.add_member(:realtime_metrics_subscription_status, Shapes::ShapeRef.new(shape: RealtimeMetricsSubscriptionStatus, required: true, location_name: "RealtimeMetricsSubscriptionStatus"))
1588
+ RealtimeMetricsSubscriptionConfig.struct_class = Types::RealtimeMetricsSubscriptionConfig
1589
+
1551
1590
  Restrictions.add_member(:geo_restriction, Shapes::ShapeRef.new(shape: GeoRestriction, required: true, location_name: "GeoRestriction"))
1552
1591
  Restrictions.struct_class = Types::Restrictions
1553
1592
 
@@ -2093,6 +2132,16 @@ module Aws::CloudFront
2093
2132
  o.errors << Shapes::ShapeRef.new(shape: InconsistentQuantities)
2094
2133
  end)
2095
2134
 
2135
+ api.add_operation(:create_monitoring_subscription, Seahorse::Model::Operation.new.tap do |o|
2136
+ o.name = "CreateMonitoringSubscription2020_05_31"
2137
+ o.http_method = "POST"
2138
+ o.http_request_uri = "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"
2139
+ o.input = Shapes::ShapeRef.new(shape: CreateMonitoringSubscriptionRequest)
2140
+ o.output = Shapes::ShapeRef.new(shape: CreateMonitoringSubscriptionResult)
2141
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2142
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
2143
+ end)
2144
+
2096
2145
  api.add_operation(:create_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
2097
2146
  o.name = "CreateOriginRequestPolicy2020_05_31"
2098
2147
  o.http_method = "POST"
@@ -2227,6 +2276,16 @@ module Aws::CloudFront
2227
2276
  o.errors << Shapes::ShapeRef.new(shape: FieldLevelEncryptionProfileInUse)
2228
2277
  end)
2229
2278
 
2279
+ api.add_operation(:delete_monitoring_subscription, Seahorse::Model::Operation.new.tap do |o|
2280
+ o.name = "DeleteMonitoringSubscription2020_05_31"
2281
+ o.http_method = "DELETE"
2282
+ o.http_request_uri = "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"
2283
+ o.input = Shapes::ShapeRef.new(shape: DeleteMonitoringSubscriptionRequest)
2284
+ o.output = Shapes::ShapeRef.new(shape: DeleteMonitoringSubscriptionResult)
2285
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2286
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
2287
+ end)
2288
+
2230
2289
  api.add_operation(:delete_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
2231
2290
  o.name = "DeleteOriginRequestPolicy2020_05_31"
2232
2291
  o.http_method = "DELETE"
@@ -2378,6 +2437,16 @@ module Aws::CloudFront
2378
2437
  o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2379
2438
  end)
2380
2439
 
2440
+ api.add_operation(:get_monitoring_subscription, Seahorse::Model::Operation.new.tap do |o|
2441
+ o.name = "GetMonitoringSubscription2020_05_31"
2442
+ o.http_method = "GET"
2443
+ o.http_request_uri = "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"
2444
+ o.input = Shapes::ShapeRef.new(shape: GetMonitoringSubscriptionRequest)
2445
+ o.output = Shapes::ShapeRef.new(shape: GetMonitoringSubscriptionResult)
2446
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2447
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
2448
+ end)
2449
+
2381
2450
  api.add_operation(:get_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
2382
2451
  o.name = "GetOriginRequestPolicy2020_05_31"
2383
2452
  o.http_method = "GET"
@@ -2439,6 +2439,51 @@ module Aws::CloudFront
2439
2439
  include Aws::Structure
2440
2440
  end
2441
2441
 
2442
+ # @note When making an API call, you may pass CreateMonitoringSubscriptionRequest
2443
+ # data as a hash:
2444
+ #
2445
+ # {
2446
+ # distribution_id: "string", # required
2447
+ # monitoring_subscription: { # required
2448
+ # realtime_metrics_subscription_config: {
2449
+ # realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
2450
+ # },
2451
+ # },
2452
+ # }
2453
+ #
2454
+ # @!attribute [rw] distribution_id
2455
+ # The ID of the distribution that you are enabling metrics for.
2456
+ # @return [String]
2457
+ #
2458
+ # @!attribute [rw] monitoring_subscription
2459
+ # A monitoring subscription. This structure contains information about
2460
+ # whether additional CloudWatch metrics are enabled for a given
2461
+ # CloudFront distribution.
2462
+ # @return [Types::MonitoringSubscription]
2463
+ #
2464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscriptionRequest AWS API Documentation
2465
+ #
2466
+ class CreateMonitoringSubscriptionRequest < Struct.new(
2467
+ :distribution_id,
2468
+ :monitoring_subscription)
2469
+ SENSITIVE = []
2470
+ include Aws::Structure
2471
+ end
2472
+
2473
+ # @!attribute [rw] monitoring_subscription
2474
+ # A monitoring subscription. This structure contains information about
2475
+ # whether additional CloudWatch metrics are enabled for a given
2476
+ # CloudFront distribution.
2477
+ # @return [Types::MonitoringSubscription]
2478
+ #
2479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscriptionResult AWS API Documentation
2480
+ #
2481
+ class CreateMonitoringSubscriptionResult < Struct.new(
2482
+ :monitoring_subscription)
2483
+ SENSITIVE = []
2484
+ include Aws::Structure
2485
+ end
2486
+
2442
2487
  # @note When making an API call, you may pass CreateOriginRequestPolicyRequest
2443
2488
  # data as a hash:
2444
2489
  #
@@ -3492,6 +3537,29 @@ module Aws::CloudFront
3492
3537
  include Aws::Structure
3493
3538
  end
3494
3539
 
3540
+ # @note When making an API call, you may pass DeleteMonitoringSubscriptionRequest
3541
+ # data as a hash:
3542
+ #
3543
+ # {
3544
+ # distribution_id: "string", # required
3545
+ # }
3546
+ #
3547
+ # @!attribute [rw] distribution_id
3548
+ # The ID of the distribution that you are disabling metrics for.
3549
+ # @return [String]
3550
+ #
3551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscriptionRequest AWS API Documentation
3552
+ #
3553
+ class DeleteMonitoringSubscriptionRequest < Struct.new(
3554
+ :distribution_id)
3555
+ SENSITIVE = []
3556
+ include Aws::Structure
3557
+ end
3558
+
3559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscriptionResult AWS API Documentation
3560
+ #
3561
+ class DeleteMonitoringSubscriptionResult < Aws::EmptyStructure; end
3562
+
3495
3563
  # @note When making an API call, you may pass DeleteOriginRequestPolicyRequest
3496
3564
  # data as a hash:
3497
3565
  #
@@ -5818,6 +5886,40 @@ module Aws::CloudFront
5818
5886
  include Aws::Structure
5819
5887
  end
5820
5888
 
5889
+ # @note When making an API call, you may pass GetMonitoringSubscriptionRequest
5890
+ # data as a hash:
5891
+ #
5892
+ # {
5893
+ # distribution_id: "string", # required
5894
+ # }
5895
+ #
5896
+ # @!attribute [rw] distribution_id
5897
+ # The ID of the distribution that you are getting metrics information
5898
+ # for.
5899
+ # @return [String]
5900
+ #
5901
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscriptionRequest AWS API Documentation
5902
+ #
5903
+ class GetMonitoringSubscriptionRequest < Struct.new(
5904
+ :distribution_id)
5905
+ SENSITIVE = []
5906
+ include Aws::Structure
5907
+ end
5908
+
5909
+ # @!attribute [rw] monitoring_subscription
5910
+ # A monitoring subscription. This structure contains information about
5911
+ # whether additional CloudWatch metrics are enabled for a given
5912
+ # CloudFront distribution.
5913
+ # @return [Types::MonitoringSubscription]
5914
+ #
5915
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscriptionResult AWS API Documentation
5916
+ #
5917
+ class GetMonitoringSubscriptionResult < Struct.new(
5918
+ :monitoring_subscription)
5919
+ SENSITIVE = []
5920
+ include Aws::Structure
5921
+ end
5922
+
5821
5923
  # @note When making an API call, you may pass GetOriginRequestPolicyConfigRequest
5822
5924
  # data as a hash:
5823
5925
  #
@@ -7447,6 +7549,31 @@ module Aws::CloudFront
7447
7549
  include Aws::Structure
7448
7550
  end
7449
7551
 
7552
+ # A monitoring subscription. This structure contains information about
7553
+ # whether additional CloudWatch metrics are enabled for a given
7554
+ # CloudFront distribution.
7555
+ #
7556
+ # @note When making an API call, you may pass MonitoringSubscription
7557
+ # data as a hash:
7558
+ #
7559
+ # {
7560
+ # realtime_metrics_subscription_config: {
7561
+ # realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
7562
+ # },
7563
+ # }
7564
+ #
7565
+ # @!attribute [rw] realtime_metrics_subscription_config
7566
+ # A subscription configuration for additional CloudWatch metrics.
7567
+ # @return [Types::RealtimeMetricsSubscriptionConfig]
7568
+ #
7569
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/MonitoringSubscription AWS API Documentation
7570
+ #
7571
+ class MonitoringSubscription < Struct.new(
7572
+ :realtime_metrics_subscription_config)
7573
+ SENSITIVE = []
7574
+ include Aws::Structure
7575
+ end
7576
+
7450
7577
  # The cache policy does not exist.
7451
7578
  #
7452
7579
  # @!attribute [rw] message
@@ -8920,6 +9047,28 @@ module Aws::CloudFront
8920
9047
  include Aws::Structure
8921
9048
  end
8922
9049
 
9050
+ # A subscription configuration for additional CloudWatch metrics.
9051
+ #
9052
+ # @note When making an API call, you may pass RealtimeMetricsSubscriptionConfig
9053
+ # data as a hash:
9054
+ #
9055
+ # {
9056
+ # realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
9057
+ # }
9058
+ #
9059
+ # @!attribute [rw] realtime_metrics_subscription_status
9060
+ # A flag that indicates whether additional CloudWatch metrics are
9061
+ # enabled for a given CloudFront distribution.
9062
+ # @return [String]
9063
+ #
9064
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/RealtimeMetricsSubscriptionConfig AWS API Documentation
9065
+ #
9066
+ class RealtimeMetricsSubscriptionConfig < Struct.new(
9067
+ :realtime_metrics_subscription_status)
9068
+ SENSITIVE = []
9069
+ include Aws::Structure
9070
+ end
9071
+
8923
9072
  # A complex type that identifies ways in which you want to restrict
8924
9073
  # distribution of your content.
8925
9074
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core