AWS::IoT::CustomMetricA custom metric published by your devices to Device Defender.
4 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
MetricType | string | RequiredCreate-only |
DisplayName | string | |
MetricName | string | Create-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
MetricArn | string | The Amazon Resource Number (ARN) of the custom metric. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::CustomMetric
Resources:
MyResource:
Type: AWS::IoT::CustomMetric
Properties:
MetricType: "string-list"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
iot:CreateCustomMetriciot:TagResourceiot:DescribeCustomMetriciot:ListTagsForResourceiot:UpdateCustomMetriciot:ListTagsForResourceiot:UntagResourceiot:TagResourceiot:DescribeCustomMetriciot:DeleteCustomMetriciot:ListCustomMetricsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterMetricNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
MetricNameMetricType