delete_metric_policy

MediaStore.Client.delete_metric_policy(**kwargs)

Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.

See also: AWS API Documentation

Request Syntax

response = client.delete_metric_policy(
    ContainerName='string'
)
Parameters
ContainerName (string) --

[REQUIRED]

The name of the container that is associated with the metric policy that you want to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • MediaStore.Client.exceptions.ContainerInUseException
  • MediaStore.Client.exceptions.ContainerNotFoundException
  • MediaStore.Client.exceptions.PolicyNotFoundException
  • MediaStore.Client.exceptions.InternalServerError