Table of Contents

Class CfnNotificationRuleProps

Namespace
Amazon.CDK.AWS.CodeStarNotifications
Assembly
Amazon.CDK.AWS.CodeStarNotifications.dll

Properties for defining a CfnNotificationRule.

public class CfnNotificationRuleProps : ICfnNotificationRuleProps
Inheritance
CfnNotificationRuleProps
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CodeStarNotifications;

             var cfnNotificationRuleProps = new CfnNotificationRuleProps {
                 DetailType = "detailType",
                 EventTypeIds = new [] { "eventTypeIds" },
                 Name = "name",
                 Resource = "resource",
                 Targets = new [] { new TargetProperty {
                     TargetAddress = "targetAddress",
                     TargetType = "targetType"
                 } },

                 // the properties below are optional
                 CreatedBy = "createdBy",
                 EventTypeId = "eventTypeId",
                 Status = "status",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 TargetAddress = "targetAddress"
             };

Remarks

Constructors

CfnNotificationRuleProps()

public CfnNotificationRuleProps()

Properties

CreatedBy

AWS::CodeStarNotifications::NotificationRule.CreatedBy.

public string? CreatedBy { get; set; }

Property Value

string

Remarks

DetailType

The level of detail to include in the notifications for this resource.

public string DetailType { get; set; }

Property Value

string

Remarks

BASIC will include only the contents of the event as it would appear in Amazon CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-detailtype

EventTypeId

AWS::CodeStarNotifications::NotificationRule.EventTypeId.

public string? EventTypeId { get; set; }

Property Value

string

Remarks

EventTypeIds

A list of event types associated with this notification rule.

public string[] EventTypeIds { get; set; }

Property Value

string[]

Remarks

Name

The name for the notification rule.

public string Name { get; set; }

Property Value

string

Remarks

Resource

The Amazon Resource Name (ARN) of the resource to associate with the notification rule.

public string Resource { get; set; }

Property Value

string

Remarks

Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-resource

Status

The status of the notification rule.

public string? Status { get; set; }

Property Value

string

Remarks

The default value is ENABLED . If the status is set to DISABLED , notifications aren't sent for the notification rule.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-status

Tags

A list of tags to apply to this notification rule.

public IDictionary<string, string>? Tags { get; set; }

Property Value

IDictionary<string, string>

Remarks

TargetAddress

AWS::CodeStarNotifications::NotificationRule.TargetAddress.

public string? TargetAddress { get; set; }

Property Value

string

Remarks

Targets

A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and AWS Chatbot clients to associate with the notification rule.

public object Targets { get; set; }

Property Value

object

Remarks