Skip to content

Create Monitoring Subscription

cloudfront_create_monitoring_subscription R Documentation

Enables additional CloudWatch metrics for the specified CloudFront distribution

Description

Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an additional cost.

For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.

Usage

cloudfront_create_monitoring_subscription(DistributionId,
  MonitoringSubscription)

Arguments

DistributionId

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

MonitoringSubscription

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

Value

A list with the following syntax:

list(
  MonitoringSubscription = list(
    RealtimeMetricsSubscriptionConfig = list(
      RealtimeMetricsSubscriptionStatus = "Enabled"|"Disabled"
    )
  )
)

Request syntax

svc$create_monitoring_subscription(
  DistributionId = "string",
  MonitoringSubscription = list(
    RealtimeMetricsSubscriptionConfig = list(
      RealtimeMetricsSubscriptionStatus = "Enabled"|"Disabled"
    )
  )
)