Smaws_Client_MediaStore.PutMetricPolicyThe metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ContainerInUseException of Types.container_in_use_exception
| `ContainerNotFoundException of Types.container_not_found_exception
| `InternalServerError of Types.internal_server_error ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_metric_policy_input ->
(Types.put_metric_policy_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `ContainerInUseException of Types.container_in_use_exception
| `ContainerNotFoundException of Types.container_not_found_exception
| `InternalServerError of Types.internal_server_error ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_metric_policy_input ->
(Types.put_metric_policy_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ContainerInUseException of Types.container_in_use_exception
| `ContainerNotFoundException of Types.container_not_found_exception
| `InternalServerError of Types.internal_server_error ]
* Smaws_Lib.Response.metadata)
Stdlib.result