CloudWatch / Client / delete_resource_metrics_configuration

delete_resource_metrics_configuration

CloudWatch.Client.delete_resource_metrics_configuration(**kwargs)

Deletes the resource metrics configuration for an Amazon Web Services resource. After you delete the configuration, Amazon CloudWatch stops collecting detailed metrics for the resource. Metric data that Amazon CloudWatch already collected for the resource is not deleted.

This operation returns a ResourceNotFoundException if no resource metrics configuration exists for the specified resource ARN. Verify that the resource ARN is correct.

To delete a resource metrics configuration, you must have the cloudwatch:DeleteResourceMetricsConfiguration permission. For information about scoping this permission to specific resources, see Condition keys for resource metrics configuration access in the Amazon CloudWatch User Guide.

See also: AWS API Documentation

Request Syntax

response = client.delete_resource_metrics_configuration(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the Amazon Web Services resource to delete the resource metrics configuration for.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    No data is returned.

Exceptions