MonitoringSubscriptionProperty Struct
A monitoring subscription.
This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const monitoringSubscriptionProperty: cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty = {
realtimeMetricsSubscriptionConfig: {
realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',
},
};
python
# 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
monitoring_subscription_property = cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty(
realtime_metrics_subscription_config=cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty(
realtime_metrics_subscription_status="realtimeMetricsSubscriptionStatus"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
MonitoringSubscriptionProperty monitoringSubscriptionProperty = MonitoringSubscriptionProperty.builder()
.realtimeMetricsSubscriptionConfig(RealtimeMetricsSubscriptionConfigProperty.builder()
.realtimeMetricsSubscriptionStatus("realtimeMetricsSubscriptionStatus")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var monitoringSubscriptionProperty = new MonitoringSubscriptionProperty {
RealtimeMetricsSubscriptionConfig = new RealtimeMetricsSubscriptionConfigProperty {
RealtimeMetricsSubscriptionStatus = "realtimeMetricsSubscriptionStatus"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
monitoringSubscriptionProperty := &MonitoringSubscriptionProperty{
RealtimeMetricsSubscriptionConfig: &RealtimeMetricsSubscriptionConfigProperty{
RealtimeMetricsSubscriptionStatus: jsii.String("realtimeMetricsSubscriptionStatus"),
},
}
Properties
realtimeMetricsSubscriptionConfigoptionalIResolvable | CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigPropertyrealtime_metrics_subscription_configoptionaltyping.Union[IResolvable, RealtimeMetricsSubscriptionConfigProperty]realtimeMetricsSubscriptionConfigoptionalIResolvableRealtimeMetricsSubscriptionConfigoptionalIResolvableRealtimeMetricsSubscriptionConfigoptionalinterface{}#A subscription configuration for additional CloudWatch metrics.