AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::FleetMetric

IoT FleetMetric

An aggregated metric of certain devices in your fleet

Properties

10 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
MetricName
string
RequiredCreate-only
AggregationField
string
AggregationType
AggregationType
Description
string
IndexName
string
Period
integer
QueryString
string
QueryVersion
string
Tags
Array<Tag>
Unit
string

Return Values

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

AttributeTypeDescription
CreationDatestringThe creation date of a fleet metric
LastModifiedDatestringThe last modified date of a fleet metric
MetricArnstringThe Amazon Resource Number (ARN) of a fleet metric metric
VersionnumberThe version of a fleet metric

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::FleetMetric

Resources:
  MyResource:
    Type: AWS::IoT::FleetMetric
    Properties:
      MetricName: "my-metricname"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

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

create

iot:CreateFleetMetriciot:DescribeFleetMetriciot:TagResource

read

iot:DescribeFleetMetriciot:ListTagsForResource

update

iot:UpdateFleetMetriciot:DescribeFleetMetriciot:ListTagsForResourceiot:UntagResourceiot:TagResource

delete

iot:DeleteFleetMetriciot:DescribeFleetMetric

list

iot:ListFleetMetrics

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

ServiceIoT
Properties14
Required1
TaggingSupported
Primary IDMetricName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

MetricName

External Links