-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnNotificationRuleProps.go
69 lines (66 loc) · 3.28 KB
/
CfnNotificationRuleProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package awscodestarnotifications
// Properties for defining a `CfnNotificationRule`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnNotificationRuleProps := &CfnNotificationRuleProps{
// DetailType: jsii.String("detailType"),
// EventTypeIds: []*string{
// jsii.String("eventTypeIds"),
// },
// Name: jsii.String("name"),
// Resource: jsii.String("resource"),
// Targets: []interface{}{
// &TargetProperty{
// TargetAddress: jsii.String("targetAddress"),
// TargetType: jsii.String("targetType"),
// },
// },
//
// // the properties below are optional
// CreatedBy: jsii.String("createdBy"),
// EventTypeId: jsii.String("eventTypeId"),
// Status: jsii.String("status"),
// Tags: map[string]*string{
// "tagsKey": jsii.String("tags"),
// },
// TargetAddress: jsii.String("targetAddress"),
// }
//
type CfnNotificationRuleProps struct {
// 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 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.
DetailType *string `field:"required" json:"detailType" yaml:"detailType"`
// A list of event types associated with this notification rule.
//
// For a complete list of event types and IDs, see [Notification concepts](https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api) in the *Developer Tools Console User Guide* .
EventTypeIds *[]*string `field:"required" json:"eventTypeIds" yaml:"eventTypeIds"`
// The name for the notification rule.
//
// Notification rule names must be unique in your AWS account .
Name *string `field:"required" json:"name" yaml:"name"`
// The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
//
// Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .
Resource *string `field:"required" json:"resource" yaml:"resource"`
// A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and AWS Chatbot clients to associate with the notification rule.
Targets interface{} `field:"required" json:"targets" yaml:"targets"`
// `AWS::CodeStarNotifications::NotificationRule.CreatedBy`.
CreatedBy *string `field:"optional" json:"createdBy" yaml:"createdBy"`
// `AWS::CodeStarNotifications::NotificationRule.EventTypeId`.
EventTypeId *string `field:"optional" json:"eventTypeId" yaml:"eventTypeId"`
// The status of the notification rule.
//
// The default value is `ENABLED` . If the status is set to `DISABLED` , notifications aren't sent for the notification rule.
Status *string `field:"optional" json:"status" yaml:"status"`
// A list of tags to apply to this notification rule.
//
// Key names cannot start with " `aws` ".
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// `AWS::CodeStarNotifications::NotificationRule.TargetAddress`.
TargetAddress *string `field:"optional" json:"targetAddress" yaml:"targetAddress"`
}