RepositoryTrigger - AWS CodeCommit

RepositoryTrigger

Information about a trigger for a repository.

Note

If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see Configuring notifications for repository events.

Contents

destinationArn

The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).

Type: String

Required: Yes

events

The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

Note

The valid value "all" cannot be used with any other values.

Type: Array of strings

Valid Values: all | updateReference | createReference | deleteReference

Required: Yes

name

The name of the trigger.

Type: String

Required: Yes

branches

The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.

Note

Although no content is required in the array, you must include the array itself.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: No

customData

Any custom data associated with the trigger to be included in the information sent to the target of the trigger.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: