AWS::CloudFront::MonitoringSubscription - AWS CloudFormation

AWS::CloudFront::MonitoringSubscription

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

Syntax

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

JSON

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

YAML

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

Properties

DistributionId

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

Required: Yes

Type: String

Update requires: Replacement

MonitoringSubscription

A subscription configuration for additional CloudWatch metrics.

Required: Yes

Type: MonitoringSubscription

Update requires: No interruption

Return values

Ref

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.