AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IoT::FleetMetric

CfnFleetMetric

Use the `AWS::IoT::FleetMetric` resource to declare a fleet metric.

Import

import { CfnFleetMetric } from 'aws-cdk-lib/aws-iot';

Or use the module namespace:

import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnFleetMetric

Properties

Configuration passed to the constructor as CfnFleetMetricProps.

metricNameRequired
string

The name of the fleet metric to create.

aggregationFieldOptional
string

The field to aggregate.

aggregationTypeOptional
IResolvable | AggregationTypeProperty

The type of the aggregation query.

descriptionOptional
string

The fleet metric description.

indexNameOptional
string

The name of the index to search.

periodOptional
number

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.

queryStringOptional
string

The search query string.

queryVersionOptional
string

The query version.

tagsOptional
CfnTag[]

Metadata which can be used to manage the fleet metric.

unitOptional
string

Used to support unit transformation such as milliseconds to seconds. Must be a unit supported by CW metric. Default to null.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

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

Subscribe to Newsletter