AWS::Connect::Metric

Connect Metric

Resource Type definition for AWS::Connect::Metric, a custom metric configured for an Amazon Connect instance

Properties

8 configurable properties. 5 required. Click a row to see details.

Filter:
PropertyTypeFlags
InstanceArn
string
RequiredCreate-only
MetricCalculation
object
Required
Name
string
Required
Status
string
RequiredCreate-only
Unit
string
Required
Description
string
PositiveTrendIndicator
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
CategorystringThe category of the custom metric
CreatedTimenumberThe timestamp where the metric was created
CreatedUserCreatedByInfo-
CreationMethodstringWhether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
EffectiveTimenumberEarliest time that can be queried for this metric
FiltersArray<AvailableFilter>List of filter types that may be used with this metric
GroupingsArray<string>List of groupings that may be used with this metric
LastModifiedRegionstringThe AWS region where the metric was last modified
LastModifiedTimenumberThe timestamp where the metric was last modified
LastModifiedUserCreatedByInfo-
MetricArnstringThe Amazon Resource Name (ARN) for the custom metric.
PrimaryEventSourcestringMain provider of the document/row-level data for the metric; should match Data Lake table names
PrimaryEventSourceEffectiveTimestampTypestringIdentifies the timestamp used to place the metrics on a time-series; should match public attribute name
RefreshRateintegerRecommended time to wait between each refresh of data for the metric
SupportedStatsArray<string>List of stat aggregations available for the metric
SupportsCustomCalculationbooleanThe metric may be used to compose other (custom) metrics
SupportsPreaggregateCalculationbooleanThe metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
TypestringWhether the metric is provided out-of-the-box or created by each customer

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Connect::Metric

Resources:
  MyResource:
    Type: AWS::Connect::Metric
    Properties:
      InstanceArn: "arn:aws:service:region:account:resource"
      Name: "my-name"
      MetricCalculation: {}
      Unit: "INTEGER"
      Status: "SAVED"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

connect:CreateMetricconnect:TagResource

read

connect:DescribeMetric

update

connect:UpdateMetricMetadataconnect:UpdateMetricContentconnect:TagResourceconnect:UntagResource

delete

connect:DeleteMetricconnect:UntagResource

list

connect:ListMetrics

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceConnect
Properties26
Required5
TaggingSupported
Primary IDMetricArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

InstanceArnStatus

External Links