interface ProjectNotifyOnOptions
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeBuild.ProjectNotifyOnOptions |
![]() | software.amazon.awscdk.services.codebuild.ProjectNotifyOnOptions |
![]() | aws_cdk.aws_codebuild.ProjectNotifyOnOptions |
![]() | @aws-cdk/aws-codebuild » ProjectNotifyOnOptions |
Additional options to pass to the notification rule.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as codebuild from '@aws-cdk/aws-codebuild';
import * as codestarnotifications from '@aws-cdk/aws-codestarnotifications';
const projectNotifyOnOptions: codebuild.ProjectNotifyOnOptions = {
events: [codebuild.ProjectNotificationEvents.BUILD_FAILED],
// the properties below are optional
detailType: codestarnotifications.DetailType.BASIC,
enabled: false,
notificationRuleName: 'notificationRuleName',
};
Properties
Name | Type | Description |
---|---|---|
events | Project [] | A list of event types associated with this notification rule for CodeBuild Project. |
detail | Detail | The level of detail to include in the notifications for this resource. |
enabled? | boolean | The status of the notification rule. |
notification | string | The name for the notification rule. |
events
Type:
Project
[]
A list of event types associated with this notification rule for CodeBuild Project.
For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.
detailType?
Type:
Detail
(optional, default: DetailType.FULL)
The level of detail to include in the notifications for this resource.
BASIC will include only the contents of the event as it would appear in AWS 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.
enabled?
Type:
boolean
(optional, default: true)
The status of the notification rule.
If the enabled is set to DISABLED, notifications aren't sent for the notification rule.
notificationRuleName?
Type:
string
(optional, default: generated from the id
)
The name for the notification rule.
Notification rule names must be unique in your AWS account.