-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsiot_CfnTopicRule_CloudwatchMetricActionProperty.go
36 lines (33 loc) · 1.64 KB
/
awsiot_CfnTopicRule_CloudwatchMetricActionProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package awsiot
// Describes an action that captures a CloudWatch metric.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cloudwatchMetricActionProperty := &cloudwatchMetricActionProperty{
// metricName: jsii.String("metricName"),
// metricNamespace: jsii.String("metricNamespace"),
// metricUnit: jsii.String("metricUnit"),
// metricValue: jsii.String("metricValue"),
// roleArn: jsii.String("roleArn"),
//
// // the properties below are optional
// metricTimestamp: jsii.String("metricTimestamp"),
// }
//
type CfnTopicRule_CloudwatchMetricActionProperty struct {
// The CloudWatch metric name.
MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
// The CloudWatch metric namespace name.
MetricNamespace *string `field:"required" json:"metricNamespace" yaml:"metricNamespace"`
// The [metric unit](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) supported by CloudWatch.
MetricUnit *string `field:"required" json:"metricUnit" yaml:"metricUnit"`
// The CloudWatch metric value.
MetricValue *string `field:"required" json:"metricValue" yaml:"metricValue"`
// The IAM role that allows access to the CloudWatch metric.
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// An optional [Unix timestamp](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) .
MetricTimestamp *string `field:"optional" json:"metricTimestamp" yaml:"metricTimestamp"`
}