# CfnNetworkPerformanceMetricSubscriptionProps

Properties for defining a `CfnNetworkPerformanceMetricSubscription`.

Used as props by: [CfnNetworkPerformanceMetricSubscription](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkPerformanceMetricSubscription.html)

- Source: Generated at build time
- Type last changed: v2.55.0 · 14 Dec 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnNetworkPerformanceMetricSubscriptionProps: ec2.CfnNetworkPerformanceMetricSubscriptionProps = {
  destination: 'destination',
  metric: 'metric',
  source: 'source',
  statistic: 'statistic',
};
```

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_ec2 as ec2

cfn_network_performance_metric_subscription_props = ec2.CfnNetworkPerformanceMetricSubscriptionProps(
    destination="destination",
    metric="metric",
    source="source",
    statistic="statistic"
)
```

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.ec2.*;

CfnNetworkPerformanceMetricSubscriptionProps cfnNetworkPerformanceMetricSubscriptionProps = CfnNetworkPerformanceMetricSubscriptionProps.builder()
        .destination("destination")
        .metric("metric")
        .source("source")
        .statistic("statistic")
        .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.EC2;

var cfnNetworkPerformanceMetricSubscriptionProps = new CfnNetworkPerformanceMetricSubscriptionProps {
    Destination = "destination",
    Metric = "metric",
    Source = "source",
    Statistic = "statistic"
};
```

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"

cfnNetworkPerformanceMetricSubscriptionProps := &CfnNetworkPerformanceMetricSubscriptionProps{
	Destination: jsii.String("destination"),
	Metric: jsii.String("metric"),
	Source: jsii.String("source"),
	Statistic: jsii.String("statistic"),
}
```

## Properties

- `destination`: string (required) — The Region or Availability Zone that's the target for the subscription.

  For example, `eu-west-1` .

- `metric`: string (required) — The metric used for the subscription.

- `source`: string (required) — The Region or Availability Zone that's the source for the subscription.

  For example, `us-east-1` .

- `statistic`: string (required) — The statistic used for the subscription.
