CfnCustomMetricProps

class aws_cdk.aws_iot.CfnCustomMetricProps(*, display_name=None, metric_name=None, metric_type, tags=None)

Bases: object

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

Parameters
  • display_name (Optional[str]) – AWS::IoT::CustomMetric.DisplayName.

  • metric_name (Optional[str]) – AWS::IoT::CustomMetric.MetricName.

  • metric_type (str) – AWS::IoT::CustomMetric.MetricType.

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

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-custommetric.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_custom_metric_props = iot.CfnCustomMetricProps(
    metric_type="metricType",

    # the properties below are optional
    display_name="displayName",
    metric_name="metricName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

display_name

AWS::IoT::CustomMetric.DisplayName.

Link

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

Return type

Optional[str]

metric_name

AWS::IoT::CustomMetric.MetricName.

Link

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

Return type

Optional[str]

metric_type

AWS::IoT::CustomMetric.MetricType.

Link

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

Return type

str

tags

AWS::IoT::CustomMetric.Tags.

Link

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

Return type

Optional[List[CfnTag]]