enable_aws_network_performance_metric_subscription
¶
enable_aws_network_performance_metric_subscription(
*,
config_overrides: Optional[EC2ClientConfig] = None,
source: Optional[String] = None,
destination: Optional[String] = None,
metric: Optional[MetricType] = None,
statistic: Optional[StatisticType] = None,
dry_run: Optional[Boolean] = None,
) -> EnableAwsNetworkPerformanceMetricSubscriptionResult
Enables Infrastructure Performance subscriptions.
Parameters:
-
source(Optional[String], default:None) –The source Region (like
us-east-1) or Availability Zone ID (likeuse1-az1) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region. -
destination(Optional[String], default:None) –The target Region (like
us-east-2) or Availability Zone ID (likeuse2-az2) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region. -
metric(Optional[MetricType], default:None) –The metric used for the enabled subscription.
-
statistic(Optional[StatisticType], default:None) –The statistic used for the enabled subscription.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
40931 40932 40933 40934 40935 40936 40937 40938 40939 40940 40941 40942 40943 40944 40945 40946 40947 40948 40949 40950 40951 40952 40953 40954 40955 40956 40957 40958 40959 40960 40961 40962 40963 40964 40965 40966 40967 40968 40969 40970 40971 40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 | |