CfnMonitoringSubscriptionProps
- class aws_cdk.aws_cloudfront.CfnMonitoringSubscriptionProps(*, distribution_id, monitoring_subscription)
Bases:
object
Properties for defining a
CfnMonitoringSubscription
.- Parameters:
distribution_id (
str
) – The ID of the distribution that you are enabling metrics for.monitoring_subscription (
Union
[IResolvable
,MonitoringSubscriptionProperty
,Dict
[str
,Any
]]) – A subscription configuration for additional CloudWatch metrics.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_cloudfront as cloudfront cfn_monitoring_subscription_props = cloudfront.CfnMonitoringSubscriptionProps( distribution_id="distributionId", monitoring_subscription=cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty( realtime_metrics_subscription_config=cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty( realtime_metrics_subscription_status="realtimeMetricsSubscriptionStatus" ) ) )
Attributes
- distribution_id
The ID of the distribution that you are enabling metrics for.
- monitoring_subscription
A subscription configuration for additional CloudWatch metrics.