AWS::CloudFront::MonitoringSubscription - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::CloudFront::MonitoringSubscription", "Properties" : { "DistributionId" : String, "MonitoringSubscription" : MonitoringSubscription } }


Type: AWS::CloudFront::MonitoringSubscription Properties: DistributionId: String MonitoringSubscription: MonitoringSubscription



The ID of the distribution that you are enabling metrics for.

Required: Yes

Type: String

Update requires: Replacement


A subscription configuration for additional CloudWatch metrics.

Required: Yes

Type: MonitoringSubscription

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the unique identifier for the monitoring subscription, which is the same as the distribution ID of the distribution that the subscription is for.

For more information about using the Ref function, see Ref.