enable_aws_network_performance_metric_subscription
async
¶
enable_aws_network_performance_metric_subscription(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
41485 41486 41487 41488 41489 41490 41491 41492 41493 41494 41495 41496 41497 41498 41499 41500 41501 41502 41503 41504 41505 41506 41507 41508 41509 41510 41511 41512 41513 41514 41515 41516 41517 41518 41519 41520 41521 41522 41523 41524 41525 41526 41527 41528 41529 41530 41531 41532 41533 41534 41535 41536 41537 41538 41539 41540 41541 41542 41543 41544 41545 | |