:doc:`EC2 <../../ec2>` / Client / enable_aws_network_performance_metric_subscription

**************************************************
enable_aws_network_performance_metric_subscription
**************************************************



.. py:method:: EC2.Client.enable_aws_network_performance_metric_subscription(**kwargs)

  

  Enables Infrastructure Performance subscriptions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableAwsNetworkPerformanceMetricSubscription>`_  


  **Request Syntax**
  ::

    response = client.enable_aws_network_performance_metric_subscription(
        Source='string',
        Destination='string',
        Metric='aggregate-latency',
        Statistic='p50',
        DryRun=True|False
    )
    
  :type Source: string
  :param Source: 

    The source Region (like ``us-east-1``) or Availability Zone ID (like ``use1-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.

    

  
  :type Destination: string
  :param Destination: 

    The target Region (like ``us-east-2``) or Availability Zone ID (like ``use2-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.

    

  
  :type Metric: string
  :param Metric: 

    The metric used for the enabled subscription.

    

  
  :type Statistic: string
  :param Statistic: 

    The statistic used for the enabled subscription.

    

  
  :type DryRun: boolean
  :param DryRun: 

    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 is ``UnauthorizedOperation``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Output': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Output** *(boolean) --* 

        Indicates whether the subscribe action was successful.

        
  