# MonitoringSubscriptionProperty

A monitoring subscription.

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `realtimeMetricsSubscriptionConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty.html) — A subscription configuration for additional CloudWatch metrics.
