-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnInsightRuleProps.go
58 lines (55 loc) · 2.55 KB
/
CfnInsightRuleProps.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package awscloudwatch
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnInsightRule`.
//
// 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"
//
// cfnInsightRuleProps := &CfnInsightRuleProps{
// RuleBody: jsii.String("ruleBody"),
// RuleName: jsii.String("ruleName"),
// RuleState: jsii.String("ruleState"),
//
// // the properties below are optional
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
//
type CfnInsightRuleProps struct {
// The definition of the rule, as a JSON object.
//
// For details about the syntax, see [Contributor Insights Rule Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html) in the *Amazon CloudWatch User Guide* .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody
//
RuleBody *string `field:"required" json:"ruleBody" yaml:"ruleBody"`
// The name of the rule.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename
//
RuleName *string `field:"required" json:"ruleName" yaml:"ruleName"`
// The current state of the rule.
//
// Valid values are `ENABLED` and `DISABLED` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate
//
RuleState *string `field:"required" json:"ruleState" yaml:"ruleState"`
// A list of key-value pairs to associate with the Contributor Insights rule.
//
// You can associate as many as 50 tags with a rule.
//
// Tags can help you organize and categorize your resources. For more information, see [Tagging Your Amazon CloudWatch Resources](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html) .
//
// To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}