CloudWatch / Client / delete_metric_data_query_definition

delete_metric_data_query_definition

CloudWatch.Client.delete_metric_data_query_definition(**kwargs)

Deletes a metric data query definition.

This operation is idempotent. If the definition doesn’t exist, the operation succeeds without returning an error.

Permissions

To delete a definition, you need the cloudwatch:DeleteMetricDataQueryDefinition permission on the metric data query definition resource. You can use the aws:ResourceTag/${TagKey} condition key to control access based on the tags of the definition.

See also: AWS API Documentation

Request Syntax

response = client.delete_metric_data_query_definition(
    Id='string'
)
Parameters:

Id (string) –

[REQUIRED]

The ID of the metric data query definition to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –