Show / Hide Table of Contents

Class CfnInsightRuleProps

Properties for defining a CfnInsightRule.

Inheritance
System.Object
CfnInsightRuleProps
Implements
ICfnInsightRuleProps
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class CfnInsightRuleProps : Object, ICfnInsightRuleProps
Syntax (vb)
Public Class CfnInsightRuleProps
    Inherits Object
    Implements ICfnInsightRuleProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html

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.CloudWatch;

CfnInsightRuleProps cfnInsightRuleProps = new CfnInsightRuleProps {
    RuleBody = "ruleBody",
    RuleName = "ruleName",
    RuleState = "ruleState",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};

Synopsis

Constructors

CfnInsightRuleProps()

Properties

RuleBody

The definition of the rule, as a JSON object.

RuleName

The name of the rule.

RuleState

The current state of the rule.

Tags

A list of key-value pairs to associate with the Contributor Insights rule.

Constructors

CfnInsightRuleProps()

public CfnInsightRuleProps()

Properties

RuleBody

The definition of the rule, as a JSON object.

public string RuleBody { get; set; }
Property Value

System.String

Remarks

For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody

RuleName

The name of the rule.

public string RuleName { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename

RuleState

The current state of the rule.

public string RuleState { get; set; }
Property Value

System.String

Remarks

Valid values are ENABLED and DISABLED .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate

Tags

A list of key-value pairs to associate with the Contributor Insights rule.

public object Tags { get; set; }
Property Value

System.Object

Remarks

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 .

To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags

Implements

ICfnInsightRuleProps
Back to top Generated by DocFX