Skip to content

Deletes an existing metric from the specified Connect Customer instance

Description

Deletes an existing metric from the specified Connect Customer instance. This operation fails with ResourceConflictException if the metric is currently in use in a dashboard.

Usage

connect_delete_metric(InstanceId, MetricId)

Arguments

  • InstanceId

[required] The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • MetricId

[required] The identifier of the metric to delete.

Value

An empty list.

Request syntax

svc$delete_metric(
  InstanceId = "string",
  MetricId = "string"
)