Class CfnTopicRule.CloudwatchMetricActionProperty
Describes an action that captures a CloudWatch metric.
Inheritance
System.Object
CfnTopicRule.CloudwatchMetricActionProperty
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CloudwatchMetricActionProperty : Object, CfnTopicRule.ICloudwatchMetricActionProperty
Syntax (vb)
Public Class CloudwatchMetricActionProperty
Inherits Object
Implements CfnTopicRule.ICloudwatchMetricActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var cloudwatchMetricActionProperty = new CloudwatchMetricActionProperty {
MetricName = "metricName",
MetricNamespace = "metricNamespace",
MetricUnit = "metricUnit",
MetricValue = "metricValue",
RoleArn = "roleArn",
// the properties below are optional
MetricTimestamp = "metricTimestamp"
};
Synopsis
Constructors
CloudwatchMetricActionProperty() |
Properties
MetricName | The CloudWatch metric name. |
MetricNamespace | The CloudWatch metric namespace name. |
MetricTimestamp | An optional Unix timestamp . |
MetricUnit | The metric unit supported by CloudWatch. |
MetricValue | The CloudWatch metric value. |
RoleArn | The IAM role that allows access to the CloudWatch metric. |
Constructors
CloudwatchMetricActionProperty()
public CloudwatchMetricActionProperty()
Properties
MetricName
The CloudWatch metric name.
public string MetricName { get; set; }
Property Value
System.String
Remarks
MetricNamespace
The CloudWatch metric namespace name.
public string MetricNamespace { get; set; }
Property Value
System.String
Remarks
MetricTimestamp
An optional Unix timestamp .
public string MetricTimestamp { get; set; }
Property Value
System.String
Remarks
MetricUnit
The metric unit supported by CloudWatch.
public string MetricUnit { get; set; }
Property Value
System.String
Remarks
MetricValue
The CloudWatch metric value.
public string MetricValue { get; set; }
Property Value
System.String
Remarks
RoleArn
The IAM role that allows access to the CloudWatch metric.
public string RoleArn { get; set; }
Property Value
System.String