Class DetailType
The level of detail to include in the notifications for this resource.
Inheritance
System.Object
DetailType
Namespace: Amazon.CDK.AWS.CodeStarNotifications
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class DetailType : Enum
Syntax (vb)
Public NotInheritable Class DetailType
Inherits
Enum
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. |
value__ |
Fields
BASIC
BASIC will include only the contents of the event as it would appear in AWS CloudWatch.
public const DetailType BASIC
Field Value
Type | Description |
---|---|
DetailType |
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.
public const DetailType FULL
Field Value
Type | Description |
---|---|
DetailType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |