@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.577Z") @Stability(value=Stable) public interface CfnNotificationRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codestarnotifications.*;
Object tags;
CfnNotificationRuleProps cfnNotificationRuleProps = CfnNotificationRuleProps.builder()
.detailType("detailType")
.eventTypeIds(List.of("eventTypeIds"))
.name("name")
.resource("resource")
.targets(List.of(TargetProperty.builder()
.targetAddress("targetAddress")
.targetType("targetType")
.build()))
// the properties below are optional
.createdBy("createdBy")
.eventTypeId("eventTypeId")
.status("status")
.tags(tags)
.targetAddress("targetAddress")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnNotificationRuleProps.Builder
A builder for
CfnNotificationRuleProps |
static class |
CfnNotificationRuleProps.Jsii$Proxy
An implementation for
CfnNotificationRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnNotificationRuleProps.Builder |
builder() |
default String |
getCreatedBy()
`AWS::CodeStarNotifications::NotificationRule.CreatedBy`.
|
String |
getDetailType()
The level of detail to include in the notifications for this resource.
|
default String |
getEventTypeId()
`AWS::CodeStarNotifications::NotificationRule.EventTypeId`.
|
List<String> |
getEventTypeIds()
A list of event types associated with this notification rule.
|
String |
getName()
The name for the notification rule.
|
String |
getResource()
The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
|
default String |
getStatus()
The status of the notification rule.
|
default Object |
getTags()
A list of tags to apply to this notification rule.
|
default String |
getTargetAddress()
`AWS::CodeStarNotifications::NotificationRule.TargetAddress`.
|
Object |
getTargets()
A list of Amazon Resource Names (ARNs) of AWS Chatbot topics and AWS Chatbot clients to associate with the notification rule.
|
@Stability(value=Stable) @NotNull String getDetailType()
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.
@Stability(value=Stable) @NotNull List<String> getEventTypeIds()
For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .
@Stability(value=Stable) @NotNull String getName()
Notification rule names must be unique in your AWS account .
@Stability(value=Stable) @NotNull String getResource()
Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .
@Stability(value=Stable) @NotNull Object getTargets()
@Stability(value=Stable) @Nullable default String getCreatedBy()
@Stability(value=Stable) @Nullable default String getEventTypeId()
@Stability(value=Stable) @Nullable default String getStatus()
The default value is ENABLED . If the status is set to DISABLED , notifications aren't sent for the notification rule.
@Stability(value=Stable) @Nullable default Object getTags()
Key names cannot start with " aws ".
@Stability(value=Stable) @Nullable default String getTargetAddress()
@Stability(value=Stable) static CfnNotificationRuleProps.Builder builder()
CfnNotificationRuleProps.Builder of CfnNotificationRulePropsCopyright © 2022. All rights reserved.