Show / Hide Table of Contents

Enum DetailType

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

Namespace: Amazon.CDK.AWS.CodeStarNotifications
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum DetailType
Syntax (vb)
Public Enum DetailType
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.CodeStarNotifications;
            using Amazon.CDK.AWS.CodeBuild;
            using Amazon.CDK.AWS.SNS;
            using Amazon.CDK.AWS.Chatbot;


            var project = new PipelineProject(this, "MyProject");

            var topic = new Topic(this, "MyTopic1");

            var slack = new SlackChannelConfiguration(this, "MySlackChannel", new SlackChannelConfigurationProps {
                SlackChannelConfigurationName = "YOUR_CHANNEL_NAME",
                SlackWorkspaceId = "YOUR_SLACK_WORKSPACE_ID",
                SlackChannelId = "YOUR_SLACK_CHANNEL_ID"
            });

            var rule = new NotificationRule(this, "NotificationRule", new NotificationRuleProps {
                Source = project,
                Events = new [] { "codebuild-project-build-state-succeeded", "codebuild-project-build-state-failed" },
                Targets = new [] { topic },
                NotificationRuleName = "MyNotificationRuleName",
                Enabled = true,  // The default is true
                DetailType = DetailType.FULL,  // The default is FULL
                CreatedBy = "Jone Doe"
            });
            rule.AddTarget(slack);

Synopsis

Fields

BASIC

BASIC will include only the contents of the event as it would appear in AWS CloudWatch.

FULL

FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.

Fields

Name Description
BASIC

BASIC will include only the contents of the event as it would appear in AWS CloudWatch.

FULL

FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.

Back to top Generated by DocFX