EC2 / Client / enable_aws_network_performance_metric_subscription
enable_aws_network_performance_metric_subscription#
- EC2.Client.enable_aws_network_performance_metric_subscription(**kwargs)#
Enables Infrastructure Performance subscriptions.
See also: AWS API Documentation
Request Syntax
response = client.enable_aws_network_performance_metric_subscription( Source='string', Destination='string', Metric='aggregate-latency', Statistic='p50', DryRun=True|False )
- Parameters:
Source (string) – 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 (string) – 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 (string) – The metric used for the enabled subscription.
Statistic (string) – The statistic used for the enabled subscription.
DryRun (boolean) – 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
.
- Return type:
dict
- Returns:
Response Syntax
{ 'Output': True|False }
Response Structure
(dict) –
Output (boolean) –
Indicates whether the subscribe action was successful.