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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import 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.