Skip to content
v2.277.0

CfnNetworkPerformanceMetricSubscriptionProps Struct ​

Properties for defining a CfnNetworkPerformanceMetricSubscription.

Example ​

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
# 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
// 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();
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"
};
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 ​

destinationstringdestinationstrdestinationStringDestinationstringDestination*stringrequired#
The Region or Availability Zone that's the target for the subscription.

For example, eu-west-1 .

metricstringmetricstrmetricStringMetricstringMetric*stringrequired#
The metric used for the subscription.
sourcestringsourcestrsourceStringSourcestringSource*stringrequired#
The Region or Availability Zone that's the source for the subscription.

For example, us-east-1 .

statisticstringstatisticstrstatisticStringStatisticstringStatistic*stringrequired#
The statistic used for the subscription.