CfnFleetMetricProps

class aws_cdk.aws_iot.CfnFleetMetricProps(*, aggregation_field=None, aggregation_type=None, description=None, index_name=None, metric_name, period=None, query_string=None, query_version=None, tags=None, unit=None)

Bases: object

Properties for defining a AWS::IoT::FleetMetric.

Parameters
  • aggregation_field (Optional[str]) – AWS::IoT::FleetMetric.AggregationField.

  • aggregation_type (Union[IResolvable, AggregationTypeProperty, None]) – AWS::IoT::FleetMetric.AggregationType.

  • description (Optional[str]) – AWS::IoT::FleetMetric.Description.

  • index_name (Optional[str]) – AWS::IoT::FleetMetric.IndexName.

  • metric_name (str) – AWS::IoT::FleetMetric.MetricName.

  • period (Union[int, float, None]) – AWS::IoT::FleetMetric.Period.

  • query_string (Optional[str]) – AWS::IoT::FleetMetric.QueryString.

  • query_version (Optional[str]) – AWS::IoT::FleetMetric.QueryVersion.

  • tags (Optional[Sequence[CfnTag]]) – AWS::IoT::FleetMetric.Tags.

  • unit (Optional[str]) – AWS::IoT::FleetMetric.Unit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iot as iot

cfn_fleet_metric_props = iot.CfnFleetMetricProps(
    metric_name="metricName",

    # the properties below are optional
    aggregation_field="aggregationField",
    aggregation_type=iot.CfnFleetMetric.AggregationTypeProperty(
        name="name",
        values=["values"]
    ),
    description="description",
    index_name="indexName",
    period=123,
    query_string="queryString",
    query_version="queryVersion",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    unit="unit"
)

Attributes

aggregation_field

AWS::IoT::FleetMetric.AggregationField.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-aggregationfield

Return type

Optional[str]

aggregation_type

AWS::IoT::FleetMetric.AggregationType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-aggregationtype

Return type

Union[IResolvable, AggregationTypeProperty, None]

description

AWS::IoT::FleetMetric.Description.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-description

Return type

Optional[str]

index_name

AWS::IoT::FleetMetric.IndexName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-indexname

Return type

Optional[str]

metric_name

AWS::IoT::FleetMetric.MetricName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-metricname

Return type

str

period

AWS::IoT::FleetMetric.Period.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-period

Return type

Union[int, float, None]

query_string

AWS::IoT::FleetMetric.QueryString.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-querystring

Return type

Optional[str]

query_version

AWS::IoT::FleetMetric.QueryVersion.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-queryversion

Return type

Optional[str]

tags

AWS::IoT::FleetMetric.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-tags

Return type

Optional[List[CfnTag]]

unit

AWS::IoT::FleetMetric.Unit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html#cfn-iot-fleetmetric-unit

Return type

Optional[str]