EC2 / Client / disable_aws_network_performance_metric_subscription

disable_aws_network_performance_metric_subscription#

EC2.Client.disable_aws_network_performance_metric_subscription(**kwargs)#

Disables Infrastructure Performance metric subscriptions.

See also: AWS API Documentation

Request Syntax

response = client.disable_aws_network_performance_metric_subscription(
    Source='string',
    Destination='string',
    Metric='aggregate-latency',
    Statistic='p50',
    DryRun=True|False
)
Parameters:
  • Source (string) – The source Region or Availability Zone that the metric subscription is disabled for. For example, us-east-1.

  • Destination (string) – The target Region or Availability Zone that the metric subscription is disabled for. For example, eu-north-1.

  • Metric (string) – The metric used for the disabled subscription.

  • Statistic (string) – The statistic used for the disabled 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 is UnauthorizedOperation.

Return type:

dict

Returns:

Response Syntax

{
    'Output': True|False
}

Response Structure

  • (dict) –

    • Output (boolean) –

      Indicates whether the unsubscribe action was successful.