EC2 / Client / delete_metric_category

delete_metric_category

EC2.Client.delete_metric_category(**kwargs)

Deletes the specified metric category. Associations between the metric category and your instances are removed asynchronously.

For more information, see Use metric categories for additional metrics in the Amazon EC2 User Guide.

See also: AWS API Documentation

Request Syntax

response = client.delete_metric_category(
    MetricCategoryId='string',
    DryRun=True|False
)
Parameters:
  • MetricCategoryId (string) –

    [REQUIRED]

    The ID of the metric category.

  • DryRun (boolean) – Checks whether you have the required permissions for the operation, 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

{
    'MetricCategoryId': 'string'
}

Response Structure

  • (dict) –

    • MetricCategoryId (string) –

      The ID of the metric category that was deleted.