AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::MonitoringSubscription

CfnMonitoringSubscription

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

Import

import { CfnMonitoringSubscription } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.CfnMonitoringSubscription

Properties

Configuration passed to the constructor as CfnMonitoringSubscriptionProps.

distributionIdRequired
string | IDistributionRef

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

monitoringSubscriptionRequired
IResolvable | MonitoringSubscriptionProperty

A subscription configuration for additional CloudWatch metrics.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic