-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnRepository_RepositoryTriggerProperty.go
57 lines (54 loc) · 3.04 KB
/
CfnRepository_RepositoryTriggerProperty.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
package awscodecommit
// Information about a trigger for a repository.
//
// > If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see [Configuring notifications for repository events](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-repository-email.html) .
//
// 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"
//
// repositoryTriggerProperty := &RepositoryTriggerProperty{
// DestinationArn: jsii.String("destinationArn"),
// Events: []*string{
// jsii.String("events"),
// },
// Name: jsii.String("name"),
//
// // the properties below are optional
// Branches: []*string{
// jsii.String("branches"),
// },
// CustomData: jsii.String("customData"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html
//
type CfnRepository_RepositoryTriggerProperty struct {
// The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-destinationarn
//
DestinationArn *string `field:"required" json:"destinationArn" yaml:"destinationArn"`
// The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
//
// > The valid value "all" cannot be used with any other values.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-events
//
Events *[]*string `field:"required" json:"events" yaml:"events"`
// The name of the trigger.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// The branches to be included in the trigger configuration.
//
// If you specify an empty array, the trigger applies to all branches.
//
// > Although no content is required in the array, you must include the array itself.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-branches
//
Branches *[]*string `field:"optional" json:"branches" yaml:"branches"`
// Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-customdata
//
CustomData *string `field:"optional" json:"customData" yaml:"customData"`
}